From b6f94003f242b804d390e63a762e78118256b4ea Mon Sep 17 00:00:00 2001 From: zhang_hanyong Date: Wed, 6 Dec 2023 20:23:01 +0800 Subject: [PATCH 1/2] =?UTF-8?q?refactor:=20recyclerview-animators=E5=B7=A5?= =?UTF-8?q?=E7=A8=8B=EF=BC=8C=E5=BA=93=E4=BB=A3=E7=A0=81=E6=A8=A1=E5=9D=97?= =?UTF-8?q?=E7=94=B1recyclerview=5Fanimators=E9=87=8D=E5=90=8D=E4=B8=BAlib?= =?UTF-8?q?rary?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhang_hanyong --- build-profile.json5 | 4 ++-- entry/oh-package.json5 | 4 ++-- {recyclerview_animators => library}/.gitignore | 0 {recyclerview_animators => library}/Index.ets | 0 {recyclerview_animators => library}/build-profile.json5 | 0 {recyclerview_animators => library}/consumer-rules.txt | 0 {recyclerview_animators => library}/hvigorfile.ts | 0 {recyclerview_animators => library}/obfuscation-rules.txt | 0 {recyclerview_animators => library}/oh-package.json5 | 2 +- .../src/main/ets/components/RecyclerView.ets | 0 .../components/adapterAnimator/AlphaInAnimationAdapter.ets | 0 .../components/adapterAnimator/ScaleInAnimationAdapter.ets | 0 .../adapterAnimator/SlideInBottomAnimationAdapter.ets | 0 .../adapterAnimator/SlideInLeftAnimationAdapter.ets | 0 .../adapterAnimator/SlideInRightAnimationAdapter.ets | 0 .../src/main/ets/components/itemAnimator/FadeInAnimator.ets | 0 .../main/ets/components/itemAnimator/FadeInDownAnimator.ets | 0 .../main/ets/components/itemAnimator/FadeInLeftAnimator.ets | 0 .../main/ets/components/itemAnimator/FadeInRightAnimator.ets | 0 .../src/main/ets/components/itemAnimator/FadeInUpAnimator.ets | 0 .../src/main/ets/components/itemAnimator/LandingAnimator.ets | 0 .../ets/components/itemAnimator/OvershootInLeftAnimator.ets | 0 .../ets/components/itemAnimator/OvershootInRightAnimator.ets | 0 .../src/main/ets/components/itemAnimator/ScaleInAnimator.ets | 0 .../ets/components/itemAnimator/ScaleInBottomAnimator.ets | 0 .../main/ets/components/itemAnimator/ScaleInLeftAnimator.ets | 0 .../main/ets/components/itemAnimator/ScaleInRightAnimator.ets | 0 .../main/ets/components/itemAnimator/ScaleInTopAnimator.ets | 0 .../main/ets/components/itemAnimator/SlideInDownAnimator.ets | 0 .../main/ets/components/itemAnimator/SlideInLeftAnimator.ets | 0 .../main/ets/components/itemAnimator/SlideInRightAnimator.ets | 0 .../main/ets/components/itemAnimator/SlideInUpAnimator.ets | 0 {recyclerview_animators => library}/src/main/module.json5 | 4 ++-- .../src/main/resources/base/element/string.json | 0 .../src/main/resources/en_US/element/string.json | 0 .../src/main/resources/zh_CN/element/string.json | 0 36 files changed, 7 insertions(+), 7 deletions(-) rename {recyclerview_animators => library}/.gitignore (100%) rename {recyclerview_animators => library}/Index.ets (100%) rename {recyclerview_animators => library}/build-profile.json5 (100%) rename {recyclerview_animators => library}/consumer-rules.txt (100%) rename {recyclerview_animators => library}/hvigorfile.ts (100%) rename {recyclerview_animators => library}/obfuscation-rules.txt (100%) rename {recyclerview_animators => library}/oh-package.json5 (99%) rename {recyclerview_animators => library}/src/main/ets/components/RecyclerView.ets (100%) rename {recyclerview_animators => library}/src/main/ets/components/adapterAnimator/AlphaInAnimationAdapter.ets (100%) rename {recyclerview_animators => library}/src/main/ets/components/adapterAnimator/ScaleInAnimationAdapter.ets (100%) rename {recyclerview_animators => library}/src/main/ets/components/adapterAnimator/SlideInBottomAnimationAdapter.ets (100%) rename {recyclerview_animators => library}/src/main/ets/components/adapterAnimator/SlideInLeftAnimationAdapter.ets (100%) rename {recyclerview_animators => library}/src/main/ets/components/adapterAnimator/SlideInRightAnimationAdapter.ets (100%) rename {recyclerview_animators => library}/src/main/ets/components/itemAnimator/FadeInAnimator.ets (100%) rename {recyclerview_animators => library}/src/main/ets/components/itemAnimator/FadeInDownAnimator.ets (100%) rename {recyclerview_animators => library}/src/main/ets/components/itemAnimator/FadeInLeftAnimator.ets (100%) rename {recyclerview_animators => library}/src/main/ets/components/itemAnimator/FadeInRightAnimator.ets (100%) rename {recyclerview_animators => library}/src/main/ets/components/itemAnimator/FadeInUpAnimator.ets (100%) rename {recyclerview_animators => library}/src/main/ets/components/itemAnimator/LandingAnimator.ets (100%) rename {recyclerview_animators => library}/src/main/ets/components/itemAnimator/OvershootInLeftAnimator.ets (100%) rename {recyclerview_animators => library}/src/main/ets/components/itemAnimator/OvershootInRightAnimator.ets (100%) rename {recyclerview_animators => library}/src/main/ets/components/itemAnimator/ScaleInAnimator.ets (100%) rename {recyclerview_animators => library}/src/main/ets/components/itemAnimator/ScaleInBottomAnimator.ets (100%) rename {recyclerview_animators => library}/src/main/ets/components/itemAnimator/ScaleInLeftAnimator.ets (100%) rename {recyclerview_animators => library}/src/main/ets/components/itemAnimator/ScaleInRightAnimator.ets (100%) rename {recyclerview_animators => library}/src/main/ets/components/itemAnimator/ScaleInTopAnimator.ets (100%) rename {recyclerview_animators => library}/src/main/ets/components/itemAnimator/SlideInDownAnimator.ets (100%) rename {recyclerview_animators => library}/src/main/ets/components/itemAnimator/SlideInLeftAnimator.ets (100%) rename {recyclerview_animators => library}/src/main/ets/components/itemAnimator/SlideInRightAnimator.ets (100%) rename {recyclerview_animators => library}/src/main/ets/components/itemAnimator/SlideInUpAnimator.ets (100%) rename {recyclerview_animators => library}/src/main/module.json5 (71%) rename {recyclerview_animators => library}/src/main/resources/base/element/string.json (100%) rename {recyclerview_animators => library}/src/main/resources/en_US/element/string.json (100%) rename {recyclerview_animators => library}/src/main/resources/zh_CN/element/string.json (100%) diff --git a/build-profile.json5 b/build-profile.json5 index 9eb68e6..f0668ed 100644 --- a/build-profile.json5 +++ b/build-profile.json5 @@ -34,8 +34,8 @@ ] }, { - "name": "recyclerview_animators", - "srcPath": "./recyclerview_animators" + "name": "library", + "srcPath": "./library" } ] } \ No newline at end of file diff --git a/entry/oh-package.json5 b/entry/oh-package.json5 index 8124860..8cbfdc8 100644 --- a/entry/oh-package.json5 +++ b/entry/oh-package.json5 @@ -7,10 +7,10 @@ "directoryLevel": "module", "buildTool": "hvigor" }, - "description": "example description", + "description": "This is an example for using the recyclerview-animators library", "repository": {}, "version": "2.0.0", "dependencies": { - "@ohos/recyclerview-animators": "file:../recyclerview_animators" + "@ohos/recyclerview-animators": "file:../library" } } \ No newline at end of file diff --git a/recyclerview_animators/.gitignore b/library/.gitignore similarity index 100% rename from recyclerview_animators/.gitignore rename to library/.gitignore diff --git a/recyclerview_animators/Index.ets b/library/Index.ets similarity index 100% rename from recyclerview_animators/Index.ets rename to library/Index.ets diff --git a/recyclerview_animators/build-profile.json5 b/library/build-profile.json5 similarity index 100% rename from recyclerview_animators/build-profile.json5 rename to library/build-profile.json5 diff --git a/recyclerview_animators/consumer-rules.txt b/library/consumer-rules.txt similarity index 100% rename from recyclerview_animators/consumer-rules.txt rename to library/consumer-rules.txt diff --git a/recyclerview_animators/hvigorfile.ts b/library/hvigorfile.ts similarity index 100% rename from recyclerview_animators/hvigorfile.ts rename to library/hvigorfile.ts diff --git a/recyclerview_animators/obfuscation-rules.txt b/library/obfuscation-rules.txt similarity index 100% rename from recyclerview_animators/obfuscation-rules.txt rename to library/obfuscation-rules.txt diff --git a/recyclerview_animators/oh-package.json5 b/library/oh-package.json5 similarity index 99% rename from recyclerview_animators/oh-package.json5 rename to library/oh-package.json5 index 8098423..0da36e4 100644 --- a/recyclerview_animators/oh-package.json5 +++ b/library/oh-package.json5 @@ -23,4 +23,4 @@ "license": "Apache License 2.0", "devDependencies": {}, "name": "@ohos/recyclerview-animators" -} +} \ No newline at end of file diff --git a/recyclerview_animators/src/main/ets/components/RecyclerView.ets b/library/src/main/ets/components/RecyclerView.ets similarity index 100% rename from recyclerview_animators/src/main/ets/components/RecyclerView.ets rename to library/src/main/ets/components/RecyclerView.ets diff --git a/recyclerview_animators/src/main/ets/components/adapterAnimator/AlphaInAnimationAdapter.ets b/library/src/main/ets/components/adapterAnimator/AlphaInAnimationAdapter.ets similarity index 100% rename from recyclerview_animators/src/main/ets/components/adapterAnimator/AlphaInAnimationAdapter.ets rename to library/src/main/ets/components/adapterAnimator/AlphaInAnimationAdapter.ets diff --git a/recyclerview_animators/src/main/ets/components/adapterAnimator/ScaleInAnimationAdapter.ets b/library/src/main/ets/components/adapterAnimator/ScaleInAnimationAdapter.ets similarity index 100% rename from recyclerview_animators/src/main/ets/components/adapterAnimator/ScaleInAnimationAdapter.ets rename to library/src/main/ets/components/adapterAnimator/ScaleInAnimationAdapter.ets diff --git a/recyclerview_animators/src/main/ets/components/adapterAnimator/SlideInBottomAnimationAdapter.ets b/library/src/main/ets/components/adapterAnimator/SlideInBottomAnimationAdapter.ets similarity index 100% rename from recyclerview_animators/src/main/ets/components/adapterAnimator/SlideInBottomAnimationAdapter.ets rename to library/src/main/ets/components/adapterAnimator/SlideInBottomAnimationAdapter.ets diff --git a/recyclerview_animators/src/main/ets/components/adapterAnimator/SlideInLeftAnimationAdapter.ets b/library/src/main/ets/components/adapterAnimator/SlideInLeftAnimationAdapter.ets similarity index 100% rename from recyclerview_animators/src/main/ets/components/adapterAnimator/SlideInLeftAnimationAdapter.ets rename to library/src/main/ets/components/adapterAnimator/SlideInLeftAnimationAdapter.ets diff --git a/recyclerview_animators/src/main/ets/components/adapterAnimator/SlideInRightAnimationAdapter.ets b/library/src/main/ets/components/adapterAnimator/SlideInRightAnimationAdapter.ets similarity index 100% rename from recyclerview_animators/src/main/ets/components/adapterAnimator/SlideInRightAnimationAdapter.ets rename to library/src/main/ets/components/adapterAnimator/SlideInRightAnimationAdapter.ets diff --git a/recyclerview_animators/src/main/ets/components/itemAnimator/FadeInAnimator.ets b/library/src/main/ets/components/itemAnimator/FadeInAnimator.ets similarity index 100% rename from recyclerview_animators/src/main/ets/components/itemAnimator/FadeInAnimator.ets rename to library/src/main/ets/components/itemAnimator/FadeInAnimator.ets diff --git a/recyclerview_animators/src/main/ets/components/itemAnimator/FadeInDownAnimator.ets b/library/src/main/ets/components/itemAnimator/FadeInDownAnimator.ets similarity index 100% rename from recyclerview_animators/src/main/ets/components/itemAnimator/FadeInDownAnimator.ets rename to library/src/main/ets/components/itemAnimator/FadeInDownAnimator.ets diff --git a/recyclerview_animators/src/main/ets/components/itemAnimator/FadeInLeftAnimator.ets b/library/src/main/ets/components/itemAnimator/FadeInLeftAnimator.ets similarity index 100% rename from recyclerview_animators/src/main/ets/components/itemAnimator/FadeInLeftAnimator.ets rename to library/src/main/ets/components/itemAnimator/FadeInLeftAnimator.ets diff --git a/recyclerview_animators/src/main/ets/components/itemAnimator/FadeInRightAnimator.ets b/library/src/main/ets/components/itemAnimator/FadeInRightAnimator.ets similarity index 100% rename from recyclerview_animators/src/main/ets/components/itemAnimator/FadeInRightAnimator.ets rename to library/src/main/ets/components/itemAnimator/FadeInRightAnimator.ets diff --git a/recyclerview_animators/src/main/ets/components/itemAnimator/FadeInUpAnimator.ets b/library/src/main/ets/components/itemAnimator/FadeInUpAnimator.ets similarity index 100% rename from recyclerview_animators/src/main/ets/components/itemAnimator/FadeInUpAnimator.ets rename to library/src/main/ets/components/itemAnimator/FadeInUpAnimator.ets diff --git a/recyclerview_animators/src/main/ets/components/itemAnimator/LandingAnimator.ets b/library/src/main/ets/components/itemAnimator/LandingAnimator.ets similarity index 100% rename from recyclerview_animators/src/main/ets/components/itemAnimator/LandingAnimator.ets rename to library/src/main/ets/components/itemAnimator/LandingAnimator.ets diff --git a/recyclerview_animators/src/main/ets/components/itemAnimator/OvershootInLeftAnimator.ets b/library/src/main/ets/components/itemAnimator/OvershootInLeftAnimator.ets similarity index 100% rename from recyclerview_animators/src/main/ets/components/itemAnimator/OvershootInLeftAnimator.ets rename to library/src/main/ets/components/itemAnimator/OvershootInLeftAnimator.ets diff --git a/recyclerview_animators/src/main/ets/components/itemAnimator/OvershootInRightAnimator.ets b/library/src/main/ets/components/itemAnimator/OvershootInRightAnimator.ets similarity index 100% rename from recyclerview_animators/src/main/ets/components/itemAnimator/OvershootInRightAnimator.ets rename to library/src/main/ets/components/itemAnimator/OvershootInRightAnimator.ets diff --git a/recyclerview_animators/src/main/ets/components/itemAnimator/ScaleInAnimator.ets b/library/src/main/ets/components/itemAnimator/ScaleInAnimator.ets similarity index 100% rename from recyclerview_animators/src/main/ets/components/itemAnimator/ScaleInAnimator.ets rename to library/src/main/ets/components/itemAnimator/ScaleInAnimator.ets diff --git a/recyclerview_animators/src/main/ets/components/itemAnimator/ScaleInBottomAnimator.ets b/library/src/main/ets/components/itemAnimator/ScaleInBottomAnimator.ets similarity index 100% rename from recyclerview_animators/src/main/ets/components/itemAnimator/ScaleInBottomAnimator.ets rename to library/src/main/ets/components/itemAnimator/ScaleInBottomAnimator.ets diff --git a/recyclerview_animators/src/main/ets/components/itemAnimator/ScaleInLeftAnimator.ets b/library/src/main/ets/components/itemAnimator/ScaleInLeftAnimator.ets similarity index 100% rename from recyclerview_animators/src/main/ets/components/itemAnimator/ScaleInLeftAnimator.ets rename to library/src/main/ets/components/itemAnimator/ScaleInLeftAnimator.ets diff --git a/recyclerview_animators/src/main/ets/components/itemAnimator/ScaleInRightAnimator.ets b/library/src/main/ets/components/itemAnimator/ScaleInRightAnimator.ets similarity index 100% rename from recyclerview_animators/src/main/ets/components/itemAnimator/ScaleInRightAnimator.ets rename to library/src/main/ets/components/itemAnimator/ScaleInRightAnimator.ets diff --git a/recyclerview_animators/src/main/ets/components/itemAnimator/ScaleInTopAnimator.ets b/library/src/main/ets/components/itemAnimator/ScaleInTopAnimator.ets similarity index 100% rename from recyclerview_animators/src/main/ets/components/itemAnimator/ScaleInTopAnimator.ets rename to library/src/main/ets/components/itemAnimator/ScaleInTopAnimator.ets diff --git a/recyclerview_animators/src/main/ets/components/itemAnimator/SlideInDownAnimator.ets b/library/src/main/ets/components/itemAnimator/SlideInDownAnimator.ets similarity index 100% rename from recyclerview_animators/src/main/ets/components/itemAnimator/SlideInDownAnimator.ets rename to library/src/main/ets/components/itemAnimator/SlideInDownAnimator.ets diff --git a/recyclerview_animators/src/main/ets/components/itemAnimator/SlideInLeftAnimator.ets b/library/src/main/ets/components/itemAnimator/SlideInLeftAnimator.ets similarity index 100% rename from recyclerview_animators/src/main/ets/components/itemAnimator/SlideInLeftAnimator.ets rename to library/src/main/ets/components/itemAnimator/SlideInLeftAnimator.ets diff --git a/recyclerview_animators/src/main/ets/components/itemAnimator/SlideInRightAnimator.ets b/library/src/main/ets/components/itemAnimator/SlideInRightAnimator.ets similarity index 100% rename from recyclerview_animators/src/main/ets/components/itemAnimator/SlideInRightAnimator.ets rename to library/src/main/ets/components/itemAnimator/SlideInRightAnimator.ets diff --git a/recyclerview_animators/src/main/ets/components/itemAnimator/SlideInUpAnimator.ets b/library/src/main/ets/components/itemAnimator/SlideInUpAnimator.ets similarity index 100% rename from recyclerview_animators/src/main/ets/components/itemAnimator/SlideInUpAnimator.ets rename to library/src/main/ets/components/itemAnimator/SlideInUpAnimator.ets diff --git a/recyclerview_animators/src/main/module.json5 b/library/src/main/module.json5 similarity index 71% rename from recyclerview_animators/src/main/module.json5 rename to library/src/main/module.json5 index 9cae898..0204bcb 100644 --- a/recyclerview_animators/src/main/module.json5 +++ b/library/src/main/module.json5 @@ -1,10 +1,10 @@ { "module": { - "name": "recyclerview_animators", + "name": "library", "type": "har", "deviceTypes": [ "default", "tablet" ] } -} +} \ No newline at end of file diff --git a/recyclerview_animators/src/main/resources/base/element/string.json b/library/src/main/resources/base/element/string.json similarity index 100% rename from recyclerview_animators/src/main/resources/base/element/string.json rename to library/src/main/resources/base/element/string.json diff --git a/recyclerview_animators/src/main/resources/en_US/element/string.json b/library/src/main/resources/en_US/element/string.json similarity index 100% rename from recyclerview_animators/src/main/resources/en_US/element/string.json rename to library/src/main/resources/en_US/element/string.json diff --git a/recyclerview_animators/src/main/resources/zh_CN/element/string.json b/library/src/main/resources/zh_CN/element/string.json similarity index 100% rename from recyclerview_animators/src/main/resources/zh_CN/element/string.json rename to library/src/main/resources/zh_CN/element/string.json -- Gitee From 887b0750f068b2d21bd4fd23a4afe044b5408042 Mon Sep 17 00:00:00 2001 From: zhang_hanyong Date: Wed, 6 Dec 2023 20:26:16 +0800 Subject: [PATCH 2/2] =?UTF-8?q?docs:=20=E6=9B=B4=E6=96=B0README.md?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhang_hanyong --- CHANGELOG.md | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c586a66..39179ea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ ## v2.0.0 -1. 适配DevEco Studio版本: 4.0 Beta2(4.0.3.600), openHarmony SDK版本:API10 Release(4.0.10.11) +1. 适配DevEco Studio版本: 4.0 Beta2(4.0.3.600), OpenHarmony SDK版本:API10 Release(4.0.10.11) 2. ArkTs新语法适配 ## v1.1.1 diff --git a/README.md b/README.md index 1f351a1..7f2242f 100644 --- a/README.md +++ b/README.md @@ -74,7 +74,7 @@ build() { ```` |---- recyclerview_animators | |---- entry # 示例代码文件夹 -| |---- recyclerview_animators # 库文件夹 +| |---- library # 库文件夹 | |----src |----main |----ets -- Gitee