From 1741abab5fc559cc2fc6489d4affd2d736ad554f Mon Sep 17 00:00:00 2001 From: JackLee <809262979@qq.com> Date: Tue, 21 Apr 2026 12:30:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=87=E7=BA=A7=E9=B8=BF=E8=92=99API?= =?UTF-8?q?=E5=88=B023=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build-profile.json5 | 10 +++++----- entry/src/main/ets/subwinability/SubWinAbility.ets | 1 + entry/src/main/module.json5 | 7 +++++++ hvigor/hvigor-config.json5 | 4 ++-- oh-package.json5 | 2 +- 5 files changed, 16 insertions(+), 8 deletions(-) diff --git a/build-profile.json5 b/build-profile.json5 index ddc0f8cf..6eeae427 100644 --- a/build-profile.json5 +++ b/build-profile.json5 @@ -7,11 +7,11 @@ "material": { "certpath": "C:\\Users\\JackLee\\.ohos\\config\\default_OpenCAX_IBQbNZG6W5V0zTmQxRPojupy-F1gTlaQ6msiMPu4JRM=.cer", "keyAlias": "debugKey", - "keyPassword": "0000001BD635371F28E25E69BF1D7E55AB1BFBCCA66E5359C1DD49F7D565DDB1312AE20C7481F7318E1EAB", + "keyPassword": "0000001B2CD38FF95C9F1C08458296E67652F4DBA4D84D03D4468A904DEDA5C7AA6ADF19C56C0E83DAFDFE", "profile": "C:\\Users\\JackLee\\.ohos\\config\\default_OpenCAX_IBQbNZG6W5V0zTmQxRPojupy-F1gTlaQ6msiMPu4JRM=.p7b", "signAlg": "SHA256withECDSA", "storeFile": "C:\\Users\\JackLee\\.ohos\\config\\default_OpenCAX_IBQbNZG6W5V0zTmQxRPojupy-F1gTlaQ6msiMPu4JRM=.p12", - "storePassword": "0000001B3048C3F197421E5E1DEDC267DB510037100BA2AF0FE4444CBA15D3CEC9D10CCF6B88E21FAD8104" + "storePassword": "0000001B34A8AD5BD79AC1BDC8894626A599B5CC3A217A7F911B96A0FDBF8C7411D838809EA9B939B34EEE" } } ], @@ -19,8 +19,8 @@ { "name": "default", "signingConfig": "default", - "targetSdkVersion": "6.0.2(22)", - "compatibleSdkVersion": "6.0.2(22)", + "targetSdkVersion": "6.1.0(23)", + "compatibleSdkVersion": "6.1.0(23)", "runtimeOS": "HarmonyOS", "buildOption": { "nativeCompiler": "BiSheng", @@ -33,7 +33,7 @@ ], "buildModeSet": [ { - "name": "debug", + "name": "debug" }, { "name": "release" diff --git a/entry/src/main/ets/subwinability/SubWinAbility.ets b/entry/src/main/ets/subwinability/SubWinAbility.ets index db2c5116..90b923f7 100644 --- a/entry/src/main/ets/subwinability/SubWinAbility.ets +++ b/entry/src/main/ets/subwinability/SubWinAbility.ets @@ -58,6 +58,7 @@ export default class SubWinAbility extends UIAbility { } async onWindowStageCreate(windowStage: window.WindowStage): Promise { + windowStage.removeStartingWindow(); this.subWinStage=windowStage; this.subWin = await windowStage.getMainWindow(); let ctx =this.context.getApplicationContext() diff --git a/entry/src/main/module.json5 b/entry/src/main/module.json5 index 0aa00b79..ccc8a432 100644 --- a/entry/src/main/module.json5 +++ b/entry/src/main/module.json5 @@ -53,6 +53,13 @@ "startWindowBackground": "$color:start_window_background", "exported": true, "launchType":"standard", + "metadata": + [ + { + "name":"enable.remove.starting.window", + "value":"true" + } + ], "skills": [ { "entities": [ diff --git a/hvigor/hvigor-config.json5 b/hvigor/hvigor-config.json5 index fac94d0d..2934cd65 100644 --- a/hvigor/hvigor-config.json5 +++ b/hvigor/hvigor-config.json5 @@ -1,5 +1,5 @@ { - "modelVersion": "6.0.2", + "modelVersion": "6.1.0", "dependencies": { }, "execution": { @@ -20,4 +20,4 @@ // "maxOldSpaceSize": 8192 /* Enable nodeOptions maxOldSpaceSize compilation. Unit M. Used for the daemon process. Default: 8192*/ // "exposeGC": true /* Enable to trigger garbage collection explicitly. Default: true*/ } -} +} \ No newline at end of file diff --git a/oh-package.json5 b/oh-package.json5 index cec72696..f7f56042 100644 --- a/oh-package.json5 +++ b/oh-package.json5 @@ -1,5 +1,5 @@ { - "modelVersion": "6.0.2", + "modelVersion": "6.1.0", "description": "Please describe the basic information.", "dependencies": { "@ibestservices/ibest-ui-v2": "^1.1.2"