Skip to content

Commit

Permalink
Parameterise the keystore location so it can be overridden by environ…
Browse files Browse the repository at this point in the history
…ment level or command line properties
  • Loading branch information
alsutton committed Aug 19, 2014
1 parent aa437dd commit 9a39c56
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Wearable/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,16 @@ android {
}
signingConfigs {
debug {
storeFile file("../android/debug.keystore")
storePassword "android"
keyAlias "androiddebugkey"
keyPassword "android"
storeFile file(iosched14_android_debugkey_storefile)
storePassword iosched14_android_debugkey_storePassword
keyAlias iosched14_android_debugkey_keyAlias
keyPassword iosched14_android_debugkey_keyPassword
}
release {
storeFile file("../android/debug.keystore")
storePassword "android"
keyAlias "androiddebugkey"
keyPassword "android"
storeFile file(iosched14_android_releasekey_storefile)
storePassword iosched14_android_releasekey_storePassword
keyAlias iosched14_android_releasekey_keyAlias
keyPassword iosched14_android_releasekey_keyPassword
}
}

Expand Down
24 changes: 24 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#
# Properties for the build which can be overridden locally.
#
# This allows build keys to be set where the app is being built in
# a gradle.properties override. See;
#
# http://www.gradle.org/docs/current/userguide/tutorial_this_and_that.html#sec:gradle_properties_and_system_properties
#
# for more information on the overriding system.
#

# The store file location is relative to the module base, and so needs to go
# up one level of the directory hierarchy to get to the project root.

iosched14_android_debugkey_storefile = ../android/debug.keystore
iosched14_android_debugkey_storePassword = android
iosched14_android_debugkey_keyAlias = androiddebugkey
iosched14_android_debugkey_keyPassword = android

iosched14_android_releasekey_storefile = ../android/debug.keystore
iosched14_android_releasekey_storePassword = android
iosched14_android_releasekey_keyAlias = androiddebugkey
iosched14_android_releasekey_keyPassword = android

0 comments on commit 9a39c56

Please sign in to comment.