@nativescript-community/ui-image 4.3.11 → 4.3.12
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,12 @@
|
|
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.3.12](https://github.com/nativescript-community/ui-image/compare/v4.3.11...v4.3.12) (2023-09-26)
|
7
|
+
|
8
|
+
### Bug Fixes
|
9
|
+
|
10
|
+
* **android:** zoomimage not showing anything ([a8c666b](https://github.com/nativescript-community/ui-image/commit/a8c666bec8ffd0b3bc0907e0e9ddab89ec8dfbaf))
|
11
|
+
|
6
12
|
## [4.3.11](https://github.com/nativescript-community/ui-image/compare/v4.3.10...v4.3.11) (2023-08-15)
|
7
13
|
|
8
14
|
### Bug Fixes
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@nativescript-community/ui-image",
|
3
|
-
"version": "4.3.
|
3
|
+
"version": "4.3.12",
|
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": "./index",
|
6
6
|
"sideEffects": false,
|
@@ -44,5 +44,5 @@
|
|
44
44
|
},
|
45
45
|
"license": "Apache-2.0",
|
46
46
|
"readmeFilename": "README.md",
|
47
|
-
"gitHead": "
|
47
|
+
"gitHead": "9ea31cb0967917f14880e3928043f74497f59b88"
|
48
48
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import groovy.json.JsonSlurper
|
2
2
|
dependencies {
|
3
|
-
def frescoVersion = project.hasProperty("frescoVersion") ? project.frescoVersion : "
|
3
|
+
def frescoVersion = project.hasProperty("frescoVersion") ? project.frescoVersion : "2.6.0"
|
4
4
|
|
5
5
|
implementation("com.facebook.fresco:fresco:$frescoVersion") {
|
6
6
|
exclude group: 'com.facebook.soloader', module: 'soloader'
|
@@ -9,11 +9,7 @@ dependencies {
|
|
9
9
|
implementation("com.facebook.fresco:imagepipeline-okhttp3:$frescoVersion") {
|
10
10
|
exclude group: 'com.facebook.soloader', module: 'soloader'
|
11
11
|
}
|
12
|
-
implementation(
|
13
|
-
version {
|
14
|
-
strictly '2.6.0'
|
15
|
-
}
|
16
|
-
}
|
12
|
+
implementation("com.facebook.fresco:nativeimagetranscoder:$frescoVersion")
|
17
13
|
implementation 'com.facebook.infer.annotation:infer-annotation:0.18.0'
|
18
14
|
// implementation ("com.facebook.fresco:animated-gif:$frescoVersion") {
|
19
15
|
// exclude group: 'com.facebook.soloader', module: 'soloader'
|
@@ -4,6 +4,7 @@ import com.facebook.drawee.view.SimpleDraweeView;
|
|
4
4
|
import com.facebook.imagepipeline.request.ImageRequestBuilder;
|
5
5
|
import com.facebook.imagepipeline.request.ImageRequest;
|
6
6
|
import com.facebook.drawee.backends.pipeline.PipelineDraweeControllerBuilder;
|
7
|
+
import com.facebook.drawee.generic.GenericDraweeHierarchy;
|
7
8
|
|
8
9
|
import android.graphics.Outline;
|
9
10
|
import android.graphics.Rect;
|
@@ -13,6 +14,7 @@ import android.view.View;
|
|
13
14
|
import android.content.Context;
|
14
15
|
import android.os.Build;
|
15
16
|
import android.util.Log;
|
17
|
+
import android.util.AttributeSet;
|
16
18
|
|
17
19
|
import android.graphics.Canvas;
|
18
20
|
import android.graphics.Path;
|
@@ -38,6 +40,26 @@ public class DraweeView extends SimpleDraweeView {
|
|
38
40
|
|
39
41
|
private boolean clipEnabled = true;
|
40
42
|
|
43
|
+
public DraweeView(Context context, GenericDraweeHierarchy hierarchy) {
|
44
|
+
super(context);
|
45
|
+
setClipToBounds(clipEnabled);
|
46
|
+
}
|
47
|
+
|
48
|
+
public DraweeView(Context context) {
|
49
|
+
super(context);
|
50
|
+
setClipToBounds(clipEnabled);
|
51
|
+
}
|
52
|
+
|
53
|
+
public DraweeView(Context context, AttributeSet attrs) {
|
54
|
+
super(context, attrs);
|
55
|
+
setClipToBounds(clipEnabled);
|
56
|
+
}
|
57
|
+
|
58
|
+
public DraweeView(Context context, AttributeSet attrs, int defStyle) {
|
59
|
+
super(context, attrs, defStyle);
|
60
|
+
setClipToBounds(clipEnabled);
|
61
|
+
}
|
62
|
+
|
41
63
|
public void setClipToBounds(boolean value) {
|
42
64
|
clipEnabled = value;
|
43
65
|
if (value) {
|
@@ -81,10 +103,6 @@ public class DraweeView extends SimpleDraweeView {
|
|
81
103
|
return clipEnabled;
|
82
104
|
}
|
83
105
|
|
84
|
-
public DraweeView(Context context) {
|
85
|
-
super(context);
|
86
|
-
setClipToBounds(clipEnabled);
|
87
|
-
}
|
88
106
|
|
89
107
|
@Override
|
90
108
|
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
|
@@ -188,7 +206,7 @@ public class DraweeView extends SimpleDraweeView {
|
|
188
206
|
}
|
189
207
|
|
190
208
|
public void setUri(android.net.Uri uri, String jsonOptions, com.facebook.drawee.controller.ControllerListener listener) {
|
191
|
-
|
209
|
+
Log.d("JS", "setUri " + uri.toString());
|
192
210
|
ImageRequestBuilder requestBuilder = ImageRequestBuilder.newBuilderWithSource(uri).setRotationOptions( com.facebook.imagepipeline.common.RotationOptions.autoRotate());
|
193
211
|
JSONObject object = null;
|
194
212
|
if (jsonOptions.length() > 2) {
|
@@ -249,7 +267,7 @@ public class DraweeView extends SimpleDraweeView {
|
|
249
267
|
builder.setTapToRetryEnabled(true);
|
250
268
|
}
|
251
269
|
}
|
252
|
-
|
270
|
+
Log.d("JS", "setUri " + uri.toString() + " " + object);
|
253
271
|
setController(builder.build());
|
254
272
|
}
|
255
273
|
}
|
Binary file
|