Skip to content

Commit fd17206

Browse files
JL-Wilsonardera
authored andcommitted
Update guides for Flutter 3.3.0
Update guides to reflect removal of ".packages" file in Flutter 3.3.0
1 parent fb8e61b commit fd17206

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

GETTING_STARTED.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ In each step below with Bash commands, the commands start with a set of `export`
6969
--sdk-root ~/dev/flutter-for-pi/bin/cache/artifacts/engine/common/flutter_patched_sdk_product \
7070
--target=flutter \
7171
--aot --tfa -Ddart.vm.product=true \
72-
--packages .packages --output-dill build/kernel_snapshot.dill --depfile build/kernel_snapshot.d \
72+
--packages .dart_tool\package_config.json --output-dill build/kernel_snapshot.dill --depfile build/kernel_snapshot.d \
7373
package:$APPNAME/main.dart
7474
../engine-binaries/$ARM/gen_snapshot_linux_x64_release \
7575
--deterministic --snapshot_kind=app-aot-elf \

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ If you encounter issues running flutter-pi on any of the supported platforms lis
123123
usermod -a -G render pi
124124
```
125125

126-
5. Finish and reboot.
126+
7. Finish and reboot.
127127

128128
<details>
129129
<summary>More information</summary>
@@ -195,13 +195,19 @@ rsync -a ./build/flutter_assets/ pi@raspberrypi:/home/pi/flutter_gallery/
195195
--aot ^
196196
--tfa ^
197197
-Ddart.vm.product=true ^
198-
--packages .packages ^
198+
--packages .dart_tool\package_config.json ^
199199
--output-dill build\kernel_snapshot.dill ^
200200
--verbose ^
201201
--depfile build\kernel_snapshot.d ^
202202
package:my_app_name/main.dart
203203
```
204204

205+
<details>
206+
<summary>More information</summary>
207+
208+
- In versions prior to Flutter 3.3.0 the `--packages` argument should be set to `.packages`. In versions greater than or equal to 3.3.0 the `--packages` argument should be set to `.dart_tool\package_config.json`.
209+
</details>
210+
205211
5. Fetch the latest `gen_snapshot_linux_x64_release` I provide in the [engine binaries repo](https://github.com/ardera/flutter-engine-binaries-for-arm).
206212
6. The following steps must be executed on a linux x64 machine. If you're on windows, you can use [WSL](https://docs.microsoft.com/de-de/windows/wsl/install-win10). If you're on macOS, you can use a linux VM.
207213
7. Build the `app.so`. If you're building for _arm64_, you need to omit the `--sim-use-hardfp` flag.
@@ -240,7 +246,7 @@ rsync -a ./build/flutter_assets/ pi@raspberrypi:/home/pi/flutter_gallery/
240246
--aot ^
241247
--tfa ^
242248
-Ddart.vm.product=true ^
243-
--packages .packages ^
249+
--packages .dart_tool\package_config.json ^
244250
--output-dill build\kernel_snapshot.dill ^
245251
--verbose ^
246252
--depfile build\kernel_snapshot.d ^

0 commit comments

Comments
 (0)