live_activity_kit 1.1.0
live_activity_kit: ^1.1.0 copied to clipboard
Build iOS Live Activities and Dynamic Island widgets, plus Android Live Updates / ongoing notifications, from Dart. Component DSL, SwiftUI renderer, ActivityKit, App Groups and APNs push updates — no [...]
Changelog #
1.1.0 #
Added #
- Android.
LiveActivity.show/update/endpost an ongoing notification (API 26+) built from the same Dart layout JSON iOS uses. Lock-screen copy, progress bars andLA.countdown/LA.stopwatch(systemChronometer) are mapped ontoRemoteViews. On Android 16+ the plugin requests Live Updates viaNotification.ProgressStyleandsetRequestPromotedOngoingwhen the layout has progress.POST_NOTIFICATIONSis requested on firstshow(). Shared store usesSharedPreferences. APNs / push-to-start remain iOS-only. LiveActivitySupport.supportsLiveUpdatesso callers can distinguish Dynamic Island from Android Live Updates without parsingsystemVersion.
1.0.0 #
First release verified end-to-end on a device. Fixes four bugs that made 0.1.0
fail on a consumer's first flutter run — anyone on 0.1.0 should upgrade.
Fixed #
- Podfile deployment target. Flutter scaffolds
platform :ioscommented out, so CocoaPods assumed 12.0 and refused to resolve this pod with "requires a higher minimum iOS deployment version".setupnow raises the Podfile and the Runner target to 13.0. - Build cycle. Xcode appends "Embed Foundation Extensions" after Flutter's
"Thin Binary" phase; both touch
Runner.app, producing "Cycle inside Runner".setupnow reorders the embed phase ahead of it. - Extension failed to install.
$(FLUTTER_BUILD_NUMBER)does not resolve for the widget target, so the extension shipped with noCFBundleVersionand iOS rejected it with "Failed to create app extension placeholder".setupnow points the target atFlutter/Generated.xcconfig, keeping the extension's version in lockstep with the app. Text.DateStyleavailability. Used without a guard while the pod deploys to iOS 13, breaking compilation with "'DateStyle' is only available in iOS 14.0 or newer".
Added #
- Real Dynamic Island screenshot in the README, produced by the example app.
- Troubleshooting entries for each error above, plus
ld: framework 'Flutter' not found(a Flutter SDK problem, fixed byflutter precache --ios --force).
Verified #
Dart analysis and 35 unit tests; Swift type-checked at iOS 13.0/14.0/16.1; the generated widget extension builds; the example app builds, installs and runs on an iOS 26 simulator; 5 on-device integration tests exercise real ActivityKit start/update/end, concurrent activities and App Group storage.
0.1.0 #
Initial release.
- Component DSL (
LA.*) with 12 components: text, image, row, column, progress, circularProgress, metric, countdown, spacer, divider, padding, container. - All eight Live Activity regions, each with its own component tree, plus
compactandexpandedshorthands and documented fallbacks. - Compact JSON layout schema with
fromJson/toJsonon every node and a 4 KiB payload guard that fails in Dart rather than in ActivityKit. LiveActivity.show/update(merging) /end/endAll, multiple simultaneous activities, lifecycle and deep-link streams.- Recursive SwiftUI renderer, ActivityKit manager supporting iOS 16.1+ with 16.2 content API and 17.2 push-to-start where available.
- APNs push token and push-to-start token streams.
- App Group key/value and file store with cross-process change notifications.
- Automatic image prefetching for Flutter assets and network images.
dart run live_activity_kit:setup— widget extension, entitlements, App Group, Info.plist keys and Xcode target registration.- Example app with four end-to-end demos; Dart and Swift test suites.