Skip to content

Commit 2fd4356

Browse files
committed
Add version 3.2.0
1 parent e158930 commit 2fd4356

8 files changed

+60
-54
lines changed

CHANGELOG.md

+22-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,24 @@
1+
## [3.2.0]
2+
3+
### Changed
4+
5+
* [react-native-imglysdk] Updated `@expo/config-plugins` dependency to `7.2`.
6+
* [react-native-photoeditorsdk] Raised minimum PhotoEditor SDK for iOS version to 11.9.0.
7+
* [react-native-photoeditorsdk] Raised minimum PhotoEditor SDK for Android version to 10.9.0. See the [migration guide](https://img.ly/docs/pesdk/react-native/getting-started/migration-guides/3-2-0/) for more information.
8+
* [react-native-videoeditorsdk] Raised minimum VideoEditor SDK for iOS version to 11.9.0.
9+
* [react-native-videoeditorsdk] Raised minimum VideoEditor SDK for Android version to 10.9.0. See the [migration guide](https://img.ly/docs/vesdk/react-native/getting-started/migration-guides/3-2-0/) for more information.
10+
11+
### Added
12+
13+
* [react-native-imglysdk] Added `kspVersion` parameter.
14+
* [react-native-videoeditorsdk] Added `VideoEditorResult` to types export.
15+
* [react-native-photoeditorsdk] Added `PhotoEditorResult` to types export.
16+
17+
### Fixed
18+
19+
* Fixed compiling issues when using native customizations on iOS.
20+
* Fixed potential crash on Android: `IllegalStateException "You need to use a Theme.AppCompat theme (or descendant) with this activity."`.
21+
122
## [3.1.0]
223

324
### Added
@@ -117,7 +138,7 @@
117138

118139
### Changed
119140

120-
* 🚨 The img.ly maven repository is no longer automatically added to your project by the plugin for Android. Please refer to the new step 3 in the [getting started](https://github.com/imgly/vesdk-react-native#android) section of the README for instructions on how to add it.
141+
* 🚨 The IMG.LY maven repository is no longer automatically added to your project by the plugin for Android. Please refer to the new step 3 in the [getting started](https://github.com/imgly/vesdk-react-native#android) section of the README for instructions on how to add it.
121142
* [react-native-videoeditorsdk] Added support for VideoEditor SDK for Android version 9.
122143
* [react-native-photoeditorsdk] Added support for PhotoEditor SDK for Android version 9.
123144

LICENSE.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ In order to run any samples or use any wrapper without a watermark,
44
you'll have to purchase a commercial PhotoEditor SDK or VideoEditor SDK
55
license. Visit https://img.ly for more details.
66

7-
Copyright (c) 2014-2023, img.ly GmbH
7+
Copyright (c) 2014-2024, IMG.LY GmbH
88
All rights reserved.
99

1010
Redistribution and use in source and binary forms, with or without
@@ -17,7 +17,7 @@ modification, are permitted provided that the following conditions are met:
1717
notice, this list of conditions and the following disclaimer in the
1818
documentation and/or other materials provided with the distribution.
1919

20-
3. Neither the name img.ly GmbH, img.ly, PhotoEditor SDK, VideoEditor SDK
20+
3. Neither the name IMG.LY GmbH, IMG.LY, PhotoEditor SDK, VideoEditor SDK
2121
nor the names of its developers may be used to endorse or promote products
2222
derived from this software without specific prior written permission.
2323

README.md

+22-40
Original file line numberDiff line numberDiff line change
@@ -27,30 +27,6 @@ Check out our [video tutorial](https://img.ly/blog/a-photo-and-video-editor-for-
2727

2828
## Getting started
2929

30-
### Known Issues
31-
32-
With version `2.13.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`.
33-
34-
If you don't use a newer Android Gradle Plugin version, e.g., by updating at least to RN 0.68.0, you'll most likely encounter a build error similar to:
35-
36-
```
37-
FAILURE: Build failed with an exception.
38-
39-
* What went wrong:
40-
A problem occurred configuring project ':react-native-videoeditorsdk'.
41-
> com.android.builder.errors.EvalIssueException: Installed Build Tools revision 31.0.0 is corrupted. Remove and install again using the SDK Manager.
42-
43-
* Try:
44-
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
45-
46-
* Get more help at https://help.gradle.org
47-
```
48-
49-
As a workaround you can create the following symlinks:
50-
51-
1. 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`.
52-
2. From there, go to `./lib/` and create a `dx.jar` symlink for the `d8.jar` file with `ln -s d8.jar dx.jar`.
53-
5430
### Expo CLI
5531

5632
#### Limitations
@@ -77,7 +53,9 @@ In order to use this module with the Expo CLI you can make use of our integrated
7753
}
7854
```
7955

80-
If needed, you can also use a specific version of our native library for Android as well as define explicitly the included modules. By default, all modules for both PhotoEditor SDK and VideoEditor SDK are included. Furthermore, you can configure the `buildToolsVersion`, `minSdkVersion`, `compileSdkVersion`, `targetSdkVersion`, and `kotlinGradlePluginVersion`.
56+
If needed, you can also use a specific version of our native library for Android as well as define explicitly the included modules. By default, all modules for both PhotoEditor SDK and VideoEditor SDK are included. Further, you can alternate the KSP version with the `kspVersion` parameter based on the Kotlin version you are using. Please take a look [here](#android) on further details.
57+
58+
For Expo version < 45, you can configure the `buildToolsVersion`, `minSdkVersion`, `compileSdkVersion`, `targetSdkVersion`, and `kotlinGradlePluginVersion`. From version 45+ we recommend setting these properties using the `expo-build-properties` config plugin directly.
8159

8260
```json
8361
{
@@ -86,18 +64,19 @@ In order to use this module with the Expo CLI you can make use of our integrated
8664
"react-native-imglysdk",
8765
{
8866
"android": {
89-
"version": "10.4.1",
67+
"version": "10.9.0",
68+
"kspVersion": "1.8.0-1.0.9",
9069
"modules": [
9170
"ui:core",
9271
"ui:transform",
9372
"ui:filter",
9473
"assets:filter-basic"
9574
],
96-
"buildToolsVersion": "31.0.0",
75+
"buildToolsVersion": "34.0.0",
9776
"minSdkVersion": "21",
98-
"compileSdkVersion": "31",
99-
"targetSdkVersion": "30",
100-
"kotlinGradlePluginVersion": "1.5.32"
77+
"compileSdkVersion": "34",
78+
"targetSdkVersion": "34",
79+
"kotlinGradlePluginVersion": "1.8.0"
10180
}
10281
}
10382
]
@@ -151,7 +130,7 @@ For older React Native versions autolinking is not available and VideoEditor SDK
151130

152131
#### Android
153132

154-
1. Add the img.ly repository and plugin by opening the `android/build.gradle` file (**not** `android/app/build.gradle`) and adding these lines at the top:
133+
1. Add the IMG.LY repository and plugin by opening the `android/build.gradle` file (**not** `android/app/build.gradle`) and adding these lines at the top:
155134

156135
```groovy
157136
buildscript {
@@ -160,13 +139,16 @@ For older React Native versions autolinking is not available and VideoEditor SDK
160139
maven { url "https://artifactory.img.ly/artifactory/imgly" }
161140
}
162141
dependencies {
163-
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.32"
164-
classpath 'ly.img.android.sdk:plugin:10.4.1'
142+
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.0"
143+
classpath 'com.google.devtools.ksp:com.google.devtools.ksp.gradle.plugin:1.8.0-1.0.9' // KSP version is depending on your Kotlin version.
144+
classpath 'ly.img.android.sdk:plugin:10.9.0'
165145
}
166146
}
167147
```
168148

169-
In order to update VideoEditor SDK for Android replace the version string `10.4.1` with a [newer release](https://github.com/imgly/vesdk-android-demo/releases).
149+
The KSP version depends on the Kotlin version that you are using. In order to find the correct version, please visit the [official KSP release page](https://github.com/google/ksp/releases?page=1).
150+
151+
In order to update VideoEditor SDK for Android replace the version string `10.9.0` with a [newer release](https://github.com/imgly/vesdk-android-demo/releases).
170152

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

@@ -178,18 +160,18 @@ For older React Native versions autolinking is not available and VideoEditor SDK
178160
}
179161
```
180162

181-
3. In the same file, 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:
163+
3. In the same file, you will need to modify the `minSdkVersion` to at least `21`. We also recommend to update the `buildToolsVersion` to `34.0.0` or higher as well as the `compileSdkVersion` to `34` or higher but this is not mandatory:
182164

183165
```diff
184166
buildscript {
185167
ext {
186168
- buildToolsVersion = "30.0.2"
187-
+ buildToolsVersion = "31.0.0"
169+
+ buildToolsVersion = "34.0.0"
188170
- minSdkVersion = 19
189171
+ minSdkVersion = 21
190-
- compileSdkVersion = 30
191-
+ compileSdkVersion = 31
192-
targetSdkVersion = 30
172+
- compileSdkVersion = 34
173+
+ compileSdkVersion = 34
174+
targetSdkVersion = 34
193175
}
194176
}
195177
```
@@ -201,7 +183,7 @@ For older React Native versions autolinking is not available and VideoEditor SDK
201183
apply plugin: 'kotlin-android'
202184
203185
// Comment out the modules you don't need, to save size.
204-
imglyConfig {
186+
IMGLY.configure {
205187
modules {
206188
include 'ui:text'
207189
include 'ui:focus'

RNVideoEditorSDK.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ Pod::Spec.new do |s|
1818

1919
s.dependency 'React'
2020
s.dependency 'React-RCTImage'
21-
s.dependency 'VideoEditorSDK', '~> 11.8'
21+
s.dependency 'VideoEditorSDK', '~> 11.9'
2222
end

android/build.gradle

+6-5
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ apply plugin: 'com.android.library'
77
// Apply the ImgLy-Plugin
88
apply plugin: 'ly.img.android.sdk'
99
apply plugin: 'kotlin-android'
10-
imglyConfig {
10+
11+
IMGLY.configure {
1112
vesdk {
1213
enabled true
1314
}
@@ -20,7 +21,7 @@ imglyConfig {
2021
}
2122
}
2223

23-
def MIN_LY_IMG_ANDROID_SDK_PLUGIN_VERSION = "10.4.1"
24+
def MIN_LY_IMG_ANDROID_SDK_PLUGIN_VERSION = "10.9.0"
2425

2526
task checkVersion {
2627
if (imglyConfig.convertToVersionNumber(imglyConfig.getVersion()) < imglyConfig.convertToVersionNumber(MIN_LY_IMG_ANDROID_SDK_PLUGIN_VERSION)) {
@@ -39,12 +40,12 @@ task checkVersion {
3940
preBuild.dependsOn checkVersion
4041

4142
android {
42-
compileSdkVersion safeExtGet('compileSdkVersion', 31)
43-
buildToolsVersion safeExtGet('buildToolsVersion', '31.0.0')
43+
compileSdkVersion safeExtGet('compileSdkVersion', 34)
44+
buildToolsVersion safeExtGet('buildToolsVersion', '34.0.0')
4445

4546
defaultConfig {
4647
minSdkVersion safeExtGet('minSdkVersion', 21)
47-
targetSdkVersion safeExtGet('targetSdkVersion', 30)
48+
targetSdkVersion safeExtGet('targetSdkVersion', 34)
4849
versionCode 1
4950
versionName "1.0"
5051
}

android/src/main/AndroidManifest.xml

+3-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
android:exported="false"
99
android:enabled="false"
1010
android:name="ly.img.android.IMGLYAutoInit" />
11-
<activity android:name=".RNVideoEditorSDKActivity" />
11+
<activity
12+
android:theme="@style/Theme.Imgly"
13+
android:name=".RNVideoEditorSDKActivity" />
1214
</application>
1315
</manifest>
1416

index.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -173,5 +173,5 @@ declare class VideoEditorModal extends Component<
173173
> {}
174174

175175
export * from "./configuration";
176-
export { VESDK, VideoEditorModal, VideoSegment };
176+
export { VESDK, VideoEditorModal, VideoEditorResult, VideoSegment };
177177

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "react-native-videoeditorsdk",
33
"title": "React Native module for VideoEditor SDK",
4-
"version": "3.1.0",
4+
"version": "3.2.0",
55
"description": "A React Native module for VideoEditor SDK. Integrate the video editor into your own HTML5, iOS or Android app - in minutes!",
66
"main": "index.js",
77
"typings": "index.d.ts",
@@ -25,7 +25,7 @@
2525
"android"
2626
],
2727
"author": {
28-
"name": "img.ly GmbH",
28+
"name": "IMG.LY GmbH",
2929
"email": "[email protected]"
3030
},
3131
"license": "BSD-3-Clause",
@@ -35,6 +35,6 @@
3535
"react-native": ">=0.60.0 <1.0.x"
3636
},
3737
"dependencies": {
38-
"react-native-imglysdk": "3.1.0"
38+
"react-native-imglysdk": "3.2.0"
3939
}
4040
}

0 commit comments

Comments
 (0)