getsentry/sentry-dart-plugin

Hook up plugin during the build process

marandaneto opened this issue · 2 comments

The idea is that we are able to run this tool automatically, with no need of running it manually.
The other idea is that we'd like to inject resources/assets or whatever is needed into the final App during the build process, for example, the id of the uploaded mapping file for deobfuscation of obfuscated builds on the server (generated --save-obfuscation-map).

Related question https://stackoverflow.com/questions/75810481/is-there-a-way-to-hook-into-the-flutter-build-similarly-to-gradle-tasks-or-xcode

Probably related to flutter/flutter#101077

vaind commented

Native assets build hooks should help, once they're available and we're requiring a version that supports them: https://pub.dev/packages/native_assets_cli