Shake Flutter SDK
Flutter plugin for bug reporting.
Features
| Feature | Available |
|---|---|
| Bug reporting | ✅ |
| Crash reporting | ❌ |
| Users | ✅ |
Requirements
| Platform | Version |
|---|---|
| Flutter | 1.12 |
| Android | 7.0 |
| iOS | 12.0 |
How to use
Install Shake
Add Shake to your pubspec.yaml file.
dependencies:
shake_flutter: ^15.3.0
Install package by running command in terminal.
flutter packages get
Set compileSdkVersion version in the build.gradle file
Since Shake requires compileSdkVersion 29 or greater, verify that compileSdkVersion is correctly set in the /android/app/build.gradle file:
android {
// highlight-next-line
compileSdkVersion 29
defaultConfig {
applicationId "com.shakebugs.flutter.example"
minSdkVersion 24
targetSdkVersion 29
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
}
}
Start Shake
Add Shake import.
import 'package:shake_flutter/shake_flutter.dart';
Call Shake.start() method in the main.dart file.
void main() {
WidgetsFlutterBinding.ensureInitialized();
Shake.setInvokeShakeOnShakeDeviceEvent(true);
Shake.setShowFloatingReportButton(false);
Shake.setInvokeShakeOnScreenshot(false);
Shake.start('client-id', 'client-secret');
runApp(MyApp());
}
Replace client-id and client-secret with the actual values you have in your workspace settings.
Resources
Libraries
- enums/log_level
- enums/shake_screen
- helpers/configuration
- helpers/data_tracker
- helpers/network_tracker
- helpers/notifications_tracker
- models/feedback_type
- models/network_request
- models/notification_event
- models/shake_file
- models/shake_report_configuration
- network/shake_http_client
- network/shake_http_logger
- shake_flutter
- utils/extensions
- utils/mapper