forked from floraachy/ImageKnife
commit
3cb97ca8c4
|
@ -6,7 +6,13 @@
|
||||||
"repository": {},
|
"repository": {},
|
||||||
"version": "2.1.1-rc.4",
|
"version": "2.1.1-rc.4",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
||||||
|
// 如果测试entry的demo需要开启以下2个依赖, 然后点击entry勾选 Edit Configurations->点击Deploy Multi Hap->勾选Deploy Multi Hap Packages
|
||||||
|
// 然后点击module栏目 把library也勾选上,这样就可以在HSP场景下测试Entry里面的HSP场景
|
||||||
"@ohos/libraryimageknife": "file:../library",
|
"@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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
*/
|
*/
|
||||||
import hilog from '@ohos.hilog';
|
import hilog from '@ohos.hilog';
|
||||||
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium'
|
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() {
|
export default function ImageKnifeTest() {
|
||||||
describe('ImageKnifeTest', ()=> {
|
describe('ImageKnifeTest', ()=> {
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
*/
|
*/
|
||||||
import hilog from '@ohos.hilog';
|
import hilog from '@ohos.hilog';
|
||||||
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium'
|
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() {
|
export default function LogUtilTest() {
|
||||||
describe('LogUtilTest', ()=> {
|
describe('LogUtilTest', ()=> {
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
*/
|
*/
|
||||||
import hilog from '@ohos.hilog';
|
import hilog from '@ohos.hilog';
|
||||||
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium'
|
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() {
|
export default function lruCacheTest() {
|
||||||
describe('lruCacheTest', ()=> {
|
describe('lruCacheTest', ()=> {
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
*/
|
*/
|
||||||
import hilog from '@ohos.hilog';
|
import hilog from '@ohos.hilog';
|
||||||
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium'
|
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() {
|
export default function RequestOptionTest() {
|
||||||
describe('RequestOptionTest', ()=> {
|
describe('RequestOptionTest', ()=> {
|
||||||
|
|
|
@ -36,7 +36,7 @@ import {
|
||||||
ToonFilterTransform,
|
ToonFilterTransform,
|
||||||
VignetteFilterTransform,
|
VignetteFilterTransform,
|
||||||
|
|
||||||
} from '@ohos/libraryimageknife'
|
} from '@ohos/imageknife'
|
||||||
|
|
||||||
export default function Transform() {
|
export default function Transform() {
|
||||||
describe('Transform', ()=>{
|
describe('Transform', ()=>{
|
||||||
|
|
Loading…
Reference in New Issue