expo-file-system 58.0.11 → 58.0.12

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.
Files changed (34) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/android/build.gradle +2 -2
  3. package/ios/FileSystemModule.swift +10 -2
  4. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/{58.0.11/expo.modules.filesystem-58.0.11.module → 58.0.12/expo.modules.filesystem-58.0.12.module} +7 -7
  5. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/58.0.12/expo.modules.filesystem-58.0.12.module.md5 +1 -0
  6. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/58.0.12/expo.modules.filesystem-58.0.12.module.sha1 +1 -0
  7. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/58.0.12/expo.modules.filesystem-58.0.12.module.sha256 +1 -0
  8. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/58.0.12/expo.modules.filesystem-58.0.12.module.sha512 +1 -0
  9. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/{58.0.11/expo.modules.filesystem-58.0.11.pom → 58.0.12/expo.modules.filesystem-58.0.12.pom} +1 -1
  10. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/58.0.12/expo.modules.filesystem-58.0.12.pom.md5 +1 -0
  11. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/58.0.12/expo.modules.filesystem-58.0.12.pom.sha1 +1 -0
  12. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/58.0.12/expo.modules.filesystem-58.0.12.pom.sha256 +1 -0
  13. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/58.0.12/expo.modules.filesystem-58.0.12.pom.sha512 +1 -0
  14. package/package.json +1 -1
  15. package/prebuilds/output/debug/xcframeworks/ExpoFileSystem.tar.gz +0 -0
  16. package/prebuilds/output/release/xcframeworks/ExpoFileSystem.tar.gz +0 -0
  17. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/58.0.11/expo.modules.filesystem-58.0.11.module.md5 +0 -1
  18. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/58.0.11/expo.modules.filesystem-58.0.11.module.sha1 +0 -1
  19. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/58.0.11/expo.modules.filesystem-58.0.11.module.sha256 +0 -1
  20. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/58.0.11/expo.modules.filesystem-58.0.11.module.sha512 +0 -1
  21. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/58.0.11/expo.modules.filesystem-58.0.11.pom.md5 +0 -1
  22. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/58.0.11/expo.modules.filesystem-58.0.11.pom.sha1 +0 -1
  23. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/58.0.11/expo.modules.filesystem-58.0.11.pom.sha256 +0 -1
  24. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/58.0.11/expo.modules.filesystem-58.0.11.pom.sha512 +0 -1
  25. /package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/{58.0.11/expo.modules.filesystem-58.0.11-sources.jar → 58.0.12/expo.modules.filesystem-58.0.12-sources.jar} +0 -0
  26. /package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/{58.0.11/expo.modules.filesystem-58.0.11-sources.jar.md5 → 58.0.12/expo.modules.filesystem-58.0.12-sources.jar.md5} +0 -0
  27. /package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/{58.0.11/expo.modules.filesystem-58.0.11-sources.jar.sha1 → 58.0.12/expo.modules.filesystem-58.0.12-sources.jar.sha1} +0 -0
  28. /package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/{58.0.11/expo.modules.filesystem-58.0.11-sources.jar.sha256 → 58.0.12/expo.modules.filesystem-58.0.12-sources.jar.sha256} +0 -0
  29. /package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/{58.0.11/expo.modules.filesystem-58.0.11-sources.jar.sha512 → 58.0.12/expo.modules.filesystem-58.0.12-sources.jar.sha512} +0 -0
  30. /package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/{58.0.11/expo.modules.filesystem-58.0.11.aar → 58.0.12/expo.modules.filesystem-58.0.12.aar} +0 -0
  31. /package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/{58.0.11/expo.modules.filesystem-58.0.11.aar.md5 → 58.0.12/expo.modules.filesystem-58.0.12.aar.md5} +0 -0
  32. /package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/{58.0.11/expo.modules.filesystem-58.0.11.aar.sha1 → 58.0.12/expo.modules.filesystem-58.0.12.aar.sha1} +0 -0
  33. /package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/{58.0.11/expo.modules.filesystem-58.0.11.aar.sha256 → 58.0.12/expo.modules.filesystem-58.0.12.aar.sha256} +0 -0
  34. /package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/{58.0.11/expo.modules.filesystem-58.0.11.aar.sha512 → 58.0.12/expo.modules.filesystem-58.0.12.aar.sha512} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 58.0.12
