Class CrashlyticsPlugin

java.lang.Object
com.castlabs.android.Plugin
com.castlabs.sdk.crashlytics.CrashlyticsPlugin

public class CrashlyticsPlugin extends Plugin
This plugin enabled integration of Crashlytics using the CrashReporter interface. The SDK uses this interface to populate the crash context and add valuable debug information. This information will appear as part of a crash report on the Crashlytics dashboard.

Please note that the plugin does not initialize Fabric and Crashlytics for you. Before you register an instance of this plugin with the SDK, please make sure that you initialize the Fabric SDK and add at least the Crashlytics Kit. You can do this for example in your application class:


  public class MyApp extends Application {
 @Override
      public void onCreate() {
          super.onCreate();

          Fabric.with(getApplicationContext(), new Crashlytics());
          PlayerSDK.register(new CrashlyticsPlugin());
          PlayerSDK.init(getApplicationContext());
      }
 }
 
Since:
3.0.0
  • Constructor Details

    • CrashlyticsPlugin

      public CrashlyticsPlugin()
  • Method Details