expo-image-loader 3.1.1 → 3.2.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,7 +10,13 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
- ## 3.1.1 — 2022-02-01
13
+ ## 3.2.0 — 2022-04-18
14
+
15
+ ### ⚠️ Notices
16
+
17
+ - On Android bump `compileSdkVersion` to `31`, `targetSdkVersion` to `31` and `Java` version to `11`. ([#16941](https://github.com/expo/expo/pull/16941) by [@bbarthec](https://github.com/bbarthec))
18
+
19
+ ## 3.1.1 - 2022-02-01
14
20
 
15
21
  ### 🐛 Bug fixes
16
22
 
package/README.md CHANGED
@@ -4,7 +4,7 @@ Provides image loader
4
4
 
5
5
  # Installation in managed Expo projects
6
6
 
7
- For [managed](https://docs.expo.io/versions/latest/introduction/managed-vs-bare/) Expo projects, please follow the installation instructions in the [API documentation for the latest stable release](#api-documentation). If you follow the link and there is no documentation available then this library is not yet usable within managed projects — it is likely to be included in an upcoming Expo SDK release.
7
+ For [managed](https://docs.expo.dev/versions/latest/introduction/managed-vs-bare/) Expo projects, please follow the installation instructions in the [API documentation for the latest stable release](#api-documentation). If you follow the link and there is no documentation available then this library is not yet usable within managed projects — it is likely to be included in an upcoming Expo SDK release.
8
8
 
9
9
  # Installation in bare React Native projects
10
10
 
@@ -3,22 +3,37 @@ apply plugin: 'kotlin-android'
3
3
  apply plugin: 'maven-publish'
4
4
 
5
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()
10
+ }
11
+
6
12
  // Simple helper that allows the root project to override versions declared by this library.
7
13
  ext.safeExtGet = { prop, fallback ->
8
14
  rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
9
15
  }
10
16
 
17
+ // Ensures backward compatibility
18
+ ext.getKotlinVersion = {
19
+ if (ext.has("kotlinVersion")) {
20
+ ext.kotlinVersion()
21
+ } else {
22
+ ext.safeExtGet("kotlinVersion", "1.6.10")
23
+ }
24
+ }
25
+
11
26
  repositories {
12
27
  mavenCentral()
13
28
  }
14
29
 
15
30
  dependencies {
16
- classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${safeExtGet('kotlinVersion', '1.4.21')}")
31
+ classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${getKotlinVersion()}")
17
32
  }
18
33
  }
19
34
 
20
35
  group = 'host.exp.exponent'
21
- version = '3.1.1'
36
+ version = '3.2.0'
22
37
 
23
38
  // Creating sources with comments
24
39
  task androidSourcesJar(type: Jar) {
@@ -44,18 +59,22 @@ afterEvaluate {
44
59
  }
45
60
 
46
61
  android {
47
- compileSdkVersion safeExtGet("compileSdkVersion", 30)
62
+ compileSdkVersion safeExtGet("compileSdkVersion", 31)
48
63
 
49
64
  compileOptions {
50
- sourceCompatibility JavaVersion.VERSION_1_8
51
- targetCompatibility JavaVersion.VERSION_1_8
65
+ sourceCompatibility JavaVersion.VERSION_11
66
+ targetCompatibility JavaVersion.VERSION_11
67
+ }
68
+
69
+ kotlinOptions {
70
+ jvmTarget = JavaVersion.VERSION_11.majorVersion
52
71
  }
53
72
 
54
73
  defaultConfig {
55
74
  minSdkVersion safeExtGet("minSdkVersion", 21)
56
- targetSdkVersion safeExtGet("targetSdkVersion", 30)
75
+ targetSdkVersion safeExtGet("targetSdkVersion", 31)
57
76
  versionCode 8
58
- versionName "3.1.1"
77
+ versionName "3.2.0"
59
78
  }
60
79
  lintOptions {
61
80
  abortOnError false
@@ -69,7 +88,7 @@ repositories {
69
88
  dependencies {
70
89
  implementation project(':expo-modules-core')
71
90
 
72
- implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${safeExtGet('kotlinVersion', '1.4.21')}"
91
+ implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${getKotlinVersion()}"
73
92
  api 'com.github.bumptech.glide:glide:4.9.0'
74
93
  api 'com.facebook.fresco:fresco:2.0.0'
75
94
  }
@@ -17,6 +17,12 @@ Pod::Spec.new do |s|
17
17
  s.dependency 'React-Core'
18
18
  s.dependency 'ExpoModulesCore'
19
19
 
20
+ # Swift/Objective-C compatibility
21
+ s.pod_target_xcconfig = {
22
+ 'DEFINES_MODULE' => 'YES',
23
+ 'SWIFT_COMPILATION_MODE' => 'wholemodule'
24
+ }
25
+
20
26
  if !$ExpoUseSources&.include?(package['name']) && ENV['EXPO_USE_SOURCE'].to_i == 0 && File.exist?("#{s.name}.xcframework") && Gem::Version.new(Pod::VERSION) >= Gem::Version.new('1.10.0')
21
27
  s.source_files = "#{s.name}/**/*.h"
22
28
  s.vendored_frameworks = "#{s.name}.xcframework"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-image-loader",
3
- "version": "3.1.1",
3
+ "version": "3.2.0",
4
4
  "description": "Image loader",
5
5
  "main": "index.js",
6
6
  "keywords": [
@@ -18,11 +18,11 @@
18
18
  },
19
19
  "author": "650 Industries, Inc.",
20
20
  "license": "MIT",
21
- "homepage": "https://github.com/expo/expo/tree/master/packages/expo-image-loader",
21
+ "homepage": "https://github.com/expo/expo/tree/main/packages/expo-image-loader",
22
22
  "dependencies": {},
23
23
  "devDependencies": {},
24
24
  "peerDependencies": {
25
25
  "expo": "*"
26
26
  },
27
- "gitHead": "ba24eba18bf4f4d4b0d54828992d81a2bb18246a"
27
+ "gitHead": "22dce752354bb429c84851bc4389abe47a766b1f"
28
28
  }