Skip to content

Commit d645aba

Browse files
committed
Add version 2.14.0
1 parent 873315e commit d645aba

File tree

9 files changed

+59
-13
lines changed

9 files changed

+59
-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: 4 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 PhotoEditor 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 PhotoEditor SDK for Android replace the version string `10.0.1` with a [newer release](https://github.com/imgly/pesdk-android-demo/releases).
156+
In order to update PhotoEditor SDK for Android replace the version string `10.1.1` with a [newer release](https://github.com/imgly/pesdk-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

RNPhotoEditorSDK.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 'PhotoEditorSDK', '~> 10.29'
21+
s.dependency 'PhotoEditorSDK', '~> 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)) {

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
@@ -29,14 +29,14 @@ declare class PESDK {
2929
* restores a previous state of the editor by re-applying all modifications to the loaded
3030
* image.
3131
*
32-
* @return {Promise<PhotoEditorResult>} Returns a `PhotoEditorResult` or `null` if the editor
32+
* @return {Promise<PhotoEditorResult | null>} Returns a `PhotoEditorResult` or `null` if the editor
3333
* is dismissed without exporting the edited image.
3434
*/
3535
static openEditor(
3636
image: string | {uri: string} | number,
3737
configuration?: Configuration,
3838
serialization?: object
39-
): Promise<PhotoEditorResult>
39+
): Promise<PhotoEditorResult | null>
4040

4141
/**
4242
* Unlock PhotoEditor SDK with a license.

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ class PESDK {
133133
* restores a previous state of the editor by re-applying all modifications to the loaded
134134
* image.
135135
*
136-
* @return {Promise<PhotoEditorResult>} Returns a `PhotoEditorResult` or `null` if the editor
136+
* @return {Promise<PhotoEditorResult | null>} Returns a `PhotoEditorResult` or `null` if the editor
137137
* is dismissed without exporting the edited image.
138138
*/
139139
static openEditor(image = null, configuration = null, serialization = null) {

ios/RNPhotoEditorSDK.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ - (void)present:(nullable PESDKPhoto *)photo withConfiguration:(nullable NSDicti
123123
PESDKPhoto *photo = [[PESDKPhoto alloc] initWithURL:request.URL];
124124
[self present:photo withConfiguration:configuration andSerialization:state resolve:resolve reject:reject];
125125
} else {
126-
[self.bridge.imageLoader loadImageWithURLRequest:request callback:^(NSError *error, UIImage *image) {
126+
[[self.bridge moduleForName:@"ImageLoader" lazilyLoadIfNecessary:YES] loadImageWithURLRequest:request callback:^(NSError * _Nullable error, UIImage * _Nullable image) {
127127
if (error) {
128128
reject(RN_IMGLY.kErrorUnableToLoad, [NSString RN_IMGLY_string:@"Unable to load image." withError:error], error);
129129
return;

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-photoeditorsdk",
33
"title": "React Native module for PhotoEditor SDK",
4-
"version": "2.13.1",
4+
"version": "2.14.0",
55
"description": "A React Native module for PhotoEditor SDK. Integrate the photo editor into your own HTML5, iOS or Android app - in minutes!",
66
"main": "index.js",
77
"typings": "index.d.ts",
@@ -38,6 +38,6 @@
3838
"react-native": ">=0.60.0 <1.0.x"
3939
},
4040
"dependencies": {
41-
"react-native-imglysdk": "2.13.1"
41+
"react-native-imglysdk": "2.14.0"
4242
}
4343
}

0 commit comments

Comments
 (0)