Commit 4e4f80a50025a35618a7722d5042588562702a44

Authored by 朱显松
1 parent 817385e5

应用签名读取方式更换

app/build.gradle
@@ -22,12 +22,14 @@ android { @@ -22,12 +22,14 @@ android {
22 } 22 }
23 23
24 signingConfigs { 24 signingConfigs {
  25 + Properties props = new Properties();
  26 + props.load(new FileInputStream(rootProject.file('signing.properties')))
25 myConfig { 27 myConfig {
26 - storeFile file("cnlive_app.jks")  
27 - storePassword "000000"  
28 - keyAlias "CNliveApp"  
29 - keyPassword "000000"  
30 v2SigningEnabled false 28 v2SigningEnabled false
  29 + storeFile file(props['KEYSTORE_FILE'])
  30 + storePassword props['KEYSTORE_PASSWORD']
  31 + keyAlias props['KEY_ALIAS']
  32 + keyPassword props['KEY_PASSWORD']
31 } 33 }
32 } 34 }
33 35
signing.properties 0 → 100644
  1 +KEYSTORE_FILE=cnlive_app.jks
  2 +KEYSTORE_PASSWORD=000000
  3 +KEY_ALIAS=CNliveApp
  4 +KEY_PASSWORD=000000
0 \ No newline at end of file 5 \ No newline at end of file