From cc6fb2f12fb8a021ea34d7a667dbfd7a4000f888 Mon Sep 17 00:00:00 2001
From: Philippe Coval <philippe.coval.ext@huawei.com>
Date: Thu, 30 Jun 2022 10:37:41 +0200
Subject: [PATCH] r-g/flutter-apps: Fix lib path in flutter-gallery

Fix homescreen in release mode

Relate-to: https://gitlab.eclipse.org/pcoval/meta-oniro-blueprint-flutter/-/issues/3
Relate-to: https://booting.oniroproject.org/rzr/meta-oniro-blueprint-flutter/-/issues/3#note_24362
Relate-to: https://github.com/meta-flutter/meta-flutter/pull/123
Signed-off-by: Philippe Coval <philippe.coval.ext@huawei.com>
---
 .../flutter-gallery-release_git.bbappend          | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100644 recipes-graphics/flutter-apps/flutter-gallery-release_git.bbappend

diff --git a/recipes-graphics/flutter-apps/flutter-gallery-release_git.bbappend b/recipes-graphics/flutter-apps/flutter-gallery-release_git.bbappend
new file mode 100644
index 0000000..b0ed816
--- /dev/null
+++ b/recipes-graphics/flutter-apps/flutter-gallery-release_git.bbappend
@@ -0,0 +1,15 @@
+# SPDX-FileCopyrightText: Huawei Inc.
+#
+# SPDX-License-Identifier: Apache-2.0
+
+
+INSANE_SKIP:${PN} += " dev-so"
+
+#FLUTTER_APPLICATION_INSTALL_PREFIX ??= ""
+#PUBSPEC_APPNAME ??= "gallery"
+#FLUTTER_INSTALL_DIR = "${datadir}${FLUTTER_APPLICATION_INSTALL_PREFIX}/${PUBSPEC_APPNAME}"
+
+do_install:append() {
+        install -d ${D}${FLUTTER_INSTALL_DIR}/flutter_assets/
+	ln -s ../lib/libapp.so ${D}${FLUTTER_INSTALL_DIR}/flutter_assets/
+}
-- 
GitLab