summaryrefslogtreecommitdiff
path: root/android/app
diff options
context:
space:
mode:
authorMica White <botahamec@outlook.com>2026-01-21 18:33:24 -0500
committerMica White <botahamec@outlook.com>2026-01-21 18:33:48 -0500
commit227bce2edeb4fa20eb8a9eba36063f7e2e30bb9f (patch)
tree32a792391d0782745ecc878c7296fd624c5da3dd /android/app
parentb174505c193c1bbed7cfd77f8eafaf9cb9675750 (diff)
Sign APKsHEADmain
Diffstat (limited to 'android/app')
-rwxr-xr-xandroid/app/build.gradle.kts22
1 files changed, 19 insertions, 3 deletions
diff --git a/android/app/build.gradle.kts b/android/app/build.gradle.kts
index 49f43c3..9c87981 100755
--- a/android/app/build.gradle.kts
+++ b/android/app/build.gradle.kts
@@ -1,3 +1,6 @@
+import java.util.Properties
+import java.io.FileInputStream
+
plugins {
id("com.android.application")
id("kotlin-android")
@@ -5,6 +8,12 @@ plugins {
id("dev.flutter.flutter-gradle-plugin")
}
+val keystoreProperties = Properties()
+val keystorePropertiesFile = rootProject.file("key.properties")
+if (keystorePropertiesFile.exists()) {
+ keystoreProperties.load(FileInputStream(keystorePropertiesFile))
+}
+
android {
namespace = "com.botahamec.speedometer"
compileSdk = flutter.compileSdkVersion
@@ -30,11 +39,18 @@ android {
versionName = flutter.versionName
}
+ signingConfigs {
+ create("release") {
+ keyAlias = keystoreProperties["keyAlias"] as String
+ keyPassword = keystoreProperties["keyPassword"] as String
+ storeFile = keystoreProperties["storeFile"]?.let { file(it) }
+ 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 = signingConfigs.getByName("release")
}
}
}