Skip to content

Commit f444a82

Browse files
committed
Add version 2.14.0
1 parent 7d0eb09 commit f444a82

File tree

9 files changed

+60
-13
lines changed

9 files changed

+60
-13
lines changed

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
## [2.14.0]
2+
3+
### Added
4+
5+
* [react-native-videoeditorsdk] Added implementation and documentation for GIPHY sticker integration.
6+
7+
### Fixed
8+
9+
* [react-native-videoeditorsdk] Fixed `VESDK.openEditor` return type declaration and API documentation to return `Promise<VideoEditorResult | null>` instead of just `Promise<VideoEditorResult>`.
10+
* [react-native-videoeditorsdk] Fixed height and width of specified composition size would be flipped on Android.
11+
* [react-native-photoeditorsdk] Fixed `PESDK.openEditor` return type declaration and API documentation to return `Promise<PhotoEditorResult | null>` instead of just `Promise<PhotoEditorResult>`.
12+
* [react-native-photoeditorsdk] Fixed deprecation warning for `RCTBridge.imageLoader` on iOS.
13+
14+
115
## [2.13.1]
216

317
### Fixed

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Check out our [video tutorial](https://img.ly/blog/a-photo-and-video-editor-for-
2323

2424
### Known Issues
2525

26-
With version `2.13.0`, we recommend using `compileSdkVersion` not lower than `31.0.0` for Android. However, this might interfere with your application's Android Gradle Plugin version if this is set to `4.x`.
26+
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`.
2727

2828
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:
2929
```
@@ -77,7 +77,7 @@ In order to use this module with the Expo CLI you can make use of our integrated
7777
"react-native-imglysdk",
7878
{
7979
"android": {
80-
"version": "10.0.1",
80+
"version": "10.1.1",
8181
"modules": [
8282
"ui:core",
8383
"ui:transform",
@@ -149,11 +149,11 @@ For older React Native versions autolinking is not available and VideoEditor SDK
149149
}
150150
dependencies {
151151
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.32"
152-
classpath 'ly.img.android.sdk:plugin:10.0.1'
152+
classpath 'ly.img.android.sdk:plugin:10.1.1'
153153
}
154154
}
155155
```
156-
In order to update VideoEditor SDK for Android replace the version string `10.0.1` with a [newer release](https://github.com/imgly/vesdk-android-demo/releases).
156+
In order to update VideoEditor SDK for Android replace the version string `10.1.1` with a [newer release](https://github.com/imgly/vesdk-android-demo/releases).
157157

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

@@ -203,6 +203,7 @@ For older React Native versions autolinking is not available and VideoEditor SDK
203203
include 'ui:video-library'
204204
include 'ui:video-composition'
205205
include 'ui:audio-composition'
206+
include 'ui:giphy-sticker'
206207
207208
// This module is big, remove the serializer if you don't need that feature.
208209
include 'backend:serializer'

RNVideoEditorSDK.podspec

Lines changed: 1 addition & 1 deletion
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', '~> 10.29'
21+
s.dependency 'VideoEditorSDK', '~> 10.30'
2222
end

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ imglyConfig {
2020
}
2121
}
2222

23-
def MIN_LY_IMG_ANDROID_SDK_PLUGIN_VERSION = "10.0.1"
23+
def MIN_LY_IMG_ANDROID_SDK_PLUGIN_VERSION = "10.1.1"
2424

2525
task checkVersion {
2626
if (imglyConfig.convertToVersionNumber(imglyConfig.getVersion()) < imglyConfig.convertToVersionNumber(MIN_LY_IMG_ANDROID_SDK_PLUGIN_VERSION)) {

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
@@ -196,7 +196,7 @@ class RNVideoEditorSDKModule(reactContext: ReactApplicationContext) : ReactConte
196196
if (height == 0.0 || width == 0.0) {
197197
return null
198198
}
199-
return LoadSettings.compositionSource(height.toInt(), width.toInt(), 60)
199+
return LoadSettings.compositionSource(width.toInt(), height.toInt(), 60)
200200
}
201201

202202
private fun readSerialisation(settingsList: SettingsList, serialization: String?, readImage: Boolean) {

configuration.ts

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ export interface Configuration {
576576
* ]},
577577
* ]
578578
*/
579-
categories?: (StickerCategory | ExistingStickerCategory)[];
579+
categories?: (StickerCategory | ExistingStickerCategory | ExistingStickerProviderCategory)[];
580580
/**
581581
* Defines all available colors that can be applied to stickers with a `tintMode` other than `TintMode.NONE`.
582582
* The color pipette is always added.
@@ -1571,6 +1571,38 @@ export interface StickerCategory extends NamedItem {
15711571
items?: (Sticker | ExistingItem)[];
15721572
}
15731573

1574+
/** An existing sticker provider category. */
1575+
export interface ExistingStickerProviderCategory extends ExistingItem {
1576+
/**
1577+
* The used sticker provider that must match the category's identifier.
1578+
*/
1579+
provider: GiphyStickerProvider;
1580+
}
1581+
1582+
/**
1583+
* A GIPHY sticker provider.
1584+
* @note This sticker provider requires to use the identifier `imgly_sticker_category_giphy` for its `ExistingStickerProviderCategory`.
1585+
*/
1586+
export interface GiphyStickerProvider {
1587+
/**
1588+
* The key used to authorize API requests, obtained from GIPHY.
1589+
*/
1590+
apiKey: string;
1591+
/**
1592+
* The default language for regional content in 2-letter ISO 639-1 language code.
1593+
* If `null` the language setting of the current locale is used.
1594+
* @example // Defaults to:
1595+
* null
1596+
*/
1597+
language?: string;
1598+
/**
1599+
* The audience category used for content filtering. Available values are `"g"`, `"pg"`, `"pg-13"`, `"r"`.
1600+
* @example // Defaults to:
1601+
* "g"
1602+
*/
1603+
rating?: string;
1604+
}
1605+
15741606
/** A sticker. */
15751607
export interface Sticker extends NamedItem {
15761608
/**

index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,15 @@ declare class VESDK {
4242
* This overrides the natural dimensions of the video(s) passed to the editor. All videos will
4343
* be fitted to the `videoSize` aspect by adding black bars on the left and right side or top and bottom.
4444
*
45-
* @return {Promise<VideoEditorResult>} Returns a `VideoEditorResult` or `null` if the editor
45+
* @return {Promise<VideoEditorResult | null>} Returns a `VideoEditorResult` or `null` if the editor
4646
* is dismissed without exporting the edited video.
4747
*/
4848
static openEditor(
4949
video: AssetURI | [AssetURI] | {uri: string},
5050
configuration?: Configuration,
5151
serialization?: object,
5252
videoSize?: Size
53-
): Promise<VideoEditorResult>
53+
): Promise<VideoEditorResult | null>
5454

5555
/**
5656
* Unlock VideoEditor SDK with a license.

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ class VESDK {
138138
* This overrides the natural dimensions of the video(s) passed to the editor. All videos will
139139
* be fitted to the `videoSize` aspect by adding black bars on the left and right side or top and bottom.
140140
*
141-
* @return {Promise<VideoEditorResult>} Returns a `VideoEditorResult` or `null` if the editor
141+
* @return {Promise<VideoEditorResult | null>} Returns a `VideoEditorResult` or `null` if the editor
142142
* is dismissed without exporting the edited video.
143143
*/
144144
static openEditor(video, configuration = null, serialization = null, videoSize = null) {

package.json

Lines changed: 2 additions & 2 deletions
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.13.1",
4+
"version": "2.14.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",
@@ -35,6 +35,6 @@
3535
"react-native": ">=0.60.0 <1.0.x"
3636
},
3737
"dependencies": {
38-
"react-native-imglysdk": "2.13.1"
38+
"react-native-imglysdk": "2.14.0"
3939
}
4040
}

0 commit comments

Comments
 (0)