shorebird_code_push
2.0.7, released 4 months ago by shorebird.dev
Check for and download Shorebird code push updates
WASM-readyRock solid
What it does
This package lets a Flutter app query the Shorebird Code Push service for newer patches, read the currently installed patch, and download updates. It supports multiple tracks and provides status callbacks.
AI-written summary of version 2.0.7, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need explicit control over when updates are checked or downloaded
- You want to display update status to users or prompt before installing
- You are already using Shorebird but need more granular API access
Skip it when
- Your app already uses Shorebird’s automatic background update flow
- You only need a simple, one‑time update check without UI integration
Strengths
- Track‑based rollout support
- Clear API for checking and downloading patches
- No external dependencies beyond ffi and meta
- Cross‑platform (android, ios, web, windows, macos, linux)
Weaknesses
- Requires network calls that can block startup if awaited synchronously
- Only works with Shorebird’s backend
- No built‑in UI components for update prompts
Setup
- Kind
- FFI (native library)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 2
import 'package:shorebird_code_push/shorebird_code_push.dart';
final updater = ShorebirdUpdater();
void init() {
updater.readCurrentPatch().then((patch) => print('current: $patch'));
updater.checkForUpdate().then((status) {
if (status == UpdateStatus.outdated) {
updater.update();
}
});
}Works with
Packages commonly used together with shorebird_code_push: ones it builds on, ones built on it, and its own family.