1、引入countly源码,高度为09d7817a38074cae8a6c34f94c04356b29f6a80f,引入原因是因为gradle、kotlin版本太高了,无法直接使用。需要自己定制化
63 lines
1.8 KiB
Groovy
63 lines
1.8 KiB
Groovy
apply plugin: 'com.android.application'
|
|
|
|
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
|
|
}
|
|
}
|
|
|
|
repositories {
|
|
// needed for using sdk-native from countly maven repo
|
|
mavenCentral()
|
|
}
|
|
|
|
// 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 'ly.count.android:sdk:21.11.0'
|
|
implementation project(':libraries:countly:sdk-native')
|
|
//implementation 'ly.count.android:sdk-native:21.11.0'
|
|
}
|
|
|
|
buildscript {
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
dependencies {
|
|
classpath group: 'com.squareup.okhttp3', name: 'okhttp', version: '3.14.1'
|
|
}
|
|
}
|
|
|