From 2948cf0b4a16b130dd2fe81589e9fe878d64a42f Mon Sep 17 00:00:00 2001 From: wuzhiming Date: Fri, 15 Mar 2024 18:17:21 +0800 Subject: [PATCH 1/2] =?UTF-8?q?chore:=20path=5Fprovider=20=E9=80=82?= =?UTF-8?q?=E9=85=8D=200313=20flutter?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: wuzhiming --- .../ohos/entry/src/main/ets/entryability/EntryAbility.ets | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/packages/path_provider/path_provider_ohos/example/ohos/entry/src/main/ets/entryability/EntryAbility.ets b/packages/path_provider/path_provider_ohos/example/ohos/entry/src/main/ets/entryability/EntryAbility.ets index e4b95b437..a00049282 100644 --- a/packages/path_provider/path_provider_ohos/example/ohos/entry/src/main/ets/entryability/EntryAbility.ets +++ b/packages/path_provider/path_provider_ohos/example/ohos/entry/src/main/ets/entryability/EntryAbility.ets @@ -14,17 +14,12 @@ */ import { FlutterAbility } from '@ohos/flutter_ohos' -import { FlutterPlugin } from '@ohos/flutter_ohos/src/main/ets/embedding/engine/plugins/FlutterPlugin'; import { GeneratedPluginRegistrant } from '../plugins/GeneratedPluginRegistrant'; -import List from '@ohos.util.List'; import FlutterEngine from '@ohos/flutter_ohos/src/main/ets/embedding/engine/FlutterEngine'; export default class EntryAbility extends FlutterAbility { configureFlutterEngine(flutterEngine: FlutterEngine) { super.configureFlutterEngine(flutterEngine) - let plugins = GeneratedPluginRegistrant.getPlugins() as List; - plugins.forEach((plugin) => { - this.addPlugin(plugin); - }) + GeneratedPluginRegistrant.registerWith(flutterEngine) } } -- Gitee From 89346d229e68da8e6a1b28966ab732d01d9162e6 Mon Sep 17 00:00:00 2001 From: wuzhiming Date: Fri, 15 Mar 2024 21:07:47 +0800 Subject: [PATCH 2/2] =?UTF-8?q?chore:=20=E5=8D=87=E7=BA=A7=20path=5Fprovid?= =?UTF-8?q?er=20compileSdkVersion?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: wuzhiming --- .../path_provider/path_provider_ohos/ohos/build-profile.json5 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/path_provider/path_provider_ohos/ohos/build-profile.json5 b/packages/path_provider/path_provider_ohos/ohos/build-profile.json5 index a1151c7be..6858a89f9 100644 --- a/packages/path_provider/path_provider_ohos/ohos/build-profile.json5 +++ b/packages/path_provider/path_provider_ohos/ohos/build-profile.json5 @@ -19,8 +19,8 @@ { "name": "default", "signingConfig": "default", - "compileSdkVersion": "4.0.0(10)", - "compatibleSdkVersion": "4.0.0(10)", + "compileSdkVersion": "4.1.0(11)", + "compatibleSdkVersion": "4.1.0(11)", "runtimeOS": "HarmonyOS", } ], -- Gitee