Files
MoGoAiCloudSdk/app/build.gradle
donghongyu 38aee74d23 「Countly」
1、完成Maven上传,待接入到鹰眼
2024-11-01 14:54:43 +08:00

114 lines
4.3 KiB
Groovy

apply plugin: 'com.android.application'
apply plugin: ly.count.android.plugins.UploadSymbolsPlugin
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'
exclude 'META-INF/DEPENDENCIES'
}
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.androidxappcompat
implementation rootProject.ext.dependencies.crashSdk
implementation rootProject.ext.dependencies.androidxconstraintlayout
implementation rootProject.ext.dependencies.rxjava
implementation rootProject.ext.dependencies.rxandroid
// 从车机获取视频流
implementation 'com.zhidao.carmanager:common:1.0.25@aar'
implementation 'com.google.android.material:material:1.3.0'
implementation project(path: ':foudations:mogo-passport')
if (Boolean.valueOf(RELEASE)) {
implementation "com.mogo.cloud:location:${MOGO_LOCATION_VERSION}"
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:telematic:${MOGO_TELEMATIC_VERSION}"
implementation "com.mogo.cloud:skin:${MOGO_SKIN_VERSION}"
implementation "com.mogo.v2x:v2x:${MOGO_V2X_VERSION}"
} else {
implementation project(":foudations:mogo-location")
implementation project(":modules:mogo-tanlu")
implementation project(":modules:mogo-realtime")
implementation project(":modules:mogo-trafficlive")
implementation project(":libraries:mogo-telematic")
implementation project(":libraries:mogo-skin")
implementation project(":foudations:mogo-v2x")
}
annotationProcessor 'com.elegant.spi:compiler:1.0.3' //编译时库
implementation 'com.mogo.cloud:countly-sdk:1.4.7.49.18-debug'
implementation 'com.mogo.cloud:countly-sdk-native:1.4.7.49.18-debug'
// implementation project(":libraries:countly:sdk")
// implementation project(":libraries:countly:sdk-native")
}
countly {
// required by both tasks
server "http://countly.zhidaozhixing.com"
// same app_key used for SDK integration
app_key "45cccb4a005ca14b79fca7d24b69e1a67730e325"
// location of mapping.txt file relative to project build directory
mappingFile "outputs/mapping/release/mapping.txt"
// note that will be saved with the upload and can be checked in the UI
noteJava "sdk-plugin automatic upload of mapping.txt"
// optional properties for uploadNativeSymbols. Shown are the default values.
// directory of .so files relative to project build directory.
// you can check the tar.gz file created under intermediates/countly
// BUILD_TYPE could be debug or release
nativeObjectFilesDir "intermediates/merged_native_libs/BUILD_TYPE"
// path for breakpad tool dump_syms executable
dumpSymsPath "/usr/bin"
// note that will be saved with the upload and can be checked in the UI
noteNative "sdk-plugin automatic upload of breakpad symbols"
}