| ext { |
| buildToolsVersion = System.env.CUSTOM_BUILDTOOLS != null ? System.env.CUSTOM_BUILDTOOLS : '20.0.0' |
| } |
| |
| buildscript { |
| def gradleVersion = System.env.CUSTOM_GRADLE != null ? System.env.CUSTOM_GRADLE : '1.1.0' |
| |
| repositories { |
| if (System.env.CUSTOM_REPO != null) { |
| maven { url System.env.CUSTOM_REPO } |
| } else { |
| mavenCentral() |
| } |
| } |
| dependencies { |
| classpath "com.android.tools.build:gradle:$gradleVersion" |
| } |
| } |
| |
| apply plugin: 'com.android.application' |
| |
| android { |
| compileSdkVersion 21 |
| buildToolsVersion = rootProject.ext.buildToolsVersion |
| |
| flavorDimensions "pricing", "releaseType" |
| |
| sourceSets { |
| beta.setRoot('movedSrc/beta') |
| free.setRoot('movedSrc/free') |
| debug.setRoot('movedSrc/debug') |
| freeBeta.setRoot('movedSrc/freeBeta') |
| freeBetaDebug.setRoot('movedSrc/freeBetaDebug') |
| freeNormal.setRoot('movedSrc/freeNormal') |
| } |
| |
| productFlavors { |
| |
| beta { |
| flavorDimension "releaseType" |
| } |
| |
| normal { |
| flavorDimension "releaseType" |
| } |
| |
| free { |
| flavorDimension "pricing" |
| } |
| |
| paid { |
| flavorDimension "pricing" |
| } |
| } |
| } |