react-native-video-trim 6.0.8 → 6.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/ios/VideoTrim.swift +5 -8
- package/package.json +1 -1
package/ios/VideoTrim.swift
CHANGED
|
@@ -211,8 +211,6 @@ public class VideoTrim: RCTEventEmitter, AssetLoaderDelegate, UIDocumentPickerDe
|
|
|
211
211
|
|
|
212
212
|
@objc public weak var delegate: VideoTrimProtocol?
|
|
213
213
|
@objc public var isNewArch = false
|
|
214
|
-
|
|
215
|
-
|
|
216
214
|
|
|
217
215
|
// MARK: for old arch
|
|
218
216
|
private var hasListeners = false
|
|
@@ -545,7 +543,7 @@ public class VideoTrim: RCTEventEmitter, AssetLoaderDelegate, UIDocumentPickerDe
|
|
|
545
543
|
|
|
546
544
|
// Handle removeAfterSavedToPhoto
|
|
547
545
|
if let removeAfterSaved = config["removeAfterSavedToPhoto"] as? Bool, removeAfterSaved {
|
|
548
|
-
let _ = VideoTrim.deleteFile(url: outputFile
|
|
546
|
+
let _ = VideoTrim.deleteFile(url: outputFile)
|
|
549
547
|
}
|
|
550
548
|
|
|
551
549
|
let result = [
|
|
@@ -561,7 +559,7 @@ public class VideoTrim: RCTEventEmitter, AssetLoaderDelegate, UIDocumentPickerDe
|
|
|
561
559
|
|
|
562
560
|
// Handle removeAfterFailedToSavePhoto
|
|
563
561
|
if let removeAfterFailed = config["removeAfterFailedToSavePhoto"] as? Bool, removeAfterFailed {
|
|
564
|
-
let _ = VideoTrim.deleteFile(url: outputFile
|
|
562
|
+
let _ = VideoTrim.deleteFile(url: outputFile)
|
|
565
563
|
}
|
|
566
564
|
|
|
567
565
|
let result = [
|
|
@@ -578,7 +576,7 @@ public class VideoTrim: RCTEventEmitter, AssetLoaderDelegate, UIDocumentPickerDe
|
|
|
578
576
|
|
|
579
577
|
// Handle removeAfterFailedToSavePhoto
|
|
580
578
|
if let removeAfterFailed = config["removeAfterFailedToSavePhoto"] as? Bool, removeAfterFailed {
|
|
581
|
-
let _ = VideoTrim.deleteFile(url: outputFile
|
|
579
|
+
let _ = VideoTrim.deleteFile(url: outputFile)
|
|
582
580
|
}
|
|
583
581
|
|
|
584
582
|
let result = [
|
|
@@ -1013,9 +1011,8 @@ extension VideoTrim {
|
|
|
1013
1011
|
@objc(isValidFile:withResolver:withRejecter:)
|
|
1014
1012
|
func isValidFile(uri: String, resolve: @escaping RCTPromiseResolveBlock,reject: @escaping RCTPromiseRejectBlock) -> Void {
|
|
1015
1013
|
VideoTrim.isValidFile(url: uri, completion: { payload in
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
)
|
|
1014
|
+
resolve(payload)
|
|
1015
|
+
})
|
|
1019
1016
|
}
|
|
1020
1017
|
|
|
1021
1018
|
private static func checkFileValidity(url: URL, completion: @escaping (Bool, String, Double) -> Void) {
|