Skip to content
This repository has been archived by the owner on Jun 3, 2023. It is now read-only.

Commit

Permalink
Gradle snippet for automatic signing.
Browse files Browse the repository at this point in the history
  • Loading branch information
d4rken committed May 14, 2017
1 parent 968221a commit 52edb85
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,28 @@ def versionRewrite = 2
def versionRelease = 3

android {
signingConfigs {
release {
}
}
signingConfigs {
release {
}
}
def signingPropFile = new File(System.properties['user.home'], ".signing/wakelock/signing.properties")
if (signingPropFile.canRead()) {
def Properties signingProps = new Properties()
signingProps.load(new FileInputStream(signingPropFile))
signingConfigs {
release {
storeFile new File(signingProps['release.storePath'])
keyAlias signingProps['release.keyAlias']
storePassword signingProps['release.storePassword']
keyPassword signingProps['release.keyPassword']
}
}
}

compileSdkVersion 7
buildToolsVersion "25.0.2"

Expand All @@ -21,6 +43,7 @@ android {

buildTypes {
release {
signingConfig signingConfigs.release
minifyEnabled true
proguardFiles 'proguard.cfg'
}
Expand Down

0 comments on commit 52edb85

Please sign in to comment.