diff --git a/.gitee/ISSUE_TEMPLATE.zh-CN.md b/.gitee/ISSUE_TEMPLATE.zh-CN.md
deleted file mode 100644
index f09d98dde9597de75ffcdb237c2b580b8fffa3f9..0000000000000000000000000000000000000000
--- a/.gitee/ISSUE_TEMPLATE.zh-CN.md
+++ /dev/null
@@ -1,13 +0,0 @@
-### 该问题是怎么引起的?
-
-
-
-### 重现步骤
-
-
-
-### 报错信息
-
-
-
-
diff --git a/.gitee/PULL_REQUEST_TEMPLATE.zh-CN.md b/.gitee/PULL_REQUEST_TEMPLATE.zh-CN.md
deleted file mode 100644
index 6199c1ecbaf8edc09d26aa41ecf9780bbccf38df..0000000000000000000000000000000000000000
--- a/.gitee/PULL_REQUEST_TEMPLATE.zh-CN.md
+++ /dev/null
@@ -1,12 +0,0 @@
-### 相关的Issue
-
-
-### 原因(目的、解决的问题等)
-
-
-### 描述(做了什么,变更了什么)
-
-
-### 测试用例(新增、改动、可能影响的功能)
-
-
diff --git a/AppScope/app.json5 b/AppScope/app.json5
new file mode 100644
index 0000000000000000000000000000000000000000..3699c41da5d2a4e75f4a7329ab58f5639ff806f2
--- /dev/null
+++ b/AppScope/app.json5
@@ -0,0 +1,10 @@
+{
+ "app": {
+ "bundleName": "com.example.smartwatchshortvideo",
+ "vendor": "example",
+ "versionCode": 1000000,
+ "versionName": "1.0.0",
+ "icon": "$media:app_icon",
+ "label": "$string:app_name"
+ }
+}
diff --git a/AppScope/resources/base/element/string.json b/AppScope/resources/base/element/string.json
new file mode 100644
index 0000000000000000000000000000000000000000..cf91f916a8fad5ebd81760b1ecb5996e4cdcd643
--- /dev/null
+++ b/AppScope/resources/base/element/string.json
@@ -0,0 +1,8 @@
+{
+ "string": [
+ {
+ "name": "app_name",
+ "value": "SmartWatchShortVideo"
+ }
+ ]
+}
diff --git a/AppScope/resources/base/media/app_icon.png b/AppScope/resources/base/media/app_icon.png
new file mode 100644
index 0000000000000000000000000000000000000000..a39445dc87828b76fed6d2ec470dd455c45319e3
Binary files /dev/null and b/AppScope/resources/base/media/app_icon.png differ
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000000000000000000000000000000000000..338e5b0bc22082e0ffcc7121c2ed3897a3ddccb0
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,78 @@
+ Copyright (c) 2024 Huawei Device Co., Ltd. All rights reserved.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+Apache License, Version 2.0
+TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+1. Definitions.
+
+"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
+
+"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
+
+"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
+
+"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
+
+"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
+
+"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
+
+"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
+
+"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
+
+"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
+
+"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
+
+2. Grant of Copyright License.
+
+Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
+
+3. Grant of Patent License.
+
+Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
+
+4. Redistribution.
+
+You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
+1.You must give any other recipients of the Work or Derivative Works a copy of this License; and
+2.You must cause any modified files to carry prominent notices stating that You changed the files; and
+3.You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
+4.If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
+
+You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
+
+5. Submission of Contributions.
+
+Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
+
+6. Trademarks.
+
+This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
+
+7. Disclaimer of Warranty.
+
+Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
+
+8. Limitation of Liability.
+
+In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
+
+9. Accepting Warranty or Additional Liability.
+
+While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
+
+END OF TERMS AND CONDITIONS
\ No newline at end of file
diff --git a/README.en.md b/README.en.md
deleted file mode 100644
index 72f2d1ca78646baf22c59567266907d1294a4400..0000000000000000000000000000000000000000
--- a/README.en.md
+++ /dev/null
@@ -1,36 +0,0 @@
-# SmartWatchShortVideo
-
-#### Description
-{**When you're done, you can delete the content in this README and update the file with details for others getting started with your repository**}
-
-#### Software Architecture
-Software architecture description
-
-#### Installation
-
-1. xxxx
-2. xxxx
-3. xxxx
-
-#### Instructions
-
-1. xxxx
-2. xxxx
-3. xxxx
-
-#### Contribution
-
-1. Fork the repository
-2. Create Feat_xxx branch
-3. Commit your code
-4. Create Pull Request
-
-
-#### Gitee Feature
-
-1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
-2. Gitee blog [blog.gitee.com](https://blog.gitee.com)
-3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
-4. The most valuable open source project [GVP](https://gitee.com/gvp)
-5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
-6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
diff --git a/README.md b/README.md
index 8293abf989f03c25c543bfeda949a7397e6311e3..14a5197fd73eba5f5e68b2ca59c0bd4c8d1f6413 100644
--- a/README.md
+++ b/README.md
@@ -1,39 +1,42 @@
-# SmartWatchShortVideo
-
-#### 介绍
-{**以下是 Gitee 平台说明,您可以替换此简介**
-Gitee 是 OSCHINA 推出的基于 Git 的代码托管平台(同时支持 SVN)。专为开发者提供稳定、高效、安全的云端软件开发协作平台
-无论是个人、团队、或是企业,都能够用 Gitee 实现代码托管、项目管理、协作开发。企业项目请看 [https://gitee.com/enterprises](https://gitee.com/enterprises)}
-
-#### 软件架构
-软件架构说明
-
-
-#### 安装教程
-
-1. xxxx
-2. xxxx
-3. xxxx
-
-#### 使用说明
-
-1. xxxx
-2. xxxx
-3. xxxx
-
-#### 参与贡献
-
-1. Fork 本仓库
-2. 新建 Feat_xxx 分支
-3. 提交代码
-4. 新建 Pull Request
-
-
-#### 特技
-
-1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
-2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com)
-3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目
-4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目
-5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
-6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
+# 实现智能手表上的短视频应用
+
+### 简介
+
+本示例实现了一款智能手表上的短视频应用,可在应用页面内查看视频推荐列表、播放视频,并展示二维码页面,支持使用手机扫码。
+
+### 效果预览
+
+
+### 使用说明
+
+1. 进入主页,上下滑动页面查看推荐列表;左右滑动切换“热搜推荐”、“更新提醒”视图。
+2. 点击“热搜推荐”中任意图片,进入视频播放页面。
+3. 点击暂停/播放按钮控制视频播放状态;点击放大/缩小按钮改变视频大小;拖动进度条更改视频进度。
+
+### 工程目录
+```
+├──entry/src/main/ets // 代码区
+│ ├──common
+│ │ ├──constants
+│ │ │ └──CommonConstants.ets // 常量类
+│ │ └──util
+│ │ └──ScreenUtil.ets // 屏幕工具类
+│ ├──entryability
+│ │ └──EntryAbility.ets // 程序入口类
+│ ├──entrybackupability
+│ │ └──EntryBackupAbility.ets
+│ ├──pages
+│ │ └──Index.ets // 首页
+│ └──view
+│ ├──HotSearchView.ets // 热搜推荐页
+│ ├──UpdateReminderView.ets // 更新提醒页
+│ └──VideoView.ets // 视频播放页
+└──entry/src/main/resources // 应用静态资源目录
+```
+
+### 约束与限制
+
+1. 本示例仅支持标准系统上运行,支持设备:智能手表。
+2. HarmonyOS系统:HarmonyOS 5.0.0 Release及以上。
+3. DevEco Studio版本:DevEco Studio 5.0.0 Release及以上。
+4. HarmonyOS SDK版本:HarmonyOS 5.0.0 Release SDK及以上。
\ No newline at end of file
diff --git a/build-profile.json5 b/build-profile.json5
new file mode 100644
index 0000000000000000000000000000000000000000..1e69556b3411622cb2e87a87389653bb34f1b148
--- /dev/null
+++ b/build-profile.json5
@@ -0,0 +1,41 @@
+{
+ "app": {
+ "signingConfigs": [],
+ "products": [
+ {
+ "name": "default",
+ "signingConfig": "default",
+ "compatibleSdkVersion": "5.0.0(12)",
+ "runtimeOS": "HarmonyOS",
+ "buildOption": {
+ "strictMode": {
+ "caseSensitiveCheck": true,
+ "useNormalizedOHMUrl": true
+ }
+ }
+ }
+ ],
+ "buildModeSet": [
+ {
+ "name": "debug",
+ },
+ {
+ "name": "release"
+ }
+ ]
+ },
+ "modules": [
+ {
+ "name": "entry",
+ "srcPath": "./entry",
+ "targets": [
+ {
+ "name": "default",
+ "applyToProducts": [
+ "default"
+ ]
+ }
+ ]
+ }
+ ]
+}
\ No newline at end of file
diff --git a/entry/build-profile.json5 b/entry/build-profile.json5
new file mode 100644
index 0000000000000000000000000000000000000000..4d611879c7913fb0610c686e2399258ab3a6dad1
--- /dev/null
+++ b/entry/build-profile.json5
@@ -0,0 +1,28 @@
+{
+ "apiType": "stageMode",
+ "buildOption": {
+ },
+ "buildOptionSet": [
+ {
+ "name": "release",
+ "arkOptions": {
+ "obfuscation": {
+ "ruleOptions": {
+ "enable": false,
+ "files": [
+ "./obfuscation-rules.txt"
+ ]
+ }
+ }
+ }
+ },
+ ],
+ "targets": [
+ {
+ "name": "default"
+ },
+ {
+ "name": "ohosTest",
+ }
+ ]
+}
\ No newline at end of file
diff --git a/entry/hvigorfile.ts b/entry/hvigorfile.ts
new file mode 100644
index 0000000000000000000000000000000000000000..c6edcd90486dd5a853cf7d34c8647f08414ca7a3
--- /dev/null
+++ b/entry/hvigorfile.ts
@@ -0,0 +1,6 @@
+import { hapTasks } from '@ohos/hvigor-ohos-plugin';
+
+export default {
+ system: hapTasks, /* Built-in plugin of Hvigor. It cannot be modified. */
+ plugins:[] /* Custom plugin to extend the functionality of Hvigor. */
+}
diff --git a/entry/oh-package.json5 b/entry/oh-package.json5
new file mode 100644
index 0000000000000000000000000000000000000000..248c3b7541a589682a250f86a6d3ecf7414d2d6a
--- /dev/null
+++ b/entry/oh-package.json5
@@ -0,0 +1,10 @@
+{
+ "name": "entry",
+ "version": "1.0.0",
+ "description": "Please describe the basic information.",
+ "main": "",
+ "author": "",
+ "license": "",
+ "dependencies": {}
+}
+
diff --git a/entry/src/main/ets/common/constants/CommonConstants.ets b/entry/src/main/ets/common/constants/CommonConstants.ets
new file mode 100644
index 0000000000000000000000000000000000000000..f7c1b3e6a893f77ef53ee9621b45e38bc217e202
--- /dev/null
+++ b/entry/src/main/ets/common/constants/CommonConstants.ets
@@ -0,0 +1,28 @@
+/*
+ * Copyright (c) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+export class CommonConstants {
+ /**
+ * Data of pictures.
+ */
+ static readonly PICTURES: ResourceStr[] = [
+ $r('app.media.item1'),
+ $r('app.media.item2'),
+ $r('app.media.item3'),
+ $r('app.media.item4'),
+ $r('app.media.item5'),
+ $r('app.media.item6')
+ ];
+}
\ No newline at end of file
diff --git a/entry/src/main/ets/common/util/ScreenUtil.ets b/entry/src/main/ets/common/util/ScreenUtil.ets
new file mode 100644
index 0000000000000000000000000000000000000000..5d952fa80f7286e4c7d34b85be28a172114934f3
--- /dev/null
+++ b/entry/src/main/ets/common/util/ScreenUtil.ets
@@ -0,0 +1,54 @@
+/*
+ * Copyright (c) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { window } from '@kit.ArkUI';
+import { hilog } from '@kit.PerformanceAnalysisKit';
+import { common } from '@kit.AbilityKit';
+import { BusinessError } from '@kit.BasicServicesKit';
+
+const TAG: string = 'ScreenUtil';
+
+export class ScreenUtil {
+ public static changeScreenState(context: common.UIAbilityContext | undefined, state: boolean) {
+ if (!context) {
+ return;
+ }
+ try {
+ let windowClass: window.Window | undefined = undefined;
+ window.getLastWindow(context, (err: BusinessError, data) => {
+ if (err.code) {
+ hilog.error(0x0000, TAG, 'Failed to obtain the top window. Cause: %{public}s', JSON.stringify(err) ?? '');
+ return;
+ }
+ windowClass = data;
+ hilog.info(0x0000, TAG, 'Succeeded in obtaining the top window.');
+ try {
+ windowClass.setWindowKeepScreenOn(state, (err) => {
+ if (err) {
+ hilog.error(0x0000, TAG, 'Failed to set the state of screen. Cause: %{public}s',
+ JSON.stringify(err) ?? '');
+ return;
+ }
+ hilog.info(0x0000, TAG, 'Succeeded in setting the state of screen.');
+ });
+ } catch (exception) {
+ hilog.error(0x0000, TAG, 'Failed to set the state of screen. Cause: %{public}s', JSON.stringify(exception) ?? '');
+ }
+ });
+ } catch (exception) {
+ hilog.error(0x0000, TAG, 'Failed to obtain the top window. Cause: %{public}s', JSON.stringify(exception) ?? '');
+ }
+ }
+}
\ No newline at end of file
diff --git a/entry/src/main/ets/entryability/EntryAbility.ets b/entry/src/main/ets/entryability/EntryAbility.ets
new file mode 100644
index 0000000000000000000000000000000000000000..9a12ff283b3cf561268636a4ebc9a9187ad3ec8a
--- /dev/null
+++ b/entry/src/main/ets/entryability/EntryAbility.ets
@@ -0,0 +1,57 @@
+/*
+ * Copyright (c) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { AbilityConstant, UIAbility, Want } from '@kit.AbilityKit';
+import { hilog } from '@kit.PerformanceAnalysisKit';
+import { window } from '@kit.ArkUI';
+
+export default class EntryAbility extends UIAbility {
+ onCreate(want: Want, launchParam: AbilityConstant.LaunchParam): void {
+ AppStorage.setOrCreate('context', this.context);
+ hilog.info(0x0000, 'testTag', '%{public}s', 'Ability onCreate');
+ }
+
+ onDestroy(): void {
+ hilog.info(0x0000, 'testTag', '%{public}s', 'Ability onDestroy');
+ }
+
+ onWindowStageCreate(windowStage: window.WindowStage): void {
+ // Main window is created, set main page for this ability
+ hilog.info(0x0000, 'testTag', '%{public}s', 'Ability onWindowStageCreate');
+
+ windowStage.loadContent('pages/Index', (err) => {
+ if (err.code) {
+ hilog.error(0x0000, 'testTag', 'Failed to load the content. Cause: %{public}s', JSON.stringify(err) ?? '');
+ return;
+ }
+ hilog.info(0x0000, 'testTag', 'Succeeded in loading the content.');
+ });
+ }
+
+ onWindowStageDestroy(): void {
+ // Main window is destroyed, release UI related resources
+ hilog.info(0x0000, 'testTag', '%{public}s', 'Ability onWindowStageDestroy');
+ }
+
+ onForeground(): void {
+ // Ability has brought to foreground
+ hilog.info(0x0000, 'testTag', '%{public}s', 'Ability onForeground');
+ }
+
+ onBackground(): void {
+ // Ability has back to background
+ hilog.info(0x0000, 'testTag', '%{public}s', 'Ability onBackground');
+ }
+}
\ No newline at end of file
diff --git a/entry/src/main/ets/entrybackupability/EntryBackupAbility.ets b/entry/src/main/ets/entrybackupability/EntryBackupAbility.ets
new file mode 100644
index 0000000000000000000000000000000000000000..6b744d7eaa66e51e79fc4e0896e251292ee767c5
--- /dev/null
+++ b/entry/src/main/ets/entrybackupability/EntryBackupAbility.ets
@@ -0,0 +1,27 @@
+/*
+ * Copyright (c) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { hilog } from '@kit.PerformanceAnalysisKit';
+import { BackupExtensionAbility, BundleVersion } from '@kit.CoreFileKit';
+
+export default class EntryBackupAbility extends BackupExtensionAbility {
+ async onBackup() {
+ hilog.info(0x0000, 'testTag', 'onBackup ok');
+ }
+
+ async onRestore(bundleVersion: BundleVersion) {
+ hilog.info(0x0000, 'testTag', 'onRestore ok %{public}s', JSON.stringify(bundleVersion));
+ }
+}
\ No newline at end of file
diff --git a/entry/src/main/ets/pages/Index.ets b/entry/src/main/ets/pages/Index.ets
new file mode 100644
index 0000000000000000000000000000000000000000..f21e47c8882682de7bba8b2ac3231ef289c7cd6c
--- /dev/null
+++ b/entry/src/main/ets/pages/Index.ets
@@ -0,0 +1,67 @@
+/*
+ * Copyright (c) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { common } from '@kit.AbilityKit';
+import { HotSearchView } from '../view/HotSearchView';
+import { UpdateReminderView } from '../view/UpdateReminderView';
+import { ScreenUtil } from '../common/util/ScreenUtil';
+
+@Entry
+@Component
+struct Index {
+ @StorageLink('context') context: common.UIAbilityContext | undefined = undefined;
+ @Provide('pageInfo') pageInfo: NavPathStack = new NavPathStack();
+ @State timeoutID: number = 0;
+
+ build() {
+ Navigation(this.pageInfo) {
+ Swiper() {
+ HotSearchView()
+ UpdateReminderView()
+ }
+ .height('100%')
+ .width('100%')
+ .borderRadius('50%')
+ .curve(Curve.Linear)
+ .loop(false)
+ .indicator(new DotIndicator()
+ .itemWidth(8)
+ .selectedItemWidth(15)
+ .itemHeight(8)
+ .selectedItemHeight(8))
+ .padding({
+ top: 17,
+ left: 26,
+ right: 26
+ })
+ .onChange((index: number) => {
+ if (index === 0) {
+ clearTimeout(this.timeoutID);
+ ScreenUtil.changeScreenState(this.context, false);
+ } else {
+ ScreenUtil.changeScreenState(this.context, true);
+ this.timeoutID = setTimeout(() => {
+ ScreenUtil.changeScreenState(this.context, false);
+ clearTimeout(this.timeoutID);
+ }, 60 * 1000);
+ }
+ })
+ }
+ .width('100%')
+ .hideTitleBar(true)
+ .hideToolBar(true)
+ .mode(NavigationMode.Stack)
+ }
+}
\ No newline at end of file
diff --git a/entry/src/main/ets/view/HotSearchView.ets b/entry/src/main/ets/view/HotSearchView.ets
new file mode 100644
index 0000000000000000000000000000000000000000..5e6e1d3f3cb13ecbd6be3c13dab8b03357cd4d50
--- /dev/null
+++ b/entry/src/main/ets/view/HotSearchView.ets
@@ -0,0 +1,47 @@
+/*
+ * Copyright (c) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { CommonConstants } from '../common/constants/CommonConstants';
+
+@Component
+export struct HotSearchView {
+ @Consume('pageInfo') pageInfo: NavPathStack;
+
+ build() {
+ Column() {
+ Text($r('app.string.title_hot_search'))
+ .fontSize('19fp')
+ .fontWeight(700)
+ .margin({ bottom: 9 })
+
+ Swiper() {
+ ForEach(CommonConstants.PICTURES, (item: ResourceStr) => {
+ Image(item)
+ .width('80%')
+ .borderRadius('50%')
+ .clip(true)
+ .margin({ bottom: 6 })
+ .onClick(() => {
+ this.pageInfo.pushPath({ name: 'VideoView' });
+ })
+ }, (item: ResourceStr) => JSON.stringify(item))
+ }
+ .vertical(true)
+ .indicator(false)
+ }
+ .width('100%')
+ .alignItems(HorizontalAlign.Center)
+ }
+}
\ No newline at end of file
diff --git a/entry/src/main/ets/view/UpdateReminderView.ets b/entry/src/main/ets/view/UpdateReminderView.ets
new file mode 100644
index 0000000000000000000000000000000000000000..60e2bc6e4713f4d9ad4eb2111c7ac058d733ca0a
--- /dev/null
+++ b/entry/src/main/ets/view/UpdateReminderView.ets
@@ -0,0 +1,48 @@
+/*
+ * Copyright (c) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { common } from '@kit.AbilityKit';
+
+@Component
+export struct UpdateReminderView {
+ @StorageLink('context') context: common.UIAbilityContext | undefined = undefined;
+
+ build() {
+ Column() {
+ Text($r('app.string.title_update_reminder'))
+ .fontSize('19fp')
+ .fontWeight(700)
+ .margin({ bottom: 19 })
+
+ QRCode('https://developer.huawei.com/consumer/cn/')
+ .backgroundColor(Color.White)
+ .border({
+ width: 8.5,
+ color: Color.White,
+ radius: 6
+ })
+
+ Text($r('app.string.update_reminder'))
+ .fontSize('15fp')
+ .margin({ top: 6 })
+ }
+ .width('100%')
+ }
+}
+
+@Builder
+export function updateReminderViewBuilder() {
+ UpdateReminderView()
+}
\ No newline at end of file
diff --git a/entry/src/main/ets/view/VideoView.ets b/entry/src/main/ets/view/VideoView.ets
new file mode 100644
index 0000000000000000000000000000000000000000..326fee76aa6688dc9a8e929321912b170a06f965
--- /dev/null
+++ b/entry/src/main/ets/view/VideoView.ets
@@ -0,0 +1,161 @@
+/*
+ * Copyright (c) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { common } from '@kit.AbilityKit';
+import { ScreenUtil } from '../common/util/ScreenUtil';
+
+@Component
+export struct VideoView {
+ @StorageLink('context') context: common.UIAbilityContext | undefined = undefined;
+ @Consume('pageInfo') pageInfo: NavPathStack;
+ @State @Watch('changePlayState') isPlaying: boolean = true;
+ @State isFullScreen: boolean = false;
+ @State isChangingVolume: boolean = false;
+ @State currentTime: number = 0;
+ @State currentStringTime: string = '00:00';
+ private videoController: VideoController = new VideoController();
+
+ aboutToAppear(): void {
+ this.changePlayState();
+ }
+
+ changePlayState() {
+ ScreenUtil.changeScreenState(this.context, this.isPlaying);
+ }
+
+ @Styles
+ imageBackground() {
+ .width(28)
+ .height(28)
+ .backgroundColor('#33FFFFFF')
+ .borderRadius('50%')
+ }
+
+ build() {
+ NavDestination() {
+ Column() {
+ Text($r('app.string.HarmonyOS'))
+ .fontSize('19fp')
+ .fontWeight(700)
+ .margin({ bottom: 9 })
+
+ Video({
+ src: $rawfile('video.mp4'),
+ controller: this.videoController
+ })
+ .autoPlay(true)
+ .objectFit(ImageFit.Contain)
+ .loop(true)
+ .height('60%')
+ .width(this.isFullScreen ? '100%' : '80%')
+ .controls(false)
+ .onUpdate((event) => {
+ this.currentTime = event.time;
+ this.currentStringTime = '00:' + this.currentTime.toString().padStart(2, '0');
+ })
+
+ Row() {
+ Row() {
+ Image(this.isPlaying ? $r('app.media.ic_video_play') : $r('app.media.ic_video_pause'))
+ .height(20)
+ .onClick(() => {
+ if (this.isPlaying) {
+ this.videoController.pause();
+ } else {
+ this.videoController.start();
+ }
+ this.isPlaying = !this.isPlaying;
+ })
+ }
+ .justifyContent(FlexAlign.Center)
+ .imageBackground()
+
+ Column() {
+ Row() {
+ Text(this.currentStringTime)
+ .fontSize('9fp')
+ .margin({ left: 3 })
+
+ Text('00:10')
+ .fontSize('9fp')
+ .margin({ right: 3 })
+ }
+ .width('100%')
+ .height('70%')
+ .justifyContent(FlexAlign.SpaceBetween)
+ .alignItems(VerticalAlign.Top)
+
+ Slider({
+ min: 0,
+ value: this.currentTime,
+ max: 10
+ })
+ .width('100%')
+ .height('30%')
+ .onChange((value: number) => {
+ this.currentTime = Number.parseInt(value.toString());
+ this.videoController.setCurrentTime(this.currentTime, SeekMode.PreviousKeyframe);
+ })
+ }
+ .layoutWeight(1)
+ .width('60%')
+ .height('100%')
+ .justifyContent(FlexAlign.SpaceBetween)
+
+ Row() {
+ Image(this.isFullScreen ? $r('app.media.reduce') : $r('app.media.enlarge'))
+ .height(20)
+ .onClick(() => {
+ this.isFullScreen = !this.isFullScreen;
+ })
+ }
+ .justifyContent(FlexAlign.Center)
+ .imageBackground()
+ }
+ .width('70%')
+ .height('10%')
+ .margin({ top: 6 })
+ .justifyContent(FlexAlign.SpaceBetween)
+ .alignItems(VerticalAlign.Center)
+
+ Row() {
+ Image($r('app.media.back'))
+ .height(24)
+ .onClick(() => {
+ this.pageInfo.pop();
+ })
+ }
+ .justifyContent(FlexAlign.Center)
+ .alignItems(VerticalAlign.Center)
+ .margin({ top: 3 })
+ .imageBackground()
+ }
+ .margin({
+ top: 17,
+ bottom: 6
+ })
+ }
+ .width('100%')
+ .height('100%')
+ .borderRadius('50%')
+ .hideTitleBar(true)
+ .backgroundColor(Color.Black)
+ }
+}
+
+@Builder
+export function videoViewBuilder() {
+ VideoView()
+}
\ No newline at end of file
diff --git a/entry/src/main/module.json5 b/entry/src/main/module.json5
new file mode 100644
index 0000000000000000000000000000000000000000..74c61556c5c6e80b8ec8177cceb5c96e54228c98
--- /dev/null
+++ b/entry/src/main/module.json5
@@ -0,0 +1,51 @@
+{
+ "module": {
+ "name": "entry",
+ "type": "entry",
+ "description": "$string:module_desc",
+ "mainElement": "EntryAbility",
+ "deviceTypes": [
+ "wearable"
+ ],
+ "deliveryWithInstall": true,
+ "installationFree": false,
+ "pages": "$profile:main_pages",
+ "routerMap": "$profile:route_map",
+ "abilities": [
+ {
+ "name": "EntryAbility",
+ "srcEntry": "./ets/entryability/EntryAbility.ets",
+ "description": "$string:EntryAbility_desc",
+ "icon": "$media:layered_image",
+ "label": "$string:EntryAbility_label",
+ "startWindowIcon": "$media:startIcon",
+ "startWindowBackground": "$color:start_window_background",
+ "exported": true,
+ "skills": [
+ {
+ "entities": [
+ "entity.system.home"
+ ],
+ "actions": [
+ "action.system.home"
+ ]
+ }
+ ]
+ }
+ ],
+ "extensionAbilities": [
+ {
+ "name": "EntryBackupAbility",
+ "srcEntry": "./ets/entrybackupability/EntryBackupAbility.ets",
+ "type": "backup",
+ "exported": false,
+ "metadata": [
+ {
+ "name": "ohos.extension.backup",
+ "resource": "$profile:backup_config"
+ }
+ ],
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/entry/src/main/resources/base/element/color.json b/entry/src/main/resources/base/element/color.json
new file mode 100644
index 0000000000000000000000000000000000000000..3c712962da3c2751c2b9ddb53559afcbd2b54a02
--- /dev/null
+++ b/entry/src/main/resources/base/element/color.json
@@ -0,0 +1,8 @@
+{
+ "color": [
+ {
+ "name": "start_window_background",
+ "value": "#FFFFFF"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/entry/src/main/resources/base/element/string.json b/entry/src/main/resources/base/element/string.json
new file mode 100644
index 0000000000000000000000000000000000000000..08385c80bee7ba20b714f2050c413e2d06c55b18
--- /dev/null
+++ b/entry/src/main/resources/base/element/string.json
@@ -0,0 +1,32 @@
+{
+ "string": [
+ {
+ "name": "module_desc",
+ "value": "module description"
+ },
+ {
+ "name": "EntryAbility_desc",
+ "value": "description"
+ },
+ {
+ "name": "EntryAbility_label",
+ "value": "SmartWatchShortVideo"
+ },
+ {
+ "name": "title_hot_search",
+ "value": "Hot Search"
+ },
+ {
+ "name": "title_update_reminder",
+ "value": "Update Reminder"
+ },
+ {
+ "name": "update_reminder",
+ "value": "Scan rhe QRCode to login."
+ },
+ {
+ "name": "HarmonyOS",
+ "value": "HarmonyOS"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/entry/src/main/resources/base/media/back.svg b/entry/src/main/resources/base/media/back.svg
new file mode 100644
index 0000000000000000000000000000000000000000..1b75ec709c6592945301d0ed259cba30f33e9981
--- /dev/null
+++ b/entry/src/main/resources/base/media/back.svg
@@ -0,0 +1,16 @@
+
diff --git a/entry/src/main/resources/base/media/background.png b/entry/src/main/resources/base/media/background.png
new file mode 100644
index 0000000000000000000000000000000000000000..f939c9fa8cc8914832e602198745f592a0dfa34d
Binary files /dev/null and b/entry/src/main/resources/base/media/background.png differ
diff --git a/entry/src/main/resources/base/media/enlarge.svg b/entry/src/main/resources/base/media/enlarge.svg
new file mode 100644
index 0000000000000000000000000000000000000000..55f6cf383ea8e12d4f399c40b9d967bd52552c40
--- /dev/null
+++ b/entry/src/main/resources/base/media/enlarge.svg
@@ -0,0 +1,16 @@
+
diff --git a/entry/src/main/resources/base/media/foreground.png b/entry/src/main/resources/base/media/foreground.png
new file mode 100644
index 0000000000000000000000000000000000000000..4483ddad1f079e1089d685bd204ee1cfe1d01902
Binary files /dev/null and b/entry/src/main/resources/base/media/foreground.png differ
diff --git a/entry/src/main/resources/base/media/ic_video_pause.svg b/entry/src/main/resources/base/media/ic_video_pause.svg
new file mode 100644
index 0000000000000000000000000000000000000000..b18a4a3d00cf2f80fe90c55faef56b39ed485a1b
--- /dev/null
+++ b/entry/src/main/resources/base/media/ic_video_pause.svg
@@ -0,0 +1,13 @@
+
+
\ No newline at end of file
diff --git a/entry/src/main/resources/base/media/ic_video_play.svg b/entry/src/main/resources/base/media/ic_video_play.svg
new file mode 100644
index 0000000000000000000000000000000000000000..675bf7f87b66ed5011191b77c1f3f678625be68a
--- /dev/null
+++ b/entry/src/main/resources/base/media/ic_video_play.svg
@@ -0,0 +1,13 @@
+
+
\ No newline at end of file
diff --git a/entry/src/main/resources/base/media/item1.png b/entry/src/main/resources/base/media/item1.png
new file mode 100644
index 0000000000000000000000000000000000000000..2f4883e78925e9e2a5153cc79f1cd892bf278db9
Binary files /dev/null and b/entry/src/main/resources/base/media/item1.png differ
diff --git a/entry/src/main/resources/base/media/item2.png b/entry/src/main/resources/base/media/item2.png
new file mode 100644
index 0000000000000000000000000000000000000000..4761594f43d692ec317c3630ce735e5c794d0ad7
Binary files /dev/null and b/entry/src/main/resources/base/media/item2.png differ
diff --git a/entry/src/main/resources/base/media/item3.png b/entry/src/main/resources/base/media/item3.png
new file mode 100644
index 0000000000000000000000000000000000000000..0a81724c3e683e42fbb67a208d44dd63d29f370d
Binary files /dev/null and b/entry/src/main/resources/base/media/item3.png differ
diff --git a/entry/src/main/resources/base/media/item4.png b/entry/src/main/resources/base/media/item4.png
new file mode 100644
index 0000000000000000000000000000000000000000..6d78a7c92871404ea268a17117f87e5b49a8c055
Binary files /dev/null and b/entry/src/main/resources/base/media/item4.png differ
diff --git a/entry/src/main/resources/base/media/item5.png b/entry/src/main/resources/base/media/item5.png
new file mode 100644
index 0000000000000000000000000000000000000000..99b1f3dca2004fb0d6f058dfc0187dd3be16fdea
Binary files /dev/null and b/entry/src/main/resources/base/media/item5.png differ
diff --git a/entry/src/main/resources/base/media/item6.png b/entry/src/main/resources/base/media/item6.png
new file mode 100644
index 0000000000000000000000000000000000000000..b9f0fa88e5384157dbbb829383bb924a794cc85f
Binary files /dev/null and b/entry/src/main/resources/base/media/item6.png differ
diff --git a/entry/src/main/resources/base/media/layered_image.json b/entry/src/main/resources/base/media/layered_image.json
new file mode 100644
index 0000000000000000000000000000000000000000..fb49920440fb4d246c82f9ada275e26123a2136a
--- /dev/null
+++ b/entry/src/main/resources/base/media/layered_image.json
@@ -0,0 +1,7 @@
+{
+ "layered-image":
+ {
+ "background" : "$media:background",
+ "foreground" : "$media:foreground"
+ }
+}
\ No newline at end of file
diff --git a/entry/src/main/resources/base/media/reduce.svg b/entry/src/main/resources/base/media/reduce.svg
new file mode 100644
index 0000000000000000000000000000000000000000..d81d3e79bfe389279d8c6d65b0ee15555aa6e9fb
--- /dev/null
+++ b/entry/src/main/resources/base/media/reduce.svg
@@ -0,0 +1,16 @@
+
diff --git a/entry/src/main/resources/base/media/startIcon.png b/entry/src/main/resources/base/media/startIcon.png
new file mode 100644
index 0000000000000000000000000000000000000000..205ad8b5a8a42e8762fbe4899b8e5e31ce822b8b
Binary files /dev/null and b/entry/src/main/resources/base/media/startIcon.png differ
diff --git a/entry/src/main/resources/base/profile/backup_config.json b/entry/src/main/resources/base/profile/backup_config.json
new file mode 100644
index 0000000000000000000000000000000000000000..78f40ae7c494d71e2482278f359ec790ca73471a
--- /dev/null
+++ b/entry/src/main/resources/base/profile/backup_config.json
@@ -0,0 +1,3 @@
+{
+ "allowToBackupRestore": true
+}
\ No newline at end of file
diff --git a/entry/src/main/resources/base/profile/main_pages.json b/entry/src/main/resources/base/profile/main_pages.json
new file mode 100644
index 0000000000000000000000000000000000000000..1898d94f58d6128ab712be2c68acc7c98e9ab9ce
--- /dev/null
+++ b/entry/src/main/resources/base/profile/main_pages.json
@@ -0,0 +1,5 @@
+{
+ "src": [
+ "pages/Index"
+ ]
+}
diff --git a/entry/src/main/resources/base/profile/route_map.json b/entry/src/main/resources/base/profile/route_map.json
new file mode 100644
index 0000000000000000000000000000000000000000..35b6f685be19a26bdf3aab80f01df50c6178de28
--- /dev/null
+++ b/entry/src/main/resources/base/profile/route_map.json
@@ -0,0 +1,20 @@
+{
+ "routerMap": [
+ {
+ "name": "VideoView",
+ "pageSourceFile": "src/main/ets/view/VideoView.ets",
+ "buildFunction": "videoViewBuilder",
+ "data": {
+ "description": "This is a page of video."
+ }
+ },
+ {
+ "name": "UpdateReminderView",
+ "pageSourceFile": "src/main/ets/view/UpdateReminderView.ets",
+ "buildFunction": "updateReminderViewBuilder",
+ "data": {
+ "description": "This is a page of reminder."
+ }
+ }
+ ]
+}
\ No newline at end of file
diff --git a/entry/src/main/resources/en_US/element/string.json b/entry/src/main/resources/en_US/element/string.json
new file mode 100644
index 0000000000000000000000000000000000000000..08385c80bee7ba20b714f2050c413e2d06c55b18
--- /dev/null
+++ b/entry/src/main/resources/en_US/element/string.json
@@ -0,0 +1,32 @@
+{
+ "string": [
+ {
+ "name": "module_desc",
+ "value": "module description"
+ },
+ {
+ "name": "EntryAbility_desc",
+ "value": "description"
+ },
+ {
+ "name": "EntryAbility_label",
+ "value": "SmartWatchShortVideo"
+ },
+ {
+ "name": "title_hot_search",
+ "value": "Hot Search"
+ },
+ {
+ "name": "title_update_reminder",
+ "value": "Update Reminder"
+ },
+ {
+ "name": "update_reminder",
+ "value": "Scan rhe QRCode to login."
+ },
+ {
+ "name": "HarmonyOS",
+ "value": "HarmonyOS"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/entry/src/main/resources/rawfile/video.mp4 b/entry/src/main/resources/rawfile/video.mp4
new file mode 100644
index 0000000000000000000000000000000000000000..587eef0060b3beec8102ac1030c92beeb34ccb24
Binary files /dev/null and b/entry/src/main/resources/rawfile/video.mp4 differ
diff --git a/entry/src/main/resources/zh_CN/element/string.json b/entry/src/main/resources/zh_CN/element/string.json
new file mode 100644
index 0000000000000000000000000000000000000000..2ba8eb9bde175bd16fc84f96ea62375a9c2bc36c
--- /dev/null
+++ b/entry/src/main/resources/zh_CN/element/string.json
@@ -0,0 +1,32 @@
+{
+ "string": [
+ {
+ "name": "module_desc",
+ "value": "模块描述"
+ },
+ {
+ "name": "EntryAbility_desc",
+ "value": "description"
+ },
+ {
+ "name": "EntryAbility_label",
+ "value": "短视频"
+ },
+ {
+ "name": "title_hot_search",
+ "value": "热搜推荐"
+ },
+ {
+ "name": "title_update_reminder",
+ "value": "更新提醒"
+ },
+ {
+ "name": "update_reminder",
+ "value": "请扫码登录"
+ },
+ {
+ "name": "HarmonyOS",
+ "value": "鸿蒙系统"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/hvigor/hvigor-config.json5 b/hvigor/hvigor-config.json5
new file mode 100644
index 0000000000000000000000000000000000000000..06b2783670a348f95533b352c1ceda909a842bbc
--- /dev/null
+++ b/hvigor/hvigor-config.json5
@@ -0,0 +1,22 @@
+{
+ "modelVersion": "5.0.0",
+ "dependencies": {
+ },
+ "execution": {
+ // "analyze": "normal", /* Define the build analyze mode. Value: [ "normal" | "advanced" | false ]. Default: "normal" */
+ // "daemon": true, /* Enable daemon compilation. Value: [ true | false ]. Default: true */
+ // "incremental": true, /* Enable incremental compilation. Value: [ true | false ]. Default: true */
+ // "parallel": true, /* Enable parallel compilation. Value: [ true | false ]. Default: true */
+ // "typeCheck": false, /* Enable typeCheck. Value: [ true | false ]. Default: false */
+ },
+ "logging": {
+ // "level": "info" /* Define the log level. Value: [ "debug" | "info" | "warn" | "error" ]. Default: "info" */
+ },
+ "debugging": {
+ // "stacktrace": false /* Disable stacktrace compilation. Value: [ true | false ]. Default: false */
+ },
+ "nodeOptions": {
+ // "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*/
+ }
+}
diff --git a/hvigorfile.ts b/hvigorfile.ts
new file mode 100644
index 0000000000000000000000000000000000000000..f3cb9f1a87a81687554a76283af8df27d8bda775
--- /dev/null
+++ b/hvigorfile.ts
@@ -0,0 +1,6 @@
+import { appTasks } from '@ohos/hvigor-ohos-plugin';
+
+export default {
+ system: appTasks, /* Built-in plugin of Hvigor. It cannot be modified. */
+ plugins:[] /* Custom plugin to extend the functionality of Hvigor. */
+}
diff --git a/oh-package.json5 b/oh-package.json5
new file mode 100644
index 0000000000000000000000000000000000000000..8bf916d4a165e0466c65bc49f58ab2e3c27e8931
--- /dev/null
+++ b/oh-package.json5
@@ -0,0 +1,8 @@
+{
+ "modelVersion": "5.0.0",
+ "description": "Please describe the basic information.",
+ "dependencies": {
+ },
+ "devDependencies": {
+ }
+}