1
0
forked from firka/firka

merge together dev branch

This commit is contained in:
balazsmanus@chameleon
2025-03-14 15:37:36 +01:00
parent 50db5c9adf
commit 3fead04323
2 changed files with 71 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
// This is a basic Flutter widget test.
//
// To perform an interaction with a widget in your test, use the WidgetTester
// utility in the flutter_test package. For example, you can send tap and scroll
// gestures. You can also use WidgetTester to find child widgets in the widget
// tree, read text, and verify that the values of widget properties are correct.
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:filc/main.dart';
void main() {
testWidgets('Counter increments smoke test', (WidgetTester tester) async {
// Build our app and trigger a frame.
await tester.pumpWidget(const MyApp());
// Verify that our counter starts at 0.
expect(find.text('0'), findsOneWidget);
expect(find.text('1'), findsNothing);
// Tap the '+' icon and trigger a frame.
await tester.tap(find.byIcon(Icons.add));
await tester.pump();
// Verify that our counter has incremented.
expect(find.text('0'), findsNothing);
expect(find.text('1'), findsOneWidget);
});
}

40
secrets/readme.md Normal file
View File

@@ -0,0 +1,40 @@
# hogyan hozz létre upload-keystore-t flutterhez?
ha ezt olvasod, akkor valószínűleg szeretnéd a refilc appot build-elni. ha bármi kérdésed lenne, nyugodtan keress minket discordon, vagy akár emailben is!
## 1. keystore létrehozása
először, nyiss egy terminált ebben a mappában és futtasd ezt a parancsot:
```sh
keytool -genkeypair -v \
-keystore upload-keystore.jks \
-keyalg RSA -keysize 2048 -validity 10000 \
-alias upload
```
ezután meg kell adnod néhány adatot:
- egy jelszót a keystore-hoz (ezt jegyezd meg!)
- nevedet, szervezeted nevét (nyugodtan hagyhatod alapértelmezetten)
- egy második jelszót az „upload” aliashoz (ajánlott az előzőt használni)
ha minden jól megy, egy `upload-keystore.jks` fájl létrejön.
## 3. keystore.properties létrehozása
hozz létre egy új fájlt `keystore.properties` néven, és írd bele a következőt:
```properties
storeFile=../../secrets/keystore.properties
storePassword=password
keyPassword=password
keyAlias=upload
```
cseréld ki a `password` részeket, természetesen a választott jelszavadra.
## 4. secrets mappa kizárása a gitből
már beleraktuk a .gitignore mappába a kizárását ennek, ezen nem kell aggódnod.
készen is vagy, sok sikert!