@imgly/editor-react-native 1.51.0 → 1.53.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/android/build.gradle
CHANGED
|
@@ -34,14 +34,14 @@ def getComposeVersion() {
|
|
|
34
34
|
return gradle.ext.has("kotlinCompilerExtensionVersion") ? gradle.ext.kotlinCompilerExtensionVersion : "1.5.10"
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
if (isKotlin2OrHigher()) {
|
|
38
|
-
project.plugins.apply('org.jetbrains.kotlin.plugin.compose')
|
|
39
|
-
}
|
|
40
|
-
|
|
41
37
|
apply plugin: 'com.android.library'
|
|
42
38
|
apply plugin: 'com.facebook.react'
|
|
43
39
|
apply plugin: 'org.jetbrains.kotlin.android'
|
|
44
40
|
|
|
41
|
+
if (isKotlin2OrHigher()) {
|
|
42
|
+
project.plugins.apply('org.jetbrains.kotlin.plugin.compose')
|
|
43
|
+
}
|
|
44
|
+
|
|
45
45
|
android {
|
|
46
46
|
compileSdkVersion safeExtGet('compileSdkVersion', 34)
|
|
47
47
|
|
|
@@ -79,7 +79,7 @@ repositories {
|
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
dependencies {
|
|
82
|
-
implementation findProject(":editor") ?: "ly.img:editor:1.
|
|
82
|
+
implementation findProject(":editor") ?: "ly.img:editor:1.53.0"
|
|
83
83
|
implementation platform("androidx.compose:compose-bom:2023.05.01")
|
|
84
84
|
implementation "androidx.activity:activity-compose:1.6.1"
|
|
85
85
|
implementation "androidx.activity:activity:1.7.0"
|
|
@@ -120,12 +120,16 @@ class EditorBuilder {
|
|
|
120
120
|
)
|
|
121
121
|
},
|
|
122
122
|
onExport = {
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
123
|
+
try {
|
|
124
|
+
val export = EditorBuilderDefaults.onExport(
|
|
125
|
+
engine = editorContext.engine,
|
|
126
|
+
eventHandler = editorContext.eventHandler,
|
|
127
|
+
mimeType = MimeType.PNG,
|
|
128
|
+
)
|
|
129
|
+
result(Result.success(export))
|
|
130
|
+
} catch (e: Exception) {
|
|
131
|
+
result(Result.failure(e))
|
|
132
|
+
}
|
|
129
133
|
},
|
|
130
134
|
)
|
|
131
135
|
PhotoEditor(engineConfiguration = engineConfiguration) {
|
|
@@ -152,12 +156,16 @@ class EditorBuilder {
|
|
|
152
156
|
)
|
|
153
157
|
},
|
|
154
158
|
onExport = {
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
159
|
+
try {
|
|
160
|
+
val export = EditorBuilderDefaults.onExport(
|
|
161
|
+
engine = editorContext.engine,
|
|
162
|
+
eventHandler = editorContext.eventHandler,
|
|
163
|
+
mimeType = MimeType.PDF,
|
|
164
|
+
)
|
|
165
|
+
result(Result.success(export))
|
|
166
|
+
} catch (e: Exception) {
|
|
167
|
+
result(Result.failure(e))
|
|
168
|
+
}
|
|
161
169
|
},
|
|
162
170
|
)
|
|
163
171
|
ApparelEditor(engineConfiguration = engineConfiguration) {
|
|
@@ -184,12 +192,16 @@ class EditorBuilder {
|
|
|
184
192
|
)
|
|
185
193
|
},
|
|
186
194
|
onExport = {
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
195
|
+
try {
|
|
196
|
+
val export = EditorBuilderDefaults.onExport(
|
|
197
|
+
engine = editorContext.engine,
|
|
198
|
+
eventHandler = editorContext.eventHandler,
|
|
199
|
+
mimeType = MimeType.PDF,
|
|
200
|
+
)
|
|
201
|
+
result(Result.success(export))
|
|
202
|
+
} catch (e: Exception) {
|
|
203
|
+
result(Result.failure(e))
|
|
204
|
+
}
|
|
193
205
|
},
|
|
194
206
|
)
|
|
195
207
|
|
|
@@ -217,12 +229,16 @@ class EditorBuilder {
|
|
|
217
229
|
)
|
|
218
230
|
},
|
|
219
231
|
onExport = {
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
232
|
+
try {
|
|
233
|
+
val export = EditorBuilderDefaults.onExport(
|
|
234
|
+
engine = editorContext.engine,
|
|
235
|
+
eventHandler = editorContext.eventHandler,
|
|
236
|
+
mimeType = MimeType.PDF,
|
|
237
|
+
)
|
|
238
|
+
result(Result.success(export))
|
|
239
|
+
} catch (e: Exception) {
|
|
240
|
+
result(Result.failure(e))
|
|
241
|
+
}
|
|
226
242
|
},
|
|
227
243
|
)
|
|
228
244
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@imgly/editor-react-native",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.53.0",
|
|
4
4
|
"description": "CreativeEditor SDK for React Native - enable photo, video and design editing for your users on iOS and Android.",
|
|
5
5
|
"react-native": "index.js",
|
|
6
6
|
"source": "index.js",
|
package/src/NativeIMGLYEditor.ts
CHANGED
|
@@ -92,7 +92,7 @@ export class EditorSettingsModel implements EditorSettings {
|
|
|
92
92
|
* as relative paths.
|
|
93
93
|
*/
|
|
94
94
|
sceneBaseUri: string =
|
|
95
|
-
'https://cdn.img.ly/packages/imgly/cesdk-engine/1.
|
|
95
|
+
'https://cdn.img.ly/packages/imgly/cesdk-engine/1.51.0/assets';
|
|
96
96
|
|
|
97
97
|
/** The base URI to the default assets of the asset library. */
|
|
98
98
|
assetBaseUri?: string;
|