Also add in the gradle build for flavors to variants

This commit is contained in:
Bradlee Speice 2014-11-20 23:18:36 -05:00
parent f51a2515b0
commit 06ae1c0ed6

View File

@ -2,12 +2,8 @@ buildscript {
repositories { repositories {
mavenCentral() mavenCentral()
} }
dependencies {
classpath 'com.jakewharton.sdkmanager:gradle-plugin:0.12.+'
}
} }
apply plugin: 'android-sdk-manager'
apply plugin: 'com.android.application' apply plugin: 'com.android.application'
apply plugin: 'kotlin-android' apply plugin: 'kotlin-android'
@ -39,18 +35,6 @@ android {
exclude 'NOTICE' exclude 'NOTICE'
exclude 'asm-license.txt' exclude 'asm-license.txt'
} }
productFlavors {
testConfig {
minSdkVersion 8
applicationId 'org.bspeice.minimalbible'
targetSdkVersion 20
}
mainConfig {
minSdkVersion 8
applicationId 'org.bspeice.minimalbible'
targetSdkVersion 20
}
}
sourceSets { sourceSets {
main.java.srcDirs += 'src/main/kotlin' main.java.srcDirs += 'src/main/kotlin'
} }
@ -78,7 +62,7 @@ dependencies {
androidTestCompile 'org.mockito:mockito-core:+' androidTestCompile 'org.mockito:mockito-core:+'
// Email debug reports if I crash... // Email debug reports if I crash...
testConfigCompile('ch.acra:acra:+') { debugCompile('ch.acra:acra:+') {
exclude module: 'json' exclude module: 'json'
} }
} }