mirror of https://github.com/LeOS-GSI/LeOS-Genesis
63 lines
1.8 KiB
Groovy
63 lines
1.8 KiB
Groovy
apply plugin: 'com.android.library'
|
|
|
|
dependencies {
|
|
// If you want to fetch these from Maven, uncomment these lines and change
|
|
// the *.jar depend to exclude these libs:
|
|
compile fileTree(dir: 'libs', include: '*.jar')
|
|
androidTestCompile 'com.android.support.test:runner:0.4.1'
|
|
androidTestCompile 'com.android.support.test:rules:0.4.1'
|
|
androidTestCompile 'junit:junit:4.12'
|
|
}
|
|
|
|
android {
|
|
compileSdkVersion 22
|
|
buildToolsVersion '26.0.2'
|
|
|
|
sourceSets {
|
|
main {
|
|
manifest.srcFile 'AndroidManifest.xml'
|
|
java.srcDirs = ['src']
|
|
resources.srcDirs = ['src']
|
|
aidl.srcDirs = ['src']
|
|
renderscript.srcDirs = ['src']
|
|
res.srcDirs = ['res']
|
|
assets.srcDirs = ['assets']
|
|
}
|
|
|
|
androidTest {
|
|
manifest.srcFile '../netciphertest/AndroidManifest.xml'
|
|
java.srcDirs = ['../netciphertest/src']
|
|
resources.srcDirs = ['../netciphertest/src']
|
|
aidl.srcDirs = ['../netciphertest/src']
|
|
renderscript.srcDirs = ['../netciphertest/src']
|
|
res.srcDirs = ['../netciphertest/res']
|
|
assets.srcDirs = ['../netciphertest/assets']
|
|
}
|
|
}
|
|
|
|
defaultConfig {
|
|
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
|
}
|
|
|
|
lintOptions {
|
|
abortOnError false
|
|
|
|
htmlReport true
|
|
xmlReport false
|
|
textReport false
|
|
}
|
|
|
|
testOptions {
|
|
unitTests {
|
|
// prevent tests on JVM from dying on android.util.Log calls
|
|
returnDefaultValues = true
|
|
all {
|
|
testLogging {
|
|
events "skipped", "failed", "standardOut", "standardError"
|
|
showStandardStreams = true
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|