Skip to content

Commit

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

### Fixed

* Fixed enabling serialization would crash the application on Android when exporting.

## [2.13.0]

### Changed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,15 @@ class RNPhotoEditorSDKModule(val reactContext: ReactApplicationContext) : ReactC

val serializationConfig = currentConfig?.export?.serialization

val serialization: Any? = if (serializationConfig?.enabled == true) {
var serialization: Any? = null
if (serializationConfig?.enabled == true) {
val settingsList = data.settingsList
skipIfNotExists {
settingsList.let { settingsList ->
if (serializationConfig.embedSourceImage == true) {
Log.i("ImgLySdk", "EmbedSourceImage is currently not supported by the Android SDK")
}
when (serializationConfig.exportType) {
serialization = when (serializationConfig.exportType) {
SerializationExportType.FILE_URL -> {
val uri = serializationConfig.filename?.let {
Uri.parse("$it.json")
Expand All @@ -94,13 +95,10 @@ class RNPhotoEditorSDKModule(val reactContext: ReactApplicationContext) : ReactC
}
}
}
settingsList.release()
} ?: run {
Log.i("ImgLySdk", "You need to include 'backend:serializer' Module, to use serialisation!")
null
}
settingsList.release()
} else {
null
}

currentPromise?.resolve(
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.0",
"version": "2.13.1",
"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.0"
"react-native-imglysdk": "2.13.1"
}
}

0 comments on commit 873315e

Please sign in to comment.