expo-image 1.3.3 → 1.3.5

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
@@ -10,6 +10,18 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
+ ## 1.3.5 — 2023-11-01
14
+
15
+ ### 🐛 Bug fixes
16
+
17
+ - [Android] fix crash when loading local image files with no file extension ([#24201](https://github.com/expo/expo/pull/25032) by [@kadikraman](https://github.com/kadikraman))
18
+
19
+ ## 1.3.4 — 2023-09-28
20
+
21
+ ### 🐛 Bug fixes
22
+
23
+ - Remove `GlideWebpDecoder` until they update their `libwebp` dependency. ([#24656](https://github.com/expo/expo/pull/24656) by [@alanjhughes](https://github.com/alanjhughes))
24
+
13
25
  ## 1.3.3 — 2023-09-15
14
26
 
15
27
  ### 🐛 Bug fixes
@@ -50,7 +50,7 @@ android {
50
50
  minSdkVersion safeExtGet("minSdkVersion", 21)
51
51
  targetSdkVersion safeExtGet("targetSdkVersion", 33)
52
52
  versionCode 1
53
- versionName "1.3.3"
53
+ versionName "1.3.5"
54
54
  consumerProguardFiles("proguard-rules.pro")
55
55
  }
56
56
  lintOptions {
@@ -92,7 +92,6 @@ dependencies {
92
92
  //noinspection GradleDynamicVersion
93
93
  implementation 'com.facebook.react:react-native:+' // From node_modules
94
94
 
95
- implementation "com.github.zjupure:webpdecoder:2.1.${GLIDE_VERSION}"
96
95
  api "com.github.bumptech.glide:glide:${GLIDE_VERSION}"
97
96
  kapt "com.github.bumptech.glide:compiler:${GLIDE_VERSION}"
98
97
  api 'com.caverock:androidsvg-aar:1.4'
@@ -38,6 +38,15 @@ data class SourceMap(
38
38
 
39
39
  private fun isLocalFileUri() = parsedUri?.scheme?.startsWith("file") ?: false
40
40
 
41
+ private fun isSvg(): Boolean {
42
+ var lastDotIndex = parsedUri?.toString()?.lastIndexOf('.')
43
+ // if the path has no file extension and no . at all (e.g. file://path/to/file) return false
44
+ if (lastDotIndex == -1 || lastDotIndex == null) {
45
+ return false
46
+ }
47
+ return parsedUri?.toString()?.substring(lastDotIndex)?.startsWith(".svg") ?: false
48
+ }
49
+
41
50
  fun isBlurhash() = parsedUri?.scheme?.startsWith("blurhash") ?: false
42
51
 
43
52
  fun isThumbhash() = parsedUri?.scheme?.startsWith("thumbhash") ?: false
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "expo-image",
3
3
  "title": "Expo Image",
4
- "version": "1.3.3",
4
+ "version": "1.3.5",
5
5
  "description": "A cross-platform, performant image component for React Native and Expo with Web support",
6
6
  "main": "build/index.js",
7
7
  "types": "build/index.d.ts",
@@ -33,5 +33,5 @@
33
33
  "peerDependencies": {
34
34
  "expo": "*"
35
35
  },
36
- "gitHead": "0fa20c9cbad0c73a30089ffc09073e6d94a6dabb"
36
+ "gitHead": "09b1852f53279138ba17222be62aa860ec8790f2"
37
37
  }