expo-file-system 18.0.4 → 18.0.5

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
+ ## 18.0.5 — 2024-12-10
14
+
15
+ ### 🐛 Bug fixes
16
+
17
+ - [macOS][next]: Add availability checks ([#33504](https://github.com/expo/expo/pull/33504) by [@hassankhan](https://github.com/hassankhan))
18
+
13
19
  ## 18.0.4 — 2024-11-19
14
20
 
15
21
  ### 🎉 New features
@@ -1,7 +1,7 @@
1
1
  apply plugin: 'com.android.library'
2
2
 
3
3
  group = 'host.exp.exponent'
4
- version = '18.0.4'
4
+ version = '18.0.5'
5
5
 
6
6
  def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
7
7
  apply from: expoModulesCorePlugin
@@ -14,7 +14,7 @@ android {
14
14
  namespace "expo.modules.filesystem"
15
15
  defaultConfig {
16
16
  versionCode 30
17
- versionName "18.0.4"
17
+ versionName "18.0.5"
18
18
  }
19
19
  }
20
20
 
@@ -102,7 +102,7 @@ internal func copyPHAsset(fromUrl: URL, toUrl: URL, with resourceManager: PHAsse
102
102
  }
103
103
 
104
104
  internal func isPhotoLibraryStatusAuthorized() -> Bool {
105
- if #available(iOS 14, tvOS 14, *) {
105
+ if #available(iOS 14, macOS 11, tvOS 14, *) {
106
106
  let status = PHPhotoLibrary.authorizationStatus(for: .readWrite)
107
107
  return status == .authorized || status == .limited
108
108
  }
@@ -1,6 +1,7 @@
1
1
  import Foundation
2
2
  import ExpoModulesCore
3
3
 
4
+ @available(iOS 14, macOS 11, tvOS 14, *)
4
5
  internal final class FileSystemFileHandle: SharedRef<FileHandle> {
5
6
  let file: FileSystemFile
6
7
  let handle: FileHandle
@@ -2,6 +2,7 @@
2
2
 
3
3
  import ExpoModulesCore
4
4
 
5
+ @available(iOS 14, macOS 11, tvOS 14, *)
5
6
  public final class FileSystemNextModule: Module {
6
7
  public func definition() -> ModuleDefinition {
7
8
  Name("FileSystemNext")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-file-system",
3
- "version": "18.0.4",
3
+ "version": "18.0.5",
4
4
  "description": "Provides access to the local file system on the device.",
5
5
  "main": "src/index.ts",
6
6
  "types": "build/index.d.ts",
@@ -45,5 +45,5 @@
45
45
  "dependencies": {
46
46
  "web-streams-polyfill": "^3.3.2"
47
47
  },
48
- "gitHead": "128718d43bac2eaed764b3551469b95400f2363e"
48
+ "gitHead": "1faceb8d22bebee4571ef3a2f9578bec33dc26b1"
49
49
  }