Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
default build.gradle for libraries.
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.5+'
}
}
apply plugin: 'android-library'
dependencies {
compile project(':libraries:Support')
}
android {
compileSdkVersion 17
buildToolsVersion "17"
defaultConfig {
minSdkVersion 7
targetSdkVersion 17
}
sourceSets {
main {
manifest.srcFile 'library/AndroidManifest.xml'
java.srcDirs = ['library/src']
resources.srcDirs = ['library/src']
aidl.srcDirs = ['library/src']
renderscript.srcDirs = ['library/src']
res.srcDirs = ['library/res']
assets.srcDirs = ['library/assets']
}
instrumentTest.setRoot('tests')
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment