From 83fed4da91f740c785e2ad3bead740eb2004f3d8 Mon Sep 17 00:00:00 2001 From: Eric House Date: Sun, 22 Jan 2017 15:27:35 -0800 Subject: [PATCH] include debug keystore directly replace symlink silliness ant required with gradle commands to sign debug builds with the checked-in (local file) debug keystore. Make it possible for an environment variable to override in case somebody wants to use his own. --- xwords4/android/app/build.gradle | 10 ++++++++++ xwords4/android/{scripts => app}/debug.keystore | Bin 2 files changed, 10 insertions(+) rename xwords4/android/{scripts => app}/debug.keystore (100%) diff --git a/xwords4/android/app/build.gradle b/xwords4/android/app/build.gradle index b86f2ba29..563812e2d 100644 --- a/xwords4/android/app/build.gradle +++ b/xwords4/android/app/build.gradle @@ -95,6 +95,16 @@ android { storePassword "notReal" keyPassword "notReal" } + debug { + def path = System.getenv("DEBUG_KEYSTORE_PATH") + if (! path) { + path = "./debug.keystore" + } + storeFile file(path) + keyAlias "androiddebugkey" + storePassword "android" + keyPassword "android" + } } buildTypes { diff --git a/xwords4/android/scripts/debug.keystore b/xwords4/android/app/debug.keystore similarity index 100% rename from xwords4/android/scripts/debug.keystore rename to xwords4/android/app/debug.keystore