Build Flutter runtime payload
synthesize_flutter_payloadBuild a Flutter project into native libraries and flutter_assets for Android ABIs, creating an injectable payload for APK modification.
Instructions
Build a Flutter project into native libraries and flutter_assets for the selected Android ABIs, ready for injection into a decoded workspace. Use it after target ABI analysis and before injection when source Flutter code is available; use an existing validated payload directory instead when artifacts are already built. This invokes the local Flutter SDK and replaces the payload output directory, so expect build time, disk writes, and build diagnostics.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| buildMode | No | Flutter build mode target: 'release' (AOT production build), 'profile' (AOT performance build), 'debug' (JIT build) | release |
| outputDir | No | Optional custom directory path to write synthesized payload artifacts (defaults to system temp dir) | |
| targetAbis | No | Target native CPU architectures to build payload binaries for (default: ['arm64-v8a', 'armeabi-v7a']) | |
| flutterProjectPath | Yes | Path to source Flutter project root containing pubspec.yaml and lib/main.dart |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| abis | Yes | ABIs successfully emitted into the payload. | |
| files | Yes | Payload-relative artifact paths grouped by type. | |
| warnings | Yes | Build or artifact-completeness warnings. | |
| buildMode | Yes | Flutter build mode used. | |
| payloadDir | Yes | Absolute directory containing synthesized payload artifacts. | |
| appSizeBytes | Yes | Extracted libapp.so size, when available. | |
| engineVersion | Yes | Detected Flutter engine/version identifier, when available. |