Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Crashlytics] The plugin uses Fabric but it is dead/ultra-deprecated #3049

Closed
danielgomezrico opened this issue Jul 28, 2020 · 8 comments
Closed

Comments

@danielgomezrico
Copy link

Current setup suggest that you do the setup with fabric and it has shut down on March 31, 2020.

Check:

@Infucio
Copy link

Infucio commented Jul 29, 2020

Any luck figuring out a way around ?

Tried the migration steps and added pod 'Firebase/Crashlytics' to podfile under pod plugins, while i got the new pod, it doesn't seem to be willing to work altogether, although no fatal issues.

@kroikie
Copy link
Collaborator

kroikie commented Jul 29, 2020

We are currently working on an update to the crashlytics plugin which will migrate off the fabric SDKs. However this will still not support fatal crashes so flutter errors will still be reported as non fatals.

@AndrewSheetMetal
Copy link

So, I had issues,
that the app gave me the expected log output when I tried
Crashlytics.instance.crash();
but the Firebase Console did not recognized any Crashlytics implementation.
It always shows the "add SDK and force a crash" loading indicator.

For Android I figured out a solution:
android/app/build.gradle:

dependencies {
    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'androidx.test:runner:1.1.1'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
    implementation 'com.google.firebase:firebase-crashlytics:17.1.1' 
}

// For Crashlytics
apply plugin: 'com.google.gms.google-services'
apply plugin: 'com.google.firebase.crashlytics'

android/build.gradle:

buildscript {
    ext.kotlin_version = '1.3.50'
    repositories {
        google()
        jcenter()
    }

    dependencies {
        classpath 'com.android.tools.build:gradle:3.5.0'
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
        classpath 'com.google.gms:google-services:4.3.3'  // Google Services plugin
        
        classpath 'com.google.firebase:firebase-crashlytics-gradle:2.2.0'
    }
}

For iOS it did not worked:
I added
pod 'Firebase/Crashlytics'
but Firebase Console still does not recognize my crashlytics implementation

After I read this issue and also #2038
I think I just had luck, that it works for android now.

However, does anyone can help me setting up crashlytics for iOS?

@wkrause13
Copy link

@AndrewSheetMetal, you may have already tried this, but did you try launching your application from the simulator directly? I had trouble getting crashes to show up for iOS until I closed my app, closed Xcode and then reopened my app from the simulator manually.

@Sthefanny
Copy link

Sthefanny commented Aug 19, 2020

So, I had issues,
that the app gave me the expected log output when I tried
Crashlytics.instance.crash();
but the Firebase Console did not recognized any Crashlytics implementation.
It always shows the "add SDK and force a crash" loading indicator.

For Android I figured out a solution:
android/app/build.gradle:

dependencies {
    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'androidx.test:runner:1.1.1'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
    implementation 'com.google.firebase:firebase-crashlytics:17.1.1' 
}

// For Crashlytics
apply plugin: 'com.google.gms.google-services'
apply plugin: 'com.google.firebase.crashlytics'

android/build.gradle:

buildscript {
    ext.kotlin_version = '1.3.50'
    repositories {
        google()
        jcenter()
    }

    dependencies {
        classpath 'com.android.tools.build:gradle:3.5.0'
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
        classpath 'com.google.gms:google-services:4.3.3'  // Google Services plugin
        
        classpath 'com.google.firebase:firebase-crashlytics-gradle:2.2.0'
    }
}

For iOS it did not worked:
I added
pod 'Firebase/Crashlytics'
but Firebase Console still does not recognize my crashlytics implementation

After I read this issue and also #2038
I think I just had luck, that it works for android now.

However, does anyone can help me setting up crashlytics for iOS?

I'm having this same problem with iOS

@AndrewSheetMetal
Copy link

@AndrewSheetMetal, you may have already tried this, but did you try launching your application from the simulator directly? I had trouble getting crashes to show up for iOS until I closed my app, closed Xcode and then reopened my app from the simulator manually.

It doesn't work on real device and simulator

@lewisstevens1
Copy link

lewisstevens1 commented Sep 8, 2020

We are currently working on an update to the crashlytics plugin which will migrate off the fabric SDKs. However this will still not support fatal crashes so flutter errors will still be reported as non fatals.

Is there anyway we can follow this? It would help to know when we can transition as we keep having people mention the deprication notice all alot, or will this be the ticket that is updated?

@mvolpato
Copy link
Contributor

It looks like 0.2.0 uses the Firebase Crashlytics SDK.

There is a migration guide for us to migrate from the Fabric version to the Firebase version.

@Ehesp Ehesp closed this as completed Sep 29, 2020
@firebase firebase locked and limited conversation to collaborators Oct 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

9 participants