@hortemo/expo-photos 5.0.0 → 7.0.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.
@@ -17,7 +17,7 @@ Pod::Spec.new do |s|
17
17
 
18
18
  s.dependency 'ExpoModulesCore'
19
19
  s.dependency 'React-Core'
20
- s.dependency 'SDWebImageWebPCoder', '0.15.0'
20
+ s.dependency 'SDWebImageWebPCoder', '~> 0.14'
21
21
 
22
22
  s.source_files = '**/*.{h,m,swift}'
23
23
  s.requires_arc = true
@@ -0,0 +1,8 @@
1
+ #if __has_include(<React/RCTBridgeModule.h>)
2
+
3
+ #import <React/RCTBridgeModule.h>
4
+
5
+ @interface RCT_EXTERN_MODULE(ExpoPhotosImageLoader, NSObject)
6
+ @end
7
+
8
+ #endif
@@ -244,6 +244,7 @@ public final class ExpoPhotos: Module {
244
244
 
245
245
  try await withCheckedThrowingContinuation {
246
246
  (continuation: CheckedContinuation<Void, Error>) in
247
+ nonisolated(unsafe) let exportSession = exportSession
247
248
  exportSession.exportAsynchronously {
248
249
  switch exportSession.status {
249
250
  case .completed:
@@ -292,9 +293,11 @@ public final class ExpoPhotos: Module {
292
293
  return picker
293
294
  }
294
295
 
296
+ let pickerId = await MainActor.run { picker.id }
297
+
295
298
  return try await withCheckedThrowingContinuation {
296
299
  (continuation: CheckedContinuation<[[String: Any]], Error>) in
297
- self.pickAssetsContinuations[picker.id] = continuation
300
+ self.pickAssetsContinuations[pickerId] = continuation
298
301
 
299
302
  Task {
300
303
  await viewController.present(picker, animated: true, completion: nil)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hortemo/expo-photos",
3
- "version": "5.0.0",
3
+ "version": "7.0.0",
4
4
  "description": "Expo module exposing advanced iOS Photos APIs.",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -1,24 +0,0 @@
1
- require 'json'
2
-
3
- package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
4
-
5
- Pod::Spec.new do |s|
6
- s.name = 'ExpoPhotos'
7
- s.version = package['version']
8
- s.summary = package['description']
9
- s.description = package['description']
10
- s.license = package['license']
11
- s.author = package['author']
12
- s.homepage = package['homepage']
13
- s.platform = :ios, '15.0'
14
- s.swift_version = '5.9'
15
- s.source = { git: package['repository'] || 'https://github.com/hortemo/expo-photos' }
16
- s.static_framework = true
17
-
18
- s.dependency 'ExpoModulesCore'
19
- s.dependency 'React-Core'
20
- s.dependency 'SDWebImageWebPCoder', '0.15.0'
21
-
22
- s.source_files = 'ios/**/*.{h,m,swift}'
23
- s.requires_arc = true
24
- end