73 lines
2.4 KiB
Groovy
73 lines
2.4 KiB
Groovy
apply plugin: 'com.android.application'
|
|
|
|
android {
|
|
compileSdkVersion rootProject.ext.android.compileSdkVersion
|
|
|
|
defaultConfig {
|
|
applicationId "com.mogo.cloud"
|
|
minSdkVersion rootProject.ext.android.minSdkVersion
|
|
targetSdkVersion rootProject.ext.android.targetSdkVersion
|
|
versionCode 1
|
|
versionName "1.0"
|
|
|
|
multiDexEnabled true
|
|
packagingOptions {
|
|
//解决编译时com.android.builder.merge.DuplicateRelativeFileException: More than one file was found with OS independent path 'META-INF/rxjava.properties'这个错误
|
|
exclude 'META-INF/rxjava.properties'
|
|
}
|
|
|
|
ndk {
|
|
abiFilters "armeabi-v7a"//, "arm64-v8a"//, "armeabi"
|
|
}
|
|
}
|
|
|
|
sourceSets {
|
|
main {
|
|
jniLibs.srcDirs = ['libs']
|
|
jni.srcDirs = []
|
|
}
|
|
}
|
|
|
|
buildTypes {
|
|
debug {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation fileTree(dir: "libs", include: ["*.jar"])
|
|
implementation 'com.android.support:multidex:1.0.3'
|
|
|
|
implementation rootProject.ext.dependencies.androidAppCompat
|
|
implementation rootProject.ext.dependencies.androidConstraintLayout
|
|
implementation rootProject.ext.dependencies.rxjava
|
|
implementation rootProject.ext.dependencies.rxandroid
|
|
// 从车机获取视频流
|
|
implementation 'com.zhidao.carmanager:common:1.0.23@aar'
|
|
|
|
if (Boolean.valueOf(RELEASE)) {
|
|
implementation "com.mogo.cloud:tanlu:${MOGO_TANLU_VERSION}"
|
|
implementation "com.mogo.cloud:realtime:${MOGO_REALTIME_VERSION}"
|
|
|
|
implementation "com.mogo.cloud:trafficlive:${MOGO_TRAFFICLIVE_VERSION}"
|
|
|
|
implementation "com.mogo.cloud:live:${MOGO_LIVE_VERSION}"
|
|
} else {
|
|
implementation project(":modules:mogo-tanlu")
|
|
implementation project(":modules:mogo-realtime")
|
|
implementation project(":foudations:mogo-live")
|
|
implementation project(":modules:mogo-trafficlive")
|
|
}
|
|
|
|
annotationProcessor 'com.elegant.spi:compiler:1.0.3' //编译时库
|
|
} |