forked from xjunz/AutoSkip
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsign.gradle
16 lines (16 loc) · 828 Bytes
/
sign.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
def ksFile = rootProject.file('sign.properties')
def props = new Properties()
if (ksFile.canRead()) {
props.load(new FileInputStream(ksFile))
if (props != null) {
android.signingConfigs.sign.storeFile file(props['keystore.file'])
android.signingConfigs.sign.storePassword props['keystore.password']
android.signingConfigs.sign.keyAlias props['keystore.alias']
android.signingConfigs.sign.keyPassword props['keystore.keyPassword']
}
} else {
android.signingConfigs.sign.storeFile = android.signingConfigs.debug.storeFile
android.signingConfigs.sign.storePassword = android.signingConfigs.debug.storePassword
android.signingConfigs.sign.keyAlias = android.signingConfigs.debug.keyAlias
android.signingConfigs.sign.keyPassword = android.signingConfigs.debug.keyPassword
}