39 строки
1.1 KiB
Groovy
39 строки
1.1 KiB
Groovy
apply plugin: 'com.android.library'
|
|
|
|
dependencies {
|
|
compile 'com.android.support:support-annotations:27.0.2'
|
|
compile 'com.android.support:support-v4:27.0.2'
|
|
compile 'com.android.support:appcompat-v7:27.0.2'
|
|
compile 'com.android.support:support-core-ui:27.0.2'
|
|
|
|
androidTestCompile 'junit:junit:4.12'
|
|
androidTestCompile 'com.android.support.test:runner:1.0.1'
|
|
androidTestCompile 'com.android.support.test:rules:1.0.1'
|
|
}
|
|
|
|
android {
|
|
compileSdkVersion 27
|
|
buildToolsVersion '26.0.2'
|
|
|
|
defaultConfig {
|
|
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
|
}
|
|
|
|
sourceSets {
|
|
main.manifest.srcFile 'AndroidManifest.xml'
|
|
main.java.srcDirs = ['src']
|
|
main.aidl.srcDirs = ['src']
|
|
main.res.srcDir 'res'
|
|
main.assets.srcDir 'assets'
|
|
main.resources.srcDir 'java'
|
|
|
|
androidTest.setRoot('tests')
|
|
androidTest.java.srcDir('tests/src/')
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_7
|
|
targetCompatibility JavaVersion.VERSION_1_7
|
|
}
|
|
}
|