Enable persistent storage API in Flutter IVI demo 18/30318/2 sandbox/indivara.qt.io/qt6
authorScott Murray <scott.murray@konsulko.com>
Thu, 26 Sep 2024 17:13:42 +0000 (13:13 -0400)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Mon, 30 Sep 2024 14:43:28 +0000 (14:43 +0000)
Changes:
- Bump flutter-ics-homescreen SRCREV to pick up the storage API
  changes.
- Add a dependency on agl-persistent-storage-api to the homescreen
  systemd unit to ensure it will be started beforehand.
- Add an environment file to be pulled in by the homescreen systemd
  unit that sets SPDLOG_LEVEL to enable debug output with latest
  flutter-auto.  This should help with debugging any future issues.
- Add agl-persistent-storage-api to the base Flutter IVI image.
  This gets it into the final demo image, and keeps the base Flutter
  IVI image (agl-image-ivi-flutter) usable for potentially working
  on the homescreen with the workspace-automation tooling.

Bug-AGL: SPEC-5250

Change-Id: Icd2958a259f8eada8db0bfb99b47ba7a64094fa5
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl-demo/+/30318
Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
ci-image-boot-test: Jenkins Job builder account
Tested-by: Jenkins Job builder account
ci-image-build: Jenkins Job builder account

recipes-demo/flutter-ics-homescreen/files/flutter-ics-homescreen.env [new file with mode: 0644]
recipes-demo/flutter-ics-homescreen/files/flutter-ics-homescreen.service
recipes-demo/flutter-ics-homescreen/flutter-ics-homescreen_git.bb
recipes-platform/images/agl-ivi-image-flutter.bb

diff --git a/recipes-demo/flutter-ics-homescreen/files/flutter-ics-homescreen.env b/recipes-demo/flutter-ics-homescreen/files/flutter-ics-homescreen.env
new file mode 100644 (file)
index 0000000..c85b7ed
--- /dev/null
@@ -0,0 +1 @@
+SPDLOG_LEVEL=debug
index 421f87c..be1acf5 100644 (file)
@@ -1,6 +1,6 @@
 [Unit]
-Requires=agl-compositor.service applaunchd.service
-After=agl-compositor.service applaunchd.service
+Requires=agl-compositor.service applaunchd.service agl-persistent-storage-api.service
+After=agl-compositor.service applaunchd.service agl-persistent-storage-api.service
 
 [Service]
 User=agl-driver
index 0fa9c25..5d78336 100644 (file)
@@ -9,6 +9,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
 SRC_URI = "git://gerrit.automotivelinux.org/gerrit/apps/flutter-ics-homescreen;protocol=https;branch=${AGL_BRANCH} \
   file://ics-homescreen.toml \
   file://flutter-ics-homescreen.service \
+  file://flutter-ics-homescreen.env \
   file://ics-homescreen.yaml \
   file://ics-homescreen.yaml.gateway-demo \
   file://ics-homescreen.yaml.kvm-demo \
@@ -17,7 +18,7 @@ SRC_URI = "git://gerrit.automotivelinux.org/gerrit/apps/flutter-ics-homescreen;p
   file://radio-presets.yaml \
   file://kvm.conf \
 "
-SRCREV = "d3ea8d7fa4518c258fca3c825ee895487fcaa8ec"
+SRCREV = "bdc33c218e3e62e5a3121d3ab0de6e26ef7ad3eb"
 
 S = "${WORKDIR}/git"
 
@@ -39,6 +40,8 @@ APP_AOT_EXTRA:append = " ${DISABLE_BG_ANIMATION}"
 do_install:append() {
     install -D -m 0644 ${WORKDIR}/${BPN}.service ${D}${systemd_system_unitdir}/${BPN}.service
 
+    install -D -m 0644 ${WORKDIR}/${BPN}.env ${D}${sysconfdir}/default/${BPN}
+
     install -D -m 0644 ${WORKDIR}/kvm.conf ${D}${systemd_system_unitdir}/${BPN}.service.d/kvm.conf
 
     # VIS authorization token file for KUKSA.val should ideally not
@@ -56,7 +59,7 @@ do_install:append() {
 
 ALTERNATIVE_LINK_NAME[ics-homescreen.yaml] = "${sysconfdir}/xdg/AGL/ics-homescreen.yaml"
 
-FILES:${PN} += "${datadir} ${sysconfdir}/xdg/AGL"
+FILES:${PN} += "${datadir} ${sysconfdir}/xdg/AGL ${sysconfdir}/default"
 
 RDEPENDS:${PN} += " \
     flutter-auto \
index 0c227f0..c6d00c6 100644 (file)
@@ -4,5 +4,6 @@ SUMMARY = "AGL IVI demo base Flutter image"
 
 IMAGE_INSTALL += " \
     packagegroup-agl-demo-platform-flutter \
+    agl-persistent-storage-api \
     weston-terminal-conf \
 "