Getting started
The BugBattle SDK for Flutter is the easiest way to integrate BugBattle into your apps!
Installation
Always have a look at the official Flutter bugbattle_sdk docs to get the current version of the sdk.
1. Depend on it
Add the Bugbattle SDK to your package's pubspec.yaml file:
2. Install it
You can install packages from the command line:
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
iOS installation
Navigate to your iOS project folder within the terminal and update the cocoapods by typing
Android installation
Android is ready to go. If theres a version conflict pls add the following to your android manifest:
3. Import it
Now in your Darte code, you can use:
Important
Always have a look at your minSdkVersion
on android and your minimum target version
on iOS to keep them on the same minimum version bugbattle needs.
Usage
In addition, you need to call the initialization function to initialize the Bugbattle SDK. Make sure that the initialization method gets called only once (i.e. by using initState()
).
Your API key can be found in the project settings within BugBattle. Possible values for the activation method are BugBattle.NONE
, BugBattle.THREE_FINGER_DOUBLE_TAB
and BugBattle.SHAKE
.