expo-image-loader 3.0.0 → 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,6 +10,22 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
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
20
+
21
+ ### 🐛 Bug fixes
22
+
23
+ - Fix `Plugin with id 'maven' not found` build error from Android Gradle 7. ([#16080](https://github.com/expo/expo/pull/16080) by [@kudo](https://github.com/kudo))
24
+
25
+ ## 3.1.0 — 2021-12-03
26
+
27
+ _This version does not introduce any user-facing changes._
28
+
13
29
  ## 3.0.0 — 2021-09-28
14
30
 
15
31
  ### 🛠 Breaking changes
package/README.md CHANGED
@@ -4,11 +4,11 @@ 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
 
11
- For bare React Native projects, you must ensure that you have [installed and configured the `react-native-unimodules` package](https://github.com/expo/expo/tree/master/packages/react-native-unimodules) before continuing.
11
+ For bare React Native projects, you must ensure that you have [installed and configured the `expo` package](https://docs.expo.dev/bare/installing-expo-modules/) before continuing.
12
12
 
13
13
  ### Add the package to your npm dependencies
14
14
 
@@ -1,29 +1,39 @@
1
1
  apply plugin: 'com.android.library'
2
2
  apply plugin: 'kotlin-android'
3
- apply plugin: 'maven'
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.0.0'
22
-
23
- // Upload android library to maven with javadoc and android sources
24
- configurations {
25
- deployerJars
26
- }
36
+ version = '3.2.0'
27
37
 
28
38
  // Creating sources with comments
29
39
  task androidSourcesJar(type: Jar) {
@@ -31,33 +41,40 @@ task androidSourcesJar(type: Jar) {
31
41
  from android.sourceSets.main.java.srcDirs
32
42
  }
33
43
 
34
- // Put the androidSources and javadoc to the artifacts
35
- artifacts {
36
- archives androidSourcesJar
37
- }
38
-
39
- uploadArchives {
40
- repositories {
41
- mavenDeployer {
42
- configuration = configurations.deployerJars
43
- repository(url: mavenLocal().url)
44
+ afterEvaluate {
45
+ publishing {
46
+ publications {
47
+ release(MavenPublication) {
48
+ from components.release
49
+ // Add additional sourcesJar to artifacts
50
+ artifact(androidSourcesJar)
51
+ }
52
+ }
53
+ repositories {
54
+ maven {
55
+ url = mavenLocal().url
56
+ }
44
57
  }
45
58
  }
46
59
  }
47
60
 
48
61
  android {
49
- compileSdkVersion safeExtGet("compileSdkVersion", 30)
62
+ compileSdkVersion safeExtGet("compileSdkVersion", 31)
50
63
 
51
64
  compileOptions {
52
- sourceCompatibility JavaVersion.VERSION_1_8
53
- 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
54
71
  }
55
72
 
56
73
  defaultConfig {
57
74
  minSdkVersion safeExtGet("minSdkVersion", 21)
58
- targetSdkVersion safeExtGet("targetSdkVersion", 30)
75
+ targetSdkVersion safeExtGet("targetSdkVersion", 31)
59
76
  versionCode 8
60
- versionName "3.0.0"
77
+ versionName "3.2.0"
61
78
  }
62
79
  lintOptions {
63
80
  abortOnError false
@@ -71,7 +88,7 @@ repositories {
71
88
  dependencies {
72
89
  implementation project(':expo-modules-core')
73
90
 
74
- implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${safeExtGet('kotlinVersion', '1.4.21')}"
91
+ implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${getKotlinVersion()}"
75
92
  api 'com.github.bumptech.glide:glide:4.9.0'
76
93
  api 'com.facebook.fresco:fresco:2.0.0'
77
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.0.0",
3
+ "version": "3.2.0",
4
4
  "description": "Image loader",
5
5
  "main": "index.js",
6
6
  "keywords": [
@@ -18,6 +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",
22
- "gitHead": "1fffde73411ee7a642b98f1506a8de921805d52b"
21
+ "homepage": "https://github.com/expo/expo/tree/main/packages/expo-image-loader",
22
+ "dependencies": {},
23
+ "devDependencies": {},
24
+ "peerDependencies": {
25
+ "expo": "*"
26
+ },
27
+ "gitHead": "22dce752354bb429c84851bc4389abe47a766b1f"
23
28
  }