~repos /only-bible-app

#kotlin#android#ios

git clone https://pyrossh.dev/repos/only-bible-app.git

The only bible app you will ever need. No ads. No in-app purchases. No distractions.


610ae305 pyrossh

2 years ago
update android build
Files changed (1) hide show
  1. android/app/build.gradle +16 -3
android/app/build.gradle CHANGED
@@ -25,6 +25,12 @@ apply plugin: 'com.android.application'
25
25
  apply plugin: 'kotlin-android'
26
26
  apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
27
27
 
28
+ def keystoreProperties = new Properties()
29
+ def keystorePropertiesFile = rootProject.file('key.properties')
30
+ if (keystorePropertiesFile.exists()) {
31
+ keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
32
+ }
33
+
28
34
  android {
29
35
  namespace "sh.pyros.only_bible_app"
30
36
  compileSdkVersion flutter.compileSdkVersion
@@ -54,11 +60,18 @@ android {
54
60
  versionName flutterVersionName
55
61
  }
56
62
 
63
+ signingConfigs {
64
+ release {
65
+ keyAlias keystoreProperties['keyAlias']
66
+ keyPassword keystoreProperties['keyPassword']
67
+ storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
68
+ storePassword keystoreProperties['storePassword']
69
+ }
70
+ }
71
+
57
72
  buildTypes {
58
73
  release {
59
- // TODO: Add your own signing config for the release build.
60
- // Signing with the debug keys for now, so `flutter run --release` works.
61
- signingConfig signingConfigs.debug
74
+ signingConfig signingConfigs.release
62
75
  }
63
76
  }
64
77
  }