diff --git a/circleprogress/build.gradle b/circleprogress/build.gradle index 312bc1c336a2b750048a182991e5872344e45dbf..45ad141eba4c4e01bbf01a0acfbb6fd2d7921975 100644 --- a/circleprogress/build.gradle +++ b/circleprogress/build.gradle @@ -9,5 +9,5 @@ ohos { dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) - testCompile 'junit:junit:4.12' + testCompile 'junit:junit:4.13' } diff --git a/circleprogress/src/main/config.json b/circleprogress/src/main/config.json index 2a1558bc259e1b4dadc3e55c23fba7b647f3ec14..53ce3f0ebca2515b9788f1aaedf85463ebf241dc 100644 --- a/circleprogress/src/main/config.json +++ b/circleprogress/src/main/config.json @@ -3,8 +3,8 @@ "bundleName": "com.littlejie.app", "vendor": "littlejie", "version": { - "code": 1, - "name": "1.0" + "code": 1000000, + "name": "1.0.0" }, "apiVersion": { "compatible": 5, diff --git a/circleprogress/src/main/java/com/littlejie/circleprogress/DialProgress.java b/circleprogress/src/main/java/com/littlejie/circleprogress/DialProgress.java index 2a2cf9ba4a36580c64816deae93a7ff0188cdb45..be923a1d592cb7a45d6b938d92504a4b48bd44ef 100644 --- a/circleprogress/src/main/java/com/littlejie/circleprogress/DialProgress.java +++ b/circleprogress/src/main/java/com/littlejie/circleprogress/DialProgress.java @@ -1,11 +1,11 @@ /** - * Copyright (C) 2021 The Chinese Software International Co., Ltd. + * Copyright (C) 2021 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 an 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. diff --git a/circleprogress/src/main/java/com/littlejie/circleprogress/RoundProgressView.java b/circleprogress/src/main/java/com/littlejie/circleprogress/RoundProgressView.java index 5b2c5a58eb3e204a1df1561c000e4a90a4f198e4..f63621fbda6b224f3202ed47ad9b18dedf583bc7 100644 --- a/circleprogress/src/main/java/com/littlejie/circleprogress/RoundProgressView.java +++ b/circleprogress/src/main/java/com/littlejie/circleprogress/RoundProgressView.java @@ -1,5 +1,5 @@ -/* - * Copyright (C) 2021 The Chinese Software International Co., Ltd. +/** + * Copyright (C) 2021 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 an copy of the License at @@ -11,7 +11,6 @@ * 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. - * */ package com.littlejie.circleprogress; diff --git a/circleprogress/src/main/java/com/littlejie/circleprogress/WaveProgress.java b/circleprogress/src/main/java/com/littlejie/circleprogress/WaveProgress.java index bd5ab1b0e7087cb0f3214659eaa242b4abe5987b..4d166fee65a7605dcaea32cf52679dc4551f355a 100644 --- a/circleprogress/src/main/java/com/littlejie/circleprogress/WaveProgress.java +++ b/circleprogress/src/main/java/com/littlejie/circleprogress/WaveProgress.java @@ -1,5 +1,5 @@ -/* - * Copyright (C) 2021 The Chinese Software International Co., Ltd. +/** + * Copyright (C) 2021 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 an copy of the License at @@ -11,7 +11,6 @@ * 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. - * */ package com.littlejie.circleprogress; diff --git a/circleprogress/src/main/java/com/littlejie/circleprogress/utils/AnimatorValueUpdateUtil.java b/circleprogress/src/main/java/com/littlejie/circleprogress/utils/AnimatorValueUpdateUtil.java index ee3c8c03ca2acbf55395c0ea982708f8f0acf23b..4da7f3ad4be062006c4c8311510b91049b60ad2f 100644 --- a/circleprogress/src/main/java/com/littlejie/circleprogress/utils/AnimatorValueUpdateUtil.java +++ b/circleprogress/src/main/java/com/littlejie/circleprogress/utils/AnimatorValueUpdateUtil.java @@ -1,5 +1,5 @@ -/* - * Copyright (C) 2021 The Chinese Software International Co., Ltd. +/** + * Copyright (C) 2021 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 an copy of the License at @@ -11,7 +11,6 @@ * 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. - * */ package com.littlejie.circleprogress.utils; diff --git a/circleprogress/src/main/java/com/littlejie/circleprogress/utils/Constant.java b/circleprogress/src/main/java/com/littlejie/circleprogress/utils/Constant.java index 5606bc8d2d33598026b5ba1eaf40ce83789b4097..a8c7bbc63d4943e749c03f687e2db1f8c838e245 100644 --- a/circleprogress/src/main/java/com/littlejie/circleprogress/utils/Constant.java +++ b/circleprogress/src/main/java/com/littlejie/circleprogress/utils/Constant.java @@ -1,5 +1,5 @@ -/* - * Copyright (C) 2021 The Chinese Software International Co., Ltd. +/** + * Copyright (C) 2021 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 an copy of the License at @@ -11,7 +11,6 @@ * 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. - * */ package com.littlejie.circleprogress.utils; diff --git a/circleprogress/src/main/java/com/littlejie/circleprogress/utils/MiscUtil.java b/circleprogress/src/main/java/com/littlejie/circleprogress/utils/MiscUtil.java index 1ac8ae49f9b80cb1474b3e26497d21c6c563fa46..e46ba06668de503291793426971e2e0096e4dc9f 100644 --- a/circleprogress/src/main/java/com/littlejie/circleprogress/utils/MiscUtil.java +++ b/circleprogress/src/main/java/com/littlejie/circleprogress/utils/MiscUtil.java @@ -1,5 +1,5 @@ -/* - * Copyright (C) 2021 The Chinese Software International Co., Ltd. +/** + * Copyright (C) 2021 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 an copy of the License at @@ -11,7 +11,6 @@ * 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. - * */ package com.littlejie.circleprogress.utils; diff --git a/circleprogress/src/main/java/com/littlejie/circleprogress/utils/ViewUtils.java b/circleprogress/src/main/java/com/littlejie/circleprogress/utils/ViewUtils.java index a3ebb806a27ea54756454148f279f0a2ce0ac0ca..67ce51b5d22b51106b529da9b2d871651d40db28 100644 --- a/circleprogress/src/main/java/com/littlejie/circleprogress/utils/ViewUtils.java +++ b/circleprogress/src/main/java/com/littlejie/circleprogress/utils/ViewUtils.java @@ -1,5 +1,5 @@ -/* - * Copyright (C) 2021 The Chinese Software International Co., Ltd. +/** + * Copyright (C) 2021 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 an copy of the License at @@ -11,7 +11,6 @@ * 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. - * */ package com.littlejie.circleprogress.utils; diff --git a/entry/build.gradle b/entry/build.gradle index 6921cd84d1be344250db5157cfadca2b5e3d4cfd..aacce66b5a3ea86f354d5fbfc90b9f903d610489 100644 --- a/entry/build.gradle +++ b/entry/build.gradle @@ -1,7 +1,26 @@ apply plugin: 'com.huawei.ohos.hap' apply plugin: 'com.huawei.ohos.decctest' ohos { - + signingConfigs { + debug { + storeFile file('D:\\证书\\fcDebug.p12') + storePassword '0000001846633BB02AD72B430D1D9B20C032DB6C23FFE94A57A4E91E2032CE5F1CC4670087B3922C' + keyAlias = 'HMFC' + keyPassword '000000182688B1577B5560C361EA0995735D94580E243CB10692E1845F5F8CCBD9325DB3F391229A' + signAlg = 'SHA256withECDSA' + profile file('D:\\证书\\环形进度条Debug.p7b') + certpath file('D:\\证书\\HMFC_cetif.cer') + } + release { + storeFile file('D:\\证书\\fcDebug.p12') + storePassword '0000001846633BB02AD72B430D1D9B20C032DB6C23FFE94A57A4E91E2032CE5F1CC4670087B3922C' + keyAlias = 'HMFC' + keyPassword '000000182688B1577B5560C361EA0995735D94580E243CB10692E1845F5F8CCBD9325DB3F391229A' + signAlg = 'SHA256withECDSA' + profile file('D:\\证书\\环形进度条Debug.p7b') + certpath file('D:\\证书\\HMFC_cetif.cer') + } + } compileSdkVersion 5 defaultConfig { compatibleSdkVersion 5 diff --git a/entry/src/main/config.json b/entry/src/main/config.json index 4e07e0f09b131592f16af37dc5a2dd5d509dde48..805e078830d81604f31bc315b8b65274ab565d91 100644 --- a/entry/src/main/config.json +++ b/entry/src/main/config.json @@ -3,12 +3,13 @@ "bundleName": "com.littlejie.app", "vendor": "littlejie", "version": { - "code": 1, - "name": "1.0" + "code": 1000000, + "name": "1.0.0" }, "apiVersion": { "compatible": 5, - "target": 5 + "target": 6, + "releaseType": "Release" } }, "deviceConfig": {}, diff --git a/entry/src/main/java/com/littlejie/app/MainAbility.java b/entry/src/main/java/com/littlejie/app/MainAbility.java index 8be328c3721235c96bd9917a1bda55887c76a00d..c7f7a59b8902872163e41f10c6212f0497765205 100644 --- a/entry/src/main/java/com/littlejie/app/MainAbility.java +++ b/entry/src/main/java/com/littlejie/app/MainAbility.java @@ -1,5 +1,5 @@ -/* - * Copyright (C) 2021 The Chinese Software International Co., Ltd. +/** + * Copyright (C) 2021 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 an copy of the License at @@ -11,7 +11,6 @@ * 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. - * */ package com.littlejie.app; diff --git a/entry/src/main/java/com/littlejie/app/MyApplication.java b/entry/src/main/java/com/littlejie/app/MyApplication.java index a3602071b460800d9c7206f183a40187a499e77e..ba2ef4ab3ae18b3c206f1877ada4e0e5645507ec 100644 --- a/entry/src/main/java/com/littlejie/app/MyApplication.java +++ b/entry/src/main/java/com/littlejie/app/MyApplication.java @@ -1,5 +1,5 @@ -/* - * Copyright (C) 2021 The Chinese Software International Co., Ltd. +/** + * Copyright (C) 2021 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 an copy of the License at @@ -11,7 +11,6 @@ * 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. - * */ package com.littlejie.app; diff --git a/entry/src/main/java/com/littlejie/app/slice/MainAbilitySlice.java b/entry/src/main/java/com/littlejie/app/slice/MainAbilitySlice.java index 03ee9fff6c100801b6acde1abdd6c6366da34b10..5449cebe6f66b2080d50fbbfaacffab14466ad17 100644 --- a/entry/src/main/java/com/littlejie/app/slice/MainAbilitySlice.java +++ b/entry/src/main/java/com/littlejie/app/slice/MainAbilitySlice.java @@ -1,5 +1,5 @@ -/* - * Copyright (C) 2021 The Chinese Software International Co., Ltd. +/** + * Copyright (C) 2021 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 an copy of the License at @@ -11,7 +11,6 @@ * 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. - * */ package com.littlejie.app.slice; @@ -132,8 +131,4 @@ public class MainAbilitySlice extends AbilitySlice implements Component.ClickedL waveProgress.setValue(0); } } - - public void showTest(){ - System.out.println("test"); - } } diff --git a/entry/src/ohosTest/config.json b/entry/src/ohosTest/config.json index 2b65743e28a312078b2b6940f2550e41bb4dc534..3c7ce97c1a817bae8b70a2c59e821e1ca1529c85 100644 --- a/entry/src/ohosTest/config.json +++ b/entry/src/ohosTest/config.json @@ -8,7 +8,8 @@ }, "apiVersion": { "compatible": 5, - "target": 6 + "target": 6, + "releaseType": "Release" } }, "deviceConfig": {}, diff --git a/readme.md b/readme.md index ee7bc083bda01892ce862475ec2434750f3d0d78..22da59f6ea62b7143122cf72ee477fae1782dded 100644 --- a/readme.md +++ b/readme.md @@ -1,4 +1,4 @@ -# CircleProgress +# CIRCLEPROGRESS ------ **本项目是基于开源项目CircleProgress进行openharmony的移植和开发的,可以通过项目标签以及github地址 (https://github.com/MyLifeMyTravel/CircleProgress) 追踪到原项目版本** @@ -11,7 +11,6 @@ > * 调用差异:无 > * 开发版本:sdk5,DevEco Studio2.1 beta3 > * 基线版本:release 1.0.0 -> * 原项目Doc地址:https://github.com/MyLifeMyTravel/CircleProgress ## 效果演示 @@ -20,7 +19,7 @@ ## 安装教程 -在moudle级别下的build.gradle文件中添加依赖 +在项目根目录下的build.gradle文件中 ``` allprojects { repositories { @@ -33,7 +32,7 @@ allprojects { jcenter() } ``` -在entry模块中的build.gradle文件中添加 +在entry模块中的build.gradle文件中 ``` dependencies { implementation (`com.gitee.chinasoft_ohos:circleprogress:0.0.1-SNAPSHOT`) @@ -51,7 +50,6 @@ dependencies { ohos:width="150vp" ohos:center_in_parent="true" ohos:layout_alignment="horizontal_center" - ohos:progress="7000" app:bgArcColor="$color:progressBgColor" app:hint="走了" app:maxValue="10000" @@ -59,6 +57,15 @@ dependencies { app:value="3444" /> ``` +您可以选择在布局xml文件中设置以下属性, +``` +1.hint 进度条中心文字 +2.maxValue 进度条最大值 +3.unit 进度条中心第二行文字 +4.value 默认当前值 +``` + + 时速表使用此组件 ``` ``` +您可以选择在布局xml文件中设置以下属性, +``` +1.hint 进度条中心文字 +2.maxValue 进度条最大值 +3.unit 进度条中心第二行文字 +4.value 默认当前值 +5.dialWidth 分隔条宽度 +6.dialIntervalDegree 前景圆弧刻度数量 +7.arcWidth 圆弧宽度 +``` + 水波纹使用此组件 ``` ``` +您可以选择在布局xml文件中设置以下属性, +``` +1.value 默认值 +2.valueSize 默认值字体大小 +3.waveHeight 水波纹高度 +4.waveNum 水波数量 +5.darkWaveAnimTime 水波速度 +6.darkWaveColor 暗色水波颜色 +7.lightWaveColor 亮色水波颜色 +8.lightWaveDirect 亮色水波方向 +``` + ## 测试信息 ``` CodeCheck代码测试无异常 @@ -104,6 +134,6 @@ CloudTest代码测试无异常 火绒安全病毒安全检测通过 当前版本demo功能与原组件基本无差异 - +``` ## 版本迭代 > * 0.0.1_SNAPSHOT