update gradle, add firebase Crashlytics

This commit is contained in:
CounterFire2023 2023-07-04 18:06:33 +08:00
parent b753a8c761
commit b0d0569af3
4 changed files with 26 additions and 5 deletions

View File

@ -5,6 +5,8 @@ plugins {
id 'com.android.application'
// Add the Google services Gradle plugin
id 'com.google.gms.google-services'
// Add the Crashlytics Gradle plugin
id 'com.google.firebase.crashlytics'
}
android {
compileSdkVersion PROP_COMPILE_SDK_VERSION.toInteger()
@ -100,6 +102,13 @@ android {
minifyEnabled false
signingConfig signingConfigs.release
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
firebaseCrashlytics {
// Enable processing and uploading of native symbols to Firebase servers.
// By default, this is disabled to improve build speeds.
// This flag must be enabled to see properly-symbolicated native
// stack traces in the Crashlytics dashboard.
nativeSymbolUploadEnabled true
}
}
}
compileOptions {
@ -156,7 +165,8 @@ dependencies {
implementation 'com.facebook.android:facebook-login:latest.release'
implementation 'com.facebook.android:facebook-share:latest.release'
// begin of firebase
implementation platform('com.google.firebase:firebase-bom:31.2.2')
implementation platform('com.google.firebase:firebase-bom:32.1.1')
implementation 'com.google.firebase:firebase-analytics'
implementation 'com.google.firebase:firebase-crashlytics-ndk'
// end of firebase
}

View File

@ -20,4 +20,13 @@
# hide the original source file name.
#-renamesourcefileattribute SourceFile
-keep class com.youme.*{;} -keep class com.youme.livevideo.* {;} -keepattributes Signature
-keep class com.youme.*{;} -keep class com.youme.livevideo.* {;} -keepattributes Signature
-keepattributes AutoValue
-keep class com.google.firebase.installations.** {
*;
}
-keep interface com.google.firebase.installations.** {
*;
}

View File

@ -8,11 +8,13 @@ buildscript {
mavenCentral()
}
dependencies {
classpath "com.android.tools.build:gradle:4.1.1"
classpath 'com.android.tools.build:gradle:7.2.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
classpath 'com.google.gms:google-services:4.3.15'
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.9.6'
}
}

View File

@ -1,6 +1,6 @@
#Wed Jun 29 14:30:25 CST 2022
#Tue Jul 04 13:48:00 CST 2023
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-bin.zip