blob: 7f1372d4c0fb4132fa6b370f348a92c7ee4bbe4e [file] [log] [blame]
import org.gradle.api.artifacts.Dependency;
apply plugin: 'com.android.library'
android {
sourceSets.main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['src', 'appcompat/src']
res.srcDirs = ['res', 'appcompat/res']
}
}
dependencies {
compile findDependency(':support-v4', 'com.android.support:support-v4:23.3.+')
compile findDependency(':support-appcompat-v7', 'com.android.support:appcompat-v7:23.3.+')
}
Dependency findDependency(String projectName, String moduleName) {
if (findProject(projectName) != null) {
return dependencies.project(path: projectName)
}
return dependencies.create(moduleName)
}