update gradle, add firebase Crashlytics
This commit is contained in:
parent
b753a8c761
commit
b0d0569af3
@ -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
|
||||
}
|
9
app/proguard-rules.pro
vendored
9
app/proguard-rules.pro
vendored
@ -21,3 +21,12 @@
|
||||
#-renamesourcefileattribute SourceFile
|
||||
|
||||
-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.** {
|
||||
*;
|
||||
}
|
@ -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'
|
||||
}
|
||||
}
|
||||
|
||||
|
4
gradle/wrapper/gradle-wrapper.properties
vendored
4
gradle/wrapper/gradle-wrapper.properties
vendored
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user