native_update 1.1.1
native_update: ^1.1.1 copied to clipboard
Signed over-the-air asset updates, Play in-app update and in-app review for Flutter apps, on Native Update.
1.1.1 #
NativeUpdateFlutterFragmentActivityfor apps whoseMainActivitymust be aFlutterFragmentActivity(for examplelocal_auth, whose BiometricPrompt needs an androidx FragmentActivity). It takes Dart code updates the same way asNativeUpdateFlutterActivity.
1.1.0 #
- Dart code updates for sideloaded apps.
MainActivityextendsNativeUpdateFlutterActivity, the AndroidManifest carries the configuration withCODE_UPDATESon, and Dart callsNativeUpdate.initFromManifest(). A patch fromnpx native-update bundle flutter-patch <release.apk>is verified (SHA-256 + RSA-SHA256) before the engine starts. It loads only on the exact engine it was built for, and it rolls back after two unconfirmed starts. A build installed from Google Play never asks for or loads one. NativeUpdate.codeUpdatesActive()tells whether the running Dart code came from an update.- With code updates on, any APK install sets the patch aside, even one that kept
versionCodeandversionName: a patch is the whole compiled Dart program and must never outlive the APK it was built from.
1.0.1 #
- The plugin now declares the INTERNET permission. Flutter adds it only to debug builds, so in 1.0.0 a release app could not check for or download updates.
- A missing permission is now reported as
NETWORK_ERRORinstead ofVALIDATION_ERROR.
1.0.0 #
- Signed over-the-air asset updates on Android: SHA-256 and RSA-SHA256 on download and on every cold start, rollback after two unconfirmed starts, new-binary retire, Zip-Slip and size limits.
- Google Play immediate in-app update and in-app review.
- iOS foundation: in-app review. Asset updates arrive on iOS in a later release.