Getting started

Flutter SDK
BugBattle Flutter SDK

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:

dependencies:
bugbattle_sdk: ^3.0.7

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.

iOS installation

Navigate to your iOS project folder within the terminal and update the cocoapods by typing

pod install

Android installation

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:

import 'package:bugbattle_sdk/bugbattle_sdk.dart';

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()).

BugBattle.initWithToken('YOUR_API_KEY', ActivationMethod.SHAKE);

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.

🀝 Need help?

We are here to help! [email protected]​