From c814d7e6563cd682bfc1910b6391fdbc865e2044 Mon Sep 17 00:00:00 2001 From: xuchang Date: Sun, 19 Nov 2023 21:50:46 -0800 Subject: [PATCH] =?UTF-8?q?IssueNo:=20#I8HU2B=20=E8=A7=A3=E5=86=B3bug?= =?UTF-8?q?=EF=BC=9A=E5=88=9B=E5=BB=BAmodule=E6=97=B6=EF=BC=8CGeneratedPlu?= =?UTF-8?q?ginRegistrant.ets=E6=96=87=E4=BB=B6=E7=94=9F=E6=88=90=E8=B7=AF?= =?UTF-8?q?=E5=BE=84=E4=B8=8D=E5=9C=A8.ohos=20Sig:=20OpenHarmony-SIG/flutt?= =?UTF-8?q?er-flutter=20Feature=20or=20Bugfix:=20Bugfix=20Binary=20Source:?= =?UTF-8?q?=20No?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: xuchang --- packages/flutter_tools/lib/src/project.dart | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/flutter_tools/lib/src/project.dart b/packages/flutter_tools/lib/src/project.dart index d1b127d50b..0fbec68606 100644 --- a/packages/flutter_tools/lib/src/project.dart +++ b/packages/flutter_tools/lib/src/project.dart @@ -852,12 +852,10 @@ class OhosProject extends FlutterProjectPlatform { /// True if the parent Flutter project is a plugin. bool get isPlugin => parent.isPlugin; - Directory get hostAppRoot => parent.directory.childDirectory('ohos'); - /// The directory in the project that is managed by Flutter. As much as /// possible, files that are edited by Flutter tooling after initial project /// creation should live here. - Directory get managedDirectory => hostAppRoot.childDirectory('entry/src/main/ets/plugins'); + Directory get managedDirectory => ohosRoot.childDirectory('entry/src/main/ets/plugins'); /// 是否先编译.ohos/module下har,再运行hap bool get isRunWithModuleHar => -- Gitee