sentry-dart-plugin icon indicating copy to clipboard operation
sentry-dart-plugin copied to clipboard

Hook up plugin during the build process

Open marandaneto opened this issue 2 years ago • 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 https://github.com/flutter/flutter/issues/101077

marandaneto avatar Mar 22 '23 14:03 marandaneto

https://github.com/dart-lang/sdk/issues/51941 may help.

marandaneto avatar Jun 14 '23 15:06 marandaneto

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

vaind avatar Oct 16 '24 06:10 vaind