Skip to content

Instantly share code, notes, and snippets.

@MariusVolkhart
Created July 20, 2014 02:46
Show Gist options
  • Save MariusVolkhart/cfd3f376037462f6cd33 to your computer and use it in GitHub Desktop.
Save MariusVolkhart/cfd3f376037462f6cd33 to your computer and use it in GitHub Desktop.
Manifest Merger bug report
...
// Manifest Information
def versionMajor = 0
def versionMinor = 2
def versionPatch = 0
android {
compileSdkVersion 20
buildToolsVersion "20"
defaultConfig {
minSdkVersion 15
targetSdkVersion 20
versionCode versionMajor * 10000 + versionMinor * 100 + versionPatch
versionName "${versionMajor}.${versionMinor}.${versionPatch}"
testInstrumentationRunner "com.google.android.apps.common.testing.testrunner.GoogleInstrumentationTestRunner"
// This placeholder always gets applied
manifestPlaceholders = [ authority:"com.volkhart.milwaukeebus" ]
}
buildTypes {
release {
signingConfig signingConfigs.release
}
debug {
versionNameSuffix ".debug"
applicationIdSuffix ".debug"
// This placeholder never gets applied
manifestPlaceholders = [ "authority":"com.volkhart.milwaukeebus.debug" ]
}
}
}
...
...
def versionMajor = 0
def versionMinor = 2
def versionPatch = 0
android {
compileSdkVersion 20
buildToolsVersion "20"
defaultConfig {
minSdkVersion 15
targetSdkVersion 20
versionCode versionMajor * 10000 + versionMinor * 100 + versionPatch
versionName "${versionMajor}.${versionMinor}.${versionPatch}"
testInstrumentationRunner "com.google.android.apps.common.testing.testrunner.GoogleInstrumentationTestRunner"
}
buildTypes {
release {
signingConfig signingConfigs.release
// Placeholders here don't get applied
manifestPlaceholders = [ authority:"com.volkhart.milwaukeebus" ]
}
debug {
versionNameSuffix ".debug"
applicationIdSuffix ".debug"
// Placeholders here don't get applied
manifestPlaceholders = [ "authority":"com.volkhart.milwaukeebus.debug" ]
}
}
}
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment