From 53e0afeed92650f1a6634b81093d425580bc2788 Mon Sep 17 00:00:00 2001 From: liuhaikang Date: Thu, 20 Feb 2025 17:06:06 +0800 Subject: [PATCH] =?UTF-8?q?ohos=5Fminizip:=E4=BF=AE=E6=94=B9=E7=BC=96?= =?UTF-8?q?=E8=AF=91=E5=91=8A=E8=AD=A6=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: liuhaikang --- .../entry/src/main/ets/entryability/EntryAbility.ets | 2 +- ohos_minizip/entry/src/main/module.json5 | 5 ++--- ohos_minizip/entry/src/ohosTest/module.json5 | 5 ++--- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/ohos_minizip/entry/src/main/ets/entryability/EntryAbility.ets b/ohos_minizip/entry/src/main/ets/entryability/EntryAbility.ets index 823b8752..83f36c9f 100644 --- a/ohos_minizip/entry/src/main/ets/entryability/EntryAbility.ets +++ b/ohos_minizip/entry/src/main/ets/entryability/EntryAbility.ets @@ -40,7 +40,7 @@ export default class EntryAbility extends UIAbility { }); let fileDir: string = this.context.filesDir - this.context.resourceManager.getRawFile("test.zip", (error, value) => { + this.context.resourceManager.getRawFileContent("test.zip", (error, value) => { if (error != null) { return; } diff --git a/ohos_minizip/entry/src/main/module.json5 b/ohos_minizip/entry/src/main/module.json5 index 6c07d9d8..f2ff2c7f 100644 --- a/ohos_minizip/entry/src/main/module.json5 +++ b/ohos_minizip/entry/src/main/module.json5 @@ -5,9 +5,8 @@ "description": "$string:module_desc", "mainElement": "EntryAbility", "deviceTypes": [ - "phone", - "tablet", - "2in1" + "default", + "tablet" ], "deliveryWithInstall": true, "installationFree": false, diff --git a/ohos_minizip/entry/src/ohosTest/module.json5 b/ohos_minizip/entry/src/ohosTest/module.json5 index d0dc5d54..4fc97017 100644 --- a/ohos_minizip/entry/src/ohosTest/module.json5 +++ b/ohos_minizip/entry/src/ohosTest/module.json5 @@ -5,9 +5,8 @@ "description": "$string:module_test_desc", "mainElement": "TestAbility", "deviceTypes": [ - "phone", - "tablet", - "2in1" + "default", + "tablet" ], "deliveryWithInstall": true, "installationFree": false, -- Gitee