@nativescript-community/ui-image 4.0.33 → 4.1.2
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 +38 -0
- package/image-common.d.ts +1 -0
- package/image.android.js +4 -0
- package/image.ios.js +3 -0
- package/package.json +2 -2
- package/platforms/android/.gradle/6.4/fileChanges/last-build.bin +0 -0
- package/platforms/android/.gradle/6.4/fileHashes/fileHashes.lock +0 -0
- package/platforms/android/.gradle/6.4/gc.properties +0 -0
- package/platforms/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/platforms/android/.gradle/buildOutputCleanup/cache.properties +2 -0
- package/platforms/android/.gradle/checksums/checksums.lock +0 -0
- package/platforms/android/.gradle/vcs-1/gc.properties +0 -0
- package/platforms/android/include.gradle +3 -3
- package/platforms/android/java/com/nativescript/image/DraweeView.java +0 -4
- package/platforms/android/native-api-usage.json +28 -1
- package/flipper/index.d.ts +0 -4
- package/flipper/index.js +0 -9
package/CHANGELOG.md
CHANGED
@@ -3,6 +3,44 @@
|
|
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.2](https://github.com/nativescript-community/ui-image/compare/v4.1.1...v4.1.2) (2021-12-29)
|
7
|
+
|
8
|
+
**Note:** Version bump only for package @nativescript-community/ui-image
|
9
|
+
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
|
14
|
+
## [4.1.1](https://github.com/nativescript-community/ui-image/compare/v4.1.0...v4.1.1) (2021-12-23)
|
15
|
+
|
16
|
+
|
17
|
+
### Bug Fixes
|
18
|
+
|
19
|
+
* android remove dep on annotationx ([c9fdfbe](https://github.com/nativescript-community/ui-image/commit/c9fdfbe8f7c7f876abb53b1d8b9b7c68d65ae21f))
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
# [4.1.0](https://github.com/nativescript-community/ui-image/compare/v4.0.34...v4.1.0) (2021-10-21)
|
26
|
+
|
27
|
+
|
28
|
+
### Features
|
29
|
+
|
30
|
+
* **android:** native-api-usage ([0ec235c](https://github.com/nativescript-community/ui-image/commit/0ec235c2df1d5c4f6f30615766ea17ba74576dc7))
|
31
|
+
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
|
36
|
+
## [4.0.34](https://github.com/nativescript-community/ui-image/compare/v4.0.33...v4.0.34) (2021-10-15)
|
37
|
+
|
38
|
+
**Note:** Version bump only for package @nativescript-community/ui-image
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
|
6
44
|
## [4.0.33](https://github.com/nativescript-community/ui-image/compare/v4.0.32...v4.0.33) (2021-10-08)
|
7
45
|
|
8
46
|
**Note:** Version bump only for package @nativescript-community/ui-image
|
package/image-common.d.ts
CHANGED
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/image.ios.js
CHANGED
@@ -389,6 +389,9 @@ export class Img extends ImageBase {
|
|
389
389
|
}
|
390
390
|
this.nativeViewProtected.sd_setImageWithURLPlaceholderImageOptionsContextProgressCompleted(uri, this.placeholderImage, options, context, this.onLoadProgress, this.handleImageLoaded);
|
391
391
|
}
|
392
|
+
else if (this.placeholderImage) {
|
393
|
+
this._setNativeImage(this.placeholderImage);
|
394
|
+
}
|
392
395
|
else {
|
393
396
|
this._setNativeImage(null);
|
394
397
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@nativescript-community/ui-image",
|
3
|
-
"version": "4.
|
3
|
+
"version": "4.1.2",
|
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": "
|
39
|
+
"gitHead": "a12811812f0f220d2ba522b76242182950bbf7bb"
|
40
40
|
}
|
Binary file
|
Binary file
|
File without changes
|
Binary file
|
File without changes
|
@@ -14,8 +14,8 @@ dependencies {
|
|
14
14
|
implementation("com.facebook.fresco:imagepipeline-okhttp3:$frescoVersion") {
|
15
15
|
exclude group: 'com.facebook.soloader', module: 'soloader'
|
16
16
|
}
|
17
|
-
implementation ("com.facebook.fresco:animated-gif:$frescoVersion") {
|
18
|
-
|
19
|
-
}
|
17
|
+
// implementation ("com.facebook.fresco:animated-gif:$frescoVersion") {
|
18
|
+
// exclude group: 'com.facebook.soloader', module: 'soloader'
|
19
|
+
// }
|
20
20
|
implementation(name:'widgets-release', ext:'aar')
|
21
21
|
}
|
@@ -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,5 +1,32 @@
|
|
1
1
|
{
|
2
2
|
"uses": [
|
3
|
-
"com.facebook.drawee.drawable:ScalingUtils*",
|
3
|
+
"com.facebook.drawee.drawable:ScalingUtils*",
|
4
|
+
"com.facebook.drawee.drawable.ScalingUtils:ScaleType*",
|
5
|
+
"com.facebook.drawee.generic:RoundingParams*",
|
6
|
+
"com.facebook.drawee.drawable:ProgressBarDrawable*",
|
7
|
+
"com.facebook.drawee.view:DraweeView*",
|
8
|
+
"com.facebook.drawee.interfaces:DraweeHierarchy*",
|
9
|
+
"com.facebook.drawee.interfaces:SettableDraweeHierarchy*",
|
10
|
+
"com.facebook.drawee.interfaces:SimpleDraweeControllerBuilder*",
|
11
|
+
"com.facebook.drawee.interfaces:DraweeController*",
|
12
|
+
"com.facebook.drawee.generic:GenericDraweeHierarchyBuilder*",
|
13
|
+
"com.facebook.drawee.generic:GenericDraweeHierarchy*",
|
14
|
+
"com.facebook.imagepipeline.request:ImageRequestBuilder*",
|
15
|
+
"com.facebook.imagepipeline.request:ImageRequest*",
|
16
|
+
"com.facebook.imagepipeline.core:ImagePipelineConfig*",
|
17
|
+
"com.facebook.imagepipeline.common:RotationOptions*",
|
18
|
+
"com.facebook.imagepipeline.common:ResizeOptions*",
|
19
|
+
"com.facebook.drawee.backends.pipeline:Fresco*",
|
20
|
+
"com.facebook.drawee.backends.pipeline:PipelineDraweeControllerBuilder*",
|
21
|
+
"com.facebook.drawee.backends.pipeline:PipelineDraweeController*",
|
22
|
+
"com.facebook.drawee.controller:AbstractDraweeControllerBuilder*",
|
23
|
+
"com.facebook.drawee.controller:AbstractDraweeController*",
|
24
|
+
"com.facebook.drawee.backends.pipeline.info:ImagePerfDataListener*",
|
25
|
+
"com.facebook.drawee.backends.pipeline.info:ImagePerfData*",
|
26
|
+
"com.facebook.drawee.controller:ControllerListener*",
|
27
|
+
"com.nativescript.image:DraweeView*",
|
28
|
+
"com.nativescript.image:ScalingBlurPostprocessor*",
|
29
|
+
"android.graphics.drawable:Animatable",
|
30
|
+
"com.facebook.imagepipeline.image:ImageInfo*"
|
4
31
|
]
|
5
32
|
}
|
package/flipper/index.d.ts
DELETED
package/flipper/index.js
DELETED