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

84 lines
2.9 KiB
Groovy

apply plugin: 'com.android.application'
apply plugin: ly.count.android.plugins.UploadSymbolsPlugin
android {
compileSdkVersion rootProject.ext.android.compileSdkVersion
defaultConfig {
applicationId "ly.count.android.demo.crash"
minSdkVersion rootProject.ext.android.minSdkVersion
targetSdkVersion rootProject.ext.android.targetSdkVersion
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
externalNativeBuild {
cmake {
path file('src/main/cpp/CMakeLists.txt')
}
}
// ndkVersion '16.1.4479499'
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
// sdk and sdk-native are pulled from submodules of the project.
// If you are running app independently, you may pull their latest version from our maven repo using the commented lines.
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.3.1'
implementation 'androidx.constraintlayout:constraintlayout:2.1.0'
// implementation project(':libraries:countly:sdk')
implementation 'com.mogo.cloud:countly-sdk:1.4.7.49.18-debug'
// implementation project(':libraries:countly:sdk-native')
implementation 'com.mogo.cloud:countly-sdk-native:1.4.7.49.18-debug'
}
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"
}
//tasks.whenTaskAdded { task ->
// if (task.name.startsWith('assemble')) {
// //this would upload your Java mapping file
// task.dependsOn('uploadJaveSymbols')
//
// //this would upload your native (c++) symbols
// task.dependsOn('uploadNativeSymbols')
// }
//}