Skip to content

Instantly share code, notes, and snippets.

@cdsap
Created November 25, 2014 08:29
Show Gist options
  • Save cdsap/f78fcebd9679a035c618 to your computer and use it in GitHub Desktop.
Save cdsap/f78fcebd9679a035c618 to your computer and use it in GitHub Desktop.
applicationIdSuffix
apply plugin: 'com.android.application'
android {
compileSdkVersion 21
buildToolsVersion "21.1.0"
defaultConfig {
applicationId "com.example.myapplication"
minSdkVersion 15
targetSdkVersion 21
versionCode 1
versionName "1.0"
}
buildTypes {
release {
}
}
productFlavors {
mobile {
}
gg {
applicationId "com.cusotm.package"
}
}
}
android.applicationVariants.all { variant ->
if (variant.baseName.contains("gg")) {
variant.buildType.applicationIdSuffix = ".customsufifx"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment