Skip to content

Commit 20a7a3e

Browse files
committed
Add version 2.7.0
1 parent b73da10 commit 20a7a3e

File tree

7 files changed

+71
-52
lines changed

7 files changed

+71
-52
lines changed

CHANGELOG.md

+10
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
## [2.7.0]
2+
3+
### Added
4+
5+
* [imgly_sdk] Added `StickerAction.duration` as well as `TextAction.duration` which allow selecting a unique duration for texts and stickers in the video editor.
6+
7+
### Fixed
8+
9+
* [video_editor_sdk] Fixed `Theme` would not be applied if the editor has been initialized with a single video on Android.
10+
111
## [2.6.0]
212

313
### Changed

README.md

+47-40
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Add the plugin package to the `pubspec.yaml` file in your project:
3030

3131
```yaml
3232
dependencies:
33-
video_editor_sdk: ^2.6.0
33+
video_editor_sdk: ^2.7.0
3434
```
3535
3636
Install the new dependency:
@@ -44,6 +44,7 @@ flutter pub get
4444
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`.
4545

4646
If you don't use a newer Android Gradle Plugin version you'll most likely encounter a build error similar to:
47+
4748
```
4849
FAILURE: Build failed with an exception.
4950
@@ -60,31 +61,35 @@ Run with --stacktrace option to get the stack trace. Run with --info or --debug
6061
6162
* Get more help at https://help.gradle.org
6263
```
64+
6365
**As a workaround you can either:**
6466

6567
1. Upgrade your Android Gradle Plugin version:
6668

67-
Inside `android/build.gradle` update the version to at least `7.0.0`:
68-
```diff
69-
buildscript {
70-
...
71-
dependencies {
72-
- classpath 'com.android.tools.build:gradle:4.1.1'
73-
+ classpath 'com.android.tools.build:gradle:7.0.0'
74-
...
75-
}
76-
}
77-
```
78-
79-
After this, you need to update the Gradle version as well in `android/gradle/gradle-wrapper.properties`:
80-
```diff
81-
- distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip
82-
+ distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-all.zip
83-
```
69+
Inside `android/build.gradle` update the version to at least `7.0.0`:
70+
71+
```diff
72+
buildscript {
73+
...
74+
dependencies {
75+
- classpath 'com.android.tools.build:gradle:4.1.1'
76+
+ classpath 'com.android.tools.build:gradle:7.0.0'
77+
...
78+
}
79+
}
80+
```
81+
82+
After this, you need to update the Gradle version as well in `android/gradle/gradle-wrapper.properties`:
83+
84+
```diff
85+
- distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip
86+
+ distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-all.zip
87+
```
8488

8589
2. **Or** create the following symlinks:
86-
- 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`.
87-
- From there, go to `./lib/` and create a `dx.jar` symlink for the `d8.jar` file with `ln -s d8.jar dx.jar`.
90+
91+
- 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`.
92+
- From there, go to `./lib/` and create a `dx.jar` symlink for the `d8.jar` file with `ln -s d8.jar dx.jar`.
8893

8994
### Android
9095

@@ -102,12 +107,13 @@ Run with --stacktrace option to get the stack trace. Run with --info or --debug
102107
}
103108
dependencies {
104109
...
105-
+ classpath 'ly.img.android.sdk:plugin:10.1.1'
110+
+ classpath 'ly.img.android.sdk:plugin:10.3.1'
106111
...
107112
}
108113
}
109114
```
110-
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).
115+
116+
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).
111117

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

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

122-
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:
128+
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:
123129

124130
```diff
125131
android {
@@ -137,23 +143,23 @@ Run with --stacktrace option to get the stack trace. Run with --info or --debug
137143
}
138144
```
139145

140-
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:
141-
142-
```diff
143-
android {
144-
- compileSdkVersion 30
145-
+ compileSdkVersion 31
146-
+ buildToolsVersion "31.0.0"
147-
...
148-
defaultConfig {
149-
...
150-
- minSdkVersion 16
151-
+ minSdkVersion 21
152-
...
153-
}
154-
...
155-
}
156-
```
146+
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:
147+
148+
```diff
149+
android {
150+
- compileSdkVersion 30
151+
+ compileSdkVersion 31
152+
+ buildToolsVersion "31.0.0"
153+
...
154+
defaultConfig {
155+
...
156+
- minSdkVersion 16
157+
+ minSdkVersion 21
158+
...
159+
}
160+
...
161+
}
162+
```
157163

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

