Skip to content

Commit 3f126f8

Browse files
committed
Add version 2.5.0
1 parent 56bd91b commit 3f126f8

File tree

8 files changed

+42
-433
lines changed

8 files changed

+42
-433
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
## [2.5.0]
2+
3+
### Removed
4+
5+
* 🚨 Removed `createDefaultConfiguration` as the created object is redundant with the `Configuration` documentation and it contains the options that are used per default when the editor is launched without a given configuration.
6+
7+
### Added
8+
9+
* Added integration and identifier documentation for new smart stickers.
10+
111
## [2.4.2]
212

313
### Fixed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,11 @@ For older React Native versions autolinking is not available and PhotoEditor SDK
8383
}
8484
dependencies {
8585
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.61"
86-
classpath 'ly.img.android.sdk:plugin:7.2.5'
86+
classpath 'ly.img.android.sdk:plugin:7.6.0'
8787
}
8888
}
8989
```
90-
In order to update PhotoEditor SDK for Android replace the version string `7.2.5` with a [newer release](https://github.com/imgly/pesdk-android-demo/releases).
90+
In order to update PhotoEditor SDK for Android replace the version string `7.6.0` with a [newer release](https://github.com/imgly/pesdk-android-demo/releases).
9191

9292
3. Configure PhotoEditor 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"`:
9393
```groovy
@@ -118,6 +118,8 @@ For older React Native versions autolinking is not available and PhotoEditor SDK
118118
include 'assets:overlay-basic'
119119
include 'assets:sticker-shapes'
120120
include 'assets:sticker-emoticons'
121+
122+
include 'backend:sticker-smart'
121123
}
122124
}
123125
```
@@ -130,7 +132,7 @@ Import the module in your `App.js`:
130132
import {PESDK, PhotoEditorModal, Configuration} from 'react-native-photoeditorsdk';
131133
```
132134

133-
Unlock PhotoEditor SDK with a license file:
135+
Each platform requires a separate license file. [Unlock PhotoEditor SDK](./index.d.ts#L41-L53) with a single line of code for both platforms via [platform-specific file extensions](https://reactnative.dev/docs/platform-specific-code#platform-specific-extensions):
134136

135137
```js
136138
PESDK.unlockWithLicense(require('./pesdk_license'));

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.9'
21+
s.dependency 'PhotoEditorSDK', '~> 10.18'
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 = "7.1.13"
23+
def MIN_LY_IMG_ANDROID_SDK_PLUGIN_VERSION = "7.6.0"
2424

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

configuration.ts

Lines changed: 21 additions & 409 deletions
Large diffs are not rendered by default.

index.d.ts

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,20 +44,13 @@ declare class PESDK {
4444
* @param {string | object} license The license used to unlock the SDK. Can be either an URI
4545
* pointing to a local `file://` resource that contains the license, the license as a string,
4646
* or the license as an object which can be optained by, e.g., `require('./pesdk_license')`
47-
* where the required license files must be named `./pesdk_license.ios.json` for the iOS license
48-
* and `./pesdk_license.android.json` for the Android license file in order to get automatically
47+
* where the required license files must be named `pesdk_license.ios.json` for the iOS license
48+
* and `pesdk_license.android.json` for the Android license file in order to get automatically
4949
* resolved by the packager.
5050
*/
5151
static unlockWithLicense(
5252
license: string | object
5353
): void
54-
55-
/**
56-
* Creates a configuration object populated with default values for all options.
57-
* @return {Configuration} The default configuration.
58-
*/
59-
static createDefaultConfiguration(
60-
): Configuration
6154
}
6255

6356
/**

index.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Component } from 'react';
22
import { NativeModules, Image, Platform } from 'react-native';
3-
import { Configuration, createDefaultConfiguration } from './configuration';
3+
import { Configuration } from './configuration';
44

55
const { RNPhotoEditorSDK } = NativeModules;
66

@@ -133,14 +133,6 @@ class PESDK {
133133
RNPhotoEditorSDK.unlockWithLicense(license);
134134
}
135135
}
136-
137-
/**
138-
* Creates a configuration object populated with default values for all options.
139-
* @return {Configuration} The default configuration.
140-
*/
141-
static createDefaultConfiguration() {
142-
return createDefaultConfiguration()
143-
}
144136
}
145137

146138
class PhotoEditorModal extends Component {

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-photoeditorsdk",
33
"title": "React Native module for PhotoEditor SDK",
4-
"version": "2.4.2",
4+
"version": "2.5.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",

0 commit comments

Comments
 (0)