From c4d05fe91f0cceb2f1badcf1cbf9678f4da7ab7e Mon Sep 17 00:00:00 2001 From: ReinerRego Date: Sun, 3 Mar 2024 22:00:50 +0100 Subject: [PATCH 1/6] temp fix --- refilc/android/app/build.gradle | 6 +++--- .../java/io/flutter/plugins/GeneratedPluginRegistrant.java | 5 ----- refilc/android/local.properties | 4 ++-- .../lib/premium/components/active_sponsor_card.dart | 3 +-- 4 files changed, 6 insertions(+), 12 deletions(-) diff --git a/refilc/android/app/build.gradle b/refilc/android/app/build.gradle index d6ba73e..9e2a99c 100644 --- a/refilc/android/app/build.gradle +++ b/refilc/android/app/build.gradle @@ -66,9 +66,9 @@ android { signingConfigs { debug { keyAlias "androiddebugkey" - keyPassword "Jelszo123" - storeFile file("C:/Users/Kima/debugkeystore.jks") - storePassword "Jelszo123" + keyPassword "android" + storeFile file("/home/reinerregodebugkeystore.jks") + storePassword "android" } release { diff --git a/refilc/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java b/refilc/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java index 90dcb8d..d639f8a 100644 --- a/refilc/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java +++ b/refilc/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java @@ -165,11 +165,6 @@ public final class GeneratedPluginRegistrant { } catch (Exception e) { Log.e(TAG, "Error registering plugin sqflite, com.tekartik.sqflite.SqflitePlugin", e); } - try { - flutterEngine.getPlugins().add(new com.flutter.stripe.StripeAndroidPlugin()); - } catch (Exception e) { - Log.e(TAG, "Error registering plugin stripe_android, com.flutter.stripe.StripeAndroidPlugin", e); - } try { flutterEngine.getPlugins().add(new name.avioli.unilinks.UniLinksPlugin()); } catch (Exception e) { diff --git a/refilc/android/local.properties b/refilc/android/local.properties index 32cd67f..33b7021 100644 --- a/refilc/android/local.properties +++ b/refilc/android/local.properties @@ -1,5 +1,5 @@ -sdk.dir=C:\\Users\\Kima\\AppData\\Local\\Android\\sdk -flutter.sdk=C:\\src\\flutter +sdk.dir=/media/zypherift/FileStorage/android-sdk +flutter.sdk=/home/reinerrego/flutter/flutter flutter.buildMode=debug flutter.versionName=5.0.0 flutter.versionCode=241 \ No newline at end of file diff --git a/refilc_mobile_ui/lib/premium/components/active_sponsor_card.dart b/refilc_mobile_ui/lib/premium/components/active_sponsor_card.dart index fba670a..5f11b9b 100644 --- a/refilc_mobile_ui/lib/premium/components/active_sponsor_card.dart +++ b/refilc_mobile_ui/lib/premium/components/active_sponsor_card.dart @@ -46,7 +46,7 @@ class ActiveSponsorCard extends StatelessWidget { return const SizedBox(); } - Color glow; + Color? glow = Colors.white; //TODO: only temp fix kima switch (level) { case PremiumFeatureLevel.cap: @@ -62,7 +62,6 @@ class ActiveSponsorCard extends StatelessWidget { glow = Colors.red; break; } - return Container( decoration: BoxDecoration( borderRadius: BorderRadius.circular(20.0), From 8c46b941ae88a853dd6f66baadf5f53591465f2c Mon Sep 17 00:00:00 2001 From: ReinerRego Date: Sun, 3 Mar 2024 22:05:31 +0100 Subject: [PATCH 2/6] null safety --- refilc/android/app/build.gradle | 2 +- .../lib/premium/components/active_sponsor_card.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/refilc/android/app/build.gradle b/refilc/android/app/build.gradle index 9e2a99c..c41b003 100644 --- a/refilc/android/app/build.gradle +++ b/refilc/android/app/build.gradle @@ -67,7 +67,7 @@ android { debug { keyAlias "androiddebugkey" keyPassword "android" - storeFile file("/home/reinerregodebugkeystore.jks") + storeFile file("/home/reinerrego/debug.keystore") storePassword "android" } diff --git a/refilc_mobile_ui/lib/premium/components/active_sponsor_card.dart b/refilc_mobile_ui/lib/premium/components/active_sponsor_card.dart index 5f11b9b..219577e 100644 --- a/refilc_mobile_ui/lib/premium/components/active_sponsor_card.dart +++ b/refilc_mobile_ui/lib/premium/components/active_sponsor_card.dart @@ -24,7 +24,7 @@ class ActiveSponsorCard extends StatelessWidget { return PremiumFeatureLevel.old; } - IconData _levelIcon(PremiumFeatureLevel level) { + IconData? _levelIcon(PremiumFeatureLevel level) { switch (level) { case PremiumFeatureLevel.cap: return FilcIcons.kupak; From 73d596c645b84292cf62ae058f3c3a7efcef8543 Mon Sep 17 00:00:00 2001 From: ReinerRego Date: Sun, 3 Mar 2024 22:14:40 +0100 Subject: [PATCH 3/6] started exception screen --- .../lib/screens/error_report_screen.dart | 63 +++++++++++++++---- .../lib/screens/error_report_screen.i18n.dart | 5 +- .../lib/screens/settings/settings_screen.dart | 27 +++++++- 3 files changed, 80 insertions(+), 15 deletions(-) diff --git a/refilc_mobile_ui/lib/screens/error_report_screen.dart b/refilc_mobile_ui/lib/screens/error_report_screen.dart index 0e638d4..eb68026 100644 --- a/refilc_mobile_ui/lib/screens/error_report_screen.dart +++ b/refilc_mobile_ui/lib/screens/error_report_screen.dart @@ -14,16 +14,12 @@ class ErrorReportScreen extends StatelessWidget { @override Widget build(BuildContext context) { return Scaffold( - backgroundColor: Colors.red, + backgroundColor: Color(0xFFE3EBFB), body: SafeArea( child: Padding( padding: const EdgeInsets.all(12.0), child: Column( children: [ - const Align( - alignment: Alignment.topLeft, - child: BackButton(), - ), const Spacer(), const Icon( FeatherIcons.alertTriangle, @@ -58,13 +54,25 @@ class ErrorReportScreen extends StatelessWidget { width: double.infinity, padding: const EdgeInsets.all(12.0), decoration: BoxDecoration( - borderRadius: BorderRadius.circular(12.0), - color: Colors.black.withOpacity(.2)), + borderRadius: BorderRadius.circular(12.0), + color: const Color(0xFFF7F9FC), + boxShadow: [ + BoxShadow( + color: Colors.grey.withOpacity(0.2), + spreadRadius: 5, + blurRadius: 7, + offset: + const Offset(0, 3), // changes position of shadow + ), + ], + ), child: SingleChildScrollView( physics: const BouncingScrollPhysics(), child: Text( details.exceptionAsString(), - style: const TextStyle(fontFamily: 'SpaceMono'), + style: const TextStyle( + fontFamily: 'GeistMono', + fontWeight: FontWeight.w500), ), ), ), @@ -85,7 +93,8 @@ class ErrorReportScreen extends StatelessWidget { style: ButtonStyle( padding: MaterialStateProperty.all( const EdgeInsets.symmetric(vertical: 14.0)), - backgroundColor: MaterialStateProperty.all(Colors.white), + backgroundColor: + MaterialStateProperty.all(const Color(0xFF0E275A)), shape: MaterialStateProperty.all( RoundedRectangleBorder( borderRadius: BorderRadius.circular(12.0)), @@ -94,14 +103,42 @@ class ErrorReportScreen extends StatelessWidget { child: Text( "submit".i18n, style: const TextStyle( - color: Colors.black, - fontSize: 17.0, - fontWeight: FontWeight.bold, - ), + color: Color(0xFFF7F9FC), + fontSize: 18.0, + fontWeight: FontWeight.w700, + fontFamily: 'Montserrat'), ), onPressed: () => reportProblem(context), ), ), + const SizedBox(height: 8), + SizedBox( + width: double.infinity, + child: OutlinedButton( + style: ButtonStyle( + padding: MaterialStateProperty.all( + const EdgeInsets.symmetric(vertical: 14.0)), + backgroundColor: + MaterialStateProperty.all(Color(0xFFF3F7FE)), + foregroundColor: + MaterialStateProperty.all(const Color(0xFFC7D3EB)), + shape: MaterialStateProperty.all( + RoundedRectangleBorder( + borderRadius: BorderRadius.circular(12.0)), + ), + ), + child: Text( + "goback".i18n, + style: const TextStyle( + color: Color(0xFF011234), + fontSize: 18.0, + fontFamily: 'Montserrat', + fontWeight: FontWeight.w700, + ), + ), + onPressed: () => Navigator.maybePop(context), + ), + ), const SizedBox(height: 32.0) ], ), diff --git a/refilc_mobile_ui/lib/screens/error_report_screen.i18n.dart b/refilc_mobile_ui/lib/screens/error_report_screen.i18n.dart index 498e799..59af0e0 100644 --- a/refilc_mobile_ui/lib/screens/error_report_screen.i18n.dart +++ b/refilc_mobile_ui/lib/screens/error_report_screen.i18n.dart @@ -7,6 +7,7 @@ extension SettingsLocalization on String { "uhoh": "Uh Oh!", "description": "An error occurred!", "submit": "Submit", + "goback": "Go back", "details": "Details", "error": "Error", "os": "Operating System", @@ -17,7 +18,8 @@ extension SettingsLocalization on String { "hu_hu": { "uhoh": "Ajajj!", "description": "Hiba történt!", - "submit": "Probléma Jelentése", + "submit": "Hiba jelentése", + "goback": "Vissza", "details": "Részletek", "error": "Hiba", "os": "Operációs Rendszer", @@ -29,6 +31,7 @@ extension SettingsLocalization on String { "uhoh": "Uh Oh!", "description": "Ein Fehler ist aufgetreten!", "submit": "Abschicken", + "goback": "Zurück", "details": "Details", "error": "Fehler", "os": "Betriebssystem", diff --git a/refilc_mobile_ui/lib/screens/settings/settings_screen.dart b/refilc_mobile_ui/lib/screens/settings/settings_screen.dart index 207a7a5..5f14fd1 100644 --- a/refilc_mobile_ui/lib/screens/settings/settings_screen.dart +++ b/refilc_mobile_ui/lib/screens/settings/settings_screen.dart @@ -59,7 +59,8 @@ import 'package:refilc_mobile_ui/screens/settings/user/nickname.dart'; import 'package:refilc_mobile_ui/screens/settings/user/profile_pic.dart'; // import 'package:refilc_plus/ui/mobile/settings/modify_teacher_names.dart'; // import 'package:refilc_plus/ui/mobile/settings/welcome_message.dart'; - +import 'package:refilc_mobile_ui/screens/error_screen.dart'; +import 'package:refilc_mobile_ui/screens/error_report_screen.dart'; import 'submenu/general_screen.dart'; class SettingsScreen extends StatefulWidget { @@ -198,6 +199,17 @@ class SettingsScreenState extends State vsync: this, duration: const Duration(milliseconds: 200)); } + void showErrorScreen(BuildContext context, FlutterErrorDetails details) { + Navigator.of(context, rootNavigator: true) + .push(MaterialPageRoute(builder: (context) { + if (kReleaseMode) { + return ErrorReportScreen(details); + } else { + return ErrorReportScreen(details); + } + })); + } + @override Widget build(BuildContext context) { user = Provider.of(context); @@ -993,6 +1005,19 @@ class SettingsScreenState extends State ), ], ), + ElevatedButton( + onPressed: () { + // Generate fake error details + FlutterErrorDetails fakeErrorDetails = FlutterErrorDetails( + exception: Exception('fasz'), + stack: StackTrace.current, + library: 'MyApp', + context: ErrorDescription('a kurva a-'), + ); + showErrorScreen(context, fakeErrorDetails); + }, + child: Text('hiba_tesztelese'), + ), // developer options if (settings.developerMode) From 1bdfd53753e4dee24249637b8ca5498d4946bc32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rton=20Kiss?= <70794496+kimaah@users.noreply.github.com> Date: Sun, 3 Mar 2024 22:29:38 +0100 Subject: [PATCH 4/6] Delete refilc/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java --- .../plugins/GeneratedPluginRegistrant.java | 184 ------------------ 1 file changed, 184 deletions(-) delete mode 100644 refilc/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java diff --git a/refilc/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java b/refilc/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java deleted file mode 100644 index d639f8a..0000000 --- a/refilc/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java +++ /dev/null @@ -1,184 +0,0 @@ -package io.flutter.plugins; - -import androidx.annotation.Keep; -import androidx.annotation.NonNull; -import io.flutter.Log; - -import io.flutter.embedding.engine.FlutterEngine; - -/** - * Generated file. Do not edit. - * This file is generated by the Flutter tool based on the - * plugins that support the Android platform. - */ -@Keep -public final class GeneratedPluginRegistrant { - private static final String TAG = "GeneratedPluginRegistrant"; - public static void registerWith(@NonNull FlutterEngine flutterEngine) { - try { - flutterEngine.getPlugins().add(new com.example.android_dynamic_icon.AndroidDynamicIconPlugin()); - } catch (Exception e) { - Log.e(TAG, "Error registering plugin android_dynamic_icon, com.example.android_dynamic_icon.AndroidDynamicIconPlugin", e); - } - try { - flutterEngine.getPlugins().add(new me.wolszon.app_group_directory.AppGroupDirectoryPlugin()); - } catch (Exception e) { - Log.e(TAG, "Error registering plugin app_group_directory, me.wolszon.app_group_directory.AppGroupDirectoryPlugin", e); - } - try { - flutterEngine.getPlugins().add(new com.transistorsoft.flutter.backgroundfetch.BackgroundFetchPlugin()); - } catch (Exception e) { - Log.e(TAG, "Error registering plugin background_fetch, com.transistorsoft.flutter.backgroundfetch.BackgroundFetchPlugin", e); - } - try { - flutterEngine.getPlugins().add(new dev.fluttercommunity.plus.connectivity.ConnectivityPlugin()); - } catch (Exception e) { - Log.e(TAG, "Error registering plugin connectivity_plus, dev.fluttercommunity.plus.connectivity.ConnectivityPlugin", e); - } - try { - flutterEngine.getPlugins().add(new io.material.plugins.dynamic_color.DynamicColorPlugin()); - } catch (Exception e) { - Log.e(TAG, "Error registering plugin dynamic_color, io.material.plugins.dynamic_color.DynamicColorPlugin", e); - } - try { - flutterEngine.getPlugins().add(new com.mr.flutter.plugin.filepicker.FilePickerPlugin()); - } catch (Exception e) { - Log.e(TAG, "Error registering plugin file_picker, com.mr.flutter.plugin.filepicker.FilePickerPlugin", e); - } - try { - flutterEngine.getPlugins().add(new com.jordyhers.flutter_any_logo.FlutterAnyLogoPlugin()); - } catch (Exception e) { - Log.e(TAG, "Error registering plugin flutter_any_logo, com.jordyhers.flutter_any_logo.FlutterAnyLogoPlugin", e); - } - try { - flutterEngine.getPlugins().add(new com.github.droibit.flutter.plugins.customtabs.CustomTabsPlugin()); - } catch (Exception e) { - Log.e(TAG, "Error registering plugin flutter_custom_tabs_android, com.github.droibit.flutter.plugins.customtabs.CustomTabsPlugin", e); - } - try { - flutterEngine.getPlugins().add(new com.ajinasokan.flutterdisplaymode.DisplayModePlugin()); - } catch (Exception e) { - Log.e(TAG, "Error registering plugin flutter_displaymode, com.ajinasokan.flutterdisplaymode.DisplayModePlugin", e); - } - try { - flutterEngine.getPlugins().add(new io.github.tastelessjolt.flutterdynamicicon.FlutterDynamicIconPlugin()); - } catch (Exception e) { - Log.e(TAG, "Error registering plugin flutter_dynamic_icon, io.github.tastelessjolt.flutterdynamicicon.FlutterDynamicIconPlugin", e); - } - try { - flutterEngine.getPlugins().add(new com.fluttercandies.flutter_image_compress.ImageCompressPlugin()); - } catch (Exception e) { - Log.e(TAG, "Error registering plugin flutter_image_compress_common, com.fluttercandies.flutter_image_compress.ImageCompressPlugin", e); - } - try { - flutterEngine.getPlugins().add(new com.dexterous.flutterlocalnotifications.FlutterLocalNotificationsPlugin()); - } catch (Exception e) { - Log.e(TAG, "Error registering plugin flutter_local_notifications, com.dexterous.flutterlocalnotifications.FlutterLocalNotificationsPlugin", e); - } - try { - flutterEngine.getPlugins().add(new com.example.flutternativeimage.FlutterNativeImagePlugin()); - } catch (Exception e) { - Log.e(TAG, "Error registering plugin flutter_native_image, com.example.flutternativeimage.FlutterNativeImagePlugin", e); - } - try { - flutterEngine.getPlugins().add(new net.jonhanson.flutter_native_splash.FlutterNativeSplashPlugin()); - } catch (Exception e) { - Log.e(TAG, "Error registering plugin flutter_native_splash, net.jonhanson.flutter_native_splash.FlutterNativeSplashPlugin", e); - } - try { - flutterEngine.getPlugins().add(new io.flutter.plugins.flutter_plugin_android_lifecycle.FlutterAndroidLifecyclePlugin()); - } catch (Exception e) { - Log.e(TAG, "Error registering plugin flutter_plugin_android_lifecycle, io.flutter.plugins.flutter_plugin_android_lifecycle.FlutterAndroidLifecyclePlugin", e); - } - try { - flutterEngine.getPlugins().add(new io.flutter.plugins.googlesignin.GoogleSignInPlugin()); - } catch (Exception e) { - Log.e(TAG, "Error registering plugin google_sign_in_android, io.flutter.plugins.googlesignin.GoogleSignInPlugin", e); - } - try { - flutterEngine.getPlugins().add(new es.antonborri.home_widget.HomeWidgetPlugin()); - } catch (Exception e) { - Log.e(TAG, "Error registering plugin home_widget, es.antonborri.home_widget.HomeWidgetPlugin", e); - } - try { - flutterEngine.getPlugins().add(new com.lykhonis.imagecrop.ImageCropPlugin()); - } catch (Exception e) { - Log.e(TAG, "Error registering plugin image_crop, com.lykhonis.imagecrop.ImageCropPlugin", e); - } - try { - flutterEngine.getPlugins().add(new com.example.imagegallerysaver.ImageGallerySaverPlugin()); - } catch (Exception e) { - Log.e(TAG, "Error registering plugin image_gallery_saver, com.example.imagegallerysaver.ImageGallerySaverPlugin", e); - } - try { - flutterEngine.getPlugins().add(new io.flutter.plugins.imagepicker.ImagePickerPlugin()); - } catch (Exception e) { - Log.e(TAG, "Error registering plugin image_picker_android, io.flutter.plugins.imagepicker.ImagePickerPlugin", e); - } - try { - flutterEngine.getPlugins().add(new com.flutter_live_activities.FlutterLiveActivitiesPlugin()); - } catch (Exception e) { - Log.e(TAG, "Error registering plugin live_activities, com.flutter_live_activities.FlutterLiveActivitiesPlugin", e); - } - try { - flutterEngine.getPlugins().add(new com.example.maps_launcher.MapsLauncherPlugin()); - } catch (Exception e) { - Log.e(TAG, "Error registering plugin maps_launcher, com.example.maps_launcher.MapsLauncherPlugin", e); - } - try { - flutterEngine.getPlugins().add(new com.crazecoder.openfile.OpenFilePlugin()); - } catch (Exception e) { - Log.e(TAG, "Error registering plugin open_filex, com.crazecoder.openfile.OpenFilePlugin", e); - } - try { - flutterEngine.getPlugins().add(new dev.fluttercommunity.plus.packageinfo.PackageInfoPlugin()); - } catch (Exception e) { - Log.e(TAG, "Error registering plugin package_info_plus, dev.fluttercommunity.plus.packageinfo.PackageInfoPlugin", e); - } - try { - flutterEngine.getPlugins().add(new io.flutter.plugins.pathprovider.PathProviderPlugin()); - } catch (Exception e) { - Log.e(TAG, "Error registering plugin path_provider_android, io.flutter.plugins.pathprovider.PathProviderPlugin", e); - } - try { - flutterEngine.getPlugins().add(new com.baseflow.permissionhandler.PermissionHandlerPlugin()); - } catch (Exception e) { - Log.e(TAG, "Error registering plugin permission_handler_android, com.baseflow.permissionhandler.PermissionHandlerPlugin", e); - } - try { - flutterEngine.getPlugins().add(new io.flutter.plugins.quickactions.QuickActionsPlugin()); - } catch (Exception e) { - Log.e(TAG, "Error registering plugin quick_actions_android, io.flutter.plugins.quickactions.QuickActionsPlugin", e); - } - try { - flutterEngine.getPlugins().add(new app.rive.rive.RivePlugin()); - } catch (Exception e) { - Log.e(TAG, "Error registering plugin rive_common, app.rive.rive.RivePlugin", e); - } - try { - flutterEngine.getPlugins().add(new dev.fluttercommunity.plus.share.SharePlusPlugin()); - } catch (Exception e) { - Log.e(TAG, "Error registering plugin share_plus, dev.fluttercommunity.plus.share.SharePlusPlugin", e); - } - try { - flutterEngine.getPlugins().add(new com.tekartik.sqflite.SqflitePlugin()); - } catch (Exception e) { - Log.e(TAG, "Error registering plugin sqflite, com.tekartik.sqflite.SqflitePlugin", e); - } - try { - flutterEngine.getPlugins().add(new name.avioli.unilinks.UniLinksPlugin()); - } catch (Exception e) { - Log.e(TAG, "Error registering plugin uni_links, name.avioli.unilinks.UniLinksPlugin", e); - } - try { - flutterEngine.getPlugins().add(new io.flutter.plugins.urllauncher.UrlLauncherPlugin()); - } catch (Exception e) { - Log.e(TAG, "Error registering plugin url_launcher_android, io.flutter.plugins.urllauncher.UrlLauncherPlugin", e); - } - try { - flutterEngine.getPlugins().add(new dev.fluttercommunity.workmanager.WorkmanagerPlugin()); - } catch (Exception e) { - Log.e(TAG, "Error registering plugin workmanager, dev.fluttercommunity.workmanager.WorkmanagerPlugin", e); - } - } -} From b4df0859363afb7a161d7034fb531884870c2ecf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rton=20Kiss?= <70794496+kimaah@users.noreply.github.com> Date: Sun, 3 Mar 2024 22:30:12 +0100 Subject: [PATCH 5/6] Delete refilc/android/local.properties --- refilc/android/local.properties | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 refilc/android/local.properties diff --git a/refilc/android/local.properties b/refilc/android/local.properties deleted file mode 100644 index 33b7021..0000000 --- a/refilc/android/local.properties +++ /dev/null @@ -1,5 +0,0 @@ -sdk.dir=/media/zypherift/FileStorage/android-sdk -flutter.sdk=/home/reinerrego/flutter/flutter -flutter.buildMode=debug -flutter.versionName=5.0.0 -flutter.versionCode=241 \ No newline at end of file From 6dd2fa100ada5faf13f44c171e0fd61050240119 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rton=20Kiss?= <70794496+kimaah@users.noreply.github.com> Date: Sun, 3 Mar 2024 22:32:42 +0100 Subject: [PATCH 6/6] read debug keystore properties from file --- refilc/android/app/build.gradle | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/refilc/android/app/build.gradle b/refilc/android/app/build.gradle index c41b003..7bfadc3 100644 --- a/refilc/android/app/build.gradle +++ b/refilc/android/app/build.gradle @@ -29,6 +29,10 @@ def keystoreProperties = new Properties() def keystorePropertiesFile = rootProject.file("key.properties") keystoreProperties.load(new FileInputStream(keystorePropertiesFile)) +def debugKeystoreProperties = new Properties() +def debugKeystorePropertiesFile = rootProject.file("debugkey.properties") +debugKeystoreProperties.load(new FileInputStream(debugKeystorePropertiesFile)) + android { ndkVersion "25.1.8937393" @@ -67,7 +71,7 @@ android { debug { keyAlias "androiddebugkey" keyPassword "android" - storeFile file("/home/reinerrego/debug.keystore") + storeFile file(debugKeystoreProperties['storeFile']) storePassword "android" }