From 630c9c191c4ef208279c7b1c7f0f0164b0f6661f Mon Sep 17 00:00:00 2001 From: xiaoxiaowesley Date: Thu, 1 Feb 2024 20:04:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E7=A7=BB=E5=8A=A8flutter.so?= =?UTF-8?q?=E7=9A=84=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: xiaoxiaowesley --- packages/flutter_tools/lib/src/ohos/hvigor.dart | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/packages/flutter_tools/lib/src/ohos/hvigor.dart b/packages/flutter_tools/lib/src/ohos/hvigor.dart index fe56ea2f09..0a152279e8 100644 --- a/packages/flutter_tools/lib/src/ohos/hvigor.dart +++ b/packages/flutter_tools/lib/src/ohos/hvigor.dart @@ -535,8 +535,6 @@ void cleanAndCopyFlutterRuntime( // 优先级从高到底依次为: 1. engine产物目录; 2. 项目中的 har/har_product 目录; 3. flutter_flutter 中的模板目录 final String originHarPath = getOriginHarPath(ohosProject, ohosRootPath, suffix); - final String originEngineSoPath = - getOriginFlutterSoPath(ohosProject, ohosRootPath, suffix); String desHarPath = ''; if (ohosProject.isModule) { @@ -550,17 +548,6 @@ void cleanAndCopyFlutterRuntime( originHarFile.copySync(desHarPath); logger?.printStatus('originHarFile: $originHarFile'); - //copy ohos engine so - if (originEngineSoPath == null) { - throwToolExit("flutter engine runtime file 'libflutter.so' no found"); - } - logger?.printStatus('flutterEngineSoPath: $originEngineSoPath'); - - final String destEngineSoPath = getEngineSoPath(ohosRootPath, targetPlatform, ohosProject); - ensureParentExists(destEngineSoPath); - final File flutterEngineSoFile = globals.localFileSystem.file(originEngineSoPath); - flutterEngineSoFile.copySync(destEngineSoPath); - final String vmServiceSoDest = getVmServiceSoDest(ohosRootPath, targetPlatform, ohosProject); final File vmServiceSoDestFile = globals.localFileSystem.file(vmServiceSoDest); if (buildInfo.isProfile) { -- Gitee