|
@@ -4,13 +4,12 @@ plugins {
|
|
|
}
|
|
|
|
|
|
android {
|
|
|
-
|
|
|
- compileSdkVersion COMPILE_SDK_VERSION
|
|
|
- buildToolsVersion BUILD_TOOLS_VERSION
|
|
|
+ compileSdkVersion rootProject.ext.android.compileSdkVersion
|
|
|
+ buildToolsVersion rootProject.ext.android.buildToolsVersion
|
|
|
|
|
|
defaultConfig {
|
|
|
- minSdkVersion MIN_SDK_VERSION
|
|
|
- targetSdkVersion TARGET_SDK_VERSION
|
|
|
+ minSdkVersion rootProject.ext.android.minSdkVersion
|
|
|
+ targetSdkVersion rootProject.ext.android.targetSdkVersion
|
|
|
|
|
|
externalNativeBuild {
|
|
|
cmake {
|
|
@@ -28,7 +27,7 @@ android {
|
|
|
|
|
|
buildTypes {
|
|
|
release {
|
|
|
- minifyEnabled MINIFY_ENABLE
|
|
|
+ minifyEnabled rootProject.ext.module.minifyEnabled
|
|
|
proguardFiles 'proguard-rules.pro'
|
|
|
}
|
|
|
}
|
|
@@ -61,22 +60,18 @@ android {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- ndkVersion NDK_VERSION
|
|
|
}
|
|
|
|
|
|
dependencies {
|
|
|
- implementation "org.jetbrains.kotlin:kotlin-stdlib:$KOTLIN_VERSION"
|
|
|
- implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.0'
|
|
|
-
|
|
|
//mmkv
|
|
|
implementation 'com.tencent:mmkv-static:1.2.10'
|
|
|
|
|
|
//日志采集框架
|
|
|
implementation 'io.github.suyghur.dolin:zap:1.0.0'
|
|
|
|
|
|
- implementation 'androidx.core:core-ktx:1.6.0'
|
|
|
- implementation 'androidx.fragment:fragment-ktx:1.3.6'
|
|
|
- implementation 'androidx.constraintlayout:constraintlayout:2.1.1'
|
|
|
+ implementation 'androidx.core:core-ktx:1.7.0'
|
|
|
+ implementation 'androidx.fragment:fragment-ktx:1.4.0'
|
|
|
+ implementation 'androidx.constraintlayout:constraintlayout:2.1.2'
|
|
|
implementation 'com.google.android.material:material:1.4.0'
|
|
|
implementation 'com.android.installreferrer:installreferrer:2.2'
|
|
|
|
|
@@ -85,9 +80,9 @@ dependencies {
|
|
|
implementation 'com.google.android.gms:play-services-auth:19.2.0'
|
|
|
//4.0.0的billing库消耗商品会回调两次,后续在排查,先用3.0.3
|
|
|
implementation "com.android.billingclient:billing-ktx:3.0.3"
|
|
|
- implementation 'com.google.firebase:firebase-analytics-ktx:19.0.2'
|
|
|
- implementation 'com.google.firebase:firebase-crashlytics-ktx:18.2.3'
|
|
|
- implementation 'com.google.firebase:firebase-crashlytics-ndk:18.2.3'
|
|
|
+ implementation 'com.google.firebase:firebase-analytics-ktx:20.0.0'
|
|
|
+ implementation 'com.google.firebase:firebase-crashlytics-ktx:18.2.4'
|
|
|
+ implementation 'com.google.firebase:firebase-crashlytics-ndk:18.2.4'
|
|
|
|
|
|
//facebook
|
|
|
implementation 'com.facebook.android:facebook-android-sdk:11.2.0'
|
|
@@ -95,7 +90,7 @@ dependencies {
|
|
|
//adjust
|
|
|
implementation 'com.adjust.sdk:adjust-android:4.28.2'
|
|
|
|
|
|
- if (PUBLISH_ENABLE) {
|
|
|
+ if (rootProject.ext.module.publish) {
|
|
|
api files('../libs/eyuangamesdk_base_1.0.0.jar')
|
|
|
} else {
|
|
|
api project(':library_base')
|