diff --git a/app/build.gradle b/app/build.gradle index 1bad056..a9263b6 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -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 } \ No newline at end of file diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index de9e5a5..544eae2 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -20,4 +20,13 @@ # hide the original source file name. #-renamesourcefileattribute SourceFile --keep class com.youme.*{;} -keep class com.youme.livevideo.* {;} -keepattributes Signature \ No newline at end of file +-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.** { + *; +} \ No newline at end of file diff --git a/build.gradle b/build.gradle index c138d6f..486139b 100644 --- a/build.gradle +++ b/build.gradle @@ -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' } } diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index ca7e5e1..4cc4b46 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -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