expo-file-system 13.2.0 → 13.2.1

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,12 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
+ ## 13.2.1 — 2022-01-20
14
+
15
+ ### 🐛 Bug fixes
16
+
17
+ - Fix build errors on React Native 0.66 caused by `okio` and `okhttp`. ([#15632](https://github.com/expo/expo/pull/15632) by [@kudo](https://github.com/kudo))
18
+
13
19
  ## 13.2.0 — 2021-12-22
14
20
 
15
21
  ### 🐛 Bug fixes
@@ -22,6 +28,10 @@
22
28
 
23
29
  - Updated `@expo/config-plugins` from `4.0.2` to `4.0.14` ([#15621](https://github.com/expo/expo/pull/15621) by [@EvanBacon](https://github.com/EvanBacon))
24
30
 
31
+ ## 13.1.1 — 2022-01-20
32
+
33
+ _This version does not introduce any user-facing changes._
34
+
25
35
  ## 13.1.0 — 2021-11-17
26
36
 
27
37
  ### 🐛 Bug fixes
package/README.md CHANGED
@@ -9,7 +9,7 @@ Provides access to the local file system on the device.
9
9
 
10
10
  # Installation in managed Expo projects
11
11
 
12
- 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](https://docs.expo.io/versions/latest/sdk/filesystem/).
12
+ For managed [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](https://docs.expo.io/versions/latest/sdk/filesystem/).
13
13
 
14
14
  # Installation in bare React Native projects
15
15
 
@@ -3,7 +3,7 @@ apply plugin: 'kotlin-android'
3
3
  apply plugin: 'maven'
4
4
 
5
5
  group = 'host.exp.exponent'
6
- version = '13.2.0'
6
+ version = '13.2.1'
7
7
 
8
8
  buildscript {
9
9
  // Simple helper that allows the root project to override versions declared by this library.
@@ -61,7 +61,7 @@ android {
61
61
  minSdkVersion safeExtGet("minSdkVersion", 21)
62
62
  targetSdkVersion safeExtGet("targetSdkVersion", 30)
63
63
  versionCode 30
64
- versionName "13.2.0"
64
+ versionName "13.2.1"
65
65
  }
66
66
  lintOptions {
67
67
  abortOnError false
@@ -79,7 +79,27 @@ dependencies {
79
79
  api 'commons-io:commons-io:1.4'
80
80
  api 'com.squareup.okhttp3:okhttp:3.10.0'
81
81
  api 'com.squareup.okhttp3:okhttp-urlconnection:3.10.0'
82
+ api 'com.squareup.okio:okio:1.17.5'
82
83
  api "androidx.legacy:legacy-support-v4:1.0.0"
83
84
 
84
85
  implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${safeExtGet('kotlinVersion', '1.6.10')}"
85
86
  }
87
+
88
+ // [BEGIN] Workaround okhttp/okio compatibility issue
89
+ // Remove when we drop support for SDK 44
90
+ def okhttpPinnedArtifacts = []
91
+ configurations.api.getDependencies().removeIf { it ->
92
+ if (['com.squareup.okhttp3', 'com.squareup.okio'].contains(it.group)) {
93
+ okhttpPinnedArtifacts.add("${it.group}:${it.name}:${it.version}")
94
+ return true
95
+ }
96
+ return false
97
+ }
98
+ okhttpPinnedArtifacts.each { artifact ->
99
+ dependencies.add('compileOnly', artifact)
100
+ dependencies.add('testApi', artifact)
101
+ configurations.all {
102
+ resolutionStrategy.force(artifact)
103
+ }
104
+ }
105
+ // [END] Workaround okhttp/okio compatibility issue
@@ -45,16 +45,7 @@ class CountingRequestBody(
45
45
  override fun writeTo(sink: BufferedSink) {
46
46
  val countingSink = CountingSink(sink, this, progressListener)
47
47
 
48
- // `Okio.buffer` is deprecated in okio 2.x.
49
- // To be compatible across react-native versions where
50
- // react-native < 0.65, okio is 1.x
51
- // react-native >= 0.65, okio is 2.x
52
- // We just suppress the error.
53
- // In okio 2.x, `Okio.buffer` is still an extension method proxied to `countingSink.buffer()`.
54
- // See: https://github.com/square/okio/blob/b0f78aaa46/okio/src/jvmMain/kotlin/okio/-DeprecatedOkio.kt#L48-L56
55
- @Suppress("DEPRECATION_ERROR")
56
48
  val bufferedSink = Okio.buffer(countingSink)
57
-
58
49
  requestBody.writeTo(bufferedSink)
59
50
  bufferedSink.flush()
60
51
  }
@@ -6,30 +6,30 @@
6
6
  <array>
7
7
  <dict>
8
8
  <key>LibraryIdentifier</key>
9
- <string>ios-arm64_x86_64-simulator</string>
9
+ <string>ios-arm64</string>
10
10
  <key>LibraryPath</key>
11
11
  <string>EXFileSystem.framework</string>
12
12
  <key>SupportedArchitectures</key>
13
13
  <array>
14
14
  <string>arm64</string>
15
- <string>x86_64</string>
16
15
  </array>
17
16
  <key>SupportedPlatform</key>
18
17
  <string>ios</string>
19
- <key>SupportedPlatformVariant</key>
20
- <string>simulator</string>
21
18
  </dict>
22
19
  <dict>
23
20
  <key>LibraryIdentifier</key>
24
- <string>ios-arm64</string>
21
+ <string>ios-arm64_x86_64-simulator</string>
25
22
  <key>LibraryPath</key>
26
23
  <string>EXFileSystem.framework</string>
27
24
  <key>SupportedArchitectures</key>
28
25
  <array>
29
26
  <string>arm64</string>
27
+ <string>x86_64</string>
30
28
  </array>
31
29
  <key>SupportedPlatform</key>
32
30
  <string>ios</string>
31
+ <key>SupportedPlatformVariant</key>
32
+ <string>simulator</string>
33
33
  </dict>
34
34
  </array>
35
35
  <key>CFBundlePackageType</key>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-file-system",
3
- "version": "13.2.0",
3
+ "version": "13.2.1",
4
4
  "description": "Provides access to the local file system on the device.",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -45,5 +45,5 @@
45
45
  "peerDependencies": {
46
46
  "expo": "*"
47
47
  },
48
- "gitHead": "4cf8716f96f5b087fb984b5418ee2548b2069414"
48
+ "gitHead": "693e58494ed4753b55d3f379b1da1cf796cdf4e3"
49
49
  }