SetupWizardLibrary/library/build.gradle
Maurice Lam 2646e1d82e [SetupWizardLib] Changed project hierarchy
Moved res-ics to ics/res, and res, src, AndroidManifest to main/.
This fits more to the "canonical layout" expected by gradle, and
works around the issue where blaze is expecting every res directory
used by a target to be named the same (including its library
dependencies and its transitive dependencies).

Change-Id: I658e3c0a67a01f379c43d3fad82cd40f9aa8cd28
2015-03-17 14:33:48 -07:00

42 lines
1 KiB
Groovy

apply plugin: 'com.android.library'
apply plugin: 'dist'
android {
publishNonDefault true
sourceSets {
main {
manifest.srcFile 'main/AndroidManifest.xml'
java.srcDirs = ['main/src']
resources.srcDirs = ['main/src']
res.srcDirs = ['main/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 = ['ics/res']
}
androidTest {
manifest.srcFile 'test/AndroidManifest.xml'
java.srcDirs = ['test/src']
res.srcDirs = ['test/res']
}
}
}