react-native-attachment-kit 1.0.6 → 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.
- package/CHANGELOG.md +8 -0
- package/README.md +41 -3
- package/android/CMakeLists.txt +3 -0
- package/android/build.gradle +11 -2
- package/android/src/main/libs/rnattachmentkit-release.aar +0 -0
- package/android/src/newarch/java/com/rnattachmentkit/RNAttachmentKitModule.kt +48 -2
- package/android/src/oldarch/java/com/rnattachmentkit/RNAttachmentKitModule.kt +48 -2
- package/ios/RNAttachmentKit.swift +160 -5
- package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/Assets.car +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios.abi.json +1283 -810
- package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios.private.swiftinterface +12 -1
- package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios.swiftinterface +12 -1
- package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/RNAttachmentKit +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/_CodeSignature/CodeDirectory +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/_CodeSignature/CodeResources +12 -12
- package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/_CodeSignature/CodeSignature +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Assets.car +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios-simulator.abi.json +1283 -810
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +12 -1
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios-simulator.swiftinterface +12 -1
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/x86_64-apple-ios-simulator.abi.json +1283 -810
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +12 -1
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +12 -1
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/RNAttachmentKit +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/_CodeSignature/CodeDirectory +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/_CodeSignature/CodeResources +22 -22
- package/package.json +2 -2
- package/src/index.ts +1 -1
- 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
|
|
Binary file
|
|
@@ -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
|
|
Binary file
|
|
Binary file
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<dict>
|
|
7
7
|
<key>Assets.car</key>
|
|
8
8
|
<data>
|
|
9
|
-
|
|
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
|
-
|
|
33
|
+
QCpNVpRc0vEB7D2XbfFeWqcB0kM=
|
|
34
34
|
</data>
|
|
35
35
|
<key>Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios.private.swiftinterface</key>
|
|
36
36
|
<data>
|
|
37
|
-
|
|
37
|
+
eLICGV3mCxPLlpmVKqESGej5Id8=
|
|
38
38
|
</data>
|
|
39
39
|
<key>Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios.swiftdoc</key>
|
|
40
40
|
<data>
|
|
41
|
-
|
|
41
|
+
IWd14Zr/FQlvMId97+LaJDiiN74=
|
|
42
42
|
</data>
|
|
43
43
|
<key>Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios.swiftinterface</key>
|
|
44
44
|
<data>
|
|
45
|
-
|
|
45
|
+
eLICGV3mCxPLlpmVKqESGej5Id8=
|
|
46
46
|
</data>
|
|
47
47
|
<key>Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios.swiftmodule</key>
|
|
48
48
|
<data>
|
|
49
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
273
|
+
XizlMyo8Aqjk0w1sYvuZwXj501C/2OjwKBWy9X64tI4=
|
|
274
274
|
</data>
|
|
275
275
|
</dict>
|
|
276
276
|
<key>Modules/module.modulemap</key>
|
|
Binary file
|