Attach '.debug' to the end of the app's package name. This allows for installation of both debug and release configs on the same device.

This commit is contained in:
Eder Bastos 2014-05-25 18:52:23 -04:00
parent 010ca048df
commit 5416dd24d7
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'
}
}
}