android: update Crashlytics dependency

This commit is contained in:
Saúl Ibarra Corretgé 2020-09-15 15:27:57 +02:00 committed by Saúl Ibarra Corretgé
parent 57bbe3f75a
commit e70adef2ef
3 changed files with 6 additions and 21 deletions

View File

@ -3,7 +3,7 @@ apply plugin: 'com.android.application'
// Crashlytics integration is done as part of Firebase now, so it gets // Crashlytics integration is done as part of Firebase now, so it gets
// automagically activated with google-services.json // automagically activated with google-services.json
if (googleServicesEnabled) { if (googleServicesEnabled) {
apply plugin: 'io.fabric' apply plugin: 'com.google.firebase.crashlytics'
} }
// Use the number of seconds/10 since Jan 1 2019 as the versionCode. // Use the number of seconds/10 since Jan 1 2019 as the versionCode.
@ -70,10 +70,6 @@ android {
} }
} }
repositories {
maven { url 'https://maven.fabric.io/public' }
}
dependencies { dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar']) implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.legacy:legacy-support-v4:1.0.0' implementation 'androidx.legacy:legacy-support-v4:1.0.0'
@ -87,9 +83,8 @@ dependencies {
// Firebase // Firebase
// - Crashlytics // - Crashlytics
// - Dynamic Links // - Dynamic Links
implementation 'com.google.firebase:firebase-core:16.0.6' implementation 'com.google.firebase:firebase-crashlytics:17.2.1'
implementation 'com.crashlytics.sdk.android:crashlytics:2.9.8' implementation 'com.google.firebase:firebase-dynamic-links:19.1.0'
implementation 'com.google.firebase:firebase-dynamic-links:16.1.5'
} }
implementation project(':sdk') implementation project(':sdk')

View File

@ -3,9 +3,8 @@ package org.jitsi.meet;
import android.net.Uri; import android.net.Uri;
import android.util.Log; import android.util.Log;
import com.crashlytics.android.Crashlytics; import com.google.firebase.crashlytics.FirebaseCrashlytics;
import com.google.firebase.dynamiclinks.FirebaseDynamicLinks; import com.google.firebase.dynamiclinks.FirebaseDynamicLinks;
import io.fabric.sdk.android.Fabric;
import org.jitsi.meet.sdk.JitsiMeet; import org.jitsi.meet.sdk.JitsiMeet;
import org.jitsi.meet.sdk.JitsiMeetActivity; import org.jitsi.meet.sdk.JitsiMeetActivity;
@ -22,10 +21,7 @@ final class GoogleServicesHelper {
if (BuildConfig.GOOGLE_SERVICES_ENABLED) { if (BuildConfig.GOOGLE_SERVICES_ENABLED) {
Log.d(activity.getClass().getSimpleName(), "Initializing Google Services"); Log.d(activity.getClass().getSimpleName(), "Initializing Google Services");
if (!JitsiMeet.isCrashReportingDisabled(activity)) { FirebaseCrashlytics.getInstance().setCrashlyticsCollectionEnabled(!JitsiMeet.isCrashReportingDisabled(activity));
Fabric.with(activity, new Crashlytics());
}
FirebaseDynamicLinks.getInstance().getDynamicLink(activity.getIntent()) FirebaseDynamicLinks.getInstance().getDynamicLink(activity.getIntent())
.addOnSuccessListener(activity, pendingDynamicLinkData -> { .addOnSuccessListener(activity, pendingDynamicLinkData -> {
Uri dynamicLink = null; Uri dynamicLink = null;

View File

@ -7,17 +7,11 @@ buildscript {
repositories { repositories {
google() google()
jcenter() jcenter()
repositories {
maven { url 'https://maven.fabric.io/public' }
}
} }
dependencies { dependencies {
classpath 'com.android.tools.build:gradle:3.3.2' classpath 'com.android.tools.build:gradle:3.3.2'
classpath 'com.google.gms:google-services:4.3.3' classpath 'com.google.gms:google-services:4.3.3'
classpath 'io.fabric.tools:gradle:1.28.1' classpath 'com.google.firebase:firebase-crashlytics-gradle:2.3.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files.
} }
} }