File tree Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -20,12 +20,31 @@ android {
2020 testInstrumentationRunner " androidx.test.runner.AndroidJUnitRunner"
2121 }
2222
23+ signingConfigs {
24+ debug {
25+ storePassword ' android'
26+ keyAlias ' androiddebugkey'
27+ keyPassword ' android'
28+ }
29+ }
30+
31+ Properties properties = new Properties ()
32+ def propertiesFile = file(' ../local.properties' )
33+ if (propertiesFile. canRead()) {
34+ properties. load(new FileInputStream (propertiesFile))
35+ if (properties != null && properties. containsKey(' keystore.file' )) {
36+ android. signingConfigs. debug. storeFile = file(properties[' keystore.file' ])
37+ }
38+ }
39+ project. logger. lifecycle(' android.signingConfigs.debug.storeFile: ' + android. signingConfigs. debug. storeFile)
40+
2341 buildTypes {
2442 release {
2543 minifyEnabled false
2644 proguardFiles getDefaultProguardFile(' proguard-android-optimize.txt' ), ' proguard-rules.pro'
2745 }
2846 debug {
47+ signingConfig signingConfigs. debug
2948 applicationIdSuffix " .debug"
3049 versionNameSuffix " - " + defaultConfig. versionCode + " DEBUG"
3150
Original file line number Diff line number Diff line change 1+ keystore.file =<Path to the keystore file>
2+ keystore.store.password =<keystore file password>
3+ keystore.key.alias =<keystore alias>
4+ keystore.key.password =<keystore alias password>
You can’t perform that action at this time.
0 commit comments