|
|
@ -9,12 +9,23 @@ android { |
|
|
|
targetSdkVersion 19 |
|
|
|
targetSdkVersion 19 |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Properties props = new Properties() |
|
|
|
|
|
|
|
props.load(new FileInputStream(file('keys.properties'))) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* in app/keys.properties: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
keystoreFile=key.keystore |
|
|
|
|
|
|
|
keystorePass=pass |
|
|
|
|
|
|
|
keyAlias=alias |
|
|
|
|
|
|
|
keyPass=pass |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
signingConfigs { |
|
|
|
signingConfigs { |
|
|
|
release { |
|
|
|
release { |
|
|
|
storeFile file("release.keystore") |
|
|
|
storeFile file(props['keystoreFile']) |
|
|
|
storePassword "pass" |
|
|
|
storePassword props['keystorePass'] |
|
|
|
keyAlias "alias" |
|
|
|
keyAlias props['keyAlias'] |
|
|
|
keyPassword "pass" |
|
|
|
keyPassword props['keyPass'] |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|