Skip to main content

native_update 1.1.1 copy "native_update: ^1.1.1" to clipboard
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 #

  • NativeUpdateFlutterFragmentActivity for apps whose MainActivity must be a FlutterFragmentActivity (for example local_auth, whose BiometricPrompt needs an androidx FragmentActivity). It takes Dart code updates the same way as NativeUpdateFlutterActivity.

1.1.0 #

  • Dart code updates for sideloaded apps. MainActivity extends NativeUpdateFlutterActivity, the AndroidManifest carries the configuration with CODE_UPDATES on, and Dart calls NativeUpdate.initFromManifest(). A patch from npx 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 versionCode and versionName: 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_ERROR instead of VALIDATION_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.
0
likes
150
points
192
downloads

Documentation

Documentation
API reference

Publisher

unverified uploader

Weekly Downloads

Signed over-the-air asset updates, Play in-app update and in-app review for Flutter apps, on Native Update.

Homepage

Topics

#ota #updates #in-app-update #in-app-review

License

unknown (license)

Dependencies

flutter

More

Packages that depend on native_update

Packages that implement native_update