react-native-cloud-storage 1.4.1 → 1.5.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.
Files changed (103) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +7 -6
  3. package/ios/CloudStorage.swift +52 -262
  4. package/ios/CloudStorage.xcodeproj/project.pbxproj +28 -0
  5. package/ios/CloudStorageEventEmitter.m +1 -1
  6. package/ios/CloudStorageEventEmitter.swift +4 -4
  7. package/ios/Utils/CloudKitUtils.swift +112 -0
  8. package/ios/Utils/CloudStorageError.swift +78 -0
  9. package/ios/Utils/FileUtils.swift +132 -0
  10. package/ios/Utils/Promise.swift +58 -0
  11. package/ios/Utils/Types.swift +36 -0
  12. package/lib/commonjs/RNCloudStorage.js +361 -66
  13. package/lib/commonjs/RNCloudStorage.js.map +1 -1
  14. package/lib/commonjs/expo-plugin/types/index.js.map +1 -1
  15. package/lib/commonjs/expo-plugin/withRNCloudStorage.js +2 -3
  16. package/lib/commonjs/expo-plugin/withRNCloudStorage.js.map +1 -1
  17. package/lib/commonjs/expo-plugin/withRNCloudStorageIos.js +4 -7
  18. package/lib/commonjs/expo-plugin/withRNCloudStorageIos.js.map +1 -1
  19. package/lib/commonjs/google-drive/client.js +16 -20
  20. package/lib/commonjs/google-drive/client.js.map +1 -1
  21. package/lib/commonjs/google-drive/index.js +42 -64
  22. package/lib/commonjs/google-drive/index.js.map +1 -1
  23. package/lib/commonjs/google-drive/types.js +1 -2
  24. package/lib/commonjs/google-drive/types.js.map +1 -1
  25. package/lib/commonjs/hooks/useCloudFile.js +14 -17
  26. package/lib/commonjs/hooks/useCloudFile.js.map +1 -1
  27. package/lib/commonjs/hooks/useIsCloudAvailable.js +11 -21
  28. package/lib/commonjs/hooks/useIsCloudAvailable.js.map +1 -1
  29. package/lib/commonjs/index.js +1 -7
  30. package/lib/commonjs/index.js.map +1 -1
  31. package/lib/commonjs/package.json +1 -0
  32. package/lib/commonjs/types/main.js +8 -3
  33. package/lib/commonjs/types/main.js.map +1 -1
  34. package/lib/commonjs/types/native.js +3 -3
  35. package/lib/commonjs/types/native.js.map +1 -1
  36. package/lib/commonjs/utils/CloudStorageError.js +1 -2
  37. package/lib/commonjs/utils/CloudStorageError.js.map +1 -1
  38. package/lib/commonjs/utils/helpers.js +8 -15
  39. package/lib/commonjs/utils/helpers.js.map +1 -1
  40. package/lib/module/RNCloudStorage.js +362 -65
  41. package/lib/module/RNCloudStorage.js.map +1 -1
  42. package/lib/module/expo-plugin/types/index.js +1 -1
  43. package/lib/module/expo-plugin/types/index.js.map +1 -1
  44. package/lib/module/expo-plugin/withRNCloudStorage.js +2 -0
  45. package/lib/module/expo-plugin/withRNCloudStorage.js.map +1 -1
  46. package/lib/module/expo-plugin/withRNCloudStorageIos.js +5 -5
  47. package/lib/module/expo-plugin/withRNCloudStorageIos.js.map +1 -1
  48. package/lib/module/google-drive/client.js +18 -20
  49. package/lib/module/google-drive/client.js.map +1 -1
  50. package/lib/module/google-drive/index.js +41 -62
  51. package/lib/module/google-drive/index.js.map +1 -1
  52. package/lib/module/google-drive/types.js +2 -0
  53. package/lib/module/google-drive/types.js.map +1 -1
  54. package/lib/module/hooks/useCloudFile.js +15 -16
  55. package/lib/module/hooks/useCloudFile.js.map +1 -1
  56. package/lib/module/hooks/useIsCloudAvailable.js +13 -21
  57. package/lib/module/hooks/useIsCloudAvailable.js.map +1 -1
  58. package/lib/module/index.js +2 -5
  59. package/lib/module/index.js.map +1 -1
  60. package/lib/module/package.json +1 -0
  61. package/lib/module/types/main.js +9 -0
  62. package/lib/module/types/main.js.map +1 -1
  63. package/lib/module/types/native.js +4 -1
  64. package/lib/module/types/native.js.map +1 -1
  65. package/lib/module/utils/CloudStorageError.js +2 -0
  66. package/lib/module/utils/CloudStorageError.js.map +1 -1
  67. package/lib/module/utils/helpers.js +8 -13
  68. package/lib/module/utils/helpers.js.map +1 -1
  69. package/lib/typescript/RNCloudStorage.d.ts +159 -39
  70. package/lib/typescript/RNCloudStorage.d.ts.map +1 -1
  71. package/lib/typescript/google-drive/client.d.ts +3 -3
  72. package/lib/typescript/google-drive/client.d.ts.map +1 -1
  73. package/lib/typescript/google-drive/index.d.ts +6 -18
  74. package/lib/typescript/google-drive/index.d.ts.map +1 -1
  75. package/lib/typescript/hooks/useCloudFile.d.ts +4 -7
  76. package/lib/typescript/hooks/useCloudFile.d.ts.map +1 -1
  77. package/lib/typescript/hooks/useIsCloudAvailable.d.ts +3 -2
  78. package/lib/typescript/hooks/useIsCloudAvailable.d.ts.map +1 -1
  79. package/lib/typescript/index.d.ts +0 -4
  80. package/lib/typescript/index.d.ts.map +1 -1
  81. package/lib/typescript/types/main.d.ts +33 -0
  82. package/lib/typescript/types/main.d.ts.map +1 -1
  83. package/lib/typescript/types/native.d.ts +2 -1
  84. package/lib/typescript/types/native.d.ts.map +1 -1
  85. package/lib/typescript/utils/helpers.d.ts +2 -9
  86. package/lib/typescript/utils/helpers.d.ts.map +1 -1
  87. package/package.json +9 -11
  88. package/src/RNCloudStorage.ts +387 -68
  89. package/src/google-drive/client.ts +8 -7
  90. package/src/google-drive/index.ts +38 -63
  91. package/src/hooks/useCloudFile.ts +13 -16
  92. package/src/hooks/useIsCloudAvailable.ts +12 -25
  93. package/src/index.ts +0 -5
  94. package/src/types/main.ts +38 -0
  95. package/src/types/native.ts +2 -1
  96. package/src/utils/helpers.ts +8 -15
  97. package/lib/commonjs/createRNCloudStorage.js +0 -48
  98. package/lib/commonjs/createRNCloudStorage.js.map +0 -1
  99. package/lib/module/createRNCloudStorage.js +0 -41
  100. package/lib/module/createRNCloudStorage.js.map +0 -1
  101. package/lib/typescript/createRNCloudStorage.d.ts +0 -3
  102. package/lib/typescript/createRNCloudStorage.d.ts.map +0 -1
  103. package/src/createRNCloudStorage.ts +0 -53
