diff --git a/android/app/build.gradle.kts b/android/app/build.gradle.kts index b381628..748a668 100644 --- a/android/app/build.gradle.kts +++ b/android/app/build.gradle.kts @@ -1,3 +1,6 @@ +import java.io.FileInputStream +import java.util.Properties + plugins { id("com.android.application") // START: FlutterFire Configuration @@ -8,6 +11,13 @@ plugins { id("dev.flutter.flutter-gradle-plugin") } +// 2. CARICHIAMO IL KEYSTORE QUI FUORI IN MODO PULITO +val keystoreProperties = Properties() +val keystorePropertiesFile = rootProject.file("key.properties") +if (keystorePropertiesFile.exists()) { + keystoreProperties.load(FileInputStream(keystorePropertiesFile)) +} + android { namespace = "com.catellisrl.flux" compileSdk = flutter.compileSdkVersion @@ -23,7 +33,6 @@ android { } defaultConfig { - // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). applicationId = "com.catellisrl.flux" // You can update the following values to match your application needs. // For more information, see: https://flutter.dev/to/review-gradle-config. @@ -33,11 +42,22 @@ android { versionName = flutter.versionName } + signingConfigs { + create("release") { + keyAlias = keystoreProperties["keyAlias"] as String? + keyPassword = keystoreProperties["keyPassword"] as String? + storeFile = keystoreProperties["storeFile"]?.let { file(it as String) } + storePassword = keystoreProperties["storePassword"] as String? + } + } + buildTypes { release { - // TODO: Add your own signing config for the release build. - // Signing with the debug keys for now, so `flutter run --release` works. - signingConfig = signingConfigs.getByName("debug") + signingConfig = if (keystorePropertiesFile.exists()) { + signingConfigs.getByName("release") + } else { + signingConfigs.getByName("debug") + } } } } diff --git a/appimagetool-x86_64.AppImage b/appimagetool-x86_64.AppImage new file mode 100755 index 0000000..a2aabce Binary files /dev/null and b/appimagetool-x86_64.AppImage differ