You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
550 B
24 lines
550 B
import org.gradle.api.artifacts.Dependency;
|
|
|
|
apply plugin: 'com.android.library'
|
|
|
|
android {
|
|
sourceSets.main {
|
|
manifest.srcFile 'AndroidManifest.xml'
|
|
java.srcDirs = ['src']
|
|
res.srcDirs = ['res']
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
compile findDependency(':support-v4', 'com.android.support:support-v4:23.3.+')
|
|
}
|
|
|
|
Dependency findDependency(String projectName, String moduleName) {
|
|
if (findProject(projectName) != null) {
|
|
return dependencies.project(path: projectName)
|
|
}
|
|
|
|
return dependencies.create(moduleName)
|
|
}
|