Android Question Fabric SDK is now deprecated...

Pendrush

Well-Known Member
Licensed User
Longtime User
Text from this page:
Is there any implementation based on com.google.firebase:firebase-crashlytics:17.0.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
Cookies are required to use this site. You must accept them to continue using the site. Learn more…