expo-image-loader 4.3.0 → 4.5.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/CHANGELOG.md CHANGED
@@ -10,10 +10,28 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
+ ## 4.5.0 — 2023-10-17
14
+
15
+ ### 🛠 Breaking changes
16
+
17
+ - Dropped support for Android SDK 21 and 22. ([#24201](https://github.com/expo/expo/pull/24201) by [@behenate](https://github.com/behenate))
18
+
19
+ ## 4.4.0 — 2023-09-04
20
+
21
+ ### 🎉 New features
22
+
23
+ - Added support for React Native 0.73. ([#24018](https://github.com/expo/expo/pull/24018) by [@kudo](https://github.com/kudo))
24
+
25
+ ### 🐛 Bug fixes
26
+
27
+ - Bump `Glide` version to resolve `SecurityException` on Android 13. ([#24196](https://github.com/expo/expo/pull/24196) by [@alanjhughes](https://github.com/alanjhughes))
28
+
13
29
  ## 4.3.0 — 2023-06-13
14
30
 
15
31
  - Removed `com.facebook.fresco:fresco` dependency ([#22542](https://github.com/expo/expo/pull/22542) by [@josephyanks](https://github.com/josephyanks))
32
+
16
33
  ### 📚 3rd party library updates
34
+
17
35
  - Updated `com.github.bumptech.glide:glide` to `4.13.2` and added customizable `glideVersion` variable on ext. ([#22542](https://github.com/expo/expo/pull/22542) by [@josephyanks](https://github.com/josephyanks))
18
36
 
19
37
  ### 🐛 Bug fixes
@@ -2,13 +2,18 @@ apply plugin: 'com.android.library'
2
2
  apply plugin: 'kotlin-android'
3
3
  apply plugin: 'maven-publish'
4
4
 
5
- buildscript {
6
- def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
7
- if (expoModulesCorePlugin.exists()) {
8
- apply from: expoModulesCorePlugin
9
- applyKotlinExpoModulesCorePlugin()
5
+ def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
6
+ if (expoModulesCorePlugin.exists()) {
7
+ apply from: expoModulesCorePlugin
8
+ applyKotlinExpoModulesCorePlugin()
9
+ // Remove this check, but keep the contents after SDK49 support is dropped
10
+ if (safeExtGet("expoProvidesDefaultConfig", false)) {
11
+ useExpoPublishing()
12
+ useCoreDependencies()
10
13
  }
14
+ }
11
15
 
16
+ buildscript {
12
17
  // Simple helper that allows the root project to override versions declared by this library.
13
18
  ext.safeExtGet = { prop, fallback ->
14
19
  rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
@@ -33,49 +38,63 @@ buildscript {
33
38
  }
34
39
 
35
40
  group = 'host.exp.exponent'
36
- version = '4.3.0'
41
+ version = '4.5.0'
37
42
 
38
- afterEvaluate {
39
- publishing {
40
- publications {
41
- release(MavenPublication) {
42
- from components.release
43
+ // Remove this if and it's contents, when support for SDK49 is dropped
44
+ if (!safeExtGet("expoProvidesDefaultConfig", false)) {
45
+ afterEvaluate {
46
+ publishing {
47
+ publications {
48
+ release(MavenPublication) {
49
+ from components.release
50
+ }
43
51
  }
44
- }
45
- repositories {
46
- maven {
47
- url = mavenLocal().url
52
+ repositories {
53
+ maven {
54
+ url = mavenLocal().url
55
+ }
48
56
  }
49
57
  }
50
58
  }
51
59
  }
52
60
 
53
61
  android {
54
- compileSdkVersion safeExtGet("compileSdkVersion", 33)
62
+ // Remove this if and it's contents, when support for SDK49 is dropped
63
+ if (!safeExtGet("expoProvidesDefaultConfig", false)) {
64
+ compileSdkVersion safeExtGet("compileSdkVersion", 33)
65
+
66
+ defaultConfig {
67
+ minSdkVersion safeExtGet("minSdkVersion", 23)
68
+ targetSdkVersion safeExtGet("targetSdkVersion", 33)
69
+ }
70
+
71
+ publishing {
72
+ singleVariant("release") {
73
+ withSourcesJar()
74
+ }
75
+ }
55
76
 
56
- compileOptions {
57
- sourceCompatibility JavaVersion.VERSION_11
58
- targetCompatibility JavaVersion.VERSION_11
77
+ lintOptions {
78
+ abortOnError false
79
+ }
59
80
  }
60
81
 
61
- kotlinOptions {
62
- jvmTarget = JavaVersion.VERSION_11.majorVersion
82
+ def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION
83
+ if (agpVersion.tokenize('.')[0].toInteger() < 8) {
84
+ compileOptions {
85
+ sourceCompatibility JavaVersion.VERSION_11
86
+ targetCompatibility JavaVersion.VERSION_11
87
+ }
88
+
89
+ kotlinOptions {
90
+ jvmTarget = JavaVersion.VERSION_11.majorVersion
91
+ }
63
92
  }
64
93
 
65
94
  namespace "expo.modules.imageloader"
66
95
  defaultConfig {
67
- minSdkVersion safeExtGet("minSdkVersion", 21)
68
- targetSdkVersion safeExtGet("targetSdkVersion", 33)
69
96
  versionCode 8
70
- versionName "4.3.0"
71
- }
72
- lintOptions {
73
- abortOnError false
74
- }
75
- publishing {
76
- singleVariant("release") {
77
- withSourcesJar()
78
- }
97
+ versionName "4.5.0"
79
98
  }
80
99
  }
81
100
 
@@ -83,11 +102,14 @@ repositories {
83
102
  mavenCentral()
84
103
  }
85
104
 
86
- def glideVersion = safeExtGet('glideVersion', '4.13.2')
105
+ def glideVersion = safeExtGet('glideVersion', '4.16.0')
87
106
 
88
107
  dependencies {
89
- implementation project(':expo-modules-core')
108
+ // Remove this if and it's contents, when support for SDK49 is dropped
109
+ if (!safeExtGet("expoProvidesDefaultConfig", false)) {
110
+ implementation project(':expo-modules-core')
111
+ implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${getKotlinVersion()}"
112
+ }
90
113
 
91
- implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${getKotlinVersion()}"
92
114
  api "com.github.bumptech.glide:glide:${glideVersion}"
93
115
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-image-loader",
3
- "version": "4.3.0",
3
+ "version": "4.5.0",
4
4
  "description": "Image loader",
5
5
  "main": "index.js",
6
6
  "keywords": [
@@ -24,5 +24,5 @@
24
24
  "peerDependencies": {
25
25
  "expo": "*"
26
26
  },
27
- "gitHead": "66d0501185956602c144a03a891bdb34d3c03910"
27
+ "gitHead": "da25937e2a99661cbe5eb60ca1d8d6245fc96a50"
28
28
  }