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
@@ -6,7 +6,7 @@
6
6
  <dict>
7
7
  <key>Assets.car</key>
8
8
  <data>
9
- MRss66st77g0KhHxCBbJQfKPil4=
9
+ Q4WslrRyFGZTzQsyECtW25oGXkw=
10
10
  </data>
11
11
  <key>Base.lproj/LaunchScreen.storyboardc/01J-lp-oVM-view-Ze5-6b-2t3.nib</key>
12
12
  <data>
@@ -30,23 +30,23 @@
30
30
  </data>
31
31
  <key>Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios.abi.json</key>
32
32
  <data>
33
- jtMJeuIc6NJxIwsmoivzbVsAnCU=
33
+ QCpNVpRc0vEB7D2XbfFeWqcB0kM=
34
34
  </data>
35
35
  <key>Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios.private.swiftinterface</key>
36
36
  <data>
37
- Dw7pxDgMb6F9d7XkiMnvnLYsDrQ=
37
+ eLICGV3mCxPLlpmVKqESGej5Id8=
38
38
  </data>
39
39
  <key>Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios.swiftdoc</key>
40
40
  <data>
41
- eC+xmjPKj2jANcs6efEK6Y/EVTA=
41
+ IWd14Zr/FQlvMId97+LaJDiiN74=
42
42
  </data>
43
43
  <key>Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios.swiftinterface</key>
44
44
  <data>
45
- Dw7pxDgMb6F9d7XkiMnvnLYsDrQ=
45
+ eLICGV3mCxPLlpmVKqESGej5Id8=
46
46
  </data>
47
47
  <key>Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios.swiftmodule</key>
48
48
  <data>
49
- NJkDKyjdWbpwU0AWsnfoQguF5cQ=
49
+ gDlY0vHfoJT7ppujO7nwHelNdiQ=
50
50
  </data>
51
51
  <key>Modules/module.modulemap</key>
52
52
  <data>
@@ -207,7 +207,7 @@
207
207
  <dict>
208
208
  <key>hash2</key>
209
209
  <data>
210
- PN8SGeEYmroH8IKhC4cAPpqrFa8xoBCtF2CRXH0MgEA=
210
+ geng7yTEBfEgTf50zabLdmetI/prd9vrBgF8kV7XtOQ=
211
211
  </data>
212
212
  </dict>
213
213
  <key>Base.lproj/LaunchScreen.storyboardc/01J-lp-oVM-view-Ze5-6b-2t3.nib</key>
@@ -242,35 +242,35 @@
242
242
  <dict>
243
243
  <key>hash2</key>
244
244
  <data>
245
- KkzF9RNZRT0CnrFIImovgC7FK7jb0qd7Y/+AuF0soqY=
245
+ YzwUYhEJp5lGLBz7bpTgBB6IhEWkDqjO5vA3QKpNHTo=
246
246
  </data>
247
247
  </dict>
248
248
  <key>Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios.private.swiftinterface</key>
249
249
  <dict>
250
250
  <key>hash2</key>
251
251
  <data>
252
- E0B+8FT9GNIM9drktULgTgGfYhR3gH4MNaNa/+ysXuA=
252
+ XxozKRRetFsMrNeDzS/fFxOdLteMcerdDznjsWEE5Go=
253
253
  </data>
254
254
  </dict>
255
255
  <key>Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios.swiftdoc</key>
256
256
  <dict>
257
257
  <key>hash2</key>
258
258
  <data>
259
- 5jsrGB0lZkDtO5Ti5MbPY5uCCwRdADqr0Jysa+s8Q2s=
259
+ yCx2E9f6H1O8Cg7OtwWWn6sesf0iRpdNawKExD307ws=
260
260
  </data>
261
261
  </dict>
262
262
  <key>Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios.swiftinterface</key>
263
263
  <dict>
264
264
  <key>hash2</key>
265
265
  <data>
266
- E0B+8FT9GNIM9drktULgTgGfYhR3gH4MNaNa/+ysXuA=
266
+ XxozKRRetFsMrNeDzS/fFxOdLteMcerdDznjsWEE5Go=
267
267
  </data>
268
268
  </dict>
269
269
  <key>Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios.swiftmodule</key>
270
270
  <dict>
271
271
  <key>hash2</key>
272
272
  <data>
273
- H6iFUaz8Gi0JnjYkzNoHIcuEFAsjAoS+Tqz5fQ7Zb6Y=
273
+ XizlMyo8Aqjk0w1sYvuZwXj501C/2OjwKBWy9X64tI4=
274
274
  </data>
275
275
  </dict>
276
276
  <key>Modules/module.modulemap</key>