@nativescript-community/ui-image 4.1.0 → 4.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [4.1.1](https://github.com/nativescript-community/ui-image/compare/v4.1.0...v4.1.1) (2021-12-23)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * android remove dep on annotationx ([c9fdfbe](https://github.com/nativescript-community/ui-image/commit/c9fdfbe8f7c7f876abb53b1d8b9b7c68d65ae21f))
12
+
13
+
14
+
15
+
16
+
6
17
  # [4.1.0](https://github.com/nativescript-community/ui-image/compare/v4.0.34...v4.1.0) (2021-10-21)
7
18
 
8
19
 
package/image-common.d.ts CHANGED
@@ -41,6 +41,7 @@ export interface ImageError {
41
41
  }
42
42
  export interface ImagePipelineConfigSetting {
43
43
  isDownsampleEnabled?: boolean;
44
+ leakTracker?: any;
44
45
  }
45
46
  export declare class EventData implements IEventData {
46
47
  private _eventName;
package/image.android.js CHANGED
@@ -18,9 +18,13 @@ export function initialize(config) {
18
18
  if (config && config.isDownsampleEnabled) {
19
19
  builder.setDownsampleEnabled(true);
20
20
  }
21
+ if (config && config.leakTracker) {
22
+ builder.setCloseableReferenceLeakTracker(config.leakTracker);
23
+ }
21
24
  const imagePipelineConfig = builder.build();
22
25
  com.facebook.drawee.backends.pipeline.Fresco.initialize(context, imagePipelineConfig);
23
26
  initialized = true;
27
+ initializeConfig = null;
24
28
  }
25
29
  }
26
30
  export function getImagePipeline() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nativescript-community/ui-image",
3
- "version": "4.1.0",
3
+ "version": "4.1.1",
4
4
  "description": "Advanced and efficient image display plugin which uses Fresco (Android) and SDWebImage (iOS) to implement caching, placeholders, image effects, and much more.",
5
5
  "main": "./image",
6
6
  "sideEffects": false,
@@ -36,5 +36,5 @@
36
36
  },
37
37
  "license": "Apache-2.0",
38
38
  "readmeFilename": "README.md",
39
- "gitHead": "ea68ba9139661ca45d46bc829075eefe81e3e32d"
39
+ "gitHead": "c7d280737dc5545b82039bf08cbd7631ef4cd7a5"
40
40
  }
File without changes
@@ -0,0 +1,2 @@
1
+ #Thu Dec 23 15:59:45 CET 2021
2
+ gradle.version=6.4
File without changes
@@ -10,12 +10,16 @@ dependencies {
10
10
  implementation("com.facebook.fresco:fresco:$frescoVersion") {
11
11
  exclude group: 'com.facebook.soloader', module: 'soloader'
12
12
  exclude group: 'com.facebook.fresco', module: 'soloader'
13
+ exclude group: 'com.facebook.fresco', module: 'nativeimagefilters'
14
+ exclude group: 'com.facebook.fresco', module: 'nativeimagetranscoder'
15
+ exclude group: 'com.facebook.fresco', module: 'memory-type-native'
16
+ exclude group: 'com.facebook.fresco', module: 'imagepipeline-native'
13
17
  }
14
18
  implementation("com.facebook.fresco:imagepipeline-okhttp3:$frescoVersion") {
15
19
  exclude group: 'com.facebook.soloader', module: 'soloader'
16
20
  }
17
- implementation ("com.facebook.fresco:animated-gif:$frescoVersion") {
18
- exclude group: 'com.facebook.soloader', module: 'soloader'
19
- }
21
+ // implementation ("com.facebook.fresco:animated-gif:$frescoVersion") {
22
+ // exclude group: 'com.facebook.soloader', module: 'soloader'
23
+ // }
20
24
  implementation(name:'widgets-release', ext:'aar')
21
25
  }
@@ -24,8 +24,6 @@ import org.nativescript.widgets.BorderDrawable;
24
24
 
25
25
  import java.util.Arrays;
26
26
 
27
- import androidx.annotation.RequiresApi;
28
-
29
27
  public class DraweeView extends SimpleDraweeView {
30
28
  public int imageWidth = 0;
31
29
  public int imageHeight = 0;
@@ -108,7 +106,6 @@ public class DraweeView extends SimpleDraweeView {
108
106
  Path innerBorderPath;
109
107
  Path innerBorderTempPath;
110
108
 
111
- @RequiresApi(api = Build.VERSION_CODES.KITKAT)
112
109
  private Path generateInnerBorderPath(BorderDrawable borderDrawable) {
113
110
 
114
111
  float borderTopLeftRadius = borderDrawable.getBorderTopLeftRadius();
@@ -154,7 +151,6 @@ public class DraweeView extends SimpleDraweeView {
154
151
  return innerBorderPath;
155
152
  }
156
153
 
157
- @RequiresApi(api = Build.VERSION_CODES.KITKAT)
158
154
  @Override
159
155
  protected void onDraw(Canvas canvas) {
160
156
  Drawable drawable = getBackground();
@@ -1,4 +0,0 @@
1
- declare const ImagePlugin: {
2
- install(client: any): void;
3
- };
4
- export default ImagePlugin;
package/flipper/index.js DELETED
@@ -1,9 +0,0 @@
1
- import { enableFlipper } from '../image';
2
- const ImagePlugin = {
3
- install(client) {
4
- enableFlipper();
5
- client.addPlugin(new com.facebook.flipper.plugins.fresco.FrescoFlipperPlugin());
6
- }
7
- };
8
- export default ImagePlugin;
9
- //# sourceMappingURL=index.js.map