react-native-nitro-image-pipeline 0.2.0 → 0.3.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.
@@ -140,13 +140,13 @@ dependencies {
140
140
 
141
141
  // Add a dependency on NitroImage
142
142
  implementation project(":react-native-nitro-image")
143
- // Coil
143
+ // Coil, uses 3.3.0 as 3.4+ depends on kotlin 2.3, RN up to 0.85 (maybe also 0.86) is set to kotlin 2.1
144
144
  implementation("io.coil-kt.coil3:coil:3.3.0")
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.0")
149
- implementation("com.google.net.cronet:cronet-okhttp:0.1.0")
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()) {
@@ -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 config = input.config ?: Bitmap.Config.ARGB_8888
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, config)
40
+ val output = Bitmap.createBitmap(scaledWidth, scaledHeight, softwareConfig)
40
41
  output.applyCanvas {
41
42
  scale(1 / autoSampling, 1 / autoSampling)
42
- drawBitmap(input, 0f, 0f, paint)
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.2.0",
3
+ "version": "0.3.2",
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 && node post-script.js"
17
+ "codegen": "nitrogen --logLevel=\"debug\" && bun run build"
18
18
  },
19
19
  "keywords": [
20
20
  "react-native",
@@ -62,15 +62,16 @@
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.2",
69
+ "nitrogen": "0.36.1",
69
70
  "react": "19.2.3",
70
71
  "react-native": "0.84.1",
71
- "react-native-builder-bob": "^0.40.18",
72
- "react-native-nitro-modules": "0.35.2",
73
- "semantic-release": "^25.0.3",
72
+ "react-native-builder-bob": "^0.43.0",
73
+ "react-native-nitro-modules": "0.36.1",
74
+ "semantic-release": "^25.0.5",
74
75
  "typescript": "^5.8.3"
75
76
  },
76
77
  "peerDependencies": {