Skip to content

Commit

Permalink
Add version 2.14.0
Browse files Browse the repository at this point in the history
  • Loading branch information
leontobias committed Jun 8, 2022
1 parent 873315e commit d645aba
Show file tree
Hide file tree
Showing 9 changed files with 59 additions and 13 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
## [2.14.0]

### Added

* [react-native-videoeditorsdk] Added implementation and documentation for GIPHY sticker integration.

### Fixed

* [react-native-videoeditorsdk] Fixed `VESDK.openEditor` return type declaration and API documentation to return `Promise<VideoEditorResult | null>` instead of just `Promise<VideoEditorResult>`.
* [react-native-videoeditorsdk] Fixed height and width of specified composition size would be flipped on Android.
* [react-native-photoeditorsdk] Fixed `PESDK.openEditor` return type declaration and API documentation to return `Promise<PhotoEditorResult | null>` instead of just `Promise<PhotoEditorResult>`.
* [react-native-photoeditorsdk] Fixed deprecation warning for `RCTBridge.imageLoader` on iOS.


## [2.13.1]

### Fixed
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Check out our [video tutorial](https://img.ly/blog/a-photo-and-video-editor-for-

### Known Issues

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`.
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`.

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:
```
Expand Down Expand Up @@ -77,7 +77,7 @@ In order to use this module with the Expo CLI you can make use of our integrated
"react-native-imglysdk",
{
"android": {
"version": "10.0.1",
"version": "10.1.1",
"modules": [
"ui:core",
"ui:transform",
Expand Down Expand Up @@ -149,11 +149,11 @@ For older React Native versions autolinking is not available and PhotoEditor SDK
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.32"
classpath 'ly.img.android.sdk:plugin:10.0.1'
classpath 'ly.img.android.sdk:plugin:10.1.1'
}
}
```
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).
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).
2. Still in the `android/build.gradle` file (**not** `android/app/build.gradle`), add these lines at the bottom:
Expand Down
2 changes: 1 addition & 1 deletion RNPhotoEditorSDK.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ Pod::Spec.new do |s|

s.dependency 'React'
s.dependency 'React-RCTImage'
s.dependency 'PhotoEditorSDK', '~> 10.29'
s.dependency 'PhotoEditorSDK', '~> 10.30'
end
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ imglyConfig {
}
}

def MIN_LY_IMG_ANDROID_SDK_PLUGIN_VERSION = "10.0.1"
def MIN_LY_IMG_ANDROID_SDK_PLUGIN_VERSION = "10.1.1"

task checkVersion {
if (imglyConfig.convertToVersionNumber(imglyConfig.getVersion()) < imglyConfig.convertToVersionNumber(MIN_LY_IMG_ANDROID_SDK_PLUGIN_VERSION)) {
Expand Down
34 changes: 33 additions & 1 deletion configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ export interface Configuration {
* ]},
* ]
*/
categories?: (StickerCategory | ExistingStickerCategory)[];
categories?: (StickerCategory | ExistingStickerCategory | ExistingStickerProviderCategory)[];
/**
* Defines all available colors that can be applied to stickers with a `tintMode` other than `TintMode.NONE`.
* The color pipette is always added.
Expand Down Expand Up @@ -1571,6 +1571,38 @@ export interface StickerCategory extends NamedItem {
items?: (Sticker | ExistingItem)[];
}

/** An existing sticker provider category. */
export interface ExistingStickerProviderCategory extends ExistingItem {
/**
* The used sticker provider that must match the category's identifier.
*/
provider: GiphyStickerProvider;
}

/**
* A GIPHY sticker provider.
* @note This sticker provider requires to use the identifier `imgly_sticker_category_giphy` for its `ExistingStickerProviderCategory`.
*/
export interface GiphyStickerProvider {
/**
* The key used to authorize API requests, obtained from GIPHY.
*/
apiKey: string;
/**
* The default language for regional content in 2-letter ISO 639-1 language code.
* If `null` the language setting of the current locale is used.
* @example // Defaults to:
* null
*/
language?: string;
/**
* The audience category used for content filtering. Available values are `"g"`, `"pg"`, `"pg-13"`, `"r"`.
* @example // Defaults to:
* "g"
*/
rating?: string;
}

/** A sticker. */
export interface Sticker extends NamedItem {
/**
Expand Down
4 changes: 2 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ declare class PESDK {
* restores a previous state of the editor by re-applying all modifications to the loaded
* image.
*
* @return {Promise<PhotoEditorResult>} Returns a `PhotoEditorResult` or `null` if the editor
* @return {Promise<PhotoEditorResult | null>} Returns a `PhotoEditorResult` or `null` if the editor
* is dismissed without exporting the edited image.
*/
static openEditor(
image: string | {uri: string} | number,
configuration?: Configuration,
serialization?: object
): Promise<PhotoEditorResult>
): Promise<PhotoEditorResult | null>

/**
* Unlock PhotoEditor SDK with a license.
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ class PESDK {
* restores a previous state of the editor by re-applying all modifications to the loaded
* image.
*
* @return {Promise<PhotoEditorResult>} Returns a `PhotoEditorResult` or `null` if the editor
* @return {Promise<PhotoEditorResult | null>} Returns a `PhotoEditorResult` or `null` if the editor
* is dismissed without exporting the edited image.
*/
static openEditor(image = null, configuration = null, serialization = null) {
Expand Down
2 changes: 1 addition & 1 deletion ios/RNPhotoEditorSDK.m
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ - (void)present:(nullable PESDKPhoto *)photo withConfiguration:(nullable NSDicti
PESDKPhoto *photo = [[PESDKPhoto alloc] initWithURL:request.URL];
[self present:photo withConfiguration:configuration andSerialization:state resolve:resolve reject:reject];
} else {
[self.bridge.imageLoader loadImageWithURLRequest:request callback:^(NSError *error, UIImage *image) {
[[self.bridge moduleForName:@"ImageLoader" lazilyLoadIfNecessary:YES] loadImageWithURLRequest:request callback:^(NSError * _Nullable error, UIImage * _Nullable image) {
if (error) {
reject(RN_IMGLY.kErrorUnableToLoad, [NSString RN_IMGLY_string:@"Unable to load image." withError:error], error);
return;
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "react-native-photoeditorsdk",
"title": "React Native module for PhotoEditor SDK",
"version": "2.13.1",
"version": "2.14.0",
"description": "A React Native module for PhotoEditor SDK. Integrate the photo editor into your own HTML5, iOS or Android app - in minutes!",
"main": "index.js",
"typings": "index.d.ts",
Expand Down Expand Up @@ -38,6 +38,6 @@
"react-native": ">=0.60.0 <1.0.x"
},
"dependencies": {
"react-native-imglysdk": "2.13.1"
"react-native-imglysdk": "2.14.0"
}
}

0 comments on commit d645aba

Please sign in to comment.