react-native-attachment-kit 1.0.8 → 1.0.9

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 (31) hide show
  1. package/README.md +40 -2
  2. package/android/CMakeLists.txt +3 -0
  3. package/android/build.gradle +11 -2
  4. package/android/src/main/libs/rnattachmentkit-release.aar +0 -0
  5. package/android/src/newarch/java/com/rnattachmentkit/RNAttachmentKitModule.kt +48 -2
  6. package/android/src/oldarch/java/com/rnattachmentkit/RNAttachmentKitModule.kt +48 -2
  7. package/ios/RNAttachmentKit.swift +133 -4
  8. package/ios/RNAttachmentKit.xcframework/Info.plist +5 -5
  9. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/Assets.car +0 -0
  10. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios.abi.json +727 -415
  11. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios.private.swiftinterface +12 -1
  12. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  13. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios.swiftinterface +12 -1
  14. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/RNAttachmentKit +0 -0
  15. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/_CodeSignature/CodeDirectory +0 -0
  16. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/_CodeSignature/CodeResources +12 -12
  17. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/_CodeSignature/CodeSignature +0 -0
  18. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios-simulator.abi.json +727 -415
  19. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +12 -1
  20. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  21. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios-simulator.swiftinterface +12 -1
  22. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/x86_64-apple-ios-simulator.abi.json +727 -415
  23. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +12 -1
  24. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  25. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +12 -1
  26. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/RNAttachmentKit +0 -0
  27. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/_CodeSignature/CodeDirectory +0 -0
  28. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/_CodeSignature/CodeResources +20 -20
  29. package/package.json +1 -1
  30. package/src/index.ts +1 -1
  31. package/src/types.ts +34 -1
@@ -47,9 +47,13 @@ import _SwiftConcurrencyShims
47
47
  }
48
48
  @_Concurrency.MainActor @preconcurrency public var onLocationSelected: ((RNAttachmentKit.AttachLocationResult) -> Swift.Void)?
49
49
  @_Concurrency.MainActor @preconcurrency public var capturesLocationImage: Swift.Bool
50
- @_Concurrency.MainActor @preconcurrency public var mediaType: Swift.String
50
+ @_Concurrency.MainActor @preconcurrency public var mediaType: Swift.String {
51
+ get
52
+ set
53
+ }
51
54
  @_Concurrency.MainActor @preconcurrency public var maxVideoDurationSec: Swift.Double
52
55
  @_Concurrency.MainActor @preconcurrency public var videoExportOptions: RNAttachmentKit.VideoExportOptions
56
+ @_Concurrency.MainActor @preconcurrency public var videoLockedByLicense: Swift.Bool
53
57
  @_Concurrency.MainActor @preconcurrency public func releaseAfterReturn(discardPreparedVideos: Swift.Bool = true)
54
58
  @_Concurrency.MainActor @preconcurrency public var onFilesSelected: (([RNAttachmentKit.AttachFileResult]) -> Swift.Void)?
55
59
  @_Concurrency.MainActor @preconcurrency public var onFilesSelectedWithFailures: (([RNAttachmentKit.AttachFileResult], [RNAttachmentKit.AttachFileFailure]) -> Swift.Void)?
@@ -392,6 +396,13 @@ extension RNAttachmentKit.GalleryBaseViewController : UIKit.UIAdaptivePresentati
392
396
  public func isValidLicense() -> Swift.Bool
393
397
  @objc deinit
394
398
  }
399
+ public enum LicenseGate {
400
+ public static var isLicensed: Swift.Bool {
401
+ get
402
+ }
403
+ public static let errorCode: Swift.String
404
+ public static let errorMessage: Swift.String
405
+ }
395
406
  @_hasMissingDesignatedInitializers public class ViewerImageCache {
396
407
  public static let shared: RNAttachmentKit.ViewerImageCache
397
408
  public func hasCache(for url: Swift.String) -> Swift.Bool
@@ -47,9 +47,13 @@ import _SwiftConcurrencyShims
47
47
  }
48
48
  @_Concurrency.MainActor @preconcurrency public var onLocationSelected: ((RNAttachmentKit.AttachLocationResult) -> Swift.Void)?
49
49
  @_Concurrency.MainActor @preconcurrency public var capturesLocationImage: Swift.Bool
50
- @_Concurrency.MainActor @preconcurrency public var mediaType: Swift.String
50
+ @_Concurrency.MainActor @preconcurrency public var mediaType: Swift.String {
51
+ get
52
+ set
53
+ }
51
54
  @_Concurrency.MainActor @preconcurrency public var maxVideoDurationSec: Swift.Double
52
55
  @_Concurrency.MainActor @preconcurrency public var videoExportOptions: RNAttachmentKit.VideoExportOptions
56
+ @_Concurrency.MainActor @preconcurrency public var videoLockedByLicense: Swift.Bool
53
57
  @_Concurrency.MainActor @preconcurrency public func releaseAfterReturn(discardPreparedVideos: Swift.Bool = true)
54
58
  @_Concurrency.MainActor @preconcurrency public var onFilesSelected: (([RNAttachmentKit.AttachFileResult]) -> Swift.Void)?
55
59
  @_Concurrency.MainActor @preconcurrency public var onFilesSelectedWithFailures: (([RNAttachmentKit.AttachFileResult], [RNAttachmentKit.AttachFileFailure]) -> Swift.Void)?
@@ -392,6 +396,13 @@ extension RNAttachmentKit.GalleryBaseViewController : UIKit.UIAdaptivePresentati
392
396
  public func isValidLicense() -> Swift.Bool
393
397
  @objc deinit
394
398
  }
399
+ public enum LicenseGate {
400
+ public static var isLicensed: Swift.Bool {
401
+ get
402
+ }
403
+ public static let errorCode: Swift.String
404
+ public static let errorMessage: Swift.String
405
+ }
395
406
  @_hasMissingDesignatedInitializers public class ViewerImageCache {
396
407
  public static let shared: RNAttachmentKit.ViewerImageCache
397
408
  public func hasCache(for url: Swift.String) -> Swift.Bool