Skip to main content

Upload Flutter debug artifacts

Flutter has more than one symbol format. A native release can contain Dart AOT frames, iOS native frames, and Android Java/Kotlin or native frames. Those frames do not use JavaScript source maps and do not share one interchangeable symbol file. @aient/sourcemaps is an npm-distributed build-time CI tool. Aient uses npm to distribute one versioned, cross-platform command that can validate files and call the upload API from a trusted release runner. It is never linked into your Flutter application, added to pubspec.yaml, or run on a phone. Installing it does not inject Node.js or an Aient uploader into the app process. Flutter Web is the exception: it emits JavaScript and uses the regular source map upload flow.

What Aient accepts today

The current command accepts dart_aot_dwarf and apple_dsym manifest items. An Apple item is one thin, raw Mach-O DWARF member inside a dSYM bundle; the bundle directory, ZIP archives, and fat/universal objects are rejected. Android R8/ProGuard mappings and Android native ELF files are not accepted. Generate and retain every build-specific artifact because it generally cannot be recreated after a rebuild. An accepted storage commit proves that Aient retained the exact verified bytes; it does not by itself prove that a later occurrence was symbolicated.

Install the release tool

Keep Node release tooling separate from Flutter runtime dependencies. For example, check in this file as release-tooling/package.json:
Create and commit the matching lockfile, then use only the installed, lockfile-pinned binary in release CI:
With npm, the equivalent setup is: