Skip to content

Commit 956b379

Browse files
authored
docs: add Remote Config and Test Lab to README
2 parents d0f17c7 + 0099540 commit 956b379

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

README.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ This package provides a complete Dart implementation of Firebase Cloud Functions
2020
| **Firebase Alerts** | ✅ Complete | `onInAppFeedbackPublished`, `onNewAnrIssuePublished`, `onNewFatalIssuePublished`, `onNewNonfatalIssuePublished`, `onNewTesterIosDevicePublished`, `onPlanAutomatedUpdatePublished`, `onPlanUpdatePublished`, `onRegressionAlertPublished`, `onStabilityDigestPublished`, `onThresholdAlertPublished`, `onVelocityAlertPublished` |
2121
| **Eventarc** | ✅ Complete | `onCustomEventPublished` |
2222
| **Identity Platform** | ✅ Complete | `beforeUserCreated`, `beforeUserSignedIn` (+ `beforeEmailSent`, `beforeSmsSent`*) |
23+
| **Remote Config** | ✅ Complete | `onConfigUpdated` |
24+
| **Test Lab** | ✅ Complete | `onTestMatrixCompleted` |
2325

2426
## Table of Contents
2527

@@ -35,6 +37,8 @@ This package provides a complete Dart implementation of Firebase Cloud Functions
3537
- [Scheduler Triggers](#scheduler-triggers)
3638
- [Firebase Alerts](#firebase-alerts)
3739
- [Identity Platform (Auth Blocking)](#identity-platform-auth-blocking)
40+
- [Remote Config](#remote-config)
41+
- [Test Lab](#test-lab)
3842
- [Parameters & Configuration](#parameters--configuration)
3943
- [Project Configuration](#project-configuration)
4044
- [Development](#development)
@@ -678,6 +682,38 @@ firebase.identity.beforeUserSignedIn(
678682

679683
> **Note**: `beforeEmailSent` and `beforeSmsSent` are also available but cannot be tested with the Firebase Auth emulator (emulator only supports `beforeUserCreated` and `beforeUserSignedIn`). They work in production deployments.
680684
685+
## Remote Config
686+
687+
Trigger a function when Firebase Remote Config is updated.
688+
689+
```dart
690+
firebase.remoteConfig.onConfigUpdated((event) async {
691+
final data = event.data;
692+
print('Remote Config updated:');
693+
print(' Version: ${data?.versionNumber}');
694+
print(' Description: ${data?.description}');
695+
print(' Update Origin: ${data?.updateOrigin.value}');
696+
print(' Update Type: ${data?.updateType.value}');
697+
print(' Updated By: ${data?.updateUser.email}');
698+
});
699+
```
700+
701+
## Test Lab
702+
703+
Trigger a function when a Firebase Test Lab test matrix completes.
704+
705+
```dart
706+
firebase.testLab.onTestMatrixCompleted((event) async {
707+
final data = event.data;
708+
print('Test matrix completed:');
709+
print(' Matrix ID: ${data?.testMatrixId}');
710+
print(' State: ${data?.state.value}');
711+
print(' Outcome: ${data?.outcomeSummary.value}');
712+
print(' Client: ${data?.clientInfo.client}');
713+
print(' Results URI: ${data?.resultStorage.resultsUri}');
714+
});
715+
```
716+
681717
## Parameters & Configuration
682718

683719
### Defining Parameters

0 commit comments

Comments
 (0)