diff --git a/README.md b/README.md index b52b27ee6111849b293f309b3f3dc4e1ce9055b1..a654e86f574d3549909c497ea58e8a382fe3a779 100644 --- a/README.md +++ b/README.md @@ -140,7 +140,7 @@ OpenHarmony ohpm 环境配置等更多内容,请参考[如何安装 OpenHarmon ``` |---- RoundedImageView | |---- entry # 示例代码文件夹 -| |---- RoundedImageView # RoundedImageView库文件夹 +| |---- library # RoundedImageView核心库文件夹 | |---- src | |---- main | |---- ets diff --git a/build-profile.json5 b/build-profile.json5 index 416203c8d8248a6c21dad6e3e8cf6f91d495b483..47f4f64c0893b3ddc4f06ad13d0d13f55483782e 100644 --- a/build-profile.json5 +++ b/build-profile.json5 @@ -24,8 +24,8 @@ ] }, { - "name": "RoundedImageView", - "srcPath": "./RoundedImageView" + "name": "library", + "srcPath": "./library" } ] } \ No newline at end of file diff --git a/entry/oh-package.json5 b/entry/oh-package.json5 index cf9f48985f3daf123b949a666dbc753e624fbd62..61258a7a3cd12d4518ad9f629ed6043133714072 100644 --- a/entry/oh-package.json5 +++ b/entry/oh-package.json5 @@ -6,6 +6,6 @@ "repository": {}, "version": "2.0.1", "dependencies": { - "@ohos/roundedimageview": "file:../RoundedImageView" + "@ohos/roundedimageview": "file:../library" } -} +} \ No newline at end of file diff --git a/RoundedImageView/.gitignore b/library/.gitignore similarity index 100% rename from RoundedImageView/.gitignore rename to library/.gitignore diff --git a/RoundedImageView/build-profile.json5 b/library/build-profile.json5 similarity index 100% rename from RoundedImageView/build-profile.json5 rename to library/build-profile.json5 diff --git a/RoundedImageView/hvigorfile.ts b/library/hvigorfile.ts similarity index 100% rename from RoundedImageView/hvigorfile.ts rename to library/hvigorfile.ts diff --git a/RoundedImageView/index.ets b/library/index.ets similarity index 100% rename from RoundedImageView/index.ets rename to library/index.ets diff --git a/RoundedImageView/oh-package.json5 b/library/oh-package.json5 similarity index 92% rename from RoundedImageView/oh-package.json5 rename to library/oh-package.json5 index ec4ae81156ba3aa49c9485c415ecc9db44b289f3..1e53c7f8677488c064cf5174d3e4af7605a5ce88 100644 --- a/RoundedImageView/oh-package.json5 +++ b/library/oh-package.json5 @@ -8,7 +8,7 @@ "HarmonyOS" ], "author": "hihope", - "name": "@ohos/roundedimageview", + "name": "library", "description": "RoundedImageView支持许多附加功能,包括椭圆、圆角矩形、ScaleTypes 和 TileModes", "main": "index.ets", "repository": "https://gitee.com/openharmony-sig/RoundedImageView", @@ -16,4 +16,4 @@ "dependencies": { "@ohos/svg": "2.0.0" } -} +} \ No newline at end of file diff --git a/RoundedImageView/src/main/ets/components/DownloadUtils.ts b/library/src/main/ets/components/DownloadUtils.ts similarity index 100% rename from RoundedImageView/src/main/ets/components/DownloadUtils.ts rename to library/src/main/ets/components/DownloadUtils.ts diff --git a/RoundedImageView/src/main/ets/components/FileUtils.ts b/library/src/main/ets/components/FileUtils.ts similarity index 100% rename from RoundedImageView/src/main/ets/components/FileUtils.ts rename to library/src/main/ets/components/FileUtils.ts diff --git a/RoundedImageView/src/main/ets/components/GlobalContext.ts b/library/src/main/ets/components/GlobalContext.ts similarity index 100% rename from RoundedImageView/src/main/ets/components/GlobalContext.ts rename to library/src/main/ets/components/GlobalContext.ts diff --git a/RoundedImageView/src/main/ets/components/PixelMapUtils.ts b/library/src/main/ets/components/PixelMapUtils.ts similarity index 100% rename from RoundedImageView/src/main/ets/components/PixelMapUtils.ts rename to library/src/main/ets/components/PixelMapUtils.ts diff --git a/RoundedImageView/src/main/ets/components/RoundedImageView.ets b/library/src/main/ets/components/RoundedImageView.ets similarity index 100% rename from RoundedImageView/src/main/ets/components/RoundedImageView.ets rename to library/src/main/ets/components/RoundedImageView.ets diff --git a/RoundedImageView/src/main/ets/components/ScaleType.ts b/library/src/main/ets/components/ScaleType.ts similarity index 100% rename from RoundedImageView/src/main/ets/components/ScaleType.ts rename to library/src/main/ets/components/ScaleType.ts diff --git a/RoundedImageView/src/main/ets/components/SrcType.ts b/library/src/main/ets/components/SrcType.ts similarity index 100% rename from RoundedImageView/src/main/ets/components/SrcType.ts rename to library/src/main/ets/components/SrcType.ts diff --git a/RoundedImageView/src/main/ets/components/TileMode.ts b/library/src/main/ets/components/TileMode.ts similarity index 100% rename from RoundedImageView/src/main/ets/components/TileMode.ts rename to library/src/main/ets/components/TileMode.ts diff --git a/RoundedImageView/src/main/module.json5 b/library/src/main/module.json5 similarity index 74% rename from RoundedImageView/src/main/module.json5 rename to library/src/main/module.json5 index 657c11aaa1343e6e9eb4cbc71cc8d464fa5e914a..0204bcbe104d49753055cfe84e63bf81a404cf62 100644 --- a/RoundedImageView/src/main/module.json5 +++ b/library/src/main/module.json5 @@ -1,10 +1,10 @@ { "module": { - "name": "RoundedImageView", + "name": "library", "type": "har", "deviceTypes": [ "default", "tablet" ] } -} +} \ No newline at end of file diff --git a/RoundedImageView/src/main/resources/base/element/string.json b/library/src/main/resources/base/element/string.json similarity index 100% rename from RoundedImageView/src/main/resources/base/element/string.json rename to library/src/main/resources/base/element/string.json diff --git a/RoundedImageView/src/main/resources/en_US/element/string.json b/library/src/main/resources/en_US/element/string.json similarity index 100% rename from RoundedImageView/src/main/resources/en_US/element/string.json rename to library/src/main/resources/en_US/element/string.json diff --git a/RoundedImageView/src/main/resources/zh_CN/element/string.json b/library/src/main/resources/zh_CN/element/string.json similarity index 100% rename from RoundedImageView/src/main/resources/zh_CN/element/string.json rename to library/src/main/resources/zh_CN/element/string.json