Этот коммит содержится в:
Anton Tananaev
2015-08-17 15:02:44 +12:00
родитель 9263b4e08b
Коммит 1cc3a2d9d1
+13 -2
Просмотреть файл
@@ -15,8 +15,8 @@ android {
release { release {
storeFile file('../../android.keystore') storeFile file('../../android.keystore')
keyAlias "tananaev" keyAlias "tananaev"
storePassword new String(System.console().readPassword("\nEnter store password: ")) storePassword ""
keyPassword new String(System.console().readPassword("Enter key password: ")) keyPassword ""
} }
} }
@@ -32,3 +32,14 @@ dependencies {
testCompile 'junit:junit:4.12' testCompile 'junit:junit:4.12'
testCompile "org.robolectric:robolectric:3.0" testCompile "org.robolectric:robolectric:3.0"
} }
task requestPasswords << {
android.signingConfigs.release.storePassword = new String(System.console().readPassword("\nStore password: "))
android.signingConfigs.release.keyPassword = new String(System.console().readPassword("Key password: "))
}
tasks.whenTaskAdded { theTask ->
if (theTask.name.equals("packageRelease")) {
theTask.dependsOn "requestPasswords"
}
}