170a720fe1
Set up the structure for tests in setup wizard library. To run the tests, cd to the root of the tree and run ./gradlew connectedAndroidTest Currently the tests fail for version lower than SDK 21, even for IcsCompat because the resources aren't available yet. Change-Id: I62106f531d99d7861be9474af8100fbc63ea8684
41 lines
986 B
Groovy
41 lines
986 B
Groovy
apply plugin: 'com.android.library'
|
|
|
|
android {
|
|
|
|
publishNonDefault true
|
|
|
|
sourceSets {
|
|
main {
|
|
manifest.srcFile 'AndroidManifest.xml'
|
|
java.srcDirs = ['src']
|
|
resources.srcDirs = ['src']
|
|
res.srcDirs = ['res']
|
|
}
|
|
|
|
productFlavors {
|
|
// Platform version that will not include the compatibility libraries
|
|
platform {
|
|
minSdkVersion 21
|
|
}
|
|
|
|
// Compatibility build that provides the L layout for SDK versions ICS+
|
|
icsCompat {
|
|
minSdkVersion 14
|
|
dependencies {
|
|
icsCompatCompile project(':support-appcompat-v7')
|
|
}
|
|
}
|
|
}
|
|
|
|
icsCompat {
|
|
res.srcDirs = ['res-ics']
|
|
}
|
|
|
|
androidTest {
|
|
manifest.srcFile 'test/AndroidManifest.xml'
|
|
java.srcDirs = ['test/src']
|
|
res.srcDirs = ['test/res']
|
|
}
|
|
}
|
|
}
|