- Make a folder somewhere that will contain engine and framework checkouts. The rest of instructions assumes that
$fltpoints to that folder. - Into
$flt/fluttergetflutterby$ cd $flt $ git clone https://github.com/flutter/flutter
- Add
$flt/flutter/binto your path, runflutter doctorand fix issues if any are reported. - Into
$flt/enginegetenginecheckout following these instructions. Make sure to run dependency installation scripts as described there. - In
$flt/engine/src/third_party/dartswitch tomasterand pull uptoHEAD$ cd $flt/engine/src/third_party/dart $ git checkout master $ git pull --rebase
- In
$flt/engine/srcdo$ cd $flt/engine/src $ flutter/tools/gn --runtime-mode debug $ ninja -C out/host_debug $ flutter/tools/gn --runtime-mode release $ ninja -C out/host_release $ flutter/tools/gn --runtime-mode release --android-cpu arm64 $ ninja -C out/android_release_arm64
- In
$flt/flutter/examples/flutter_galleryrun$ flutter build aot --target-platform android_arm64 --local-engine android_release_arm64 --extra-gen-snapshot-options=--print_snapshot_sizes
Created
October 8, 2019 19:39
-
-
Save mraleph/b9291f2eba269d83c9d36f915643728b to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment