From 226519d8abc012fcf3637db58dc00a3d2a8b3217 Mon Sep 17 00:00:00 2001 From: zhoulisheng <635547767@qq.com> Date: Fri, 1 Dec 2023 10:06:27 +0800 Subject: [PATCH] =?UTF-8?q?1.=E6=96=B0=E5=A2=9E=E4=BE=9D=E8=B5=96=E6=B3=A8?= =?UTF-8?q?=E9=87=8A,=E8=A7=A3=E9=87=8AXTS=E8=BF=90=E8=A1=8C=E5=92=8CHSP?= =?UTF-8?q?=E5=9C=BA=E6=99=AFentry=E4=B9=8B=E9=97=B4=E7=9A=84=E7=9F=9B?= =?UTF-8?q?=E7=9B=BE=E3=80=82=202.XTS=E4=B8=BA=E4=BA=86=E4=BF=9D=E8=AF=81?= =?UTF-8?q?=E6=88=90=E5=8A=9F=E8=BF=90=E8=A1=8C,=E5=8D=95=E7=8B=AC?= =?UTF-8?q?=E4=BE=9D=E8=B5=96imageknife=E4=B8=89=E6=96=B9=E5=BA=93?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhoulisheng <635547767@qq.com> --- entry/oh-package.json5 | 8 +++++++- entry/src/ohosTest/ets/test/imageknife.test.ets | 2 +- entry/src/ohosTest/ets/test/logutil.test.ets | 2 +- entry/src/ohosTest/ets/test/lrucache.test.ets | 2 +- entry/src/ohosTest/ets/test/requestoption.test.ets | 2 +- entry/src/ohosTest/ets/test/transfrom.test.ets | 2 +- 6 files changed, 12 insertions(+), 6 deletions(-) diff --git a/entry/oh-package.json5 b/entry/oh-package.json5 index ccee721..7f3ed43 100644 --- a/entry/oh-package.json5 +++ b/entry/oh-package.json5 @@ -6,7 +6,13 @@ "repository": {}, "version": "2.1.1-rc.4", "dependencies": { + + // 如果测试entry的demo需要开启以下2个依赖, 然后点击entry勾选 Edit Configurations->点击Deploy Multi Hap->勾选Deploy Multi Hap Packages + // 然后点击module栏目 把library也勾选上,这样就可以在HSP场景下测试Entry里面的HSP场景 "@ohos/libraryimageknife": "file:../library", - "@ohos/disklrucache": "^2.0.2-rc.0" + "@ohos/disklrucache": "^2.0.2-rc.0", + + // 下面这个依赖是为了跑XTS用例的,需要跑XTS时 需要注释上面2个依赖单独使用imageknife依赖 + "@ohos/imageknife": "file:../imageknife" } } diff --git a/entry/src/ohosTest/ets/test/imageknife.test.ets b/entry/src/ohosTest/ets/test/imageknife.test.ets index 2186d29..368a7a6 100644 --- a/entry/src/ohosTest/ets/test/imageknife.test.ets +++ b/entry/src/ohosTest/ets/test/imageknife.test.ets @@ -14,7 +14,7 @@ */ import hilog from '@ohos.hilog'; import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' -import {ImageKnife,ImageKnifeDrawFactory,ImageKnifeGlobal} from '@ohos/libraryimageknife' +import {ImageKnife,ImageKnifeDrawFactory,ImageKnifeGlobal} from '@ohos/imageknife' export default function ImageKnifeTest() { describe('ImageKnifeTest', ()=> { diff --git a/entry/src/ohosTest/ets/test/logutil.test.ets b/entry/src/ohosTest/ets/test/logutil.test.ets index 4ab90ac..71f61a1 100644 --- a/entry/src/ohosTest/ets/test/logutil.test.ets +++ b/entry/src/ohosTest/ets/test/logutil.test.ets @@ -14,7 +14,7 @@ */ import hilog from '@ohos.hilog'; import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' -import {LogUtil} from '@ohos/libraryimageknife' +import {LogUtil} from '@ohos/imageknife' export default function LogUtilTest() { describe('LogUtilTest', ()=> { diff --git a/entry/src/ohosTest/ets/test/lrucache.test.ets b/entry/src/ohosTest/ets/test/lrucache.test.ets index b5ef887..3238954 100644 --- a/entry/src/ohosTest/ets/test/lrucache.test.ets +++ b/entry/src/ohosTest/ets/test/lrucache.test.ets @@ -14,7 +14,7 @@ */ import hilog from '@ohos.hilog'; import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' -import {LruCache} from '@ohos/libraryimageknife' // DiskLruCache用例由DiskLruCache三方库提供 +import {LruCache} from '@ohos/imageknife' // DiskLruCache用例由DiskLruCache三方库提供 export default function lruCacheTest() { describe('lruCacheTest', ()=> { diff --git a/entry/src/ohosTest/ets/test/requestoption.test.ets b/entry/src/ohosTest/ets/test/requestoption.test.ets index b83bd10..e2b0621 100644 --- a/entry/src/ohosTest/ets/test/requestoption.test.ets +++ b/entry/src/ohosTest/ets/test/requestoption.test.ets @@ -15,7 +15,7 @@ */ import hilog from '@ohos.hilog'; import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' -import {RequestOption,Size} from '@ohos/libraryimageknife' +import {RequestOption,Size} from '@ohos/imageknife' export default function RequestOptionTest() { describe('RequestOptionTest', ()=> { diff --git a/entry/src/ohosTest/ets/test/transfrom.test.ets b/entry/src/ohosTest/ets/test/transfrom.test.ets index c1b1e8c..8802154 100644 --- a/entry/src/ohosTest/ets/test/transfrom.test.ets +++ b/entry/src/ohosTest/ets/test/transfrom.test.ets @@ -36,7 +36,7 @@ import { ToonFilterTransform, VignetteFilterTransform, -} from '@ohos/libraryimageknife' +} from '@ohos/imageknife' export default function Transform() { describe('Transform', ()=>{