From 65a11535b2d65b9e97a04bd4e9dbad7e459c8a77 Mon Sep 17 00:00:00 2001 From: 1 <13343468815@163.com> Date: Fri, 1 Apr 2022 17:20:17 +0800 Subject: [PATCH 1/2] =?UTF-8?q?330=E9=80=82=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Media/Audio_OH_ETS/README.md | 12 +++------ Media/Audio_OH_ETS/build-profile.json5 | 37 +------------------------- Media/Audio_OH_ETS/entry/package.json | 25 ++++++++--------- Media/Audio_OH_ETS/hvigorfile.js | 2 +- Media/Audio_OH_ETS/package.json | 29 ++++++++++---------- 5 files changed, 33 insertions(+), 72 deletions(-) diff --git a/Media/Audio_OH_ETS/README.md b/Media/Audio_OH_ETS/README.md index dbf6a673..45245fd4 100644 --- a/Media/Audio_OH_ETS/README.md +++ b/Media/Audio_OH_ETS/README.md @@ -27,15 +27,9 @@ 3. 搭建开发环境。 - 1. 开始前请参考[下载与安装软件](https://developer.harmonyos.com/cn/docs/documentation/doc-guides/software_install-0000001053582415)、[配置开发环境](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/quick-start/configuring-openharmony-sdk.md),完成DevEco Studio的安装和开发环境配置。 - 2. 开发环境配置完成后,请参考[使用工程向导](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/quick-start/use-wizard-to-create-project.md)创建工程,选择JS或者eTS语言开发、“Application”为例,模板选择“\[Standard\]Empty Ability”。 - 3. 工程创建完成后,可参考下面章节进行代码编写,使用真机进行调测: - - - [配置OpenHarmony应用签名信息](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/quick-start/configuring-openharmony-app-signature.md) - - [hap包安装指导](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/quick-start/installing-openharmony-app.md) - - 工程示例: - - ![](figures/截图.png) + 1. 开始前请参考[工具准备](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/quick-start/start-overview.md#%E5%B7%A5%E5%85%B7%E5%87%86%E5%A4%87),完成DevEco Studio的安装和开发环境配置。 + 2. 开发环境配置完成后,请参考[使用工程向导](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/quick-start/start-with-ets.md#%E5%88%9B%E5%BB%BAets%E5%B7%A5%E7%A8%8B)创建工程(模板选择“Empty Ability”),选择JS或者eTS语言开发。 + 3. 工程创建完成后,选择使用[真机进行调测](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/quick-start/start-with-ets.md#%E4%BD%BF%E7%94%A8%E7%9C%9F%E6%9C%BA%E8%BF%90%E8%A1%8C%E5%BA%94%E7%94%A8)。 diff --git a/Media/Audio_OH_ETS/build-profile.json5 b/Media/Audio_OH_ETS/build-profile.json5 index 4b936294..cf08f84d 100644 --- a/Media/Audio_OH_ETS/build-profile.json5 +++ b/Media/Audio_OH_ETS/build-profile.json5 @@ -1,41 +1,6 @@ { "app": { - "signingConfigs": [ - { - "name": "debug", - - "material": { - storeFile: 'D:\\Harmony\\openHarmony\\sign\\openHos\\openhos.p12', - - //本地keystore - - storePassword: "0000001815EE6158E56D4802F51B86223E4CCDC85FBAC269F04D329D43AC9AB5739D68248EE1AA44", - - //生成本地keystore时的-storepass参数 - - keyAlias: 'hw', - - //生成本地keystore时的-alias参数 - - keyPassword: '00000018C02B975FB9B04EC6667768B507F398DF2978D28C0CC8DFEB9D761CF49A161A0A36FAFCCE', - - //keyPassword参数,pkcs12格式的keystore采用生成本地keystore时的-storepass参数 - - signAlg: 'SHA256withECDSA', - - //生成本地keystore时的-sigalg参数 - - profile: 'D:\\Harmony\\openHarmony\\sign\\openHos\\openHos.p7b', - - //导入调试profile - - certpath: 'D:\\Harmony\\openHarmony\\sign\\openHos\\openHos.cer' - - //导入调试证书 - - } - } - ], + "signingConfigs": [], "compileSdkVersion": 9, "compatibleSdkVersion": 9, "products": [ diff --git a/Media/Audio_OH_ETS/entry/package.json b/Media/Audio_OH_ETS/entry/package.json index c4e988f3..992c771b 100644 --- a/Media/Audio_OH_ETS/entry/package.json +++ b/Media/Audio_OH_ETS/entry/package.json @@ -1,13 +1,14 @@ { - "name": "entry", - "version": "1.0.0", - "ohos": { - "org": "huawei", - "buildTool": "hvigor", - "directoryLevel": "module" - }, - "description": "example description", - "repository": {}, - "license": "ISC", - "dependencies": {} -} + "license":"ISC", + "devDependencies":{}, + "name":"entry", + "ohos":{ + "org":"huawei", + "directoryLevel":"module", + "buildTool":"hvigor" + }, + "description":"example description", + "repository":{}, + "version":"1.0.0", + "dependencies":{} +} \ No newline at end of file diff --git a/Media/Audio_OH_ETS/hvigorfile.js b/Media/Audio_OH_ETS/hvigorfile.js index 5f2735e3..cff9f0df 100644 --- a/Media/Audio_OH_ETS/hvigorfile.js +++ b/Media/Audio_OH_ETS/hvigorfile.js @@ -1,2 +1,2 @@ // Script for compiling build behavior. It is built in the build plug-in and cannot be modified currently. -module.exports = require('@ohos/hvigor-ohos-plugin').appTasks \ No newline at end of file +module.exports = require('@ohos/hvigor-ohos-plugin').legacyAppTasks \ No newline at end of file diff --git a/Media/Audio_OH_ETS/package.json b/Media/Audio_OH_ETS/package.json index 1279a89c..80acfacb 100644 --- a/Media/Audio_OH_ETS/package.json +++ b/Media/Audio_OH_ETS/package.json @@ -1,16 +1,17 @@ { - "name": "audioetswgr", - "version": "1.0.0", - "ohos": { - "org": "huawei", - "buildTool": "hvigor", - "directoryLevel": "project" - }, - "description": "example description", - "repository": {}, - "license": "ISC", - "dependencies": { - "@ohos/hvigor": "1.0.4-rc", - "@ohos/hvigor-ohos-plugin": "1.0.4-rc" - } + "license": "ISC", + "devDependencies": {}, + "name": "audioetswgr", + "ohos": { + "org": "huawei", + "directoryLevel": "project", + "buildTool": "hvigor" + }, + "description": "example description", + "repository": {}, + "version": "1.0.0", + "dependencies": { + "@ohos/hvigor-ohos-plugin": "1.0.6", + "@ohos/hvigor": "1.0.6" + } } -- Gitee From 340b00fc5cb1338c4b5070bc5212372647d706c7 Mon Sep 17 00:00:00 2001 From: "xlleng110@163.com" Date: Wed, 30 Nov 2022 16:57:23 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=A4=84=E7=90=86=E7=BC=96=E8=AF=91?= =?UTF-8?q?=E5=A4=B1=E8=B4=A5=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Data/JSRelationshipData/entry/src/main/config.json | 2 +- .../entry/src/main/js/model/KvStoreModel.js | 6 +++--- Data/JSRelationshipData/package.json | 6 +++--- Data/JsDistributedData/entry/src/main/config.json | 2 +- .../entry/src/main/js/model/KvStoreModel.js | 2 +- Data/JsDistributedData/package.json | 5 +++-- 6 files changed, 12 insertions(+), 11 deletions(-) diff --git a/Data/JSRelationshipData/entry/src/main/config.json b/Data/JSRelationshipData/entry/src/main/config.json index 5cc865c3..5932ff20 100644 --- a/Data/JSRelationshipData/entry/src/main/config.json +++ b/Data/JSRelationshipData/entry/src/main/config.json @@ -13,7 +13,7 @@ "name": ".MyApplication", "mainAbility": ".MainAbility", "deviceType": [ - "phone" + "default" ], "distro": { "deliveryWithInstall": true, diff --git a/Data/JSRelationshipData/entry/src/main/js/model/KvStoreModel.js b/Data/JSRelationshipData/entry/src/main/js/model/KvStoreModel.js index 433fdf75..1d00e776 100644 --- a/Data/JSRelationshipData/entry/src/main/js/model/KvStoreModel.js +++ b/Data/JSRelationshipData/entry/src/main/js/model/KvStoreModel.js @@ -13,8 +13,8 @@ * limitations under the License. */ -import ohos_data_ability from '@ohos.data.dataability' -import ohos_data_rdb from '@ohos.data.rdb' +import dataAbility from '@ohos.data.dataAbility'; +import ohos_data_rdb from '@ohos.data.rdb'; const STORE_CONFIG = { name: "RdbTest.db" } const SQL_CREATE_TABLE = "CREATE TABLE IF NOT EXISTS EMPLOYEE (ID INTEGER PRIMARY KEY AUTOINCREMENT, NAME TEXT NOT NULL, AGE INTEGER, GENDER TEXT NOT NULL)" @@ -25,7 +25,7 @@ export default class KvStoreModel { createKvStore(callback) { if (typeof (this.rdbStore) === 'undefined') { let self = this; - let promise = ohos_data_rdb.getRdbStore(STORE_CONFIG, 1) + let promise = dataAbility.getRdbStore(STORE_CONFIG, 1) promise.then(async (rdbStore) => { self.rdbStore = rdbStore; await rdbStore.executeSql(SQL_CREATE_TABLE, null); diff --git a/Data/JSRelationshipData/package.json b/Data/JSRelationshipData/package.json index b43b7ab1..6491d51b 100644 --- a/Data/JSRelationshipData/package.json +++ b/Data/JSRelationshipData/package.json @@ -11,7 +11,7 @@ "license": "ISC", "dependencies": { "hypium": "^1.0.0", - "@ohos/hvigor": "1.0.6", - "@ohos/hvigor-ohos-plugin": "1.0.6" + "@ohos/hvigor": "1.3.1", + "@ohos/hvigor-ohos-plugin": "1.3.1","@ohos/hypium": "1.0.3" } -} +} \ No newline at end of file diff --git a/Data/JsDistributedData/entry/src/main/config.json b/Data/JsDistributedData/entry/src/main/config.json index 32992ec5..8b8ff9de 100644 --- a/Data/JsDistributedData/entry/src/main/config.json +++ b/Data/JsDistributedData/entry/src/main/config.json @@ -11,7 +11,7 @@ "module": { "mainAbility": ".MainAbility", "deviceType": [ - "phone" + "default" ], "abilities": [ { diff --git a/Data/JsDistributedData/entry/src/main/js/model/KvStoreModel.js b/Data/JsDistributedData/entry/src/main/js/model/KvStoreModel.js index 8f50a127..299f92d0 100644 --- a/Data/JsDistributedData/entry/src/main/js/model/KvStoreModel.js +++ b/Data/JsDistributedData/entry/src/main/js/model/KvStoreModel.js @@ -14,7 +14,7 @@ * limitations under the License. */ -import distributedData from '@ohos.data.distributeddata'; +import distributedData from '@ohos.data.distributedData'; const STORE_ID = 'musicplayer_kvstore'; diff --git a/Data/JsDistributedData/package.json b/Data/JsDistributedData/package.json index b43b7ab1..acf99f1e 100644 --- a/Data/JsDistributedData/package.json +++ b/Data/JsDistributedData/package.json @@ -11,7 +11,8 @@ "license": "ISC", "dependencies": { "hypium": "^1.0.0", - "@ohos/hvigor": "1.0.6", - "@ohos/hvigor-ohos-plugin": "1.0.6" + "@ohos/hvigor": "1.3.1", + "@ohos/hvigor-ohos-plugin": "1.3.1", + "@ohos/hypium": "1.0.3" } } -- Gitee