react-native-nitro-image-pipeline 0.2.0 → 0.3.0
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/android/build.gradle
CHANGED
|
@@ -145,8 +145,8 @@ dependencies {
|
|
|
145
145
|
implementation("io.coil-kt.coil3:coil-network-okhttp:3.3.0")
|
|
146
146
|
implementation("io.coil-kt.coil3:coil-gif:3.3.0")
|
|
147
147
|
// Cronet (uses Play Services provider — no APK size cost, falls back gracefully if unavailable)
|
|
148
|
-
implementation("com.google.android.gms:play-services-cronet:18.1.
|
|
149
|
-
implementation("com.google.net.cronet:cronet-okhttp:0.1.
|
|
148
|
+
implementation("com.google.android.gms:play-services-cronet:18.1.1")
|
|
149
|
+
implementation("com.google.net.cronet:cronet-okhttp:0.1.1")
|
|
150
150
|
}
|
|
151
151
|
|
|
152
152
|
if (isNewArchitectureEnabled()) {
|
package/android/src/main/java/com/margelo/nitro/nitroimagepipeline/transform/BlurTransformation.kt
CHANGED
|
@@ -34,12 +34,13 @@ class BlurTransformation(
|
|
|
34
34
|
val autoSampling = (maxOf(input.width, input.height) / 512f).coerceAtLeast(sampling)
|
|
35
35
|
val scaledWidth = (input.width / autoSampling).toInt().coerceAtLeast(1)
|
|
36
36
|
val scaledHeight = (input.height / autoSampling).toInt().coerceAtLeast(1)
|
|
37
|
-
val
|
|
37
|
+
val softwareInput = if (input.config == Bitmap.Config.HARDWARE) input.copy(Bitmap.Config.ARGB_8888, false) else input
|
|
38
|
+
val softwareConfig = softwareInput.config ?: Bitmap.Config.ARGB_8888
|
|
38
39
|
|
|
39
|
-
val output = Bitmap.createBitmap(scaledWidth, scaledHeight,
|
|
40
|
+
val output = Bitmap.createBitmap(scaledWidth, scaledHeight, softwareConfig)
|
|
40
41
|
output.applyCanvas {
|
|
41
42
|
scale(1 / autoSampling, 1 / autoSampling)
|
|
42
|
-
drawBitmap(
|
|
43
|
+
drawBitmap(softwareInput, 0f, 0f, paint)
|
|
43
44
|
}
|
|
44
45
|
|
|
45
46
|
var script: RenderScript? = null
|
|
@@ -56,5 +56,7 @@ def add_nitrogen_files(spec)
|
|
|
56
56
|
"SWIFT_OBJC_INTEROP_MODE" => "objcxx",
|
|
57
57
|
# Enables stricter modular headers
|
|
58
58
|
"DEFINES_MODULE" => "YES",
|
|
59
|
+
# Disable auto-generated ObjC header for Swift (Static linkage on Xcode 26.4 breaks here)
|
|
60
|
+
"SWIFT_INSTALL_OBJC_HEADER" => "NO",
|
|
59
61
|
})
|
|
60
62
|
end
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-nitro-image-pipeline",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "High-performance image loading, caching, and processing for React Native, built with Nitro Modules",
|
|
5
5
|
"main": "./lib/commonjs/index.js",
|
|
6
6
|
"module": "./lib/module/index.js",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"clean": "git clean -dfX",
|
|
15
15
|
"release": "semantic-release",
|
|
16
16
|
"build": "bun run typecheck && bob build",
|
|
17
|
-
"codegen": "nitrogen --logLevel=\"debug\" && bun run build
|
|
17
|
+
"codegen": "nitrogen --logLevel=\"debug\" && bun run build"
|
|
18
18
|
},
|
|
19
19
|
"keywords": [
|
|
20
20
|
"react-native",
|
|
@@ -62,14 +62,15 @@
|
|
|
62
62
|
"@biomejs/biome": "^2.4.10",
|
|
63
63
|
"@semantic-release/changelog": "^6.0.3",
|
|
64
64
|
"@semantic-release/git": "^10.0.1",
|
|
65
|
+
"@types/bun": "^1.3.12",
|
|
65
66
|
"@types/jest": "^30.0.0",
|
|
66
67
|
"@types/react": "19.2.0",
|
|
67
68
|
"conventional-changelog-conventionalcommits": "^9.1.0",
|
|
68
|
-
"nitrogen": "0.35.
|
|
69
|
+
"nitrogen": "0.35.4",
|
|
69
70
|
"react": "19.2.3",
|
|
70
71
|
"react-native": "0.84.1",
|
|
71
|
-
"react-native-builder-bob": "^0.
|
|
72
|
-
"react-native-nitro-modules": "0.35.
|
|
72
|
+
"react-native-builder-bob": "^0.41.0",
|
|
73
|
+
"react-native-nitro-modules": "0.35.4",
|
|
73
74
|
"semantic-release": "^25.0.3",
|
|
74
75
|
"typescript": "^5.8.3"
|
|
75
76
|
},
|