The BugBattle SDK for Flutter is the easiest way to integrate BugBattle into your apps!
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:
flutter pub get
Alternatively, your editor might support
flutter pub get. Check the docs for your editor to learn more.
Navigate to your iOS project folder within the terminal and update the cocoapods by typing
Android is ready to go. If theres a version conflict pls add the following to your android manifest:
<manifest ... xmlns:tools="http://schemas.android.com/tools"><uses-sdk android:minSdkVersion="16"tools:overrideLibrary="com.example.bugbattle_sdk"/><application .... tools:overrideLibrary="com.example.bugbattle_sdk">...
3. Import it
Now in your Darte code, you can use:
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.
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
Your API key can be found in the project settings within BugBattle. Possible values for the activation method are
We are here to help! [email protected]