Skip to content

Commit

Permalink
Updated gradle Signing Config for release APKs
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
mendhak committed Apr 14, 2014
1 parent 07c8574 commit 34eb581
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions gpslogger/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,38 @@ android {
sourceSets {
instrumentTest.setRoot('src/test')
}

signingConfigs {
release {
storeFile file(RELEASE_STORE_FILE)
storePassword RELEASE_STORE_PASSWORD
keyAlias RELEASE_KEY_ALIAS
keyPassword RELEASE_KEY_PASSWORD
}
}

buildTypes {
release {
signingConfig signingConfigs.release
}
}

assembleRelease.doLast {

copy{
from "build/apk/gpslogger-release.apk"
into "./"

// Use a closure to map the file name
rename { String fileName ->
fileName.replace('release', android.defaultConfig.versionName)
}
}

// Use a regular expression to map the file name


}
}

dependencies {
Expand Down

0 comments on commit 34eb581

Please sign in to comment.