diff options
author | Hritik Chouhan <hritikc3961@gmail.com> | 2022-10-05 21:18:43 +0200 |
---|---|---|
committer | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2022-10-08 21:50:47 +0000 |
commit | 0b9ee96eac781f044fef295ea34c7630068c3d45 (patch) | |
tree | 1a883f5e2b287d6b4d0981b7ab4716eaeb526b46 /recipes-demo/flutter-nav/flutter-nav_git.bb | |
parent | f9200e31a017719f58e2cc95b6f54fa1e18d7654 (diff) |
Change SRC_URI and SRCREV for ivi-demo-flutter-apps
- Change SRC_URI to use the app repository on gerrit.
- Renamed recipes file name.
Bug-AGL: SPEC-4560
Change-Id: I2887e568e6a466836d68866ace0766c7ed7949d9
Signed-off-by: Hritik Chouhan <hritikc3961@gmail.com>
Diffstat (limited to 'recipes-demo/flutter-nav/flutter-nav_git.bb')
-rw-r--r-- | recipes-demo/flutter-nav/flutter-nav_git.bb | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/recipes-demo/flutter-nav/flutter-nav_git.bb b/recipes-demo/flutter-nav/flutter-nav_git.bb new file mode 100644 index 000000000..0e8b8ac77 --- /dev/null +++ b/recipes-demo/flutter-nav/flutter-nav_git.bb @@ -0,0 +1,52 @@ +SUMMARY = "Flutter Navigation app" +DESCRIPTION = "A Flutter based IVI Dashboard Application for automotive grade Linux." + +HOMEPAGE = "https://gerrit.automotivelinux.org/gerrit/apps/flutter-navigation" + +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://gerrit.automotivelinux.org/gerrit/apps/flutter-navigation;protocol=https;branch=${AGL_BRANCH} \ + file://nav_config.yaml \ + " +SRCREV = "53164c0441db946b4293f483a28b524ecdc91e30" +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/" + |