diff --git a/.gitignore b/.gitignore index d2e142997f7bf1418da3d3677d2688398be1b216..fd58715a10be52e996476d92986e2588d7e1bfe6 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,5 @@ /.idea **/build /signature +/.hvigor +/package.json \ No newline at end of file diff --git a/README_zh.md b/README_zh.md index fb11933925690f798af38758bdc7472c26af5edc..b4acd1ab7046378130edf9f1da8c6b2218e66adc 100644 --- a/README_zh.md +++ b/README_zh.md @@ -1,12 +1,10 @@ # 备忘录部件 -## 简介 -备忘录应用是OpenHarmony中预置的应用,为用户提供文本编辑以及保存功能。 -**架构图** +## 1. 项目介绍 - +备忘录应用是OpenHarmony中预置的应用,为用户提供文本编辑以及保存功能。 -## 目录 +## 2. 目录结构 ``` /applications/standard/note ├─common @@ -47,10 +45,20 @@ └─resources # 资源文件 ``` +### 整体架构 + + + +## 3. 签名打包 -## 编译构建/使用方法 ### 签名 + +#### 签名文件的获取 + +1.生成签名文件可参考https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/security/hapsigntool-overview.md + #### 签名文件的配置 + 打开项目工程,选择 File → Project Structure  @@ -74,6 +82,7 @@  +## 4. 安装、调试 ### 应用安装 @@ -81,9 +90,6 @@  - - - ### 应用调试 #### log打印 diff --git a/build-profile.json5 b/build-profile.json5 index df83ecda61a470cbdd7c375c4b53851fff9549f4..bd770d8f5d3c3bf743dacd32cc71bd4e5f31af76 100644 --- a/build-profile.json5 +++ b/build-profile.json5 @@ -13,32 +13,24 @@ * limitations under the License. */ + { "app": { "compileSdkVersion": 9, - "compatibleSdkVersion": 9, + "compatibleSdkVersion": 8, "products": [ { "name": "default", + "signingConfig": "default" } + ], + "signingConfigs": [ ] }, "modules": [ { - "name": "phone", - "srcPath": "./product/phone", - "targets": [ - { - "name": "default", - "applyToProducts": [ - "default" - ] - } - ] - }, - { - "name": "tablet", - "srcPath": "./product/tablet", + "name": "default", + "srcPath": "./product/default", "targets": [ { "name": "default", @@ -52,13 +44,13 @@ "name": "utils", "srcPath": "./common/utils" }, - { - "name": "component", - "srcPath": "./common/component" - }, { "name": "resources", "srcPath": "./common/resources" + }, + { + "name": "component", + "srcPath": "./features", } ] } \ No newline at end of file diff --git a/common/component/build-profile.json5 b/common/component/build-profile.json5 deleted file mode 100644 index c6e5a1e1e89828b7270b37199c2d96374a5352a0..0000000000000000000000000000000000000000 --- a/common/component/build-profile.json5 +++ /dev/null @@ -1,20 +0,0 @@ -/* - * Copyright (c) 2022 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. - */ - -{ - "apiType": "stageMode", - "buildOption": { - } -} diff --git a/common/component/index.ets b/common/component/index.ets deleted file mode 100644 index 1c1e0b7a4da061017439219aed4855fdf139a27b..0000000000000000000000000000000000000000 --- a/common/component/index.ets +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Copyright (c) 2022 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 * from './src/main/ets/components/CusDialogComp'; -export * from './src/main/ets/components/FolderListComp'; -export * from './src/main/ets/components/NoteContent'; -export { ToolBarComp, NoteContentComp, NoteContentOverViewComp } from './src/main/ets/components/NoteContentComp'; -export { NoteContentCompPortrait } from './src/main/ets/components/NoteContentCompPortrait'; -export * from './src/main/ets/components/NoteListComp'; \ No newline at end of file diff --git a/common/component/package.json b/common/component/package.json deleted file mode 100644 index a378052748d020f6537c00c3fa55b4c609386955..0000000000000000000000000000000000000000 --- a/common/component/package.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "license":"ISC", - "types":"", - "devDependencies":{}, - "name":"@ohos/component", - "description":"a npm package which contains arkUI2.0 page", - "ohos":{ - "org":"" - }, - "main":"index.ets", - "repository":{}, - "version":"1.0.0", - "dependencies":{ - "@ohos/utils":"file:../utils", - "@ohos/source":"file:../resources" - } -} \ No newline at end of file diff --git a/common/resources/.gitignore b/common/resources/.gitignore index 4f9a973815d0b5e49bc8547681a6b4bc7a178d12..a5c564ae6da6b5e2336628d9f9e2155bddfc399d 100644 --- a/common/resources/.gitignore +++ b/common/resources/.gitignore @@ -1,3 +1,4 @@ /node_modules /.preview -/build \ No newline at end of file +/build +/package.json \ No newline at end of file diff --git a/common/resources/src/main/module.json5 b/common/resources/src/main/module.json5 index 6bbb0114cccbba7acefcb50999fb72c8339ce6a7..ba85f707655b7f7f7886d7251f949010af78031e 100644 --- a/common/resources/src/main/module.json5 +++ b/common/resources/src/main/module.json5 @@ -18,6 +18,7 @@ "name": "resources", "type": "har", "deviceTypes": [ + "default", "tablet" ], "uiSyntax": "ets" diff --git a/common/resources/src/main/resources/rawfile/editor.html b/common/resources/src/main/resources/rawfile/editor.html index 2f8ff4d81a548e612b5e9b8a6cee7f5956a94e63..4288cfb51ecac3c5c8eba557170f4a9debbe1ae5 100644 --- a/common/resources/src/main/resources/rawfile/editor.html +++ b/common/resources/src/main/resources/rawfile/editor.html @@ -4,21 +4,37 @@