@@ -211,6 +217,7 @@ import 'package:imgly_sdk/imgly_sdk.dart';
211217
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.
212218

213219
Rename your license files:
220+
214221
- Android license: `vesdk_license.android`
215222
- iOS license: `vesdk_license.ios`
216223

android/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ imglyConfig {
3939
}
4040
}
4141

42-
def MIN_LY_IMG_ANDROID_SDK_PLUGIN_VERSION = "10.1.1"
42+
def MIN_LY_IMG_ANDROID_SDK_PLUGIN_VERSION = "10.3.1"
4343

4444
task checkVersion {
4545
if (imglyConfig.convertToVersionNumber(imglyConfig.getVersion()) < imglyConfig.convertToVersionNumber(MIN_LY_IMG_ANDROID_SDK_PLUGIN_VERSION)) {

android/src/main/kotlin/ly/img/flutter/video_editor_sdk/FlutterVESDK.kt

+2
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,8 @@ class FlutterVESDK: FlutterIMGLY() {
108108
}
109109
}
110110

111+
applyTheme(settingsList, configuration.theme)
112+
111113
readSerialisation(settingsList, serialization, false)
112114
startEditor(settingsList, EDITOR_RESULT_ID)
113115
}

example/android/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
buildscript {
22
ext.kotlin_version = '1.5.32'
3-
ext.vesdk_version = '10.1.1'
3+
ext.vesdk_version = '10.3.1'
44

55
repositories {
66
google()

example/ios/Podfile.lock

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
PODS:
22
- Flutter (1.0.0)
3-
- imgly_sdk (2.6.0):
3+
- imgly_sdk (2.7.0):
44
- Flutter
5-
- imglyKit (~> 11.1)
6-
- imglyKit (11.2.0)
7-
- video_editor_sdk (2.6.0):
5+
- imglyKit (~> 11.3)
6+
- imglyKit (11.3.1)
7+
- video_editor_sdk (2.7.0):
88
- Flutter
9-
- imgly_sdk (= 2.6.0)
9+
- imgly_sdk (= 2.7.0)
1010

1111
DEPENDENCIES:
1212
- Flutter (from `Flutter`)
@@ -27,9 +27,9 @@ EXTERNAL SOURCES:
2727

2828
SPEC CHECKSUMS:
2929
Flutter: 50d75fe2f02b26cc09d224853bb45737f8b3214a
30-
imgly_sdk: bb252939cfbf53a0199a40d565ab675db859a041
31-
imglyKit: 505785f0467867523cdee38ebb7d60c5189faedf
32-
video_editor_sdk: 2e8337c6604c6b5a8fc2f2b3f261a00da702b1b0
30+
imgly_sdk: d5bd730c962ab5d08c065211e3d0d499dbf402c1
31+
imglyKit: 34eb8e0e1a399b815b2a5baf2f5afa3a4fc47105
32+
video_editor_sdk: c51fecac47f7936142adb74f13f211b82244065a
3333

3434
PODFILE CHECKSUM: aafe91acc616949ddb318b77800a7f51bffa2a4c
3535

pubspec.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: video_editor_sdk
22
description: The official Flutter plugin for VideoEditor SDK. Integrate the video editor into your own iOS or Android app - in minutes!
3-
version: 2.6.0
3+
version: 2.7.0
44
homepage: https://www.videoeditorsdk.com
55
repository: https://github.com/imgly/vesdk-flutter
66

@@ -11,7 +11,7 @@ environment:
1111
dependencies:
1212
flutter:
1313
sdk: flutter
14-
imgly_sdk: 2.6.0
14+
imgly_sdk: 2.7.0
1515

1616
dev_dependencies:
1717
flutter_test:

0 commit comments

Comments
 (0)