Commit 4e4f80a50025a35618a7722d5042588562702a44
1 parent
817385e5
应用签名读取方式更换
Showing
2 changed files
with
10 additions
and
4 deletions
app/build.gradle
| ... | ... | @@ -22,12 +22,14 @@ android { |
| 22 | 22 | } |
| 23 | 23 | |
| 24 | 24 | signingConfigs { |
| 25 | + Properties props = new Properties(); | |
| 26 | + props.load(new FileInputStream(rootProject.file('signing.properties'))) | |
| 25 | 27 | myConfig { |
| 26 | - storeFile file("cnlive_app.jks") | |
| 27 | - storePassword "000000" | |
| 28 | - keyAlias "CNliveApp" | |
| 29 | - keyPassword "000000" | |
| 30 | 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 | ... | ... |