mirror of
https://github.com/Meituan-Dianping/Logan.git
synced 2026-02-01 15:59:08 +00:00
50 lines
1.3 KiB
Groovy
50 lines
1.3 KiB
Groovy
apply plugin: 'com.android.library'
|
|
apply from: rootProject.file("bintrayUpload.gradle")
|
|
|
|
android {
|
|
// publishNonDefault true
|
|
|
|
compileSdkVersion 23
|
|
buildToolsVersion "25.0.2"
|
|
|
|
defaultConfig {
|
|
minSdkVersion 14
|
|
targetSdkVersion 23
|
|
versionCode 1
|
|
versionName "1.0"
|
|
|
|
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
|
|
|
externalNativeBuild {
|
|
cmake {
|
|
arguments '-DBUILD_TESTING=OFF', '-DANDROID_TOOLCHAIN=gcc'
|
|
cFlags "-std=c11"
|
|
abiFilters 'armeabi', 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64'
|
|
}
|
|
}
|
|
}
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
}
|
|
debug {
|
|
jniDebuggable true
|
|
testCoverageEnabled true
|
|
}
|
|
}
|
|
externalNativeBuild {
|
|
cmake {
|
|
path "CMakeLists.txt"
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
compile fileTree(include: ['*.jar'], dir: 'libs')
|
|
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
|
|
exclude group: 'com.android.support', module: 'support-annotations'
|
|
})
|
|
testCompile 'junit:junit:4.12'
|
|
}
|