Skip to content

Commit

Permalink
Add version 2.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
leontobias committed Sep 13, 2022
1 parent b73da10 commit 20a7a3e
Show file tree
Hide file tree
Showing 7 changed files with 71 additions and 52 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
## [2.7.0]

### Added

* [imgly_sdk] Added `StickerAction.duration` as well as `TextAction.duration` which allow selecting a unique duration for texts and stickers in the video editor.

### Fixed

* [video_editor_sdk] Fixed `Theme` would not be applied if the editor has been initialized with a single video on Android.

## [2.6.0]

### Changed
Expand Down
87 changes: 47 additions & 40 deletions 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.6.0
video_editor_sdk: ^2.7.0
```
Install the new dependency:
Expand All @@ -44,6 +44,7 @@ flutter pub get
With version `2.4.0`, we recommend using `compileSdkVersion` not lower than `31` for Android. However, this might interfere with your application's Android Gradle Plugin version if this is set to `4.x`.

If you don't use a newer Android Gradle Plugin version you'll most likely encounter a build error similar to:

```
FAILURE: Build failed with an exception.
Expand All @@ -60,31 +61,35 @@ Run with --stacktrace option to get the stack trace. Run with --info or --debug
* Get more help at https://help.gradle.org
```

**As a workaround you can either:**

1. Upgrade your Android Gradle Plugin version:

Inside `android/build.gradle` update the version to at least `7.0.0`:
```diff
buildscript {
...
dependencies {
- classpath 'com.android.tools.build:gradle:4.1.1'
+ classpath 'com.android.tools.build:gradle:7.0.0'
...
}
}
```

After this, you need to update the Gradle version as well in `android/gradle/gradle-wrapper.properties`:
```diff
- distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip
+ distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-all.zip
```
Inside `android/build.gradle` update the version to at least `7.0.0`:

```diff
buildscript {
...
dependencies {
- classpath 'com.android.tools.build:gradle:4.1.1'
+ classpath 'com.android.tools.build:gradle:7.0.0'
...
}
}
```

After this, you need to update the Gradle version as well in `android/gradle/gradle-wrapper.properties`:

```diff
- distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip
+ distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-all.zip
```

2. **Or** create the following symlinks:
- Inside `/Users/YOUR-USERNAME/Library/Android/sdk/build-tools/31.0.0/`: Create a `dx` symlink for the `d8` file with `ln -s d8 dx`.
- From there, go to `./lib/` and create a `dx.jar` symlink for the `d8.jar` file with `ln -s d8.jar dx.jar`.

- Inside `/Users/YOUR-USERNAME/Library/Android/sdk/build-tools/31.0.0/`: Create a `dx` symlink for the `d8` file with `ln -s d8 dx`.
- From there, go to `./lib/` and create a `dx.jar` symlink for the `d8.jar` file with `ln -s d8.jar dx.jar`.

### Android

Expand All @@ -102,12 +107,13 @@ Run with --stacktrace option to get the stack trace. Run with --info or --debug
}
dependencies {
...
+ classpath 'ly.img.android.sdk:plugin:10.1.1'
+ classpath 'ly.img.android.sdk:plugin:10.3.1'
...
}
}
```
In order to update VideoEditor SDK for Android replace the version string `10.1.1` with a [newer release](https://github.com/imgly/pesdk-android-demo/releases).

In order to update VideoEditor SDK for Android replace the version string `10.3.1` with a [newer release](https://github.com/imgly/pesdk-android-demo/releases).

2. Still in the `android/build.gradle` file (**not** `android/app/build.gradle`), add these lines at the bottom:

Expand All @@ -119,7 +125,7 @@ Run with --stacktrace option to get the stack trace. Run with --info or --debug
}
```

3. In the `android/app/build.gradle` file (**not** `android/build.gradle`) you will need to modify the `minSdkVersion` to at least `21`. We also recommend to update the `buildToolsVersion` to `31.0.0` or higher as well as the `compileSdkVersion` to `31` or higher:
3. In the `android/app/build.gradle` file (**not** `android/build.gradle`) you will need to modify the `minSdkVersion` to at least `21`. We also recommend to update the `buildToolsVersion` to `31.0.0` or higher as well as the `compileSdkVersion` to `31` or higher:

```diff
android {
Expand All @@ -137,23 +143,23 @@ Run with --stacktrace option to get the stack trace. Run with --info or --debug
}
```

Depending on your **stable** Flutter SDK version (<= `2.5.0`), your `android/app/build.gradle` file might look a bit different. In this case, please modify it in the following way:

```diff
android {
- compileSdkVersion 30
+ compileSdkVersion 31
+ buildToolsVersion "31.0.0"
...
defaultConfig {
...
- minSdkVersion 16
+ minSdkVersion 21
...
}
...
}
```
Depending on your **stable** Flutter SDK version (<= `2.5.0`), your `android/app/build.gradle` file might look a bit different. In this case, please modify it in the following way:

```diff
android {
- compileSdkVersion 30
+ compileSdkVersion 31
+ buildToolsVersion "31.0.0"
...
defaultConfig {
...
- minSdkVersion 16
+ minSdkVersion 21
...
}
...
}
```

4. In the same file, configure VideoEditor SDK for Android by adding the following lines under `apply plugin: "com.android.application"`:

Expand Down Expand Up @@ -211,6 +217,7 @@ import 'package:imgly_sdk/imgly_sdk.dart';
Each platform requires a separate license file. [Unlock VideoEditor SDK](./lib/video_editor_sdk.dart#L13-L22) with a single line of code for both platforms via platform-specific file extensions.

Rename your license files:

- Android license: `vesdk_license.android`
- iOS license: `vesdk_license.ios`

Expand Down
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ imglyConfig {
}
}

def MIN_LY_IMG_ANDROID_SDK_PLUGIN_VERSION = "10.1.1"
def MIN_LY_IMG_ANDROID_SDK_PLUGIN_VERSION = "10.3.1"

task checkVersion {
if (imglyConfig.convertToVersionNumber(imglyConfig.getVersion()) < imglyConfig.convertToVersionNumber(MIN_LY_IMG_ANDROID_SDK_PLUGIN_VERSION)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ class FlutterVESDK: FlutterIMGLY() {
}
}

applyTheme(settingsList, configuration.theme)

readSerialisation(settingsList, serialization, false)
startEditor(settingsList, EDITOR_RESULT_ID)
}
Expand Down
2 changes: 1 addition & 1 deletion example/android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
buildscript {
ext.kotlin_version = '1.5.32'
ext.vesdk_version = '10.1.1'
ext.vesdk_version = '10.3.1'

repositories {
google()
Expand Down
16 changes: 8 additions & 8 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.6.0):
- imgly_sdk (2.7.0):
- Flutter
- imglyKit (~> 11.1)
- imglyKit (11.2.0)
- video_editor_sdk (2.6.0):
- imglyKit (~> 11.3)
- imglyKit (11.3.1)
- video_editor_sdk (2.7.0):
- Flutter
- imgly_sdk (= 2.6.0)
- imgly_sdk (= 2.7.0)

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

SPEC CHECKSUMS:
Flutter: 50d75fe2f02b26cc09d224853bb45737f8b3214a
imgly_sdk: bb252939cfbf53a0199a40d565ab675db859a041
imglyKit: 505785f0467867523cdee38ebb7d60c5189faedf
video_editor_sdk: 2e8337c6604c6b5a8fc2f2b3f261a00da702b1b0
imgly_sdk: d5bd730c962ab5d08c065211e3d0d499dbf402c1
imglyKit: 34eb8e0e1a399b815b2a5baf2f5afa3a4fc47105
video_editor_sdk: c51fecac47f7936142adb74f13f211b82244065a

PODFILE CHECKSUM: aafe91acc616949ddb318b77800a7f51bffa2a4c

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.6.0
version: 2.7.0
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.6.0
imgly_sdk: 2.7.0

dev_dependencies:
flutter_test:
Expand Down

0 comments on commit 20a7a3e

Please sign in to comment.