62 lines
1.6 KiB
Groovy
62 lines
1.6 KiB
Groovy
plugins {
|
||
id 'com.android.library'
|
||
id 'org.jetbrains.kotlin.android'
|
||
}
|
||
|
||
android {
|
||
namespace 'com.navinfo.ocr'
|
||
compileSdk 31
|
||
|
||
defaultConfig {
|
||
minSdk 23
|
||
targetSdk 30
|
||
versionCode 1
|
||
versionName "1.0"
|
||
|
||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||
ndk {
|
||
abiFilters "armeabi", "armeabi-v7a"
|
||
}
|
||
}
|
||
|
||
buildTypes {
|
||
debug {
|
||
packagingOptions {
|
||
doNotStrip '**/*.so' // 避免so资源文件编译提示,可忽略
|
||
}
|
||
}
|
||
release {
|
||
packagingOptions {
|
||
doNotStrip '**/*.so' // 避免so资源文件编译提示,可忽略
|
||
}
|
||
minifyEnabled false
|
||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
||
}
|
||
}
|
||
lintOptions {
|
||
abortOnError false
|
||
}
|
||
compileOptions {
|
||
sourceCompatibility JavaVersion.VERSION_1_8
|
||
targetCompatibility JavaVersion.VERSION_1_8
|
||
}
|
||
kotlinOptions {
|
||
jvmTarget = '1.8'
|
||
}
|
||
sourceSets {
|
||
main {
|
||
jniLibs.srcDirs = ['libs']
|
||
}
|
||
}
|
||
}
|
||
|
||
dependencies {
|
||
implementation fileTree(include: ['*.jar'], dir: 'libs')
|
||
implementation 'androidx.core:core-ktx:1.5.0'
|
||
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.1'
|
||
implementation 'com.google.android.material:material:1.6.0'
|
||
testImplementation 'junit:junit:4.13.2'
|
||
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
|
||
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
|
||
api files('libs/easyedge-sdk.jar')
|
||
} |