changeset 440:1e3789de6900

migrate from Eclipse to Android Studio
author Carl Byington <carl@five-ten-sg.com>
date Thu, 03 Dec 2015 11:47:24 -0800
parents 50d28338ae6e
children 592f0ef08d94
files app/build.gradle
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/app/build.gradle	Thu Dec 03 11:30:10 2015 -0800
+++ b/app/build.gradle	Thu Dec 03 11:47:24 2015 -0800
@@ -43,11 +43,13 @@
 
     android.signingConfigs {
         create("signed") {
+            def console = System.console()
+            if (!console) console = System.in
             storeFile = file("../510Connectbot.keystore")
-            storePassword = new String(System.console().readPassword("\n\$ Enter keystore password: "))
+            storePassword = new String(console.readPassword("\n\$ Enter keystore password: "))
             storeType = "jks"
             keyAlias = "510Connectbot"
-            keyPassword = new String(System.console().readPassword("\n\$ Enter key password: "))
+            keyPassword = new String(console.readPassword("\n\$ Enter key password: "))
             signConf = it
         }
     }