From b288bbb4232120e3627e4b8957db84ef64febed3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=9C=E5=85=B5=E5=85=B5?= Date: Thu, 3 Jun 2021 10:28:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.gradle | 2 +- entry/src/main/config.json | 2 +- entry/src/ohosTest/config.json | 2 +- .../com/hos/expandabletext/ExampleTest.java | 9 +++++++ lib/src/main/config.json | 24 +++++++++---------- 5 files changed, 24 insertions(+), 15 deletions(-) create mode 100644 entry/src/test/java/com/hos/expandabletext/ExampleTest.java diff --git a/build.gradle b/build.gradle index 93adaa4..6dc578f 100644 --- a/build.gradle +++ b/build.gradle @@ -19,7 +19,7 @@ buildscript { jcenter() } dependencies { - classpath 'com.huawei.ohos:hap:2.4.2.7' + classpath 'com.huawei.ohos:hap:2.4.4.2' classpath 'com.huawei.ohos:decctest:1.0.0.6' } } diff --git a/entry/src/main/config.json b/entry/src/main/config.json index 7e09f01..78c260c 100644 --- a/entry/src/main/config.json +++ b/entry/src/main/config.json @@ -3,7 +3,7 @@ "bundleName": "com.ms.square.ohos.expandabletext.sample", "vendor": "hos", "version": { - "code": 1, + "code": 1000000, "name": "1.0" }, "apiVersion": { diff --git a/entry/src/ohosTest/config.json b/entry/src/ohosTest/config.json index dc716ce..08c607d 100644 --- a/entry/src/ohosTest/config.json +++ b/entry/src/ohosTest/config.json @@ -3,7 +3,7 @@ "bundleName": "com.hos.expandabletext", "vendor": "hos", "version": { - "code": 1, + "code": 1000000, "name": "1.0" }, "apiVersion": { diff --git a/entry/src/test/java/com/hos/expandabletext/ExampleTest.java b/entry/src/test/java/com/hos/expandabletext/ExampleTest.java new file mode 100644 index 0000000..e8ac335 --- /dev/null +++ b/entry/src/test/java/com/hos/expandabletext/ExampleTest.java @@ -0,0 +1,9 @@ +package com.hos.expandabletext; + +import org.junit.Test; + +public class ExampleTest { + @Test + public void onStart() { + } +} diff --git a/lib/src/main/config.json b/lib/src/main/config.json index a28c6a5..8c0c910 100644 --- a/lib/src/main/config.json +++ b/lib/src/main/config.json @@ -1,9 +1,9 @@ { "app": { - "bundleName": "com.ms.square.ohos.expandabletextview", + "bundleName": "com.ms.square.ohos.expandabletext", "vendor": "loopj", "version": { - "code": 1, + "code": 1000000, "name": "1.0" }, "apiVersion": { @@ -14,7 +14,7 @@ }, "deviceConfig": {}, "module": { - "package": "com.ms.square.ohos.expandabletextview", + "package": "com.ms.square.ohos.expandabletext", "deviceType": [ "phone" ], @@ -22,14 +22,14 @@ "deliveryWithInstall": true, "moduleName": "lib", "moduleType": "har" - } - }, - "reqPermissions": [ - { - "name": "ohos.permission.INTERNET" }, - { - "name": "ohos.permission.READ_USER_STORAGE" - } - ] + "reqPermissions": [ + { + "name": "ohos.permission.INTERNET" + }, + { + "name": "ohos.permission.READ_USER_STORAGE" + } + ] + } } \ No newline at end of file -- Gitee