| buildscript { |
| repositories { |
| jcenter() |
| if (System.getenv("MAVEN_URL") != null) { |
| maven {url System.getenv("MAVEN_URL")} |
| } |
| } |
| dependencies { |
| classpath 'com.android.tools.build:gradle:0.12.+' |
| } |
| } |
| apply plugin: 'com.android.application' |
| |
| repositories { |
| jcenter() |
| } |
| |
| android { |
| compileSdkVersion 18 |
| buildToolsVersion "19.1.0" |
| |
| defaultConfig { |
| minSdkVersion 9 |
| targetSdkVersion 17 |
| applicationId "from.gradle" |
| } |
| |
| buildTypes { |
| debug { |
| applicationIdSuffix ".debug" |
| buildConfigField "boolean", "DEBUG2", "false" |
| } |
| } |
| |
| productFlavors { |
| pro { |
| applicationId "com.example.pro" |
| versionCode 20 |
| flavorDimension "version" |
| } |
| |
| free { |
| applicationId "com.example.free" |
| minSdkVersion 14 |
| flavorDimension "version" |
| } |
| } |
| } |
| |