@@ -4,129 +4,287 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
- var _reactNative = require("react-native");
8
- var _createRNCloudStorage = _interopRequireDefault(require("./createRNCloudStorage"));
9
- var _googleDrive = _interopRequireDefault(require("./google-drive"));
10
7
  var _main = require("./types/main");
11
8
  var _helpers = require("./utils/helpers");
12
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
- const nativeInstance = (0, _createRNCloudStorage.default)();
14
- let defaultScope = _main.CloudStorageScope.AppData;
15
- const RNCloudStorage = {
16
- getDefaultScope: () => defaultScope,
17
- setDefaultScope: scope => defaultScope = scope,
18
- getGoogleDriveAccessToken: () => _googleDrive.default.accessToken,
19
- setGoogleDriveAccessToken: accessToken => _googleDrive.default.accessToken = accessToken,
20
- setThrowOnFilesWithSameName: enable => _googleDrive.default.throwOnFilesWithSameName = enable,
21
- setTimeout: timeout => _googleDrive.default.timeout = timeout,
22
- /* eslint-disable @typescript-eslint/no-unused-vars */
23
- subscribeToFilesWithSameName: _reactNative.Platform.OS === 'ios' ?
24
- // @ts-expect-error - subscriber is undefined; just a mock
25
- subscriber => ({
26
- remove: () => {}
27
- }) : nativeInstance.subscribeToFilesWithSameName.bind(nativeInstance),
28
- /* eslint-enable @typescript-eslint/no-unused-vars */
9
+ var _reactNative = require("react-native");
10
+ var _CloudStorageError = _interopRequireDefault(require("./utils/CloudStorageError"));
11
+ var _native = require("./types/native");
12
+ var _googleDrive = _interopRequireDefault(require("./google-drive"));
13
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
14
+ const LINKING_ERROR = `The package 'react-native-cloud-storage' doesn't seem to be linked. Make sure: \n\n` + _reactNative.Platform.select({
15
+ ios: "- You have run 'pod install'\n",
16
+ default: ''
17
+ }) + '- You rebuilt the app after installing the package\n' + '- You are not using Expo Go\n';
18
+
19
+ // proxy NativeModules.CloudStorage to catch any errors thrown by the native module and wrap them in a CloudStorageError
20
+ const nativeIosInstance = _reactNative.NativeModules.CloudStorage ? new Proxy(_reactNative.NativeModules.CloudStorage, {
21
+ get(target, prop) {
22
+ const originalFunction = target[prop];
23
+ if (typeof originalFunction === 'function') {
24
+ return async (...args) => {
25
+ try {
26
+ // @ts-expect-error - we can't know the types of the functions and their arguments
27
+ return await originalFunction(...args);
28
+ } catch (error) {
29
+ if (error?.code && Object.values(_native.CloudStorageErrorCode).includes(error.code)) {
30
+ throw new _CloudStorageError.default(error?.message || '', error.code);
31
+ } else {
32
+ throw new _CloudStorageError.default('Unknown error', _native.CloudStorageErrorCode.UNKNOWN, error);
33
+ }
34
+ }
35
+ };
36
+ }
37
+ return originalFunction;
38
+ }
39
+ }) : null;
40
+ const defaultProviderOptions = {
41
+ [_main.CloudStorageProvider.ICloud]: {
42
+ scope: _main.CloudStorageScope.AppData
43
+ },
44
+ [_main.CloudStorageProvider.GoogleDrive]: {
45
+ scope: _main.CloudStorageScope.AppData,
46
+ accessToken: null,
47
+ strictFilenames: false,
48
+ timeout: 3000
49
+ }
50
+ };
51
+ class RNCloudStorage {
52
+ cloudAvailabilityListeners = [];
53
+
54
+ //#region Constructor and configuration
55
+ /**
56
+ * Creates a new RNCloudStorage instance for the given provider.
57
+ * @param provider The provider to create the instance for. Defaults to the default provider for the current platform.
58
+ */
59
+ constructor(provider, options) {
60
+ if (provider && !(0, _helpers.isProviderSupported)(provider)) {
61
+ throw new Error(`Provider ${provider} is not supported on the current platform.`);
62
+ }
63
+ this.provider = {
64
+ provider: provider ?? RNCloudStorage.getDefaultProvider(),
65
+ options: defaultProviderOptions[provider ?? RNCloudStorage.getDefaultProvider()]
66
+ };
67
+ this.setProvider(provider ?? RNCloudStorage.getDefaultProvider());
68
+ if (options) {
69
+ this.setProviderOptions(options);
70
+ }
71
+ }
72
+ get nativeInstance() {
73
+ switch (this.provider.provider) {
74
+ case _main.CloudStorageProvider.ICloud:
75
+ return nativeIosInstance ?? new Proxy({}, {
76
+ get() {
77
+ throw new Error(LINKING_ERROR);
78
+ }
79
+ });
80
+ default:
81
+ return new _googleDrive.default(this.provider.options);
82
+ }
83
+ }
29
84
 
85
+ /**
86
+ * Gets the default CloudStorageProvider for the current platform.
87
+ * @returns The default CloudStorageProvider.
88
+ */
89
+ static getDefaultProvider() {
90
+ switch (_reactNative.Platform.OS) {
91
+ case 'ios':
92
+ return _main.CloudStorageProvider.ICloud;
93
+ default:
94
+ return _main.CloudStorageProvider.GoogleDrive;
95
+ }
96
+ }
97
+
98
+ /**
99
+ * Gets the list of supported CloudStorageProviders on the current platform.
100
+ * @returns An array of supported CloudStorageProviders.
101
+ */
102
+ static getSupportedProviders() {
103
+ return Object.values(_main.CloudStorageProvider).filter(_helpers.isProviderSupported);
104
+ }
105
+
106
+ /**
107
+ * Gets the current CloudStorageProvider.
108
+ * @returns The current CloudStorageProvider.
109
+ */
110
+ getProvider() {
111
+ return this.provider.provider;
112
+ }
113
+
114
+ /**
115
+ * Sets the current CloudStorageProvider.
116
+ * @param provider The provider to set.
117
+ */
118
+ setProvider(provider) {
119
+ if (!(0, _helpers.isProviderSupported)(provider)) {
120
+ throw new Error(`Provider ${provider} is not supported on the current platform.`);
121
+ }
122
+ this.provider = {
123
+ provider,
124
+ options: defaultProviderOptions[provider]
125
+ };
126
+
127
+ // Emit an event to notify useIsCloudAvailable() hook consumers of the new cloud availability status
128
+ this.nativeInstance.isCloudAvailable().then(available => {
129
+ this.cloudAvailabilityListeners.forEach(listener => {
130
+ listener(available);
131
+ });
132
+ });
133
+ if (provider === _main.CloudStorageProvider.ICloud) {
134
+ // Listen to native cloud availability change events
135
+ const eventEmitter = new _reactNative.NativeEventEmitter(_reactNative.NativeModules.CloudStorageEventEmitter);
136
+ eventEmitter.addListener('RNCloudStorage.cloud.availability-changed', event => {
137
+ this.cloudAvailabilityListeners.forEach(listener => {
138
+ listener(event.available);
139
+ });
140
+ });
141
+ }
142
+ }
143
+
144
+ /**
145
+ * Gets the current options for the current provider.
146
+ * @returns The current options for the current provider.
147
+ */
148
+ getProviderOptions() {
149
+ return this.provider.options;
150
+ }
151
+
152
+ /**
153
+ * Sets the options for the current provider.
154
+ * @param options The options to set for the provider.
155
+ */
156
+ setProviderOptions(options) {
157
+ const newOptions = Object.fromEntries(Object.entries(options).filter(([_, v]) => v !== undefined));
158
+ this.provider.options = {
159
+ ...this.provider.options,
160
+ ...newOptions
161
+ };
162
+ if (this.provider.provider === _main.CloudStorageProvider.GoogleDrive && 'accessToken' in newOptions) {
163
+ // Emit an event to notify useIsCloudAvailable() hook consumers of the new cloud availability status
164
+ this.cloudAvailabilityListeners.forEach(listener => {
165
+ listener(!!newOptions.accessToken?.length);
166
+ });
167
+ }
168
+ }
169
+ subscribeToCloudAvailability(listener) {
170
+ this.cloudAvailabilityListeners.push(listener);
171
+ }
172
+ unsubscribeFromCloudAvailability(listener) {
173
+ this.cloudAvailabilityListeners = this.cloudAvailabilityListeners.filter(l => l !== listener);
174
+ }
175
+ //#endregion
176
+
177
+ //#region File system operations
30
178
  /**
31
179
  * Tests whether or not the cloud storage is available. Always returns true for Google Drive. iCloud may be
32
180
  * unavailable right after app launch or if the user is not logged in.
33
181
  * @returns A promise that resolves to true if the cloud storage is available, false otherwise.
34
182
  */
35
- isCloudAvailable: async () => {
36
- return nativeInstance.isCloudAvailable();
37
- },
183
+ isCloudAvailable() {
184
+ return this.nativeInstance.isCloudAvailable();
185
+ }
186
+
38
187
  /**
39
188
  * Appends the data to the file at the given path, creating the file if it doesn't exist.
40
189
  * @param path The file to append to.
41
190
  * @param data The data to append.
42
- * @param scope The directory scope the path is in. Defaults to the set default scope.
191
+ * @param scope The directory scope the path is in. Defaults to the default scope set for the current provider.
43
192
  * @returns A promise that resolves when the data has been appended.
44
193
  */
45
- appendFile: (path, data, scope) => {
46
- return nativeInstance.appendToFile((0, _helpers.verifyLeadingSlash)(path), data, scope ?? defaultScope);
47
- },
194
+ appendFile(path, data, scope) {
195
+ return this.nativeInstance.appendToFile(path, data, scope ?? this.provider.options.scope);
196
+ }
197
+
48
198
  /**
49
199
  * Tests whether or not the file at the given path exists.
50
200
  * @param path The path to test.
51
- * @param scope The directory scope the path is in. Defaults to the set default scope.
201
+ * @param scope The directory scope the path is in. Defaults to set default scope set for the current provider.
52
202
  * @returns A promise that resolves to true if the path exists, false otherwise.
53
203
  */
54
- exists: (path, scope) => {
55
- return nativeInstance.fileExists((0, _helpers.verifyLeadingSlash)(path), scope ?? defaultScope);
56
- },
204
+ exists(path, scope) {
205
+ return this.nativeInstance.fileExists(path, scope ?? this.provider.options.scope);
206
+ }
207
+
57
208
  /**
58
209
  * Writes to the file at the given path, creating it if it doesn't exist or overwriting it if it does.
59
210
  * @param path The file to write to.
60
211
  * @param data The data to write.
61
- * @param scope The directory scope the path is in. Defaults to the set default scope.
212
+ * @param scope The directory scope the path is in. Defaults to set default scope set for the current provider.
62
213
  * @returns A promise that resolves when the file has been written.
63
214
  */
64
- writeFile: (path, data, scope) => {
65
- return nativeInstance.createFile((0, _helpers.verifyLeadingSlash)(path), data, scope ?? defaultScope, true);
66
- },
215
+ writeFile(path, data, scope) {
216
+ return this.nativeInstance.createFile(path, data, scope ?? this.provider.options.scope, true);
217
+ }
218
+
67
219
  /**
68
220
  * Creates a new directory at the given path.
69
221
  * @param path The directory to create.
70
- * @param scope The directory scope the path is in. Defaults to the set default scope.
222
+ * @param scope The directory scope the path is in. Defaults to set default scope set for the current provider.
71
223
  * @returns A promise that resolves when the directory has been created.
72
224
  */
73
- mkdir: (path, scope) => {
74
- return nativeInstance.createDirectory((0, _helpers.verifyLeadingSlash)(path), scope ?? defaultScope);
75
- },
225
+ mkdir(path, scope) {
226
+ return this.nativeInstance.createDirectory(path, scope ?? this.provider.options.scope);
227
+ }
228
+
76
229
  /**
77
230
  * Lists the contents of the directory at the given path.
78
231
  * @param path The directory to list.
79
- * @param scope The directory scope the path is in. Defaults to the set default scope.
232
+ * @param scope The directory scope the path is in. Defaults to set default scope set for the current provider.
80
233
  * @returns A promise that resolves to an array of file names, excluding '.' and '..'.
81
234
  */
82
- readdir: (path, scope) => {
83
- return nativeInstance.listFiles((0, _helpers.verifyLeadingSlash)(path), scope ?? defaultScope);
84
- },
235
+ readdir(path, scope) {
236
+ return this.nativeInstance.listFiles(path, scope ?? this.provider.options.scope);
237
+ }
238
+
85
239
  /**
86
240
  * Reads the contents of the file at the given path.
87
241
  * @param path The file to read.
88
- * @param scope The directory scope the path is in. Defaults to the set default scope.
242
+ * @param scope The directory scope the path is in. Defaults to set default scope set for the current provider.
89
243
  * @returns A promise that resolves to the contents of the file.
90
244
  */
91
- readFile: (path, scope) => {
92
- return nativeInstance.readFile((0, _helpers.verifyLeadingSlash)(path), scope ?? defaultScope);
93
- },
245
+ readFile(path, scope) {
246
+ return this.nativeInstance.readFile(path, scope ?? this.provider.options.scope);
247
+ }
248
+
94
249
  /**
95
- * Downloads the file at the given path from iCloud. Does not have any effect on Google Drive.
250
+ * Downloads the file at the given path. Does not have any effect on Google Drive.
96
251
  * @param path The file to trigger the download for.
97
- * @param scope The directory scope the path is in. Defaults to the set default scope.
252
+ * @param scope The directory scope the path is in. Defaults to set default scope set for the current provider.
98
253
  * @returns A promise that resolves once the download has been triggered.
99
254
  */
100
- downloadFile: (path, scope) => {
101
- return nativeInstance.downloadFile((0, _helpers.verifyLeadingSlash)(path), scope ?? defaultScope);
102
- },
255
+ downloadFile(path, scope) {
256
+ return this.nativeInstance.downloadFile(path, scope ?? this.provider.options.scope);
257
+ }
258
+
103
259
  /**
104
260
  * Deletes the file at the given path.
105
261
  * @param path The file to delete.
106
- * @param scope The directory scope the path is in. Defaults to the set default scope.
262
+ * @param scope The directory scope the path is in. Defaults to set default scope set for the current provider.
107
263
  * @returns A promise that resolves when the file has been deleted.
108
264
  */
109
- unlink: (path, scope) => {
110
- return nativeInstance.deleteFile((0, _helpers.verifyLeadingSlash)(path), scope ?? defaultScope);
111
- },
265
+ unlink(path, scope) {
266
+ return this.nativeInstance.deleteFile(path, scope ?? this.provider.options.scope);
267
+ }
268
+
112
269
  /**
113
270
  * Deletes the directory at the given path.
114
271
  * @param path The directory to delete.
115
272
  * @param options Options for the delete operation. Defaults to { recursive: false }.
116
- * @param scope The directory scope the path is in. Defaults to the set default scope.
273
+ * @param scope The directory scope the path is in. Defaults to set default scope set for the current provider.
117
274
  * @returns A promise that resolves when the directory has been deleted.
118
275
  */
119
- rmdir: (path, options, scope) => {
120
- return nativeInstance.deleteDirectory((0, _helpers.verifyLeadingSlash)(path), (options === null || options === void 0 ? void 0 : options.recursive) ?? false, scope ?? defaultScope);
121
- },
276
+ rmdir(path, options, scope) {
277
+ return this.nativeInstance.deleteDirectory(path, options?.recursive ?? false, scope ?? this.provider.options.scope);
278
+ }
279
+
122
280
  /**
123
281
  * Gets the size, creation time, and modification time of the file at the given path.
124
282
  * @param path The file to stat.
125
- * @param scope The directory scope the path is in. Defaults to the set default scope.
283
+ * @param scope The directory scope the path is in. Defaults to set default scope set for the current provider.
126
284
  * @returns A promise that resolves to the CloudStorageFileStat object.
127
285
  */
128
- stat: async (path, scope) => {
129
- const native = await nativeInstance.statFile((0, _helpers.verifyLeadingSlash)(path), scope ?? defaultScope);
286
+ async stat(path, scope) {
287
+ const native = await this.nativeInstance.statFile(path, scope ?? this.provider.options.scope);
130
288
  return {
131
289
  ...native,
132
290
  birthtime: new Date(native.birthtimeMs),
@@ -135,7 +293,144 @@ const RNCloudStorage = {
135
293
  isFile: () => native.isFile
136
294
  };
137
295
  }
138
- };
139
- var _default = RNCloudStorage;
140
- exports.default = _default;
296
+ //#endregion
297
+
298
+ //#region Static methods for default static instance
299
+ static getDefaultInstance() {
300
+ if (!RNCloudStorage.defaultInstance) {
301
+ RNCloudStorage.defaultInstance = new RNCloudStorage();
302
+ }
303
+ return RNCloudStorage.defaultInstance;
304
+ }
305
+
306
+ /**
307
+ * Gets the current options for the provider of the default static instance.
308
+ * @returns The current options for the provider of the default static instance.
309
+ */
310
+ static getProviderOptions() {
311
+ return RNCloudStorage.getDefaultInstance().getProviderOptions();
312
+ }
313
+
314
+ /**
315
+ * Sets the options for the provider of the default static instance.
316
+ * @param options The options to set for the provider of the default static instance.
317
+ */
318
+ static setProviderOptions(options) {
319
+ RNCloudStorage.getDefaultInstance().setProviderOptions(options);
320
+ }
321
+
322
+ /**
323
+ * Tests whether or not the file at the given path exists in the provider of the default static instance.
324
+ * @param path The path to test.
325
+ * @param scope The directory scope the path is in. Defaults to set default scope set for the current provider.
326
+ * @returns A promise that resolves to true if the path exists, false otherwise.
327
+ */
328
+ static exists(path, scope) {
329
+ return RNCloudStorage.getDefaultInstance().exists(path, scope);
330
+ }
331
+
332
+ /**
333
+ * Tests whether or not the cloud storage is available for the provider of the default static instance. Always returns true for Google Drive. iCloud may be
334
+ * unavailable right after app launch or if the user is not logged in.
335
+ * @returns A promise that resolves to true if the cloud storage is available, false otherwise.
336
+ */
337
+ static isCloudAvailable() {
338
+ return RNCloudStorage.getDefaultInstance().isCloudAvailable();
339
+ }
340
+
341
+ /**
342
+ * Appends the data to the file at the given path in the provider of the default static instance, creating the file if it doesn't exist.
343
+ * @param path The file to append to.
344
+ * @param data The data to append.
345
+ * @param scope The directory scope the path is in. Defaults to the default scope set for the default static instance.
346
+ * @returns A promise that resolves when the data has been appended.
347
+ */
348
+ static appendFile(path, data, scope) {
349
+ return RNCloudStorage.getDefaultInstance().appendFile(path, data, scope);
350
+ }
351
+
352
+ /**
353
+ * Writes to the file at the given path in the provider of the default static instance, creating it if it doesn't exist or overwriting it if it does.
354
+ * @param path The file to write to.
355
+ * @param data The data to write.
356
+ * @param scope The directory scope the path is in. Defaults to the default scope set for the default static instance.
357
+ * @returns A promise that resolves when the file has been written.
358
+ */
359
+ static writeFile(path, data, scope) {
360
+ return RNCloudStorage.getDefaultInstance().writeFile(path, data, scope);
361
+ }
362
+
363
+ /**
364
+ * Creates a new directory at the given path in the provider of the default static instance.
365
+ * @param path The directory to create.
366
+ * @param scope The directory scope the path is in. Defaults to the default scope set for the default static instance.
367
+ * @returns A promise that resolves when the directory has been created.
368
+ */
369
+ static mkdir(path, scope) {
370
+ return RNCloudStorage.getDefaultInstance().mkdir(path, scope);
371
+ }
372
+
373
+ /**
374
+ * Lists the contents of the directory at the given path in the provider of the default static instance.
375
+ * @param path The directory to list.
376
+ * @param scope The directory scope the path is in. Defaults to the default scope set for the default static instance.
377
+ * @returns A promise that resolves to an array of file names, excluding '.' and '..'.
378
+ */
379
+ static readdir(path, scope) {
380
+ return RNCloudStorage.getDefaultInstance().readdir(path, scope);
381
+ }
382
+
383
+ /**
384
+ * Reads the contents of the file at the given path in the provider of the default static instance.
385
+ * @param path The file to read.
386
+ * @param scope The directory scope the path is in. Defaults to the default scope set for the default static instance.
387
+ * @returns A promise that resolves to the contents of the file.
388
+ */
389
+ static readFile(path, scope) {
390
+ return RNCloudStorage.getDefaultInstance().readFile(path, scope);
391
+ }
392
+
393
+ /**
394
+ * Downloads the file at the given path in the provider of the default static instance. Does not have any effect on Google Drive.
395
+ * @param path The file to trigger the download for.
396
+ * @param scope The directory scope the path is in. Defaults to the default scope set for the default static instance.
397
+ * @returns A promise that resolves once the download has been triggered.
398
+ */
399
+ static downloadFile(path, scope) {
400
+ return RNCloudStorage.getDefaultInstance().downloadFile(path, scope);
401
+ }
402
+
403
+ /**
404
+ * Deletes the file at the given path in the provider of the default static instance.
405
+ * @param path The file to delete.
406
+ * @param scope The directory scope the path is in. Defaults to the default scope set for the default static instance.
407
+ * @returns A promise that resolves when the file has been deleted.
408
+ */
409
+ static unlink(path, scope) {
410
+ return RNCloudStorage.getDefaultInstance().unlink(path, scope);
411
+ }
412
+
413
+ /**
414
+ * Deletes the directory at the given path in the provider of the default static instance.
415
+ * @param path The directory to delete.
416
+ * @param options Options for the delete operation. Defaults to { recursive: false }.
417
+ * @param scope The directory scope the path is in. Defaults to the default scope set for the default static instance.
418
+ * @returns A promise that resolves when the directory has been deleted.
419
+ */
420
+ static rmdir(path, options, scope) {
421
+ return RNCloudStorage.getDefaultInstance().rmdir(path, options, scope);
422
+ }
423
+
424
+ /**
425
+ * Gets the size, creation time, and modification time of the file at the given path in the provider of the default static instance.
426
+ * @param path The file to stat.
427
+ * @param scope The directory scope the path is in. Defaults to the default scope set for the default static instance.
428
+ * @returns A promise that resolves to the CloudStorageFileStat object.
429
+ */
430
+ static stat(path, scope) {
431
+ return RNCloudStorage.getDefaultInstance().stat(path, scope);
432
+ }
433
+ //#endregion
434
+ }
435
+ exports.default = RNCloudStorage;
141
436
  //# sourceMappingURL=RNCloudStorage.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_reactNative","require","_createRNCloudStorage","_interopRequireDefault","_googleDrive","_main","_helpers","obj","__esModule","default","nativeInstance","createRNCloudStorage","defaultScope","CloudStorageScope","AppData","RNCloudStorage","getDefaultScope","setDefaultScope","scope","getGoogleDriveAccessToken","GoogleDrive","accessToken","setGoogleDriveAccessToken","setThrowOnFilesWithSameName","enable","throwOnFilesWithSameName","setTimeout","timeout","subscribeToFilesWithSameName","Platform","OS","subscriber","remove","bind","isCloudAvailable","appendFile","path","data","appendToFile","verifyLeadingSlash","exists","fileExists","writeFile","createFile","mkdir","createDirectory","readdir","listFiles","readFile","downloadFile","unlink","deleteFile","rmdir","options","deleteDirectory","recursive","stat","native","statFile","birthtime","Date","birthtimeMs","mtime","mtimeMs","isDirectory","isFile","_default","exports"],"sourceRoot":"../../src","sources":["RNCloudStorage.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,qBAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,YAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,KAAA,GAAAJ,OAAA;AACA,IAAAK,QAAA,GAAAL,OAAA;AAAqD,SAAAE,uBAAAI,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAErD,MAAMG,cAAc,GAAG,IAAAC,6BAAoB,GAAE;AAC7C,IAAIC,YAAY,GAAGC,uBAAiB,CAACC,OAAO;AAE5C,MAAMC,cAAc,GAAG;EACrBC,eAAe,EAAEA,CAAA,KAAMJ,YAAY;EACnCK,eAAe,EAAGC,KAAwB,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AAAf,2BAAkB,EAACH,IAAI,CAAC,EAAE,CAAAiB,OAAO,aAAPA,OAAO,uBAAPA,OAAO,CAAEE,SAAS,KAAI,KAAK,EAAErC,KAAK,IAAIN,YAAY,CAAC;EACrH,CAAC;EAED;AACF;AACA;AACA;AACA;AACA;EACE4C,IAAI,EAAE,MAAAA,CAAOpB,IAAY,EAAElB,KAAyB,KAAoC;IACtF,MAAMuC,MAAM,GAAG,MAAM/C,cAAc,CAACgD,QAAQ,CAAC,IAAAnB,2BAAkB,EAACH,IAAI,CAAC,EAAElB,KAAK,IAAIN,YAAY,CAAC;IAE7F,OAAO;MACL,GAAG6C,MAAM;MACTE,SAAS,EAAE,IAAIC,IAAI,CAACH,MAAM,CAACI,WAAW,CAAC;MACvCC,KAAK,EAAE,IAAIF,IAAI,CAACH,MAAM,CAACM,OAAO,CAAC;MAC/BC,WAAW,EAAEA,CAAA,KAAMP,MAAM,CAACO,WAAW;MACrCC,MAAM,EAAEA,CAAA,KAAMR,MAAM,CAACQ;IACvB,CAAC;EACH;AACF,CAAC;AAAC,IAAAC,QAAA,GAEanD,cAAc;AAAAoD,OAAA,CAAA1D,OAAA,GAAAyD,QAAA"}
1
+ {"version":3,"names":["_main","require","_helpers","_reactNative","_CloudStorageError","_interopRequireDefault","_native","_googleDrive","e","__esModule","default","LINKING_ERROR","Platform","select","ios","nativeIosInstance","NativeModules","CloudStorage","Proxy","get","target","prop","originalFunction","args","error","code","Object","values","CloudStorageErrorCode","includes","CloudStorageError","message","UNKNOWN","defaultProviderOptions","CloudStorageProvider","ICloud","scope","CloudStorageScope","AppData","GoogleDrive","accessToken","strictFilenames","timeout","RNCloudStorage","cloudAvailabilityListeners","constructor","provider","options","isProviderSupported","Error","getDefaultProvider","setProvider","setProviderOptions","nativeInstance","OS","getSupportedProviders","filter","getProvider","isCloudAvailable","then","available","forEach","listener","eventEmitter","NativeEventEmitter","CloudStorageEventEmitter","addListener","event","getProviderOptions","newOptions","fromEntries","entries","_","v","undefined","length","subscribeToCloudAvailability","push","unsubscribeFromCloudAvailability","l","appendFile","path","data","appendToFile","exists","fileExists","writeFile","createFile","mkdir","createDirectory","readdir","listFiles","readFile","downloadFile","unlink","deleteFile","rmdir","deleteDirectory","recursive","stat","native","statFile","birthtime","Date","birthtimeMs","mtime","mtimeMs","isDirectory","isFile","getDefaultInstance","defaultInstance","exports"],"sourceRoot":"../../src","sources":["RNCloudStorage.ts"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAQA,IAAAC,QAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AACA,IAAAG,kBAAA,GAAAC,sBAAA,CAAAJ,OAAA;AACA,IAAAK,OAAA,GAAAL,OAAA;AACA,IAAAM,YAAA,GAAAF,sBAAA,CAAAJ,OAAA;AAAyC,SAAAI,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAEzC,MAAMG,aAAa,GACjB,qFAAqF,GACrFC,qBAAQ,CAACC,MAAM,CAAC;EAAEC,GAAG,EAAE,gCAAgC;EAAEJ,OAAO,EAAE;AAAG,CAAC,CAAC,GACvE,sDAAsD,GACtD,+BAA+B;;AAEjC;AACA,MAAMK,iBAAiB,GAAGC,0BAAa,CAACC,YAAY,GAChD,IAAIC,KAAK,CAACF,0BAAa,CAACC,YAAY,EAAE;EACpCE,GAAGA,CAACC,MAA4B,EAAEC,IAAgC,EAAE;IAClE,MAAMC,gBAAgB,GAAGF,MAAM,CAACC,IAAI,CAAC;IACrC,IAAI,OAAOC,gBAAgB,KAAK,UAAU,EAAE;MAC1C,OAAO,OAAO,GAAGC,IAAW,KAAK;QAC/B,IAAI;UACF;UACA,OAAO,MAAMD,gBAAgB,CAAC,GAAGC,IAAI,CAAC;QACxC,CAAC,CAAC,OAAOC,KAAU,EAAE;UACnB,IAAIA,KAAK,EAAEC,IAAI,IAAIC,MAAM,CAACC,MAAM,CAACC,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;AACA;AACA;AACA;AACA;EACE,OAAO0D,MAAMA,CAACb,IAAY,EAAE7C,KAAyB,EAAiB;IACpE,OAAOO,cAAc,CAACkE,kBAAkB,CAAC,CAAC,CAACf,MAAM,CAACb,IAAI,EAAE7C,KAAK,CAAC;EAChE;;EAEA;AACF;AACA;AACA;AACA;AACA;AACA;EACE,OAAO4D,KAAKA,CAACf,IAAY,EAAElC,OAAiC,EAAEX,KAAyB,EAAiB;IACtG,OAAOO,cAAc,CAACkE,kBAAkB,CAAC,CAAC,CAACb,KAAK,CAACf,IAAI,EAAElC,OAAO,EAAEX,KAAK,CAAC;EACxE;;EAEA;AACF;AACA;AACA;AACA;AACA;EACE,OAAO+D,IAAIA,CAAClB,IAAY,EAAE7C,KAAyB,EAAiC;IAClF,OAAOO,cAAc,CAACkE,kBAAkB,CAAC,CAAC,CAACV,IAAI,CAAClB,IAAI,EAAE7C,KAAK,CAAC;EAC9D;EACA;AACF;AAAC2E,OAAA,CAAArG,OAAA,GAAAiC,cAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["expo-plugin/types/index.ts"],"mappings":""}
1
+ {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["expo-plugin/types/index.ts"],"mappings":"","ignoreList":[]}
@@ -5,10 +5,9 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
  var _withRNCloudStorageIos = _interopRequireDefault(require("./withRNCloudStorageIos"));
8
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
8
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
9
9
  // Android config plugin not needed as there's no native code to configure.
10
10
 
11
11
  const withRNCloudStorage = (config, options) => (0, _withRNCloudStorageIos.default)(config, options);
12
- var _default = withRNCloudStorage;
13
- exports.default = _default;
12
+ var _default = exports.default = withRNCloudStorage;
14
13
  //# sourceMappingURL=withRNCloudStorage.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_withRNCloudStorageIos","_interopRequireDefault","require","obj","__esModule","default","withRNCloudStorage","config","options","withRNCloudStorageIos","_default","exports"],"sourceRoot":"../../../src","sources":["expo-plugin/withRNCloudStorage.ts"],"mappings":";;;;;;AACA,IAAAA,sBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAA4D,SAAAD,uBAAAE,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAG5D;;AAEA,MAAMG,kBAAmE,GAAGA,CAACC,MAAM,EAAEC,OAAO,KAC1F,IAAAC,8BAAqB,EAACF,MAAM,EAAEC,OAAO,CAAC;AAAC,IAAAE,QAAA,GAE1BJ,kBAAkB;AAAAK,OAAA,CAAAN,OAAA,GAAAK,QAAA"}
1
+ {"version":3,"names":["_withRNCloudStorageIos","_interopRequireDefault","require","e","__esModule","default","withRNCloudStorage","config","options","withRNCloudStorageIos","_default","exports"],"sourceRoot":"../../../src","sources":["expo-plugin/withRNCloudStorage.ts"],"mappings":";;;;;;AACA,IAAAA,sBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAA4D,SAAAD,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAG5D;;AAEA,MAAMG,kBAAmE,GAAGA,CAACC,MAAM,EAAEC,OAAO,KAC1F,IAAAC,8BAAqB,EAACF,MAAM,EAAEC,OAAO,CAAC;AAAC,IAAAE,QAAA,GAAAC,OAAA,CAAAN,OAAA,GAE1BC,kBAAkB","ignoreList":[]}
@@ -6,8 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  var _configPlugins = require("@expo/config-plugins");
8
8
  const withRNCloudStorageInfoPlist = config => (0, _configPlugins.withInfoPlist)(config, async newConfig => {
9
- var _config$ios;
10
- if (!((_config$ios = config.ios) !== null && _config$ios !== void 0 && _config$ios.bundleIdentifier)) {
9
+ if (!config.ios?.bundleIdentifier) {
11
10
  throw new Error('Missing iOS bundle identifier');
12
11
  }
13
12
  const infoPlist = newConfig.modResults;
@@ -21,19 +20,17 @@ const withRNCloudStorageInfoPlist = config => (0, _configPlugins.withInfoPlist)(
21
20
  return newConfig;
22
21
  });
23
22
  const withRNCloudStorageEntitlementsPlist = (config, options) => (0, _configPlugins.withEntitlementsPlist)(config, async newConfig => {
24
- var _config$ios2;
25
- if (!((_config$ios2 = config.ios) !== null && _config$ios2 !== void 0 && _config$ios2.bundleIdentifier)) {
23
+ if (!config.ios?.bundleIdentifier) {
26
24
  throw new Error('Missing iOS bundle identifier');
27
25
  }
28
26
  const entitlementsPlist = newConfig.modResults;
29
27
  entitlementsPlist['com.apple.developer.icloud-container-identifiers'] = [`iCloud.${config.ios.bundleIdentifier}`];
30
28
  entitlementsPlist['com.apple.developer.icloud-services'] = ['CloudDocuments'];
31
- entitlementsPlist['com.apple.developer.icloud-container-environment'] = (options === null || options === void 0 ? void 0 : options.iCloudContainerEnvironment) ?? 'Production';
29
+ entitlementsPlist['com.apple.developer.icloud-container-environment'] = options?.iCloudContainerEnvironment ?? 'Production';
32
30
  entitlementsPlist['com.apple.developer.ubiquity-container-identifiers'] = [`iCloud.${config.ios.bundleIdentifier}`];
33
31
  entitlementsPlist['com.apple.developer.ubiquity-kvstore-identifier'] = `$(TeamIdentifierPrefix)${config.ios.bundleIdentifier}`;
34
32
  return newConfig;
35
33
  });
36
34
  const withRNCloudStorageIos = (config, options) => (0, _configPlugins.withPlugins)(config, [withRNCloudStorageInfoPlist, [withRNCloudStorageEntitlementsPlist, options]]);
37
- var _default = withRNCloudStorageIos;
38
- exports.default = _default;
35
+ var _default = exports.default = withRNCloudStorageIos;
39
36
  //# sourceMappingURL=withRNCloudStorageIos.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_configPlugins","require","withRNCloudStorageInfoPlist","config","withInfoPlist","newConfig","_config$ios","ios","bundleIdentifier","Error","infoPlist","modResults","NSUbiquitousContainers","NSUbiquitousContainerIsDocumentScopePublic","NSUbiquitousContainerSupportedFolderLevels","NSUbiquitousContainerName","slug","withRNCloudStorageEntitlementsPlist","options","withEntitlementsPlist","_config$ios2","entitlementsPlist","iCloudContainerEnvironment","withRNCloudStorageIos","withPlugins","_default","exports","default"],"sourceRoot":"../../../src","sources":["expo-plugin/withRNCloudStorageIos.ts"],"mappings":";;;;;;AAAA,IAAAA,cAAA,GAAAC,OAAA;AAGA,MAAMC,2BAAyC,GAAIC,MAAM,IACvD,IAAAC,4BAAa,EAACD,MAAM,EAAE,MAAOE,SAAS,IAAK;EAAA,IAAAC,WAAA;EACzC,IAAI,GAAAA,WAAA,GAACH,MAAM,CAACI,GAAG,cAAAD,WAAA,eAAVA,WAAA,CAAYE,gBAAgB,GAAE;IACjC,MAAM,IAAIC,KAAK,CAAC,+BAA+B,CAAC;EAClD;EACA,MAAMC,SAAS,GAAGL,SAAS,CAACM,UAAU;EACtCD,SAAS,CAACE,sBAAsB,GAAG;IACjC,CAAE,UAAST,MAAM,CAACI,GAAG,CAACC,gBAAiB,EAAC,GAAG;MACzCK,0CAA0C,EAAE,IAAI;MAChDC,0CAA0C,EAAE,KAAK;MACjDC,yBAAyB,EAAEZ,MAAM,CAACa;IACpC;EACF,CAAC;EAED,OAAOX,SAAS;AAClB,CAAC,CAAC;AAEJ,MAAMY,mCAAoF,GAAGA,CAACd,MAAM,EAAEe,OAAO,KAC3G,IAAAC,oCAAqB,EAAChB,MAAM,EAAE,MAAOE,SAAS,IAAK;EAAA,IAAAe,YAAA;EACjD,IAAI,GAAAA,YAAA,GAACjB,MAAM,CAACI,GAAG,cAAAa,YAAA,eAAVA,YAAA,CAAYZ,gBAAgB,GAAE;IACjC,MAAM,IAAIC,KAAK,CAAC,+BAA+B,CAAC;EAClD;EACA,MAAMY,iBAAiB,GAAGhB,SAAS,CAACM,UAAU;EAC9CU,iBAAiB,CAAC,kDAAkD,CAAC,GAAG,CAAE,UAASlB,MAAM,CAACI,GAAG,CAACC,gBAAiB,EAAC,CAAC;EACjHa,iBAAiB,CAAC,qCAAqC,CAAC,GAAG,CAAC,gBAAgB,CAAC;EAC7EA,iBAAiB,CAAC,kDAAkD,CAAC,GACnE,CAAAH,OAAO,aAAPA,OAAO,uBAAPA,OAAO,CAAEI,0BAA0B,KAAI,YAAY;EACrDD,iBAAiB,CAAC,oDAAoD,CAAC,GAAG,CAAE,UAASlB,MAAM,CAACI,GAAG,CAACC,gBAAiB,EAAC,CAAC;EACnHa,iBAAiB,CACf,iDAAiD,CAClD,GAAI,0BAAyBlB,MAAM,CAACI,GAAG,CAACC,gBAAiB,EAAC;EAE3D,OAAOH,SAAS;AAClB,CAAC,CAAC;AAEJ,MAAMkB,qBAAsE,GAAGA,CAACpB,MAAM,EAAEe,OAAO,KAC7F,IAAAM,0BAAW,EAACrB,MAAM,EAAE,CAACD,2BAA2B,EAAE,CAACe,mCAAmC,EAAEC,OAAO,CAAC,CAAC,CAAC;AAAC,IAAAO,QAAA,GAEtFF,qBAAqB;AAAAG,OAAA,CAAAC,OAAA,GAAAF,QAAA"}
1
+ {"version":3,"names":["_configPlugins","require","withRNCloudStorageInfoPlist","config","withInfoPlist","newConfig","ios","bundleIdentifier","Error","infoPlist","modResults","NSUbiquitousContainers","NSUbiquitousContainerIsDocumentScopePublic","NSUbiquitousContainerSupportedFolderLevels","NSUbiquitousContainerName","slug","withRNCloudStorageEntitlementsPlist","options","withEntitlementsPlist","entitlementsPlist","iCloudContainerEnvironment","withRNCloudStorageIos","withPlugins","_default","exports","default"],"sourceRoot":"../../../src","sources":["expo-plugin/withRNCloudStorageIos.ts"],"mappings":";;;;;;AAAA,IAAAA,cAAA,GAAAC,OAAA;AAGA,MAAMC,2BAAyC,GAAIC,MAAM,IACvD,IAAAC,4BAAa,EAACD,MAAM,EAAE,MAAOE,SAAS,IAAK;EACzC,IAAI,CAACF,MAAM,CAACG,GAAG,EAAEC,gBAAgB,EAAE;IACjC,MAAM,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