Skip to content

Commit

Permalink
Add version 2.8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
leontobias committed Apr 4, 2023
1 parent bf15ec0 commit d806299
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 12 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## [2.8.1]

### Fixed

* Fixed errors from the iOS plugin would not be caught.

## [2.8.0]

### Added
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Add the plugin package to the `pubspec.yaml` file in your project:

```yaml
dependencies:
video_editor_sdk: ^2.8.0
video_editor_sdk: ^2.8.1
```
Install the new dependency:
Expand Down
10 changes: 5 additions & 5 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
PODS:
- Flutter (1.0.0)
- imgly_sdk (2.8.0):
- imgly_sdk (2.8.1):
- Flutter
- imglyKit (~> 11.3)
- imglyKit (11.5.1)
- video_editor_sdk (2.8.0):
- video_editor_sdk (2.8.1):
- Flutter
- imgly_sdk (= 2.8.0)
- imgly_sdk (= 2.8.1)

DEPENDENCIES:
- Flutter (from `Flutter`)
Expand All @@ -27,9 +27,9 @@ EXTERNAL SOURCES:

SPEC CHECKSUMS:
Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
imgly_sdk: 35dd26c1125c92f628f3464075ad4c24fcdbce26
imgly_sdk: 4ed7b6f244e086715c5c180429164c24f93e5b0b
imglyKit: b1b3b827799a50b090433ca7c61f90b078944898
video_editor_sdk: 0efb0ea9260d4a319caff733a2cc5fed4a00930b
video_editor_sdk: 3ba65ce5b9fed8e8c811d4e129a6f48e83789220

PODFILE CHECKSUM: ef19549a9bc3046e7bb7d2fab4d021637c0c58a3

Expand Down
6 changes: 3 additions & 3 deletions ios/Classes/FlutterVESDK.swift
Original file line number Diff line number Diff line change
Expand Up @@ -265,14 +265,14 @@ extension FlutterVESDK {
try serializationData.IMGLYwriteToUrl(exportURL, andCreateDirectoryIfNeeded: true)
serialization = self.serializationFile?.absoluteString
} catch let error {
self.handleError(videoEditViewController, code: "Serialization failed.", message: error.localizedDescription, details: error)
self.handleError(videoEditViewController, code: "Serialization failed.", message: error.localizedDescription, details: error.localizedDescription)
return
}
} else if self.serializationType == IMGLYConstants.kExportTypeObject {
do {
serialization = try JSONSerialization.jsonObject(with: serializationData, options: .init(rawValue: 0))
} catch let error {
self.handleError(videoEditViewController, code: "Serialization failed.", message: error.localizedDescription, details: error)
self.handleError(videoEditViewController, code: "Serialization failed.", message: error.localizedDescription, details: error.localizedDescription)
return
}
}
Expand All @@ -294,7 +294,7 @@ extension FlutterVESDK {
/// - Parameter videoEditViewController: The `VideoEditViewController` that failed to export the video.
/// - Parameter error: The `VideoEditorError` that caused the failure.
public func videoEditViewControllerDidFail(_ videoEditViewController: VideoEditViewController, error: VideoEditorError) {
self.handleError(videoEditViewController, code: "Editor failed", message: "The editor did fail to generate the video.", details: error)
self.handleError(videoEditViewController, code: "Editor failed", message: "The editor did fail to generate the video.", details: error.localizedDescription)
}

/// Called if the `VideoEditViewController` was cancelled.
Expand Down
2 changes: 1 addition & 1 deletion lib/video_editor_sdk.dart
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ class VideoEditorResult {
.toList();
final serializedSize = Map<String, dynamic>.from(json["videoSize"]);
final deserializedSize =
Size(serializedSize?["width"], serializedSize?["height"]);
Size(serializedSize["width"], serializedSize["height"]);

return VideoEditorResult._(
json["video"], json["hasChanges"], json["serialization"],
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: video_editor_sdk
description: The official Flutter plugin for VideoEditor SDK. Integrate the video editor into your own iOS or Android app - in minutes!
version: 2.8.0
version: 2.8.1
homepage: https://www.videoeditorsdk.com
repository: https://github.com/imgly/vesdk-flutter

Expand All @@ -11,7 +11,7 @@ environment:
dependencies:
flutter:
sdk: flutter
imgly_sdk: 2.8.0
imgly_sdk: 2.8.1

dev_dependencies:
flutter_test:
Expand Down

0 comments on commit d806299

Please sign in to comment.