diff options
author | Hritik Chouhan <hritikc3961@gmail.com> | 2022-09-10 20:35:16 +0200 |
---|---|---|
committer | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2022-09-22 10:35:44 +0000 |
commit | e252feedd4b3025ecdb71e2d3846e6e632b3e844 (patch) | |
tree | 8ce9d5e976bab2e0d53b522534468b64796f019c /recipes-demo/flutter-nav/flutter-app-nav_git.bb | |
parent | 8bab3bb3dd1d436bff0886b04b1df1261a0ae57c (diff) |
Add recipes for flutter apps
- This add the flutter dashboard,hvac,navigation,
mediaplayer apps in the AGL.
- Pin all the flutter apps in IVI flutter demo homescreen.
- Add config file for each app for kuksaAuthToken and mapboxAccessToken.
Bug-AGL: SPEC-4560
Change-Id: If5f58e6ccc402f56fef66cc29d3959b834c4e27c
Signed-off-by: Hritik Chouhan <hritikc3961@gmail.com>
Diffstat (limited to 'recipes-demo/flutter-nav/flutter-app-nav_git.bb')
-rw-r--r-- | recipes-demo/flutter-nav/flutter-app-nav_git.bb | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/recipes-demo/flutter-nav/flutter-app-nav_git.bb b/recipes-demo/flutter-nav/flutter-app-nav_git.bb new file mode 100644 index 000000000..3bc2f4275 --- /dev/null +++ b/recipes-demo/flutter-nav/flutter-app-nav_git.bb @@ -0,0 +1,52 @@ +SUMMARY = "Flutter Navigation app" +DESCRIPTION = "A Flutter based IVI Dashboard Application for automotive grade Linux." + +HOMEPAGE = "https://github.com/hritik-chouhan/nav-app" + +BUGTRACKER = "https://github.com/hritik-chouhan/nav-app/issues" + +SECTION = "graphics" + +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://License.md;md5=f712ede8d4f845976061925d1416fc40" + + +SRC_URI = "git://github.com/hritik-chouhan/nav-app.git;protocol=https;branch=main \ + file://nav_config.yaml \ + " +SRCREV = "a6619ac0439f6dec728b9a3a094f1371ee00ce76" +S = "${WORKDIR}/git" + +MAPBOX_API_KEY ??= "YOU_NEED_TO_SET_IT_IN_LOCAL_CONF" + +inherit agl-app flutter-app + +# flutter-app +############# +PUBSPEC_APPNAME = "flutter_navigation" +FLUTTER_APPLICATION_INSTALL_PREFIX = "/flutter" +FLUTTER_BUILD_ARGS = "bundle -v" + +# agl-app +######### +AGL_APP_TEMPLATE = "agl-app-flutter" +AGL_APP_ID = "flutter_navigation" +AGL_APP_NAME = "Flutter Navigation" + +do_configure:prepend() { + if [ "${MAPBOX_API_KEY}" = "YOU_NEED_TO_SET_IT_IN_LOCAL_CONF" ]; then + bbwarn "WARNING: You should set mapbox API key to mapbox_API_KEY variable in local.conf." + fi +} + +do_install:append() { + install -d ${D}${sysconfdir}/xdg/AGL + install -m 0644 ${WORKDIR}/nav_config.yaml ${D}${sysconfdir}/xdg/AGL/ + + install -m 0755 -d ${D}${sysconfdir}/default/ + + echo 'MAPBOX_API_KEY:${MAPBOX_API_KEY}' >> ${D}${sysconfdir}/default/mapboxkey +} + +FILES:${PN} += "${sysconfdir}/xdg/AGL ${sysconfdir}/default/" + |