restart_app 1.8.0
Changes
- Added structured restart API with
Restart.restart(),RestartResult,RestartMode, andRestart.restartCapability(). - Added opt-in iOS Flutter engine restart with fresh
FlutterEnginecreation, Dart re-run, host-owned plugin registration, rootFlutterViewControllerreplacement, and old engine teardown. - Kept the existing iOS notification +
exit(0)behavior as an explicit legacy fallback. - Added restart capability reporting across supported platforms.
- Updated documentation and example integration to distinguish iOS engine restart from unsupported full process restart.
Verification
flutter analyzeflutter testcd example && flutter testdart pub publish --dry-run- iOS no-codesign build
- web build
- Swift/Kotlin/C++ format and lint checks
Note: Android APK build is blocked locally by the existing Gradle 7.6.3 and Java 21 mismatch on this machine.