4
+
5
+ ### Patch Changes
6
+
7
+ - Fix Mac Catalyst builds failing with `Type 'QLPreviewController' has no member 'canPreview'`. ([#52278](https://github.com/expo/expo/pull/52278) by [@github-actions](https://github.com/apps/github-actions))
8
+
3
9
  ## 58.0.11
4
10
 
5
11
  ### Patch Changes
@@ -4,13 +4,13 @@ plugins {
4
4
  }
5
5
 
6
6
  group = 'host.exp.exponent'
7
- version = '58.0.11'
7
+ version = '58.0.12'
8
8
 
9
9
  android {
10
10
  namespace "expo.modules.filesystem"
11
11
  defaultConfig {
12
12
  versionCode 30
13
- versionName "58.0.11"
13
+ versionName "58.0.12"
14
14
  testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
15
15
  }
16
16
  testOptions {
@@ -61,12 +61,20 @@ public final class FileSystemModule: Module {
61
61
  }
62
62
 
63
63
  #if os(iOS)
64
+ private func canPreviewItem(_ item: FileSystemPreviewItem) -> Bool {
65
+ #if targetEnvironment(macCatalyst)
66
+ return QLPreviewController.canPreviewItem(item)
67
+ #else
68
+ return QLPreviewController.canPreview(item)
69
+ #endif
70
+ }
71
+
64
72
  private func canPreview(file: FileSystemFile) throws -> Bool {
65
73
  return try file.withCorrectTypeAndScopedAccess(permission: .read) {
66
74
  guard file.exists else {
67
75
  return false
68
76
  }
69
- return QLPreviewController.canPreview(FileSystemPreviewItem(url: file.url, title: nil))
77
+ return canPreviewItem(FileSystemPreviewItem(url: file.url, title: nil))
70
78
  }
71
79
  }
72
80
 
@@ -98,7 +106,7 @@ public final class FileSystemModule: Module {
98
106
  throw FilePreviewFileNotFoundException(file.url)
99
107
  }
100
108
  let item = FileSystemPreviewItem(url: file.url, title: options?.title)
101
- guard QLPreviewController.canPreview(item) else {
109
+ guard canPreviewItem(item) else {
102
110
  throw FilePreviewUnsupportedException(file.url)
103
111
  }
104
112
  items.append(item)
@@ -3,7 +3,7 @@
3
3
  "component": {
4
4
  "group": "host.exp.exponent",
5
5
  "module": "expo.modules.filesystem",
6
- "version": "58.0.11",
6
+ "version": "58.0.12",
7
7
  "attributes": {
8
8
  "org.gradle.status": "release"
9
9
  }
@@ -68,8 +68,8 @@
68
68
  ],
69
69
  "files": [
70
70
  {
71
- "name": "expo.modules.filesystem-58.0.11.aar",
72
- "url": "expo.modules.filesystem-58.0.11.aar",
71
+ "name": "expo.modules.filesystem-58.0.12.aar",
72
+ "url": "expo.modules.filesystem-58.0.12.aar",
73
73
  "size": 764229,
74
74
  "sha512": "79bbaf1ca2c9c5275fb8c9a71020c64606ec26537a8ff9f112d6e43627b813fa35945c482d23b759b009d72a85ede913e2d02783aedd500e9863568f270cc8d4",
75
75
  "sha256": "05b04d656f4a5b19617aeb299500fce68d6777c9c3272c1886efea7fdf2f0ab9",
@@ -157,8 +157,8 @@
157
157
  ],
158
158
  "files": [
159
159
  {
160
- "name": "expo.modules.filesystem-58.0.11.aar",
161
- "url": "expo.modules.filesystem-58.0.11.aar",
160
+ "name": "expo.modules.filesystem-58.0.12.aar",
161
+ "url": "expo.modules.filesystem-58.0.12.aar",
162
162
  "size": 764229,
163
163
  "sha512": "79bbaf1ca2c9c5275fb8c9a71020c64606ec26537a8ff9f112d6e43627b813fa35945c482d23b759b009d72a85ede913e2d02783aedd500e9863568f270cc8d4",
164
164
  "sha256": "05b04d656f4a5b19617aeb299500fce68d6777c9c3272c1886efea7fdf2f0ab9",
@@ -177,8 +177,8 @@
177
177
  },
178
178
  "files": [
179
179
  {
180
- "name": "expo.modules.filesystem-58.0.11-sources.jar",
181
- "url": "expo.modules.filesystem-58.0.11-sources.jar",
180
+ "name": "expo.modules.filesystem-58.0.12-sources.jar",
181
+ "url": "expo.modules.filesystem-58.0.12-sources.jar",
182
182
  "size": 54065,
183
183
  "sha512": "643a5ae2c4c2a5d7d86b133d043cdf6dd3e1e24ed68ad6fc40e209a97f025c850475b64c4cdf1b371f4190a6d3b2ddb69680b735ba50a768d0068b164ffb2ea4",
184
184
  "sha256": "b32afa6e3a9fcdc24b9a3aa5ec04b69bd23e3d37f9020655251e6126869a0cb7",
@@ -0,0 +1 @@
1
+ a2b81556d00169ee9bcf1b45dee20d07c6ffd95e3e43afbe8c04fd0e29f0da47
@@ -0,0 +1 @@
1
+ 46de6d5168e96ca848b02d77cf8d6ca9c9fab6a211502d9d4ce50990de9fe511b76ffce2c7b5a0164866122ccc65e20ee6df76593962309ab357c6cb113537e9
@@ -9,7 +9,7 @@
9
9
  <modelVersion>4.0.0</modelVersion>
10
10
  <groupId>host.exp.exponent</groupId>
11
11
  <artifactId>expo.modules.filesystem</artifactId>
12
- <version>58.0.11</version>
12
+ <version>58.0.12</version>
13
13
  <packaging>aar</packaging>
14
14
  <name>expo.modules.filesystem</name>
15
15
  <url>https://github.com/expo/expo</url>
@@ -0,0 +1 @@
1
+ 75548173a5e83b902ce0dfb9fe1c080e6f7c5f3bb4379e1b1dbd36fe0dcba2d1
@@ -0,0 +1 @@
1
+ 49b0d33902385f26b6ac94799de6d318754f56bc942b466d681165c1716d03cf27d03906c35570c92b7d192b9f7a93ef243cb7072476c42b94be850dbb441c2e
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-file-system",
3
- "version": "58.0.11",
3
+ "version": "58.0.12",
4
4
  "description": "Provides access to the local file system on the device.",
5
5
  "keywords": [
6
6
  "expo",
@@ -1 +0,0 @@
1
- 9bd7b53d8dbdada1928735bbbd3184914d6c62de8cda5340a980dbb5f8118d15
@@ -1 +0,0 @@
1
- f718daa699585047fe8b0a0426e530704dcb3dcc4e3fc58484b7cc07e98e482993bae606669c6cf232818e8b77e1712036746ae0c1f0c1aca120265c5d3e6d31
@@ -1 +0,0 @@
1
- 00586cedf16c12735b14a6fd5a59f8dc9accc9b6f57cf41462176fd46f426a5c
@@ -1 +0,0 @@
1
- fa37ae66877209e99b6ecd0e67c1ca4daca4ebdecff79efba3f9c335328c2c68b8b32bdfed4d1d5e8cc6928e6c4130899c48fef2d6bf5d4088c9817947f2d40a