Skip to content

Commit

Permalink
update buildflow
Browse files Browse the repository at this point in the history
  • Loading branch information
weiznich committed Aug 23, 2014
1 parent 87c02f8 commit 597847a
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,7 @@ build/

#temp files
*~

#keystore
keystore
keystore.properties
13 changes: 12 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,17 @@ android {
}
signingConfigs {
release {
def Properties localProps = new Properties()
localProps.load(new FileInputStream(file('./local.properties')))
def Properties keyProps = new Properties()
assert localProps['keystore.props.file'];
keyProps.load(new FileInputStream(file(localProps['keystore.props.file'])))
storeFile file(keyProps["store"])
keyAlias keyProps["alias"]
storePassword keyProps["storePass"]
keyPassword keyProps["pass"]
}
debug {
storeFile file("debug.keystore")
storePassword "android"
keyAlias "androiddebugkey"
Expand All @@ -41,7 +52,7 @@ android {
signingConfig signingConfigs.release
}
debug {
signingConfig signingConfigs.release
signingConfig signingConfigs.debug
}
}
sourceSets {
Expand Down
4 changes: 4 additions & 0 deletions keystore.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
store=debug.keystore
alias=androiddebugkey
pass=android
storePass=android

0 comments on commit 597847a

Please sign in to comment.