flutter_ota_platform 1.0.0 copy "flutter_ota_platform: ^1.0.0" to clipboard
flutter_ota_platform: ^1.0.0 copied to clipboard

Flutter client SDK for the Flutter OTA Platform — check for and apply over-the-air app updates from your hosted OTA API.

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/v1 for 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

0
likes
140
points
93
downloads

Documentation

Documentation
API reference

Publisher

unverified uploader

Weekly Downloads

Flutter client SDK for the Flutter OTA Platform — check for and apply over-the-air app updates from your hosted OTA API.

Repository (GitHub)
View/report issues

Topics

#ota #updates #flutter

License

MIT (license)

Dependencies

crypto, device_info_plus, flutter, http, package_info_plus, path_provider, shared_preferences

More

Packages that depend on flutter_ota_platform