# HG changeset patch # User Carl Byington # Date 1449173632 28800 # Node ID 592f0ef08d94c227b970475f5c809b6fd7e493f0 # Parent 1e3789de69009f51385d572e73ca1bdd644ce293 migrate from Eclipse to Android Studio diff -r 1e3789de6900 -r 592f0ef08d94 app/build.gradle --- a/app/build.gradle Thu Dec 03 11:47:24 2015 -0800 +++ b/app/build.gradle Thu Dec 03 12:13:52 2015 -0800 @@ -44,13 +44,19 @@ android.signingConfigs { create("signed") { def console = System.console() - if (!console) console = System.in + if (console) { + storePassword = new String(console.readPassword("\nkey store password: ")) + keyPassword = new String(console.readPassword("\nkey alias password: ")) + } + else { + def read = System.in.newReader().&readLine + storePassword = read() + keyPassword = read() + } storeFile = file("../510Connectbot.keystore") - storePassword = new String(console.readPassword("\n\$ Enter keystore password: ")) storeType = "jks" - keyAlias = "510Connectbot" - keyPassword = new String(console.readPassword("\n\$ Enter key password: ")) - signConf = it + keyAlias = "510Connectbot" + signConf = it } }