Merge pull request #414 from sigmabeta/android-gradle-customization

Android: Attach '.debug' to the end of the app's package name, if built in Debug configuration.
This commit is contained in:
Pierre Bourdon 2014-05-28 12:01:36 +02:00
commit f120d333b7
1 changed files with 8 additions and 0 deletions

View File

@ -71,8 +71,16 @@ android {
}
buildTypes {
// Signed by release key, allowing for upload to Play Store.
release {
signingConfig signingConfigs.release
}
// Signed by debug key disallowing distribution on Play Store.
// Attaches 'debug' suffix to version and package name, allowing installation alongside the release build.
debug {
packageNameSuffix '.debug'
versionNameSuffix '-debug'
}
}
}