appelium_feedback 1.0.2
appelium_feedback: ^1.0.2 copied to clipboard
Bug reports, crash and error reports, and network and session monitoring for Flutter apps on iOS and Android, by Appelium.
example/lib/main.dart
import 'dart:io';
import 'package:appelium_feedback/appelium_feedback.dart';
import 'package:material_ui/material_ui.dart';
import 'example_app.dart';
import 'start_appelium.dart';
/// API keys of the Appelium apps that receive the reports, passed with
/// `--dart-define=APPELIUM_IOS_API_KEY=<key>` and
/// `--dart-define=APPELIUM_ANDROID_API_KEY=<key>`.
const apiKeys = AppeliumApiKeys(
ios: String.fromEnvironment('APPELIUM_IOS_API_KEY'),
android: String.fromEnvironment('APPELIUM_ANDROID_API_KEY'),
);
/// Whether the API key of the platform the app runs on was passed. Without
/// it, the app does not start the SDK.
bool get hasApiKey =>
(Platform.isIOS ? apiKeys.ios : apiKeys.android).isNotEmpty;
void main() {
if (hasApiKey) {
startAppelium(apiKeys);
}
runApp(ExampleApp(isAppeliumStarted: hasApiKey));
}