diff --git a/README.md b/README.md index 2624efb89b2405d80cce960b8b5146e5c1cb2b4e..0cbefa3be561d206ca555530c555bf19e3c2274a 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ - 功能:实现音频可视化 - 项目移植状态:主功能完成 - 调用差异:无 -- 开发版本:sdk5,DevEco Studio2.1 beta4(实时更新以当前最新版本为准) +- 开发版本:sdk5,DevEco Studio2.1 beta4 - 基线版本:Release v2.2.0 #### 效果演示 diff --git a/audiovisualizer/src/main/config.json b/audiovisualizer/src/main/config.json index fe967a47daea9851888b383eb692ef561bd79d61..b5379c5279ed4a079bcb76ee66c023696845c522 100644 --- a/audiovisualizer/src/main/config.json +++ b/audiovisualizer/src/main/config.json @@ -3,11 +3,11 @@ "bundleName": "com.chibde.visualizer", "vendor": "chibde", "version": { - "code": 1, - "name": "1.0" + "code": 1000000, + "name": "1.0.0" }, "apiVersion": { - "compatible": 5, + "compatible": 4, "target": 5, "releaseType": "Release" } diff --git a/build.gradle b/build.gradle index e57a5c8fd6e05875ba202640446ba6fed958d597..e6f4c5f0df9d6cbbe0c78430ffd18e701aef2f86 100644 --- a/build.gradle +++ b/build.gradle @@ -23,8 +23,7 @@ buildscript { } dependencies { classpath 'com.huawei.ohos:hap:2.4.2.7' - classpath 'com.huawei.ohos:decctest:1.0.0.6' - + classpath 'com.huawei.ohos:decctest:1.0.0.7' } } diff --git a/entry/build.gradle b/entry/build.gradle index d2a7fab214c7b263d1f46f68cf0df9bcbda5e02f..2d5a1cc4b22f819d5e2a5fb99019eb72a92d58f6 100644 --- a/entry/build.gradle +++ b/entry/build.gradle @@ -1,6 +1,7 @@ apply plugin: 'com.huawei.ohos.hap' -ohos { +apply plugin: 'com.huawei.ohos.decctest' +ohos { compileSdkVersion 5 defaultConfig { compatibleSdkVersion 5 @@ -11,6 +12,7 @@ dependencies { implementation fileTree(dir: 'libs', include: ['*.jar', '*.har']) testCompile 'junit:junit:4.12' compile project(path: ':audiovisualizer') + ohosTestImplementation 'com.huawei.ohos.testkit:runner:1.0.0.100' } diff --git a/entry/src/main/config.json b/entry/src/main/config.json index 6f700822772645d28e669f52cb9d1fe7f52da756..efd1b1204b7aa4b6998d21c417ec96878e3a43be 100644 --- a/entry/src/main/config.json +++ b/entry/src/main/config.json @@ -3,11 +3,11 @@ "bundleName": "com.chibde.visualizer", "vendor": "chibde", "version": { - "code": 1, - "name": "1.0" + "code": 1000000, + "name": "1.0.0" }, "apiVersion": { - "compatible": 5, + "compatible": 4, "target": 5, "releaseType": "Release" } diff --git a/entry/src/ohosTest/config.json b/entry/src/ohosTest/config.json new file mode 100644 index 0000000000000000000000000000000000000000..9f172a7407a4f0b9ce3b0c7bebcac7012041d99a --- /dev/null +++ b/entry/src/ohosTest/config.json @@ -0,0 +1,40 @@ +{ + "app": { + "bundleName": "com.chibde.visualizer", + "vendor": "chibde", + "version": { + "code": 1000000, + "name": "1.0.0" + }, + "apiVersion": { + "compatible": 4, + "target": 5, + "releaseType": "Release" + } + }, + "deviceConfig": {}, + "module": { + "package": "com.chibde.visualizer", + "name": "testModule", + "deviceType": [ + "phone" + ], + "distro": { + "deliveryWithInstall": true, + "moduleName": "entry_test", + "moduleType": "feature", + "installationFree": true + }, + "abilities": [ + { + "name": "decc.testkit.runner.EntryAbility", + "description": "Test Entry Ability", + "icon": "$media:icon", + "launchType": "standard", + "orientation": "landscape", + "visible": true, + "type": "page" + } + ] + } +} \ No newline at end of file diff --git a/entry/src/ohosTest/java/com/chibde/visualizer/ExampleOhosTest.java b/entry/src/ohosTest/java/com/chibde/visualizer/ExampleOhosTest.java new file mode 100644 index 0000000000000000000000000000000000000000..195163057e2179fff681533a4b39aad1634ee5b5 --- /dev/null +++ b/entry/src/ohosTest/java/com/chibde/visualizer/ExampleOhosTest.java @@ -0,0 +1,15 @@ +package com.chibde.visualizer; + +import ohos.aafwk.ability.delegation.AbilityDelegatorRegistry; +import org.junit.Test; + +import static org.junit.Assert.assertEquals; + +public class ExampleOhosTest { + //纯UI组件,暂无单元测试 + @Test + public void testBundleName() { + final String actualBundleName = AbilityDelegatorRegistry.getArguments().getTestBundleName(); + assertEquals("com.chibde.visualizer", actualBundleName); + } +} \ No newline at end of file diff --git a/local.properties b/local.properties index 6dd9c8aa893a36270d007c7f6eece0051ea553a4..cc3353248cfec97e3399b99a973ab3c67880f7e6 100644 --- a/local.properties +++ b/local.properties @@ -7,6 +7,6 @@ # Location of the SDK. This is only used by Gradle. # For customization when using a Version Control System, please read the # header note. -#Sun May 30 18:23:37 CST 2021 +#Wed Jun 02 18:34:33 CST 2021 nodejs.dir=C\:\\Program Files\\nodejs hwsdk.dir=C\:\\Users\\Administrator\\AppData\\Local\\Huawei\\Sdk