Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nohli/firebase_testlab_detector
A Flutter plugin for Android that helps determine if your app is running within Firebase Test Lab.
https://github.com/nohli/firebase_testlab_detector
android dart flutter hacktoberfest
Last synced: 7 days ago
JSON representation
A Flutter plugin for Android that helps determine if your app is running within Firebase Test Lab.
- Host: GitHub
- URL: https://github.com/nohli/firebase_testlab_detector
- Owner: nohli
- License: bsd-3-clause
- Created: 2023-10-08T22:20:40.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-29T22:49:18.000Z (3 months ago)
- Last Synced: 2024-10-12T05:44:09.407Z (about 1 month ago)
- Topics: android, dart, flutter, hacktoberfest
- Language: Dart
- Homepage: https://pub.dev/packages/firebase_testlab_detector
- Size: 156 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# firebase_testlab_detector
A Flutter plugin for Android that helps determine if your app is running within Firebase Test Lab. Use this to differentiate between regular usage and test runs in Firebase Test Lab (i.e., during Google Play pre-launch reports).
Only works on Android. Returns null on other platforms.
## Getting Started
### 1. Add the dependency
```shell
flutter pub add firebase_testlab_detector
```### 2. Use the plugin
```dart
final isRunningInTestlab = await FirebaseTestlabDetector.isAppRunningInTestlab() ?? false;
```This plugin reads the system property `firebase.test.lab`, and returns a boolean value indicating whether the app is running in Firebase Test Lab.
See also the [Firebase documentation](https://firebase.google.com/docs/test-lab/android/android-studio#modify_instrumented_test_behavior_for) for more details.
## Why use this plugin?
You might want to utilize this plugin to disable analytics, preventing skewed data from Firebase Test Lab (i.e., Google Play pre launch report) from appearing in your analytics dashboard.