From 1dda3d9fd94e49f9102b140bc0bfc9cc38a2685e Mon Sep 17 00:00:00 2001 From: lilinfeng-z <3211270061@qq.com> Date: Mon, 5 Jul 2021 20:02:58 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9readme,=E9=80=82=E9=85=8D?= =?UTF-8?q?=E6=96=B0=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Readme.md | 6 +++--- build.gradle | 6 +++--- entry/build.gradle | 2 +- entry/src/main/config.json | 4 ---- entry/src/ohosTest/config.json | 5 ----- shadowdrawable/build.gradle | 2 +- shadowdrawable/src/main/config.json | 7 +------ 7 files changed, 9 insertions(+), 23 deletions(-) diff --git a/Readme.md b/Readme.md index 9f643c3..bced58b 100644 --- a/Readme.md +++ b/Readme.md @@ -7,7 +7,7 @@ - 功能: 通过代码即可实现阴影效果 - 项目移植状态: 主功能完成 - 调用差异: 无 -- 开发版本: sdk5,DevEco Studio 2.1 Release +- 开发版本: sdk6,DevEco Studio 2.2 Beta1 - 基线版本:Releases 0.1 @@ -34,7 +34,7 @@ allprojects { ...... } ``` -在sdk5,DevEco Studio 2.1 Release下项目可直接运行 +在sdk6,DevEco Studio 2.2 Beta1下项目可直接运行 如无法运行,删除项目.gradle,.idea,build,gradle,build.gradle文件, 并依据自己的版本创建新项目,将新项目的对应文件复制到根目录下 @@ -49,7 +49,7 @@ CodeCheck代码测试无异常 CloudTest代码测试无异常 -火绒安全病毒安全检测通过 +病毒安全检测通过 当前版本demo功能与原组件基本无差异 diff --git a/build.gradle b/build.gradle index 2eba0e4..5560442 100644 --- a/build.gradle +++ b/build.gradle @@ -2,7 +2,7 @@ apply plugin: 'com.huawei.ohos.app' ohos { - compileSdkVersion 5 + compileSdkVersion 6 defaultConfig { compatibleSdkVersion 5 } @@ -22,8 +22,8 @@ buildscript { jcenter() } dependencies { - classpath 'com.huawei.ohos:hap:2.4.4.2' - classpath 'com.huawei.ohos:decctest:1.0.0.6' + classpath 'com.huawei.ohos:hap:2.4.5.0' + classpath 'com.huawei.ohos:decctest:1.2.4.1' } } diff --git a/entry/build.gradle b/entry/build.gradle index 74de5b7..303c522 100644 --- a/entry/build.gradle +++ b/entry/build.gradle @@ -1,7 +1,7 @@ apply plugin: 'com.huawei.ohos.hap' apply plugin: 'com.huawei.ohos.decctest' ohos { - compileSdkVersion 5 + compileSdkVersion 6 defaultConfig { compatibleSdkVersion 5 } diff --git a/entry/src/main/config.json b/entry/src/main/config.json index 8741fec..ec53c30 100644 --- a/entry/src/main/config.json +++ b/entry/src/main/config.json @@ -5,10 +5,6 @@ "version": { "code": 1000000, "name": "1.0" - }, - "apiVersion": { - "compatible": 5, - "target": 5 } }, "deviceConfig": {}, diff --git a/entry/src/ohosTest/config.json b/entry/src/ohosTest/config.json index c49ea56..dc720a0 100644 --- a/entry/src/ohosTest/config.json +++ b/entry/src/ohosTest/config.json @@ -5,11 +5,6 @@ "version": { "code": 1000000, "name": "1.0" - }, - "apiVersion": { - "compatible": 5, - "target": 5, - "releaseType": "Release" } }, "deviceConfig": {}, diff --git a/shadowdrawable/build.gradle b/shadowdrawable/build.gradle index adada0e..d78b0a8 100644 --- a/shadowdrawable/build.gradle +++ b/shadowdrawable/build.gradle @@ -1,7 +1,7 @@ apply plugin: 'com.huawei.ohos.library' ohos { - compileSdkVersion 5 + compileSdkVersion 6 defaultConfig { compatibleSdkVersion 5 } diff --git a/shadowdrawable/src/main/config.json b/shadowdrawable/src/main/config.json index 42f66da..4dd3c31 100644 --- a/shadowdrawable/src/main/config.json +++ b/shadowdrawable/src/main/config.json @@ -3,13 +3,8 @@ "bundleName": "com.sxu.shadowdrawabledemo", "vendor": "sxu", "version": { - "code": 1, + "code": 1000000, "name": "1.0" - }, - "apiVersion": { - "compatible": 5, - "target": 5, - "releaseType": "Beta1" } }, "deviceConfig": {}, -- Gitee From 3e2008c946c14ed5823009ecdd0777167d6de4c1 Mon Sep 17 00:00:00 2001 From: lilinfeng-z <3211270061@qq.com> Date: Tue, 6 Jul 2021 15:26:26 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9findbugs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sxu/shadowdrawabledemo/slice/PagerExampleSlice.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/entry/src/main/java/com/sxu/shadowdrawabledemo/slice/PagerExampleSlice.java b/entry/src/main/java/com/sxu/shadowdrawabledemo/slice/PagerExampleSlice.java index 5822ff7..fe18bc8 100644 --- a/entry/src/main/java/com/sxu/shadowdrawabledemo/slice/PagerExampleSlice.java +++ b/entry/src/main/java/com/sxu/shadowdrawabledemo/slice/PagerExampleSlice.java @@ -22,10 +22,10 @@ public class PagerExampleSlice extends Fraction { private PageSlider pageSlider; private List dataList = new ArrayList<>(); private int PADDING; - private final int PADDING_SIZE = 12; - private final int PROPORTION = 3; - private final int DATALIST_SIZE = 5; - private final int SHAPERADIUS = 8; + private static final int PADDING_SIZE = 12; + private static final int PROPORTION = 3; + private static final int DATALIST_SIZE = 5; + private static final int SHAPERADIUS = 8; @Override protected Component onComponentAttached(LayoutScatter scatter, ComponentContainer container, Intent intent) { -- Gitee