expo-image 2.1.0-canary-20250207-8bc5146 → 2.1.0-canary-20250221-ef26fed
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
|
@@ -11,6 +11,8 @@
|
|
|
11
11
|
### 🐛 Bug fixes
|
|
12
12
|
|
|
13
13
|
- Fixed `tintColor="currentColor"` conflicts on web. ([#34604](https://github.com/expo/expo/pull/34604) by [@bradleyayers](https://github.com/bradleyayers))
|
|
14
|
+
- [Android] Add headers to `loadAsync` requests. ([#34767](https://github.com/expo/expo/pull/34767) by [@alanjhughes](https://github.com/alanjhughes))
|
|
15
|
+
- [Android] Fixes a regression in `loadAsync` from [#34767](https://github.com/expo/expo/pull/34767). ([#34965](https://github.com/expo/expo/pull/34965) by [@alanjhughes](https://github.com/alanjhughes))
|
|
14
16
|
|
|
15
17
|
### 💡 Others
|
|
16
18
|
|
package/android/build.gradle
CHANGED
|
@@ -1,29 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
|
|
6
|
-
apply from: expoModulesCorePlugin
|
|
7
|
-
applyKotlinExpoModulesCorePlugin()
|
|
8
|
-
useCoreDependencies()
|
|
9
|
-
useDefaultAndroidSdkVersions()
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
try {
|
|
13
|
-
apply plugin: 'expo-module-gradle-plugin'
|
|
14
|
-
} catch (e) {
|
|
15
|
-
if (!e instanceof UnknownPluginException) {
|
|
16
|
-
throw e
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
useLegacyExpoModulesCorePlugin()
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
buildscript {
|
|
23
|
-
// Simple helper that allows the root project to override versions declared by this library.
|
|
24
|
-
ext.safeExtGet = { prop, fallback ->
|
|
25
|
-
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
|
|
26
|
-
}
|
|
1
|
+
plugins {
|
|
2
|
+
id 'com.android.library'
|
|
3
|
+
id 'kotlin-kapt'
|
|
4
|
+
id 'expo-module-gradle-plugin'
|
|
27
5
|
}
|
|
28
6
|
|
|
29
7
|
android {
|
|
@@ -39,7 +17,7 @@ android {
|
|
|
39
17
|
sourceSets {
|
|
40
18
|
main {
|
|
41
19
|
java {
|
|
42
|
-
if (safeExtGet("excludeAppGlideModule", false)) {
|
|
20
|
+
if (expoModule.safeExtGet("excludeAppGlideModule", false)) {
|
|
43
21
|
exclude("**/ExpoImageAppGlideModule.kt")
|
|
44
22
|
}
|
|
45
23
|
}
|
|
@@ -60,7 +38,7 @@ dependencies {
|
|
|
60
38
|
implementation "com.github.bumptech.glide:avif-integration:${GLIDE_VERSION}"
|
|
61
39
|
|
|
62
40
|
api 'com.github.bumptech.glide:okhttp3-integration:4.11.0'
|
|
63
|
-
api "com.squareup.okhttp3:okhttp:${safeExtGet("okHttpVersion", '4.9.2')}"
|
|
41
|
+
api "com.squareup.okhttp3:okhttp:${expoModule.safeExtGet("okHttpVersion", '4.9.2')}"
|
|
64
42
|
|
|
65
43
|
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.1'
|
|
66
44
|
implementation "jp.wasabeef:glide-transformations:4.3.0"
|
|
@@ -17,12 +17,15 @@ open class ImageLoadTask(
|
|
|
17
17
|
val context =
|
|
18
18
|
this@ImageLoadTask.appContext.reactContext ?: throw Exceptions.ReactContextLost()
|
|
19
19
|
|
|
20
|
+
val sourceToLoad = source.createGlideModelProvider(context)
|
|
21
|
+
val model = sourceToLoad?.getGlideModel()
|
|
22
|
+
|
|
20
23
|
try {
|
|
21
24
|
val bitmap = withContext(Dispatchers.IO) {
|
|
22
25
|
Glide
|
|
23
26
|
.with(context)
|
|
24
27
|
.asDrawable()
|
|
25
|
-
.load(
|
|
28
|
+
.load(model)
|
|
26
29
|
.centerInside()
|
|
27
30
|
.submit(options.maxWidth, options.maxHeight)
|
|
28
31
|
.get()
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-image",
|
|
3
3
|
"title": "Expo Image",
|
|
4
|
-
"version": "2.1.0-canary-
|
|
4
|
+
"version": "2.1.0-canary-20250221-ef26fed",
|
|
5
5
|
"description": "A cross-platform, performant image component for React Native and Expo with Web support",
|
|
6
6
|
"main": "src/index.ts",
|
|
7
7
|
"types": "build/index.d.ts",
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
"license": "MIT",
|
|
29
29
|
"dependencies": {},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"expo-module-scripts": "4.0.
|
|
31
|
+
"expo-module-scripts": "4.0.5-canary-20250221-ef26fed"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"expo": "53.0.0-canary-
|
|
34
|
+
"expo": "53.0.0-canary-20250221-ef26fed",
|
|
35
35
|
"react": "*",
|
|
36
36
|
"react-native": "*",
|
|
37
37
|
"react-native-web": "*"
|
|
@@ -40,6 +40,5 @@
|
|
|
40
40
|
"react-native-web": {
|
|
41
41
|
"optional": true
|
|
42
42
|
}
|
|
43
|
-
}
|
|
44
|
-
"gitHead": "8bc5146852ccd7033138bac9ef8d3c41ae85a211"
|
|
43
|
+
}
|
|
45
44
|
}
|