Flutter APK Builder

A CLI tool to detect Android device ABI and build APKs accordingly.

Features

  • Detects the ABI of connected Android devices.
  • Supports multiple device selection.
  • Builds APKs optimized for the detected ABI.
  • Moves generated APKs to a specified output directory.

Prerequisites

Before using this tool, ensure the following are installed and available in your system's PATH:

  • Flutter: Install from Flutter Dev
  • ADB (Android Debug Bridge): Install based on your OS:
    • Windows: Download Android Platform Tools and add it to PATH.
    • macOS: Install via Homebrew: brew install android-platform-tools
    • Linux: Install using package manager:
      • Debian/Ubuntu: sudo apt install adb
      • Arch Linux: sudo pacman -S android-tools

To verify, run:

adb version

Installation

Activate the package globally using Dart:

dart pub global activate flutter_apk_builder

Usage

Run the following command in the terminal:

flutter_apk_builder

Example Output

🔍 Listing connected devices...

  1. Device ID: emulator-5554 (x86_64)
  2. Device ID: device-12345 (arm64-v8a) Select a device (1-2): 2

✅ Using device: device-12345 ✅ Detected ABI: arm64-v8a 🚀 Building APK for arm64-v8a... ✅ APK built successfully!

Additional Information

This package uses ADB to detect device ABI and Flutter CLI to build APKs.

Contributions, bug reports, and feature requests are welcome.

For issues or support, contact the maintainer via email.

Contributing

If you’d like to contribute, feel free to reach out via email to discuss potential improvements or feature requests.

Contact & Support

For any issues or questions, contact the maintainer at bichrbraighle@gmail.com.