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.
@@ -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.absoluteString)
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.absoluteString)
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.absoluteString)
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
- resolve(payload)
1017
- }
1018
- )
1014
+ resolve(payload)
1015
+ })
1019
1016
  }
1020
1017
 
1021
1018
  private static func checkFileValidity(url: URL, completion: @escaping (Bool, String, Double) -> Void) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-video-trim",
3
- "version": "6.0.8",
3
+ "version": "6.0.9",
4
4
  "description": "Video trimmer for your React Native app",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",