File tree Expand file tree Collapse file tree 4 files changed +21
-6
lines changed Expand file tree Collapse file tree 4 files changed +21
-6
lines changed Original file line number Diff line number Diff line change 10
10
app /release /
11
11
app /google-services.json
12
12
fastlane /report.xml
13
- .google /key.json
13
+ .google /key.json
14
+
15
+ release.properties
16
+ release.keystore
Original file line number Diff line number Diff line change @@ -27,18 +27,26 @@ android {
27
27
28
28
signingConfigs {
29
29
release {
30
- // storeFile file(SEDAILY_RELEASE_STORE_FILE)
31
- // storePassword SEDAILY_RELEASE_STORE_PASS
32
- // keyAlias SEDAILY_RELEASE_KEY_ALIAS
33
- // keyPassword SEDAILY_RELEASE_KEY_PASS
30
+ if (rootProject. file(' release.properties' ). exists()) {
31
+ def props = new Properties ()
32
+ props. load(new FileInputStream (rootProject. file(' release.properties' )))
33
+ release {
34
+ storeFile rootProject. file(props. keyStore)
35
+ storePassword props. keyStorePassword
36
+ keyAlias props. keyAlias
37
+ keyPassword props. keyAliasPassword
38
+ }
39
+ }
34
40
}
35
41
}
36
42
37
43
buildTypes {
38
44
release {
39
45
minifyEnabled false
40
46
proguardFiles getDefaultProguardFile(' proguard-android.txt' ), ' proguard-rules.pro'
41
- signingConfig signingConfigs. release
47
+ if (rootProject. file(' release.properties' ). exists()) {
48
+ signingConfig signingConfigs. release
49
+ }
42
50
}
43
51
debug {
44
52
applicationIdSuffix ' .debug'
Original file line number Diff line number Diff line change
1
+ keyStore=debug.keystore
2
+ keyStorePassword=android
3
+ keyAlias=androiddebugkey
4
+ keyAliasPassword=android
You can’t perform that action at this time.
0 commit comments