Update Flutter

Fixed

Description

This issue is to track updating AGL to use a newer version of meta-flutter, along with the required changes to meta-agl-flutter to accomodate that and start on integrating support for Toyota's workspace tooling.

Environment

None

Activity

Show:

Walt Miner 
June 15, 2023 at 6:52 PM

Close for Pike M1

Scott Murray 
June 9, 2023 at 7:52 PM

I believe the outstanding issues with respect to builds have been resolved, marking as fixed.  New issues can be opened for any further integration tweaks with respect to the workspace configuration tooling.

Joel Winarske 
June 6, 2023 at 9:53 PM

Scott Murray 
June 6, 2023 at 3:59 PM

So FLUTTER_APP_RUNTIME_MODES is not overridden, the issue is the check in flutter-app.bbclass:

if [[ "${FLUTTER_APP_RUNTIME_MODES}" != *"$FLUTTER_RUNTIME_MODE"* ]]; then

which uses a bashism and hence does not work in some environments, here in log.do_compile I see:

... NOTE: [debug] flutter build bundle -v: Starting /ws2/scottm/dev/agl/agl-repo.flutter/build-qemux86-64/tmp/work/corei7-64-agl-linux/flutter-homescreen/git-r0/temp/run.do_compile.3558940: 157: [[: not found /ws2/scottm/dev/agl/agl-repo.flutter/build-qemux86-64/tmp/work/corei7-64-agl-linux/flutter-homescreen/git-r0/temp/run.do_compile.3558940: 166: [: missing ] NOTE: flutter build bundle -v ...

Changing the test to:

if ! echo "${FLUTTER_APP_RUNTIME_MODES}" | grep -qw "$FLUTTER_RUNTIME_MODE"; then

gets things working.  I can open a pull request on github for that if you'd like.

Joel Winarske 
June 5, 2023 at 10:10 PM

Profile is for an advanced user, and a corner case.  Used for narrowing down performance issues.

Details

Assignee

Reporter

Fix versions

Labels

Affects versions

Priority

Created June 1, 2023 at 10:59 PM
Updated June 15, 2023 at 6:52 PM
Resolved June 9, 2023 at 7:52 PM

Flag notifications