PackageTrack
Sign in Get early access

flutter_exit_app

A Flutter plugin that provides a platform-specific way to exit the app without calling exit(0) in Dart code.

2.1.2 17K downloads/mo #2326 most downloaded on pub.dev xang555/flutter_exit_app

What this package is like to depend on

Last release 2 months ago

03 Jun 2026

Release timing varies

gaps range from 6 weeks to 1.5 years

Most releases are documented

notes for 12 of 15 stable releases

Nothing withdrawn

no release was ever pulled

4 years old

15 releases · first in 2022

4 releases in the last 12 months

see the full history below

Release timeline

15 releases · Feb 2022 to Jun 2026
2023 2024 2025 2026
Release Pre-release

Releases

latest 15
  1. 2.1.2 03 Jun 2026
    Release notes

    Full Changelog: v2.1.0...v2.1.2

    Open source →
    Release notes
    • Fixed Swift Package Manager compatibility by migrating the iOS plugin implementation to 100% Swift (removing the mixed language Swift/Objective-C target structure which is not supported by SPM).
    Open source →
  2. 2.1.1 29 Mar 2026
    Release notes
    • Updated README version reference
    Open source →
  3. 2.1.0 29 Mar 2026
    Release notes

    Breaking Changes

    • BREAKING: Minimum iOS version increased from 12.0 to 13.0

    iOS Changes

    • SPM Support: Added Swift Package Manager support while maintaining CocoaPods compatibility
    • Restructured iOS sources to ios/flutter_exit_app/Sources/flutter_exit_app/
    • Updated podspec to support dual CocoaPods and SPM integration

    Android Upgrades

    • Updated Kotlin from 1.9.24 to 2.0.21
    • Updated Android Gradle Plugin from 8.1.0 to 8.7.3
    • Updated Gradle from 8.4 to 8.9
    • Updated Java compatibility from 1.8 to 17
    • Updated kotlin-stdlib-jdk8 to kotlin-stdlib

    Example App Updates

    • Updated for new Flutter iOS architecture with FlutterImplicitEngineDelegate
    • Added UIApplicationSceneManifest configuration for modern iOS scene management
    • Updated minimum deployment target to iOS 13.0

    Notes

    • Projects using CocoaPods will continue to work without changes
    • New projects can opt to use Swift Package Manager
    Open source →
    Release notes

    Swift Package Manager support and dependency upgrades

    Breaking Changes

    • BREAKING: Minimum iOS version increased from 12.0 to 13.0

    iOS Changes

    • SPM Support: Added Swift Package Manager support while maintaining CocoaPods compatibility
    • Restructured iOS sources to ios/flutter_exit_app/Sources/flutter_exit_app/
    • Updated podspec to support dual CocoaPods and SPM integration

    Android Upgrades

    • Updated Kotlin from 1.9.24 to 2.0.21
    • Updated Android Gradle Plugin from 8.1.0 to 8.7.3
    • Updated Gradle from 8.4 to 8.9
    • Updated Java compatibility from 1.8 to 17
    • Updated kotlin-stdlib-jdk8 to kotlin-stdlib

    Example App Updates

    • Updated for new Flutter iOS architecture with FlutterImplicitEngineDelegate
    • Added UIApplicationSceneManifest configuration for modern iOS scene management
    • Updated minimum deployment target to iOS 13.0

    Notes

    • Projects using CocoaPods will continue to work without changes
    • New projects can opt to use Swift Package Manager
    Open source →
  4. 2.0.0 23 Oct 2025
    Release notes

    🚀 flutter_exit_app v2.0.0

    Major modernization update with breaking changes

    ⚠️ Breaking Changes

    • BREAKING: Minimum Flutter version is now 3.10.0
    • BREAKING: Minimum Dart version is now 3.0.0
    • BREAKING: Minimum Android API level is now 21 (Android 5.0)
    • BREAKING: Minimum iOS version is now 12.0
    • BREAKING: Return type changed from Future<bool?> to Future<bool>

    🤖 Android Improvements

    • Migrated from Java to Kotlin for better performance and maintainability
    • Updated Android Gradle Plugin to 8.1.0
    • Updated Gradle to 8.4
    • Improved error handling and lifecycle management

    🍎 iOS Improvements

    • Refactored to follow Apple best practices
    • Proper app lifecycle notification handling
    • Better memory management
    • App Store compliance improvements

    📦 Dart API Improvements

    • Better testability and performance
    • Improved error handling
    • Enhanced documentation

    ✅ Testing & Quality

    • Modern testing with Flutter's built-in utilities
    • 6 comprehensive unit tests
    • Zero warnings

    📥 Installation

    dependencies:
      flutter_exit_app: ^2.0.0
    Open source →
    Release notes

    Major modernization update with breaking changes

    Breaking Changes

    • BREAKING: Minimum Flutter version is now 3.10.0
    • BREAKING: Minimum Dart version is now 3.0.0
    • BREAKING: Minimum Android API level is now 21 (Android 5.0)
    • BREAKING: Minimum iOS version is now 12.0
    • BREAKING: Return type changed from Future<bool?> to Future<bool>

    Android Improvements

    • MIGRATION: Migrated from Java to Kotlin for better performance and maintainability
    • Updated Android Gradle Plugin to 8.1.0
    • Updated Gradle to 8.4
    • Updated compileSdk to 34
    • Added namespace declaration for AGP 8.x compatibility
    • Improved error handling with null-safety
    • Better activity lifecycle management
    • Cleaner, more idiomatic Kotlin code

    iOS Improvements

    • Refactored iOS implementation to follow Apple best practices
    • Added proper app lifecycle notification handling (willResignActiveNotification, didEnterBackgroundNotification)
    • Improved graceful exit: app moves to background and suspends (iOS recommended behavior)
    • Force-kill mode now includes 0.5s cleanup delay for proper state saving
    • Better memory management with weak self references
    • iOS 12+ compatibility with fallback for deprecated APIs
    • Comprehensive documentation about App Store compliance

    Dart API Improvements

    • Made constructor private to prevent unnecessary instantiation
    • Added @visibleForTesting annotation for better testability
    • Made MethodChannel const for performance
    • Improved error handling with specific exception types
    • Enhanced documentation with detailed examples and use cases
    • Better null-safety handling

    Testing & Quality

    • Replaced mockito with Flutter's built-in TestDefaultBinaryMessengerBinding
    • No more code generation required for tests
    • Added 6 comprehensive unit tests covering all scenarios
    • Tests now verify both method calls and arguments
    • All tests pass with zero warnings

    Documentation

    • Completely rewrote README with clear examples and API reference
    • Added migration guide from 1.x to 2.0
    • Updated to use flutter_lints for better code quality
    • Added platform support table
    • Comprehensive inline code documentation
    • Updated CLAUDE.md with modernization details

    Example App Updates

    • Fixed AGP 8.x compatibility issues
    • Updated Gradle wrapper to 8.4
    • Added namespace declaration
    • Added kotlinOptions configuration
    • Example app now builds successfully on latest Flutter SDK

    Dependencies

    • Updated to flutter_lints: ^5.0.0 (replaced lints)
    • Removed mockito, build_runner, and test dependencies
    • Cleaner dependency tree
    Open source →
  5. 1.1.4 06 Aug 2024
    Release notes
    • Fix an issue #2
    Open source →
  6. 1.1.3 27 Jun 2024
    Release notes

    Release Notes

    • Update version
    • Add Test case
    • Update example
    • Update native code
    • Fix an issue #1
    Open source →
    Release notes
    • Update version
    • Add Test case
    • Update example
    • Update native code
    • Fix an issue #1
    Open source →
  7. 1.1.2 06 Jan 2023
    Release notes
    • add iosForceExit parameter for exitApp method
    Open source →
  8. 1.1.1 05 Jan 2023
    Release notes
    • breaking: remove exit(0) for ios
    Open source →
  9. 1.1.0 05 Jan 2023
    Release notes
    • Fix kill ios process
    • Add time wait for exit
    Open source →
  10. 1.0.5 03 Mar 2022
    Release notes
    • fix kill app in background when 1 sec
    Open source →
  11. 1.0.4 01 Mar 2022

    Nothing published for this version

  12. 1.0.3 01 Mar 2022
    Release notes
    • fix docs
    • android exit when 2000 msec
    Open source →
  13. 1.0.2 01 Mar 2022

    Nothing published for this version

  14. 1.0.1 28 Feb 2022

    Nothing published for this version

  15. 1.0.0 28 Feb 2022
    Release notes
    • Implement native android exit app
    • Implement native ios exit app
    • Add License
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive