android {
buildTypes {
release {}
debug {}
staging {
initWith buildTypes.debug
applicationIdSuffix ".debugStaging"
}
}
}
src/
-- debug
- AndroidManifest.xml
-- release
-- staging
- AndroidManifest.xml
-- main // used for every project
- AndroidManifest.xml
When apk is built for staging, it doesn't merge/include debug AndroidManifest. Is this expected? If yes, do i need to copy debug AndroidManifest into staging AndroidManifest? In case of classes and resources, it allows to specify multiple sources but not for AndroidManifest.
sourceSets {
staging {
java.srcDirs = ['src/debug/java', 'src/staging/java']
res.srcDirs = ['src/staging/res', 'src/debug/res']
}
}