Skip to content

Commit a22d255

Browse files
committed
Add version 2.3.2
1 parent beb1304 commit a22d255

File tree

5 files changed

+28
-5
lines changed

5 files changed

+28
-5
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## [2.3.2]
2+
3+
### Fixed
4+
5+
* [Android] Fixed loading of static resources for release builds.
6+
17
## [2.3.1]
28

39
### Fixed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,11 @@ For older React Native versions autolinking is not available and VideoEditor SDK
8181
}
8282
dependencies {
8383
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.61"
84-
classpath 'ly.img.android.sdk:plugin:7.1.8'
84+
classpath 'ly.img.android.sdk:plugin:7.1.10'
8585
}
8686
}
8787
```
88-
In order to update VideoEditor SDK for Android replace the version string `7.1.8` with a [newer release](https://github.com/imgly/vesdk-android-demo/releases).
88+
In order to update VideoEditor SDK for Android replace the version string `7.1.10` with a [newer release](https://github.com/imgly/vesdk-android-demo/releases).
8989

9090
3. Configure VideoEditor SDK for Android by opening the `android/app/build.gradle` file (**not** `android/build.gradle`) and adding the following lines under `apply plugin: "com.android.application"`:
9191
```groovy

android/build.gradle

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,24 @@ imglyConfig {
2020
}
2121
}
2222

23+
def MIN_LY_IMG_ANDROID_SDK_PLUGIN_VERSION = "7.1.10"
24+
25+
task checkVersion {
26+
if (imglyConfig.convertToVersionNumber(imglyConfig.getVersion()) < imglyConfig.convertToVersionNumber(MIN_LY_IMG_ANDROID_SDK_PLUGIN_VERSION)) {
27+
String WRONG_VERSION = "" +
28+
"┌───────────────────────────────────────────────────────────────────────┐\n"+
29+
"│ VideoEditor SDK update required! │\n"+
30+
"│ Please update the plugin version in your 'android/build.gradle' file. │\n"+
31+
"│ Minimum required dependency: 'ly.img.android.sdk:plugin:${MIN_LY_IMG_ANDROID_SDK_PLUGIN_VERSION}' │\n"+
32+
"│ Your are currently using: 'ly.img.android.sdk:plugin:${imglyConfig.getVersion()}' │\n"+
33+
"└───────────────────────────────────────────────────────────────────────┘\n"
34+
35+
throw new GradleScriptException(WRONG_VERSION, new IllegalArgumentException(WRONG_VERSION))
36+
}
37+
}
38+
39+
preBuild.dependsOn checkVersion
40+
2341
android {
2442
compileSdkVersion safeExtGet('compileSdkVersion', 29)
2543
buildToolsVersion safeExtGet('buildToolsVersion', '29.0.2')
@@ -47,4 +65,3 @@ dependencies {
4765
implementation 'com.facebook.react:react-native:+'
4866
compileOnly "ly.img.android.sdk:serializer:$imglyConfig.version"
4967
}
50-

android/src/main/java/ly/img/react_native/vesdk/RNVideoEditorSDKModule.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ class RNVideoEditorSDKModule(reactContext: ReactApplicationContext) : ReactConte
133133
if (potentialFile?.exists() == true) {
134134
loadSettings.setSource(Uri.fromFile(potentialFile), deleteProtectedSource = true)
135135
} else {
136-
loadSettings.setSource(Uri.parse(it), deleteProtectedSource = true)
136+
loadSettings.setSource(ConfigLoader.parseUri(it), deleteProtectedSource = true)
137137
}
138138
}
139139
}

package.json

Lines changed: 1 addition & 1 deletion
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": "2.3.1",
4+
"version": "2.3.2",
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",

0 commit comments

Comments
 (0)