搜索插件、代码仓与 APP 分类

插件详情v0.6.0

parse_app_package

解析应用包

AndroidiOSmacOSWindowsLinux
近 30 天下载
1.3万
喜欢数
1
Pub 分数
120

安装插件

flutter pub add parse_app_package

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

一个 Flutter 工具包,可从原生平台(包括 Android、iOS、macOS、Windows 和 Linux)解析应用程序包信息。它提供了一致的接口,用于提取不同操作系统中的版本代码、构建号和包名称等详细信息。专为需要在运行时或诊断工具中可靠访问应用元数据的开发者设计。该包轻量且可无缝集成到现有的 Flutter 项目中。

适合场景

  • 在运行时提取应用版本信息
  • 跨平台调试应用构建
  • 收集用于分析的软件包元数据
  • 验证应用安装完整性
  • 支持多平台应用程序诊断

主要特点

  • 跨平台应用元数据提取
  • 用于版本和包信息的简单 API
  • 支持 Android、iOS、macOS、Windows 和 Linux
  • 轻量且无依赖
  • 针对平台特定问题的内置错误处理

适合对象

  • 开发跨平台应用的开发者
  • 需要一致访问应用元数据的团队
  • 需要运行时版本检查的应用程序
  • 诊断和日志工具
  • 用于应用验证的 CI/CD 流水线

使用建议

  • 某些操作系统需要原生平台权限
  • 仅限基本包元数据(不进行深度清单解析)
  • 不适合复杂的清单分析
  • 在非 Android/iOS 平台上可能需要额外的设置
  • 不支持动态包更新

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

Fastforge

Fastforge formerly Flutter Distributor

pub version pub downloads melos All Contributors

Ship every app faster to your users — Build, package, and publish with one clear configuration. Target popular distribution formats and app stores while fitting naturally into your CI/CD pipeline.

[!WARNING] Rust Migration In Progress: The core of Fastforge is being rewritten in Rust to deliver better performance, a smaller install footprint, and zero runtime dependencies on the Dart SDK. The new implementation lives in the crates/ directory and is being developed in parallel with the existing Dart packages.

What this means for you:

  • The current Dart-based CLI (dart pub global activate fastforge) continues to work and receives bug fixes.
  • The Rust CLI will be released as a native binary — no Dart or Flutter SDK required to run it.
  • APIs and configuration formats are designed to remain compatible; any breaking changes will be clearly announced.
  • Contributions, feedback, and bug reports on the Rust implementation are very welcome — see the Contributing section.

English | 简体中文


Documentation

Key Features

  • 🚀 One-Click Build: Support for Android APK/AAB, iOS IPA, OpenHarmony HAP/APP and more
  • 📦 Multi-Platform Release: Support for App Store, Google Play, Firebase, Pgyer, fir.im, etc.
  • 🔄 CI/CD Integration: Perfect integration with GitHub Actions, GitLab CI, and more
  • 🛠 Flexible Configuration: Support for multiple environments, flavors, and custom build arguments
Supported Package Formats
Supported Distribution Platforms

Installation

dart pub global activate fastforge

Windows users: After activation, ensure the pub cache bin directory is in your PATH:

  1. Open System Properties → Advanced → Environment Variables
  2. Under User variables, select Path → Edit
  3. Add %APPDATA%\Pub\Cache\bin and click OK
  4. Restart your terminal, then try fastforge --help

Quick Start

  1. Add distribute_options.yaml to your project root:
variables:
  PGYER_API_KEY: "your api key" # Replace with your own API keys
output: dist/
releases:
  - name: dev
    jobs:
      # Build and publish APK to PGYER
      - name: release-dev-android
        package:
          platform: android
          target: apk
          build_args:
            target-platform: android-arm,android-arm64
            dart-define:
              APP_ENV: dev
        publish_to: pgyer

      # Build and publish IPA to PGYER
      - name: release-dev-ios
        package:
          platform: ios
          target: ipa
          build_args:
            export-options-plist: ios/dev_ExportOptions.plist
            dart-define:
              APP_ENV: dev
        publish_to: pgyer

Note: build_args are parameters supported by the flutter build command. Modify them according to your project requirements.

  1. Release your app:
fastforge release --name dev

CLI Commands

Package Your App
fastforge package --platform=android --targets=aab,apk
Publish a Package
fastforge publish --path dist/your-app-1.0.0+1-android.apk --targets pgyer
Release (Package + Publish)
fastforge release --name dev

Examples

Fastforge includes several example projects to help you get started:

Advanced Usage

Environment Variables

Fastforge supports using environment variables in your configuration files. This is useful for sensitive information like API keys:

variables:
  API_KEY: ${PGYER_API_KEY} # Uses the PGYER_API_KEY environment variable
CI/CD Integration

Fastforge works well in CI/CD environments. For example, with GitHub Actions:

jobs:
  build-and-release:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: subosito/flutter-action@v2
      - name: Install Fastforge
        run: dart pub global activate fastforge
      - name: Build and release
        run: fastforge release --name production
        env:
          API_KEY: ${{ secrets.API_KEY }}

Check the documentation for more detailed CI/CD integration examples.

Who's Using It?

  • Biyi - A convenient translation and dictionary app.
  • Qianji - A purely bookkeeping app.
  • Airclap - Send any file to any device. cross platform, ultra fast and easy to use.

Contributing

Contributions are welcome! If you'd like to help improve Fastforge:

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Please make sure to update tests as appropriate and follow the existing code style.

Contributors

LiJianying
LiJianying

💻
Zero
Zero

💻
Kingkor Roy Tirtho
Kingkor Roy Tirtho

💻
LAIIIHZ
LAIIIHZ

💻
Tomohiro Ueki
Tomohiro Ueki

💻
Sven Gehring
Sven Gehring

💻
GargantuaX
GargantuaX

💻
Hiperion
Hiperion

💻
Reuben Turner
Reuben Turner

💻
Ankit Mahato
Ankit Mahato

📖
Tien Do Nam
Tien Do Nam

💻
zacks
zacks

💻
Mohammed  CHAHBOUN
Mohammed CHAHBOUN

💻
Prateek Sunal
Prateek Sunal

💻
lllgm
lllgm

💻
Arran Ubels
Arran Ubels

💻
Sherman Chu
Sherman Chu

💻 📖
DrSheppard
DrSheppard

📖
cranst0n
cranst0n

💻
duskygloom
duskygloom

💻
imnadev
imnadev

💻
jenken827
jenken827

💻
kecson
kecson

💻
zzqayy
zzqayy

💻
Add your contributions

License

MIT

Fastforge Studio

The Studio web client, local server, and shared packages live in this repository under the studio- package prefix. See the Studio development guide for setup and checks.

Agent Skills

Agent skills that teach Claude and other Agent-Skills-compatible harnesses how to use fastforge live in skills/. Install them with npx skills add fastforgedev/fastforge; see the skills guide for details.

所属分类

依赖

依赖清单 4 项

  • archive^3.6.1
  • args^2.2.0
  • plist_parser^0.0.11
  • shell_executor^0.3.0

源码仓库

使用此插件的项目

暂无相关数据。