From e513dbdd19e7aceea79efa3b781b728509067a66 Mon Sep 17 00:00:00 2001 From: wangxinbo Date: Tue, 6 May 2025 18:32:36 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix=EF=BC=9A=E4=BF=AE=E6=94=B9=E5=BA=9F?= =?UTF-8?q?=E5=BC=83api?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entry/src/main/ets/pages/Index.ets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entry/src/main/ets/pages/Index.ets b/entry/src/main/ets/pages/Index.ets index 2d32df4..b3ccd18 100644 --- a/entry/src/main/ets/pages/Index.ets +++ b/entry/src/main/ets/pages/Index.ets @@ -55,7 +55,7 @@ struct Index { } invokeCamera(callback: (uri: string) => void) { - const context = getContext(this) as common.UIAbilityContext; + const context = this.getUIContext().getHostContext() as common.UIAbilityContext; const want: Want = { action: ACTION_IMAGE_CAPTURE, parameters: { -- Gitee From 3849a628612b4fbfdde4081caa8fa8fbd72f69fb Mon Sep 17 00:00:00 2001 From: wangxinbo Date: Wed, 7 May 2025 16:54:17 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix=EF=BC=9Aapi=E5=8D=87=E7=BA=A7=E8=87=B31?= =?UTF-8?q?6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build-profile.json5 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-profile.json5 b/build-profile.json5 index c033ce4..e8de1a3 100644 --- a/build-profile.json5 +++ b/build-profile.json5 @@ -5,7 +5,7 @@ { "name": "default", "signingConfig": "default", - "compatibleSdkVersion": "5.0.0(12)", + "compatibleSdkVersion": "5.0.4(16)", "runtimeOS": "HarmonyOS", } ], -- Gitee