Skip to content

Instantly share code, notes, and snippets.

@tianhaoz95
Created January 30, 2020 23:01
Show Gist options
  • Save tianhaoz95/51d5366d1bfae27605463788e6f079ac to your computer and use it in GitHub Desktop.
Save tianhaoz95/51d5366d1bfae27605463788e6f079ac to your computer and use it in GitHub Desktop.
instabug example
import io.flutter.app.FlutterApplication;
import com.instabug.instabugflutter.InstabugFlutterPlugin;
import java.util.ArrayList;
public class CustomFlutterApplication extends FlutterApplication {
@Override
public void onCreate() {
super.onCreate();
ArrayList<String> invocationEvents = new ArrayList<>();
invocationEvents.add(InstabugFlutterPlugin.INVOCATION_EVENT_SHAKE);
new InstabugFlutterPlugin().start(CustomFlutterApplication.this, "TOKEN", invocationEvents);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment