I'm currently trying to fix some specific issue in my app that requires me to modify flutter's engine source code...
I've managed to build it from source and it works fine for debugging purposes... but eventually I would like to build a release apk file of my app using my custom engine and currently doing this with flutter tool is somewhat cumbersome. To build a release version I would have to use a command like:
flutter build apk --release --target-platform=android-arm64 --local-engine-src-path /path/to/engine/src --local-engine=android_release_arm64
Also I don't think it is possible to build an apk containing binaries for various platforms since "--local-engine" parameter value has to be different for different targets.
There is also an issue of disk space since custom engine folder contains various debugging info files that amount to about 50 GB of data (compared to ~2GB of release version of flutter you can download from Google) and I would like to quickly move my engine build around different computers.
Would it be possible to replace some files in my regular flutter install with files from my custom engine so I could build a release version simply using "flutter build --release" command?
Which files would I need to move and where?