From de1dccae31b3c7c62f0e19102b7223d747f413ed Mon Sep 17 00:00:00 2001 From: Joel Winarske Date: Wed, 31 May 2023 18:37:12 -0700 Subject: Flutter bbclass refactor -Removes use of flutter bbclass runtime modes Installed modes are determined by flutter-engine package config flags. Default modes are debug, profile, and release. -Single json file based on runtime=release. If additional parameters are needed this happens as part of workspace automation. Scott Murray: - update packagegroup-agl-demo-platform-flutter Bug-AGL: SPEC-4819 Change-Id: I58fc1b30ea3367ec5f47f52b60951cf0be31dcbc Signed-off-by: Joel Winarske Signed-off-by: Scott Murray --- .../files/flutter_cluster_dashboard_on_bg-debug.json | 17 ----------------- .../files/flutter_cluster_dashboard_on_bg-profile.json | 18 ------------------ .../files/flutter_cluster_dashboard_on_bg-release.json | 11 ----------- .../files/flutter_cluster_dashboard_on_bg.json | 11 +++++++++++ .../flutter-cluster-dashboard_git.bb | 8 ++------ .../files/flutter-homescreen-debug.json | 11 ----------- .../files/flutter-homescreen-profile.json | 11 ----------- .../files/flutter-homescreen-release.json | 10 ---------- .../flutter-homescreen/files/flutter-homescreen.json | 10 ++++++++++ .../flutter-homescreen/flutter-homescreen_git.bb | 8 ++------ .../images/agl-cluster-demo-platform-flutter.bb | 2 +- .../packagegroup-agl-demo-platform-flutter.bb | 10 ++++------ 12 files changed, 30 insertions(+), 97 deletions(-) delete mode 100644 recipes-demo/flutter-cluster-dashboard/files/flutter_cluster_dashboard_on_bg-debug.json delete mode 100644 recipes-demo/flutter-cluster-dashboard/files/flutter_cluster_dashboard_on_bg-profile.json delete mode 100644 recipes-demo/flutter-cluster-dashboard/files/flutter_cluster_dashboard_on_bg-release.json create mode 100644 recipes-demo/flutter-cluster-dashboard/files/flutter_cluster_dashboard_on_bg.json delete mode 100644 recipes-demo/flutter-homescreen/files/flutter-homescreen-debug.json delete mode 100644 recipes-demo/flutter-homescreen/files/flutter-homescreen-profile.json delete mode 100644 recipes-demo/flutter-homescreen/files/flutter-homescreen-release.json create mode 100644 recipes-demo/flutter-homescreen/files/flutter-homescreen.json diff --git a/recipes-demo/flutter-cluster-dashboard/files/flutter_cluster_dashboard_on_bg-debug.json b/recipes-demo/flutter-cluster-dashboard/files/flutter_cluster_dashboard_on_bg-debug.json deleted file mode 100644 index 3d92b45f6..000000000 --- a/recipes-demo/flutter-cluster-dashboard/files/flutter_cluster_dashboard_on_bg-debug.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "view": [ - { - "window_type": "BG", - "bundle_path": "/usr/share/flutter/flutter_cluster_dashboard", - "vm_args": [ - "--observatory-host", - "0.0.0.0", - "--observatory-port", - "1234" - ], - "width": 1920, - "height": 1080, - "fullscreen": true - } - ] -} \ No newline at end of file diff --git a/recipes-demo/flutter-cluster-dashboard/files/flutter_cluster_dashboard_on_bg-profile.json b/recipes-demo/flutter-cluster-dashboard/files/flutter_cluster_dashboard_on_bg-profile.json deleted file mode 100644 index aca303fb1..000000000 --- a/recipes-demo/flutter-cluster-dashboard/files/flutter_cluster_dashboard_on_bg-profile.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "view": [ - { - "window_type": "BG", - "bundle_path": "/usr/share/flutter/flutter_cluster_dashboard", - "vm_args": [ - "--observatory-host", - "0.0.0.0", - "--observatory-port", - "1234", - "--start-paused" - ], - "width": 1920, - "height": 1080, - "fullscreen": true - } - ] -} \ No newline at end of file diff --git a/recipes-demo/flutter-cluster-dashboard/files/flutter_cluster_dashboard_on_bg-release.json b/recipes-demo/flutter-cluster-dashboard/files/flutter_cluster_dashboard_on_bg-release.json deleted file mode 100644 index eb75dc4f9..000000000 --- a/recipes-demo/flutter-cluster-dashboard/files/flutter_cluster_dashboard_on_bg-release.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "view": [ - { - "window_type": "BG", - "bundle_path": "/usr/share/flutter/flutter_cluster_dashboard", - "width": 1920, - "height": 1080, - "fullscreen": true - } - ] -} \ No newline at end of file diff --git a/recipes-demo/flutter-cluster-dashboard/files/flutter_cluster_dashboard_on_bg.json b/recipes-demo/flutter-cluster-dashboard/files/flutter_cluster_dashboard_on_bg.json new file mode 100644 index 000000000..4bd7429a3 --- /dev/null +++ b/recipes-demo/flutter-cluster-dashboard/files/flutter_cluster_dashboard_on_bg.json @@ -0,0 +1,11 @@ +{ + "view": [ + { + "window_type": "BG", + "bundle_path": "/usr/share/flutter/flutter_cluster_dashboard/3.3.7/release", + "width": 1920, + "height": 1080, + "fullscreen": true + } + ] +} diff --git a/recipes-demo/flutter-cluster-dashboard/flutter-cluster-dashboard_git.bb b/recipes-demo/flutter-cluster-dashboard/flutter-cluster-dashboard_git.bb index a1dc29f6d..2effcfedc 100644 --- a/recipes-demo/flutter-cluster-dashboard/flutter-cluster-dashboard_git.bb +++ b/recipes-demo/flutter-cluster-dashboard/flutter-cluster-dashboard_git.bb @@ -10,9 +10,7 @@ LIC_FILES_CHKSUM = "file://LICENSE.md;md5=0c52b0e4b5f0dbf57ea7d44bebb2e29d" SRC_URI = "git://gerrit.automotivelinux.org/gerrit/apps/flutter-instrument-cluster;protocol=https;branch=${AGL_BRANCH} \ file://flutter-cluster-dashboard.service \ - file://flutter_cluster_dashboard_on_bg-debug.json \ - file://flutter_cluster_dashboard_on_bg-profile.json \ - file://flutter_cluster_dashboard_on_bg-release.json \ + file://flutter_cluster_dashboard_on_bg.json \ file://flutter-cluster-dashboard.yaml \ file://flutter-cluster-dashboard.yaml.demo \ " @@ -32,9 +30,7 @@ inherit flutter-app update-alternatives CLUSTER_DEMO_VISS_HOSTNAME ??= "192.168.10.2" -APP_CONFIG = "flutter_cluster_dashboard_on_bg-release.json" -APP_CONFIG:class-runtimedebug = "flutter_cluster_dashboard_on_bg-debug.json" -APP_CONFIG:class-runtimeprofile = "flutter_cluster_dashboard_on_bg-profile.json" +APP_CONFIG = "flutter_cluster_dashboard_on_bg.json" do_install:append() { install -D -m 0644 ${WORKDIR}/flutter-cluster-dashboard.service ${D}${systemd_user_unitdir}/flutter-cluster-dashboard.service diff --git a/recipes-demo/flutter-homescreen/files/flutter-homescreen-debug.json b/recipes-demo/flutter-homescreen/files/flutter-homescreen-debug.json deleted file mode 100644 index 7741e3aca..000000000 --- a/recipes-demo/flutter-homescreen/files/flutter-homescreen-debug.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "view" : [ { - "window_type" : "BG", - "bundle_path" : "/usr/share/flutter/flutter_homescreen", - "vm_args":["--observatory-host", "0.0.0.0", "--observatory-port", "1234"], - "width" : 1920, - "height": 1080, - "fullscreen": true - } - ] -} diff --git a/recipes-demo/flutter-homescreen/files/flutter-homescreen-profile.json b/recipes-demo/flutter-homescreen/files/flutter-homescreen-profile.json deleted file mode 100644 index 128800e45..000000000 --- a/recipes-demo/flutter-homescreen/files/flutter-homescreen-profile.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "view" : [ { - "window_type" : "BG", - "bundle_path" : "/usr/share/flutter/flutter_homescreen", - "vm_args":["--observatory-host", "0.0.0.0", "--observatory-port", "1234", "--start-paused"], - "width" : 1920, - "height": 1080, - "fullscreen": true - } - ] -} diff --git a/recipes-demo/flutter-homescreen/files/flutter-homescreen-release.json b/recipes-demo/flutter-homescreen/files/flutter-homescreen-release.json deleted file mode 100644 index 544a8e55c..000000000 --- a/recipes-demo/flutter-homescreen/files/flutter-homescreen-release.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "view" : [ { - "window_type" : "BG", - "bundle_path" : "/usr/share/flutter/flutter_homescreen", - "width" : 1920, - "height": 1080, - "fullscreen": true - } - ] -} diff --git a/recipes-demo/flutter-homescreen/files/flutter-homescreen.json b/recipes-demo/flutter-homescreen/files/flutter-homescreen.json new file mode 100644 index 000000000..29308d3ea --- /dev/null +++ b/recipes-demo/flutter-homescreen/files/flutter-homescreen.json @@ -0,0 +1,10 @@ +{ + "view" : [ { + "window_type" : "BG", + "bundle_path" : "/usr/share/flutter/flutter_homescreen/3.3.7/release", + "width" : 1920, + "height": 1080, + "fullscreen": true + } + ] +} diff --git a/recipes-demo/flutter-homescreen/flutter-homescreen_git.bb b/recipes-demo/flutter-homescreen/flutter-homescreen_git.bb index e97bded1c..c4142774e 100644 --- a/recipes-demo/flutter-homescreen/flutter-homescreen_git.bb +++ b/recipes-demo/flutter-homescreen/flutter-homescreen_git.bb @@ -7,9 +7,7 @@ LICENSE = "Apache-2.0" LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327" SRC_URI = "git://gerrit.automotivelinux.org/gerrit/apps/flutter-homescreen;protocol=https;branch=${AGL_BRANCH} \ - file://flutter-homescreen-debug.json \ - file://flutter-homescreen-profile.json \ - file://flutter-homescreen-release.json \ + file://flutter-homescreen.json \ file://flutter-homescreen.service \ file://homescreen_config.yaml \ " @@ -24,9 +22,7 @@ FLUTTER_BUILD_ARGS = "bundle -v" inherit flutter-app -APP_CONFIG = "flutter-homescreen-release.json" -APP_CONFIG:class-runtimedebug = "flutter-homescreen-debug.json" -APP_CONFIG:class-runtimeprofile = "flutter-homescreen-profile.json" +APP_CONFIG = "flutter-homescreen.json" do_install:append() { install -D -m 0644 ${WORKDIR}/flutter-homescreen.service ${D}${systemd_user_unitdir}/flutter-homescreen.service diff --git a/recipes-platform/images/agl-cluster-demo-platform-flutter.bb b/recipes-platform/images/agl-cluster-demo-platform-flutter.bb index 1467c3157..bf3820aa9 100644 --- a/recipes-platform/images/agl-cluster-demo-platform-flutter.bb +++ b/recipes-platform/images/agl-cluster-demo-platform-flutter.bb @@ -39,7 +39,7 @@ IMAGE_INSTALL:append = "\ flutter-cluster-dashboard \ ${@bb.utils.contains("AGL_FEATURES", "agl-demo-preload", "flutter-cluster-dashboard-conf-demo", "flutter-cluster-dashboard-conf", d)} \ cluster-demo-config-flutter \ - flutter-auto-runtimerelease \ + flutter-auto \ " CLANGSDK = "1" diff --git a/recipes-platform/packagegroups/packagegroup-agl-demo-platform-flutter.bb b/recipes-platform/packagegroups/packagegroup-agl-demo-platform-flutter.bb index fafae298b..71c2d17cf 100644 --- a/recipes-platform/packagegroups/packagegroup-agl-demo-platform-flutter.bb +++ b/recipes-platform/packagegroups/packagegroup-agl-demo-platform-flutter.bb @@ -16,11 +16,9 @@ RDEPENDS:${PN} += "\ packagegroup-agl-demo \ " -AGL_FLUTTER_RUNTIME ?= "runtimerelease" - AGL_APPS = " \ - flutter-dashboard-${AGL_FLUTTER_RUNTIME} \ - flutter-hvac-${AGL_FLUTTER_RUNTIME} \ + flutter-dashboard \ + flutter-hvac \ ondemandnavi \ settings \ mediaplayer \ @@ -31,8 +29,8 @@ AGL_APPS = " \ RDEPENDS:${PN}:append = " \ agl-compositor \ - flutter-auto-${AGL_FLUTTER_RUNTIME} \ - flutter-homescreen-${AGL_FLUTTER_RUNTIME} \ + flutter-auto \ + flutter-homescreen \ qtquickcontrols2-agl \ qtquickcontrols2-agl-style \ ${@bb.utils.contains('DISTRO_FEATURES', 'agl-devel', 'unzip mpc' , '', d)} \ -- cgit 1.2.3-korg