Commit 14a59466 authored by wanglei's avatar wanglei

...

parent 958a7451
...@@ -28,6 +28,16 @@ android { ...@@ -28,6 +28,16 @@ android {
} }
} }
buildTypes { buildTypes {
debug {
minifyEnabled false
shrinkResources false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.realse
// 设置是否要自动上传
// firebaseCrashlytics {
// mappingFileUploadEnabled true
// }
}
release { release {
minifyEnabled true minifyEnabled true
shrinkResources true shrinkResources true
...@@ -49,7 +59,6 @@ android { ...@@ -49,7 +59,6 @@ android {
buildFeatures { buildFeatures {
viewBinding true viewBinding true
buildConfig true buildConfig true
aidl true
} }
} }
gradle.taskGraph.whenReady { gradle.taskGraph.whenReady {
...@@ -109,8 +118,8 @@ dependencies { ...@@ -109,8 +118,8 @@ dependencies {
//firebase //firebase
implementation platform('com.google.firebase:firebase-bom:32.3.1') implementation platform('com.google.firebase:firebase-bom:32.3.1')
implementation 'com.google.firebase:firebase-analytics:21.6.2' implementation 'com.google.firebase:firebase-crashlytics'
implementation("com.google.firebase:firebase-messaging") implementation("com.google.firebase:firebase-messaging")
implementation 'com.google.firebase:firebase-analytics:21.6.2'
} }
\ No newline at end of file
...@@ -26,4 +26,4 @@ ...@@ -26,4 +26,4 @@
} }
], ],
"configuration_version": "1" "configuration_version": "1"
} }
\ No newline at end of file
...@@ -74,6 +74,7 @@ class SplashActivity : BaseActivity<ActivitySplashBinding>() { ...@@ -74,6 +74,7 @@ class SplashActivity : BaseActivity<ActivitySplashBinding>() {
} }
override fun initView() { override fun initView() {
throw Exception("-------异常------")
BarUtils.setStatusBarLightMode(this, true) BarUtils.setStatusBarLightMode(this, true)
BarUtils.setStatusBarColor(this, Color.TRANSPARENT) BarUtils.setStatusBarColor(this, Color.TRANSPARENT)
startStayNotification() startStayNotification()
......
...@@ -22,8 +22,8 @@ abstract class BaseActivity<T : ViewBinding> : AppCompatActivity() { ...@@ -22,8 +22,8 @@ abstract class BaseActivity<T : ViewBinding> : AppCompatActivity() {
launcher = ActivityLauncher(this) launcher = ActivityLauncher(this)
setContentView(binding.root) setContentView(binding.root)
ActivityManagerUtils.getInstance().addActivity(this)
EventUtils.event("page_${javaClass.simpleName}") EventUtils.event("page_${javaClass.simpleName}")
ActivityManagerUtils.getInstance().addActivity(this)
initView() initView()
initListener() initListener()
} }
......
// Top-level build file where you can add configuration options common to all sub-projects/modules. // Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript { buildscript {
dependencies { dependencies {
classpath 'com.google.gms:google-services:4.3.15' classpath 'com.google.gms:google-services:4.4.1'
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.9.5' classpath 'com.google.firebase:firebase-crashlytics-gradle:3.0.2'
} }
} }
plugins { plugins {
......
[versions] [versions]
agp = "8.0.0" agp = "8.1.0"
kotlin = "1.9.0" kotlin = "1.9.0"
coreKtx = "1.8.1" coreKtx = "1.8.1"
junit = "4.13.2" junit = "4.13.2"
......
#Thu Jun 27 14:39:02 CST 2024 #Thu Jun 27 14:39:02 CST 2024
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip distributionUrl=https\://services.gradle.org/distributions/gradle-8.1-bin.zip
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment