From 1401b04d816e5fe3cfba4d7d1cd0cd9c0c30c6a9 Mon Sep 17 00:00:00 2001 From: lloyd <754415+llince@user.noreply.gitee.com> Date: Thu, 3 Apr 2025 16:54:33 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=9F=BA=E4=BA=8E=E5=AD=90=E7=AA=97?= =?UTF-8?q?=E5=8F=A3=E5=AE=9E=E7=8E=B0=E6=82=AC=E6=B5=AE=E7=AA=97=E3=80=91?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=BA=9F=E5=BC=83=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.en.md | 8 ++++---- README.md | 7 +++---- entry/obfuscation-rules.txt | 6 +++++- entry/src/main/ets/view/PipWindowComponent.ets | 2 +- 4 files changed, 13 insertions(+), 10 deletions(-) diff --git a/README.en.md b/README.en.md index 6012d2a..3941b3b 100644 --- a/README.en.md +++ b/README.en.md @@ -27,7 +27,7 @@ This sample shows how to use a subwindow to implement a floating window and use │ ├──pages │ │ ├──Index.ets // Home page │ │ ├──MiniWindowPage.ets // Page for showing or hiding the subwindow -││ │ ├──NavigationRedirectPage.ets // Page for redirection from the subwindow to the PiP window through the Navigation component +│ │ ├──NavigationRedirectPage.ets // Page for redirection from the subwindow to the PiP window through the Navigation component │ │ ├──ResizeWindowPage.ets // Page for resizing the subwindow │ │ ├──RouterRedirect.ets // Page for redirection from the subwindow to the home page through the router │ │ └──RouterRedirectPage.ets // Redirection back to the home page through the router @@ -58,8 +58,8 @@ N/A 1. The sample app is supported only on Huawei phones running the standard system. -2. The HarmonyOS version must be HarmonyOS NEXT Developer Beta1 or later. +2. The HarmonyOS version must be HarmonyOS 5.0.0 Release or later. -3. The DevEco Studio version must be DevEco Studio NEXT Developer Beta1 or later. +3. The DevEco Studio version must be DevEco Studio 5.0.0 Release or later. -4. The HarmonyOS SDK version must be HarmonyOS NEXT Developer Beta1 or later. +4. The HarmonyOS SDK version must be HarmonyOS 5.0.0 Release SDK or later. diff --git a/README.md b/README.md index 5906a28..5488ffe 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,6 @@ │ ├──AVPlayerDemo.ets // 视频播放控制类 │ └──WindowPosition.ets // 子窗口位置类 └──entry/src/main/resources // 应用静态资源目录 - ``` ### 相关权限 @@ -58,8 +57,8 @@ 1.本示例仅支持标准系统上运行,支持设备:华为手机。 -2.HarmonyOS系统:HarmonyOS NEXT Developer Beta1及以上。 +2.HarmonyOS系统:HarmonyOS 5.0.0 Release及以上。 -3.DevEco Studio版本:DevEco Studio NEXT Developer Beta1及以上。 +3.DevEco Studio版本:DevEco Studio 5.0.0 Release及以上。 -4.HarmonyOS SDK版本:HarmonyOS NEXT Developer Beta1 SDK及以上。 \ No newline at end of file +4.HarmonyOS SDK版本:HarmonyOS 5.0.0 Release SDK及以上。 \ No newline at end of file diff --git a/entry/obfuscation-rules.txt b/entry/obfuscation-rules.txt index 985b2ae..a1dfa0b 100644 --- a/entry/obfuscation-rules.txt +++ b/entry/obfuscation-rules.txt @@ -15,4 +15,8 @@ # Keep options: # -keep-property-name: specifies property names that you want to keep -# -keep-global-name: specifies names that you want to keep in the global scope \ No newline at end of file +# -keep-global-name: specifies names that you want to keep in the global scope +-enable-property-obfuscation +-enable-toplevel-obfuscation +-enable-filename-obfuscation +-enable-export-obfuscation \ No newline at end of file diff --git a/entry/src/main/ets/view/PipWindowComponent.ets b/entry/src/main/ets/view/PipWindowComponent.ets index a35e632..4bebaba 100644 --- a/entry/src/main/ets/view/PipWindowComponent.ets +++ b/entry/src/main/ets/view/PipWindowComponent.ets @@ -35,7 +35,7 @@ export struct PipWindowComponent { NavDestination() { Column() { Row() { - XComponent({ id: 'pipDemo', type: 'surface', controller: this.mXComponentController }) + XComponent({ id: 'pipDemo', type: XComponentType.SURFACE, controller: this.mXComponentController }) .onLoad(() => { this.surfaceId = this.mXComponentController.getXComponentSurfaceId(); this.player = new AVPlayerDemo(this.surfaceId); -- Gitee