63 lines
2.1 KiB
Groovy
63 lines
2.1 KiB
Groovy
apply plugin: 'com.android.application'
|
|
|
|
android {
|
|
compileSdkVersion 29
|
|
buildToolsVersion "29.0.2"
|
|
defaultConfig {
|
|
applicationId "com.zhidao.adas.client"
|
|
minSdkVersion 19
|
|
targetSdkVersion 22
|
|
multiDexEnabled true
|
|
versionCode 1
|
|
versionName "1.0"
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
flavorDimensions "multi_device"
|
|
|
|
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'
|
|
}
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
|
|
productFlavors {
|
|
passenger {
|
|
dimension "multi_device"
|
|
buildConfigField 'boolean', 'IS_CLIENT', 'true'
|
|
}
|
|
driver {
|
|
dimension "multi_device"
|
|
buildConfigField 'boolean', 'IS_CLIENT', 'false'
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
implementation 'androidx.appcompat:appcompat:1.3.1'
|
|
implementation 'androidx.constraintlayout:constraintlayout:2.1.1'
|
|
implementation 'androidx.recyclerview:recyclerview:1.2.0'
|
|
testImplementation 'junit:junit:4.13.2'
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
|
|
implementation "com.google.code.gson:gson:2.8.9"
|
|
implementation project(':libraries:mogo-adas')
|
|
implementation project(':core:mogo-core-data')
|
|
implementation project(':core:mogo-core-utils')
|
|
// api "com.zhidao.support.adas:high:1.2.1.2_bate21"
|
|
implementation 'org.greenrobot:eventbus:3.2.0'
|
|
implementation 'com.android.support:multidex:1.0.3'
|
|
implementation 'com.mogo.cloud:telematic:1.3.30'
|
|
}
|