From 76f2ff3049675e9e6af84784422ea9646683654a Mon Sep 17 00:00:00 2001 From: zhoulisheng <635547767@qq.com> Date: Thu, 14 Jul 2022 23:18:08 -0700 Subject: [PATCH] 1.update imageknife library config files Signed-off-by: zhoulisheng <635547767@qq.com> --- imageknife/build-profile.json5 | 2 +- imageknife/hvigorfile.js | 2 +- imageknife/index.ets | 8 +++++++- imageknife/package.json | 34 ++++++++++++++++++---------------- 4 files changed, 27 insertions(+), 19 deletions(-) diff --git a/imageknife/build-profile.json5 b/imageknife/build-profile.json5 index 107d8c7..35dff6d 100644 --- a/imageknife/build-profile.json5 +++ b/imageknife/build-profile.json5 @@ -1,5 +1,5 @@ { - "apiType": "faMode", + "apiType": "stageMode", "buildOption": { } } diff --git a/imageknife/hvigorfile.js b/imageknife/hvigorfile.js index 3a7c40c..42ed4b4 100644 --- a/imageknife/hvigorfile.js +++ b/imageknife/hvigorfile.js @@ -1,3 +1,3 @@ // Script for compiling build behavior. It is built in the build plug-in and cannot be modified currently. -module.exports = require('@ohos/hvigor-ohos-plugin').legacyHarTasks +module.exports = require('@ohos/hvigor-ohos-plugin').harTasks diff --git a/imageknife/index.ets b/imageknife/index.ets index 035217e..baf014d 100644 --- a/imageknife/index.ets +++ b/imageknife/index.ets @@ -22,7 +22,6 @@ export * from './src/main/ets/components/cache/FileUtils' export * from './src/main/ets/components/cache/Md5' export * from './src/main/ets/components/cache/Base64' export * from './src/main/ets/components/cache/LruCache' -export * from './src/main/ets/components/cache/DiskLruCache' export * from './src/main/ets/components/cache/diskstrategy/enum/ALL' export * from './src/main/ets/components/cache/diskstrategy/enum/AUTOMATIC' export * from './src/main/ets/components/cache/diskstrategy/enum/DATA' @@ -48,6 +47,8 @@ export * from './src/main/ets/components/imageknife/compress/provider/RecoursePr export * from './src/main/ets/components/imageknife/crop/Crop' export * from './src/main/ets/components/imageknife/crop/CropImage' export * from './src/main/ets/components/imageknife/crop/CropOptions' +export {default as PixelMapCrop} from './src/main/ets/components/imageknife/crop/PixelMapCrop' +export * from './src/main/ets/components/imageknife/crop/CropCallback' /** * transform @@ -82,6 +83,11 @@ export * from './src/main/ets/components/imageknife/pngj/Pngj' export {handler} from './src/main/ets/components/imageknife/pngj/PngWork' export * from './src/main/ets/components/imageknife/pngj/UPNG' +export { + RESOLUTION_UNITS, insertMetadata, readMetadata, writeMetadata, textEncode, textDecode, extractChunks, encodeChunks +} from './src/main/ets/components/imageknife/pngj/png-metadata' + + /** * ImageKnife */ diff --git a/imageknife/package.json b/imageknife/package.json index 342ebdb..332c2ad 100644 --- a/imageknife/package.json +++ b/imageknife/package.json @@ -1,27 +1,29 @@ { - "types": "", - "keywords": [ + "types":"", + "keywords":[ "OpenHarmony", "ImageKnife", "glide" ], - "author": "ohos_tpc", - "description": "专门为OpenHarmony打造的一款图像加载缓存库,致力于更高效、更轻便、更简单", - "ohos": { - "org": "opensource" + "author":"ohos_tpc", + "description":"专门为OpenHarmony打造的一款图像加载缓存库,致力于更高效、更轻便、更简单", + "ohos":{ + "org":"opensource" }, - "main": "index.ets", - "repository": "https://gitee.com/openharmony-tpc/ImageKnife", - "version": "1.0.2", - "dependencies": { - "pako": "^1.0.5" + "main":"index.ets", + "repository":"https://gitee.com/openharmony-tpc/ImageKnife", + "version":"1.0.2", + "dependencies":{ + "pako":"^1.0.5", + "@ohos/disklrucache":"file:../disklrucache", + "crc-32":"^1.2.0" }, - "tags": [ + "tags":[ "OpenHarmony", "ImageKnife", "glide" ], - "license": "Apache License 2.0", - "devDependencies": {}, - "name": "@ohos/imageknife" -} + "license":"Apache License 2.0", + "devDependencies":{}, + "name":"@ohos/imageknife" +} \ No newline at end of file