Skip to content

Commit

Permalink
Updated Crashlytics to stable version
Browse files Browse the repository at this point in the history
In addition, the coroutine for initializing Firebase was reduced in favour of its provider
  • Loading branch information
Javinator9889 committed Apr 29, 2020
1 parent 29ecf03 commit 0b8ae76
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 13 deletions.
7 changes: 6 additions & 1 deletion app/build.gradle
Expand Up @@ -83,6 +83,10 @@ android {
jniDebuggable false
renderscriptDebuggable false
zipAlignEnabled true
/*firebaseCrashlytics {
// When manually initializing Firebase, Crashlytics mapping upload does not work
mappingFileUploadEnabled false
}*/
}
}
dexOptions {
Expand Down Expand Up @@ -146,7 +150,7 @@ dependencies {
// https://firebase.google.com/docs/android/setup#add-sdks
api 'com.google.firebase:firebase-common-ktx:19.3.0'
api 'com.google.firebase:firebase-analytics:17.3.0'
api 'com.google.firebase:firebase-crashlytics:17.0.0-beta04'
api 'com.google.firebase:firebase-crashlytics:17.0.0'
api 'com.google.firebase:firebase-perf:19.0.6'
// http://airbnb.io/lottie/#/android?id=getting-started
api "com.airbnb.android:lottie:3.4.0"
Expand Down Expand Up @@ -191,3 +195,4 @@ dependencies {
// https://github.com/deano2390/MaterialShowcaseView
implementation 'com.github.deano2390:MaterialShowcaseView:1.3.4'
}
apply plugin: 'com.google.gms.google-services'
4 changes: 0 additions & 4 deletions app/proguard-rules.pro
Expand Up @@ -80,10 +80,6 @@
#data models
-keep class com.javinator9889.handwashingreminder.collections.** { *;}

# prevent Crashlytics obfuscation
-keep class com.google.firebase.crashlytics.** { *; }
-dontwarn com.google.firebase.crashlytics.**

-keepclassmembers enum * {
public static **[] values();
public static ** valueOf(java.lang.String);
Expand Down
Expand Up @@ -23,8 +23,6 @@ import android.content.SharedPreferences
import androidx.multidex.MultiDex
import androidx.preference.PreferenceManager
import com.google.android.play.core.splitcompat.SplitCompat
import com.google.firebase.FirebaseApp
import com.google.firebase.FirebaseOptions
import com.google.firebase.crashlytics.FirebaseCrashlytics
import com.javinator9889.handwashingreminder.gms.activity.ActivityHandler
import com.javinator9889.handwashingreminder.gms.ads.AdLoader
Expand Down Expand Up @@ -72,11 +70,6 @@ class HandwashingApplication : BaseApplication() {
private fun initFirebaseAppAsync(): Deferred<Unit> {
return GlobalScope.async {
withContext(Dispatchers.IO) {
FirebaseApp.initializeApp(
this@HandwashingApplication,
FirebaseOptions
.fromResource(this@HandwashingApplication)!!
)
if (isDebuggable()) {
Timber.plant(Timber.DebugTree())
Timber.d("Application is in DEBUG mode")
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Expand Up @@ -16,7 +16,7 @@ buildscript {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "com.mikepenz.aboutlibraries.plugin:aboutlibraries-plugin:${latestAboutLibsRelease}"
classpath 'com.google.gms:google-services:4.3.3'
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.0.0-beta04'
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.0.0'
classpath 'com.google.firebase:perf-plugin:1.3.1' // Performance Monitoring plugin
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand Down

0 comments on commit 0b8ae76

Please sign in to comment.