Skip to content

Commit

Permalink
fix: updated package and deps
Browse files Browse the repository at this point in the history
  • Loading branch information
farfromrefug committed Mar 27, 2020
1 parent a1ba81c commit 499bbe7
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
16 changes: 12 additions & 4 deletions plugin/platforms/android/include.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,17 @@ android {
}

dependencies {
implementation 'com.facebook.fresco:fresco:2.0.0'
implementation 'com.facebook.fresco:animated-gif:2.0.0'
implementation 'jp.wasabeef:fresco-processors:2.1.0'
implementation 'com.facebook.fresco:fresco:2.1.0'
implementation 'com.facebook.fresco:animated-gif:2.1.0'
// If you want to use the GPU Filters
// implementation 'jp.co.cyberagent.android.gpuimage:gpuimage-library:1.3.0'
}

// implementation('com.facebook.fresco:fresco:2.1.0') {
// exclude group: 'com.facebook.soloader', module: 'soloader'
// exclude group: 'com.facebook.fresco', module: 'soloader'
// exclude group: 'com.facebook.fresco', module: 'nativeimagefilters'
// exclude group: 'com.facebook.fresco', module: 'nativeimagetranscoder'
// exclude group: 'com.facebook.fresco', module: 'memory-type-native'
// exclude group: 'com.facebook.fresco', module: 'imagepipeline-native'
// }
}
2 changes: 1 addition & 1 deletion plugin/platforms/ios/Podfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pod 'SDWebImage', '>= 5.0.6'
pod 'SDWebImage', '>= 5.6.1'
4 changes: 2 additions & 2 deletions src/image.android.ts
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ export class Img extends ImageBase {
requestBuilder = requestBuilder.setResizeOptions(new com.facebook.imagepipeline.common.ResizeOptions(this.decodeWidth, this.decodeHeight));
}
if (this.blurRadius) {
const postProcessor: any = new jp.wasabeef.fresco.processors.BlurPostprocessor(this._context, this.blurRadius, this.blurDownSampling || 1);
const postProcessor: any = new com.nativescript.image.ScalingBlurPostprocessor(2, this.blurRadius, this.blurDownSampling || 1);
requestBuilder = requestBuilder.setPostprocessor(postProcessor);
}

Expand Down Expand Up @@ -580,7 +580,7 @@ export class Img extends ImageBase {
builder.setPerfDataListener(
new com.facebook.drawee.backends.pipeline.info.ImagePerfDataListener({
onImageLoadStatusUpdated(param0: com.facebook.drawee.backends.pipeline.info.ImagePerfData, param1: number) {
CLog(CLogTypes.info, 'onSuonImageLoadStatusUpdatedbmit', param0, param1);
CLog(CLogTypes.info, 'onImageLoadStatusUpdated', param0, param1);
},
onImageVisibilityUpdated(param0: com.facebook.drawee.backends.pipeline.info.ImagePerfData, param1: number) {
CLog(CLogTypes.info, 'onImageVisibilityUpdated', param0, param1);
Expand Down

0 comments on commit 499bbe7

Please sign in to comment.