@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 +11 -0
- package/image-common.d.ts +1 -0
- package/image.android.js +4 -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 +7 -3
- package/platforms/android/java/com/nativescript/image/DraweeView.java +0 -4
- package/flipper/index.d.ts +0 -4
- package/flipper/index.js +0 -9
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
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.
|
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": "
|
39
|
+
"gitHead": "c7d280737dc5545b82039bf08cbd7631ef4cd7a5"
|
40
40
|
}
|
Binary file
|
Binary file
|
File without changes
|
Binary file
|
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
|
-
|
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();
|
package/flipper/index.d.ts
DELETED
package/flipper/index.js
DELETED