diff --git a/README.en.md b/README.en.md index 6012d2a73ad1b761948f90463283c485c1bcdc45..3941b3ba371a45412771f6b0d86aba16b44bef7e 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 5906a28acac90d7a2c3f3acabaef757fcb03d294..5488ffee3cbd5e4d7fdefe38fba338574e9b6703 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 985b2aeb7658286b17bd26eab8f217c3fe75ea8b..a1dfa0bd175984dc49e641436aa67b1de1b8abeb 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 a35e6325164b37d52b19ee5685ee412d7c6f97c3..4bebaba2b39ea48007928e9ecb2a5c433b26a1f9 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);