myappcrew_flutter 0.1.3
myappcrew_flutter: ^0.1.3 copied to clipboard
MyAppCrew Flutter SDK for bootstrapping testers, tracking screens, and batching events.
MyAppCrew Flutter SDK #
Tiny SDK for bootstrapping testers, tracking lifecycle/screen events, and batching events.
2-minute install (minimum) #
- Add dependency:
flutter pub add myappcrew_flutter
- Initialize once in
main.dart:
Future<void> main() async {
WidgetsFlutterBinding.ensureInitialized();
await MyAppCrewFlutter.init(publicKey: 'YOUR_PUBLIC_KEY');
runApp(const MyApp());
}
Notes:
baseUrlis optional and defaults tohttps://myappcrew-tw.pages.dev.- If
publicKeyis missing, the SDK disables itself (no network calls).
Optional: screen tracking #
Add the navigator observer when you want screen tracking:
MaterialApp(
navigatorObservers: [MyAppCrewFlutter.navigatorObserver],
home: const MyHomePage(),
);
Tester connect (no deep links) #
- Tester joins the invite in a browser.
- Copy the claim token or full claim link.
- In-app, call
connectFromText(...)(token or URL both work):
ElevatedButton(
onPressed: () async {
final result = await MyAppCrewFlutter.connectFromText(inputText);
if (result.connected) {
// Connected
}
},
child: const Text('Connect tester'),
);