expo-modules-core 1.12.11 → 1.12.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.
package/CHANGELOG.md CHANGED
@@ -10,6 +10,10 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
+ ## 1.12.12 — 2024-05-29
14
+
15
+ _This version does not introduce any user-facing changes._
16
+
13
17
  ## 1.12.11 — 2024-05-14
14
18
 
15
19
  ### 🐛 Bug fixes
@@ -1,7 +1,7 @@
1
1
  apply plugin: 'com.android.library'
2
2
 
3
3
  group = 'host.exp.exponent'
4
- version = '1.12.11'
4
+ version = '1.12.12'
5
5
 
6
6
  def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
7
7
  apply from: expoModulesCorePlugin
@@ -63,7 +63,7 @@ android {
63
63
  defaultConfig {
64
64
  consumerProguardFiles 'proguard-rules.pro'
65
65
  versionCode 1
66
- versionName "1.12.11"
66
+ versionName "1.12.12"
67
67
  buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled.toString()
68
68
 
69
69
  testInstrumentationRunner "expo.modules.TestRunner"
@@ -10,17 +10,22 @@ public class FileSystemLegacyUtilities: NSObject, EXInternalModule, EXFileSystem
10
10
  @objc
11
11
  public var cachesDirectory: String
12
12
 
13
+ @objc
14
+ public var applicationSupportDirectory: String
15
+
13
16
  var isScoped: Bool = false
14
17
 
15
18
  @objc
16
- public init(documentDirectory: String, cachesDirectory: String) {
19
+ public init(documentDirectory: String, cachesDirectory: String, applicationSupportDirectory: String) {
17
20
  self.documentDirectory = documentDirectory
18
21
  self.cachesDirectory = cachesDirectory
22
+ self.applicationSupportDirectory = applicationSupportDirectory
19
23
  self.isScoped = true
20
24
 
21
25
  super.init()
22
26
  ensureDirExists(withPath: self.cachesDirectory)
23
27
  ensureDirExists(withPath: self.documentDirectory)
28
+ ensureDirExists(withPath: self.applicationSupportDirectory)
24
29
  }
25
30
 
26
31
  required public override init() {
@@ -30,9 +35,14 @@ public class FileSystemLegacyUtilities: NSObject, EXInternalModule, EXFileSystem
30
35
  let cachesPaths = NSSearchPathForDirectoriesInDomains(.cachesDirectory, .userDomainMask, true)
31
36
  self.cachesDirectory = cachesPaths[0]
32
37
 
38
+ let applicationSupportDirectoryPaths =
39
+ NSSearchPathForDirectoriesInDomains(.applicationSupportDirectory, .userDomainMask, true)
40
+ self.applicationSupportDirectory = applicationSupportDirectoryPaths[0]
41
+
33
42
  super.init()
34
43
  ensureDirExists(withPath: self.cachesDirectory)
35
44
  ensureDirExists(withPath: self.documentDirectory)
45
+ ensureDirExists(withPath: self.applicationSupportDirectory)
36
46
  }
37
47
 
38
48
  public static func exportedInterfaces() -> [Protocol] {
@@ -84,7 +94,7 @@ public class FileSystemLegacyUtilities: NSObject, EXInternalModule, EXFileSystem
84
94
 
85
95
  @objc
86
96
  public func getInternalPathPermissions(_ url: URL) -> EXFileSystemPermissionFlags {
87
- let scopedDirs: [String] = [cachesDirectory, documentDirectory]
97
+ let scopedDirs: [String] = [cachesDirectory, documentDirectory, applicationSupportDirectory]
88
98
  let standardizedPath = url.standardized.path
89
99
  for scopedDirectory in scopedDirs {
90
100
  if standardizedPath.hasPrefix(scopedDirectory + "/") || standardizedPath == scopedDirectory {
@@ -13,6 +13,7 @@ typedef NS_OPTIONS(unsigned int, EXFileSystemPermissionFlags) {
13
13
 
14
14
  @property (nonatomic, readonly) NSString *documentDirectory;
15
15
  @property (nonatomic, readonly) NSString *cachesDirectory;
16
+ @property (nonatomic, readonly) NSString *applicationSupportDirectory;
16
17
 
17
18
  // TODO: Move permissionsForURI to EXFileSystemManagerInterface
18
19
  - (EXFileSystemPermissionFlags)permissionsForURI:(NSURL *)uri;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-modules-core",
3
- "version": "1.12.11",
3
+ "version": "1.12.12",
4
4
  "description": "The core of Expo Modules architecture",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -44,5 +44,5 @@
44
44
  "@testing-library/react-hooks": "^7.0.1",
45
45
  "expo-module-scripts": "^3.0.0"
46
46
  },
47
- "gitHead": "94a594a19d2aad57eb4a032fb8757505e622a23f"
47
+ "gitHead": "979e9f1fc3cfa9c827700dcf99992e671cfdf63e"
48
48
  }