73 lines
2.3 KiB
Groovy
73 lines
2.3 KiB
Groovy
apply plugin: 'com.android.library'
|
|
apply plugin: 'kotlin-android'
|
|
apply plugin: 'kotlin-android-extensions'
|
|
|
|
android {
|
|
compileSdkVersion rootProject.ext.android.compileSdkVersion
|
|
|
|
defaultConfig {
|
|
minSdkVersion rootProject.ext.android.minSdkVersion
|
|
targetSdkVersion rootProject.ext.android.targetSdkVersion
|
|
|
|
buildConfigField 'String', 'MAPMODULE_VERSION', '"'+MAP_SDK_VERSION+'"'
|
|
multiDexEnabled true
|
|
|
|
}
|
|
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled true
|
|
zipAlignEnabled true
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
debug {
|
|
minifyEnabled false
|
|
zipAlignEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
|
|
|
|
|
|
packagingOptions {
|
|
exclude 'META-INF/proguard/coroutines.pro'
|
|
exclude 'META-INF/*'
|
|
exclude 'META-INF/io.netty.versions.properties'
|
|
exclude 'META-INF/INDEX.LIST'
|
|
exclude 'META-INF/MANIFEST.MF'
|
|
exclude 'META-INF/LICENSE'
|
|
exclude 'META-INF/NOTICE'
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
|
|
}
|
|
dependencies {
|
|
implementation rootProject.ext.dependencies.coroutinescore
|
|
implementation rootProject.ext.dependencies.coroutinesandroid
|
|
implementation rootProject.ext.dependencies.kotlinstdlibjdk7
|
|
implementation rootProject.ext.dependencies.androidxrecyclerview
|
|
implementation rootProject.ext.dependencies.androidxannotation
|
|
implementation rootProject.ext.dependencies.androidxappcompat
|
|
// implementation rootProject.ext.dependencies.recyclerviewadapterhelper
|
|
|
|
implementation rootProject.ext.dependencies.retrofit
|
|
implementation rootProject.ext.dependencies.retrofitconvertergson
|
|
implementation rootProject.ext.dependencies.okhttpinterceptor
|
|
|
|
implementation ('com.alibaba:fastjson:1.2.73'){
|
|
exclude group: 'io.netty', module: 'netty-all'
|
|
}
|
|
implementation 'io.netty:netty-all:4.1.50.Final'
|
|
|
|
|
|
implementation 'com.zhidaoauto.map:net:1.0.1'
|
|
implementation 'com.zhidaoauto.machine:mapcore:3.1.0.20'
|
|
implementation 'com.zhidaoauto.machine:mapdata:1.0.0.2'
|
|
|
|
}
|
|
|