flutter_ota_platform
Flutter client SDK for the Flutter OTA Platform. Check for updates, download signed bundles, verify SHA-256 integrity, and apply OTA releases.
Install
dependencies:
flutter_ota_platform: ^1.0.0
flutter pub get
Usage
import 'package:flutter_ota_platform/flutter_ota.dart';
await FlutterOTA.initialize(
appId: 'YOUR_APP_UUID',
channel: 'stable',
// Production API (Vercel example):
baseUrl: 'https://flutter-ota-api.vercel.app/v1',
);
final response = await FlutterOTA.checkForUpdate();
if (response.hasUpdate) {
await FlutterOTA.applyUpdate(response.release!);
}
Listen to progress:
FlutterOTA.statusNotifier.addListener(() {
final status = FlutterOTA.statusNotifier.value;
print('${status.phase} ${status.progress}');
});
Platform notes
- Android emulator: use
http://10.0.2.2:8080/v1for a local API. - Physical device: use your machine LAN IP or the HTTPS production API.
- Cleartext HTTP requires Android network security / iOS ATS exceptions for local only.
Hosted stack
Pair this SDK with:
- API:
https://flutter-ota-api.vercel.app - Dashboard:
https://flutter-ota-dashboard.vercel.app
License
MIT
Libraries
- flutter_ota
- Compatibility export — prefer
package:flutter_ota_platform/flutter_ota_platform.dart. - flutter_ota_platform
- Flutter OTA Platform SDK — over-the-air update client.