sentry-dart-plugin
sentry-dart-plugin copied to clipboard
Hook up plugin during the build process
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 https://github.com/flutter/flutter/issues/101077
https://github.com/dart-lang/sdk/issues/51941 may help.
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
https://github.com/flutter/flutter/issues/129757