diff options
author | Aakash Solanki <tech2aks@gmail.com> | 2022-09-14 11:23:42 +0200 |
---|---|---|
committer | Aakash Solanki <tech2aks@gmail.com> | 2022-09-15 20:46:08 +0200 |
commit | 54198c1a074575366f2c81bf2140620212108a58 (patch) | |
tree | b5d89f504c09bde1bfd781be93c90e4615f94eea /recipes-demo/flutter-cluster-dashboard/flutter-cluster-dashboard_git.bb | |
parent | 8179bd7ee0c907ea2ee6e7c4fda7a0251fa6434f (diff) |
Add config file for flutter-cluster-dashboard
- Add 'flutter-cluster-dashboard.yaml' file, which contains
KUKSA.VAL auth token and few other paramenters.
- Set openrouteservice API Key in local.conf to the variable
`OPENROUTE_API_KEY`.
- Change SRCREV
Bug-AGL: SPEC-4508
Change-Id: I9a225013e18b65626b391258445ec0f6acf1a970
Signed-off-by: Aakash Solanki <tech2aks@gmail.com>
Diffstat (limited to 'recipes-demo/flutter-cluster-dashboard/flutter-cluster-dashboard_git.bb')
-rw-r--r-- | recipes-demo/flutter-cluster-dashboard/flutter-cluster-dashboard_git.bb | 19 |
1 files changed, 17 insertions, 2 deletions
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 4647f20ba..0c304ac77 100644 --- a/recipes-demo/flutter-cluster-dashboard/flutter-cluster-dashboard_git.bb +++ b/recipes-demo/flutter-cluster-dashboard/flutter-cluster-dashboard_git.bb @@ -13,10 +13,11 @@ SRC_URI = "git://github.com/aakash-s45/ic;protocol=https;branch=master \ 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.yaml \ " PV = "1.0+git${SRCPV}" -SRCREV = "798851a33bb614fb1e5473a8046e63cd9b9026f4" +SRCREV = "e7099bd763ba5612d0613b9ee43679cb2a9f7610" S = "${WORKDIR}/git" @@ -24,6 +25,8 @@ PUBSPEC_APPNAME = "flutter_cluster_dashboard" FLUTTER_APPLICATION_INSTALL_PREFIX = "/flutter" +OPENROUTE_API_KEY ??= "YOU_NEED_TO_SET_IT_IN_LOCAL_CONF" + inherit flutter-app APP_CONFIG = "flutter_cluster_dashboard_on_bg-release.json" @@ -31,13 +34,25 @@ APP_CONFIG:class-runtimedebug = "flutter_cluster_dashboard_on_bg-debug.json" APP_CONFIG:class-runtimeprofile = "flutter_cluster_dashboard_on_bg-profile.json" +do_configure:prepend() { + if [ "${OPENROUTE_API_KEY}" = "YOU_NEED_TO_SET_IT_IN_LOCAL_CONF" ]; then + bbwarn "WARNING: You should set openrouteservice API key to OPENROUTE_API_KEY variable in local.conf." + fi +} + do_install:append() { install -D -m 0644 ${WORKDIR}/flutter-cluster-dashboard.service ${D}${systemd_user_unitdir}/flutter-cluster-dashboard.service install -d ${D}${systemd_user_unitdir}/agl-session.target.wants ln -s ../flutter-cluster-dashboard.service ${D}${systemd_user_unitdir}/agl-session.target.wants/flutter-cluster-dashboard.service install -D -m 0644 ${WORKDIR}/${APP_CONFIG} ${D}${datadir}/flutter/default.json + + install -d ${D}${sysconfdir}/xdg/AGL + install -m 0644 ${WORKDIR}/flutter-cluster-dashboard.yaml ${D}${sysconfdir}/xdg/AGL/ + + install -m 0755 -d ${D}${sysconfdir}/default/ + echo 'OPENROUTE_API_KEY:${OPENROUTE_API_KEY}' >> ${D}${sysconfdir}/default/openroutekey } -FILES:${PN} += "${datadir} ${systemd_user_unitdir}" +FILES:${PN} += "${datadir} ${systemd_user_unitdir} ${sysconfdir}/xdg/AGL ${sysconfdir}/default/" |