Android Question Fabric SDK is now deprecated...

Pendrush

Well-Known Member
Licensed User
Longtime User
Text from this page:
Note: The Fabric SDK is now deprecated and will continue reporting your app's crashes until November 15, 2020. On this date, the Fabric SDK and old versions of the Firebase Crashlytics SDK will stop sending crashes for your app. To continue getting crash reports in the Firebase console, make sure you upgrade to the Firebase Crashlytics SDK versions 17.0.0+ for Android and 4.0.0+ for iOS. Note that crashes sent from the Firebase Crashlytics SDK are only available in the Firebase console.
Is there any implementation based on com.google.firebase:firebase-crashlytics:17.0.0?
 

DonManfred

Expert
Licensed User
Longtime User
Firebase Crashlytics will work as before i guess.
 
Upvote 0

Pendrush

Well-Known Member
Licensed User
Longtime User
I'm using this Crashlytics: https://www.b4x.com/android/forum/threads/crashlytics-crash-reports.87510/#content
I can see io.fabric.sdk.android.Fabric.Builder
B4X:
Sub Class_Globals
    Private CL As JavaObject
End Sub
'Initializes the object. You can add parameters to this method if needed.
Public Sub Initialize (context As JavaObject)
#if Release
    Dim fabric As JavaObject
    CL.InitializeNewInstance("com.crashlytics.android.Crashlytics", Null)
    Dim kits As JavaObject
    kits.InitializeArray("io.fabric.sdk.android.Kit", Array(CL))
    fabric = fabric.InitializeNewInstance("io.fabric.sdk.android.Fabric.Builder", Array(context)) _
        .RunMethodJo("kits", Array(kits)) _
        .RunMethod("build", Null)
    Dim StaticFabric As JavaObject
    StaticFabric.InitializeStatic("io.fabric.sdk.android.Fabric").RunMethod("with", Array(fabric))
#end if
End Sub
Public Sub SetKey(Key As String, Value As String)
    CL.RunMethod("setString", Array(Key, Value))
End Sub
Public Sub CLog(msg As String)
#If Release
    CL.RunMethod("log", Array(msg))
#else
    Log(msg)
#End If
End Sub
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
It will take sometime until I update this tutorial as it requires an update to Firebase libraries. Previously there were issues with the latest version of Firebase.

The current version will continue to work as it is based on Crashlytics v17.0.0 and it will be updated before November 2020.
 
Last edited:
Upvote 0
Top