1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
// ATTENTION -- hash value of this file is checked in the corresponding
// integration test. Please make sure any changes you make here are
// backwards compatible.
apply from: "../commonHeader.gradle"
buildscript { apply from: "../commonBuildScript.gradle" }
apply plugin: 'com.android.application'
android {
compileSdkVersion rootProject.latestCompileSdk
buildToolsVersion = rootProject.buildToolsVersion
}
android.applicationVariants.all { variant ->
File sourceFolder = file("${buildDir}/customCode/${variant.dirName}")
variant.addJavaSourceFoldersToModel(sourceFolder)
def unitTestVariant = variant.unitTestVariant
File unitTestSourceFolder = file("${buildDir}/customCode/${unitTestVariant.dirName}-1")
unitTestVariant.addJavaSourceFoldersToModel(unitTestSourceFolder)
}
android.unitTestVariants.all { unitTestVariant ->
File unitTestSourceFolder = file("${buildDir}/customCode/${unitTestVariant.dirName}-2")
unitTestVariant.addJavaSourceFoldersToModel(unitTestSourceFolder)
}
|