mirror of
https://github.com/material-components/material-components-android.git
synced 2026-02-20 08:39:55 +08:00
Since our source roots are the project's root directory, generated output falls inside it, unless properly excluded, all intermediate output such as R classes gets recompiled with each gradle pass. This causes failures because of duplicate R classes. PiperOrigin-RevId: 169588457
36 lines
958 B
Groovy
36 lines
958 B
Groovy
apply plugin: 'com.android.application'
|
|
|
|
dependencies {
|
|
compile "com.android.support:support-annotations:${project.rootProject.ext.supportVersion}"
|
|
compile "com.android.support:appcompat-v7:${project.rootProject.ext.supportVersion}"
|
|
compile project(':lib')
|
|
compile project(
|
|
getTransformedProjectPath(
|
|
'testing/java/android/support/design/testapp/base'))
|
|
compile project(
|
|
getTransformedProjectPath(
|
|
'testing/java/android/support/design/testapp/custom'))
|
|
}
|
|
|
|
android {
|
|
// Ensures all variants are available for tests to depend on
|
|
publishNonDefault true
|
|
|
|
sourceSets {
|
|
main.manifest.srcFile 'AndroidManifest.xml'
|
|
main.java.srcDirs = [ '.' ]
|
|
main.java.excludes = [
|
|
'**/build/**',
|
|
]
|
|
// Only include things in this directory, not subdirectories
|
|
main.java.includes = [ '*.java' ]
|
|
main.res.srcDirs = [ 'res' ]
|
|
}
|
|
|
|
buildTypes {
|
|
debug {
|
|
pseudoLocalesEnabled true
|
|
}
|
|
}
|
|
}
|