Flutter SDK
Flutter SDK

πŸ”§ Installation

Bugbattle for Flutter is distributed through pub.dev.
Add the Bugbattle SDK to your package's pubspec.yaml file:
1
dependencies:
2
bugbattle_sdk: ^5.0.0
Copied!
Install the SDK by running the following command from your project's root folder:
1
flutter pub get
Copied!
iOS installation
Navigate to your iOS project folder within the terminal and update your cocoapods by running:
1
$ pod install
Copied!
Android installation
Android should be already good to go. If theres a version conflict pls add the following to your android manifest:
1
<manifest ... xmlns:tools="http://schemas.android.com/tools">
2
<uses-sdk android:minSdkVersion="16"
3
tools:overrideLibrary="com.example.bugbattle_sdk"/>
4
<application .... tools:overrideLibrary="com.example.bugbattle_sdk">
5
...
Copied!
The BugBattle SDK is now almost installed successfully. Let's carry on with the initialization πŸŽ‰

πŸ‘·β€β™‚οΈ Initialize & configure the SDK

Open your preferred editor and add the following import.
1
import 'package:BugbattleSDK/BugbattleSDK.dart';
Copied!
Add the auto configure method to your main activity's onCreate method.
1
BugBattle.autoConfigure('YOUR_API_KEY');
Copied!
You are all set now! Run the app and report your first bug πŸŽ‰.
Get your API here.

🀝 Need help?

We are here to help! [email protected]​

​

Last modified 2mo ago