You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+13Lines changed: 13 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,16 @@
1
+
## [2.13.0]
2
+
3
+
### Changed
4
+
5
+
* 🚨 With this version you might need to create symlinks when using Android Gradle Plugin version `4.x`. Please refer to the new [known issues](https://github.com/imgly/vesdk-react-native#known-issues) section of the README for details.
6
+
* 🚨 This version requires `minSdkVersion``21` for Android. Please refer to the new step 3 in the [getting started](https://github.com/imgly/vesdk-react-native#android) section of the README for instructions on how to adjust it.
7
+
*[react-native-videoeditorsdk] Raised minimum VideoEditor SDK for Android version to 10.0.1. See the [changelog](https://github.com/imgly/vesdk-android-demo/blob/master/CHANGELOG.md) for more information.
8
+
*[react-native-photoeditorsdk] Raised minimum PhotoEditor SDK for Android version to 10.0.1. See the [changelog](https://github.com/imgly/pesdk-android-demo/blob/master/CHANGELOG.md) for more information.
9
+
10
+
### Added
11
+
12
+
*[react-native-imglysdk] Added support to specify a custom `buildToolsVersion`, `minSdkVersion`, `compileSdkVersion`, `targetSdkVersion`, and `kotlinGradlePluginVersion` for Android with the Expo config plugin.
Copy file name to clipboardExpand all lines: README.md
+50-26Lines changed: 50 additions & 26 deletions
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,27 @@ Check out our [video tutorial](https://img.ly/blog/a-photo-and-video-editor-for-
21
21
22
22
## Getting started
23
23
24
+
### Known Issues
25
+
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`.
27
+
28
+
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:
29
+
```
30
+
FAILURE: Build failed with an exception.
31
+
32
+
* What went wrong:
33
+
A problem occurred configuring project ':react-native-photoeditorsdk'.
34
+
> com.android.builder.errors.EvalIssueException: Installed Build Tools revision 31.0.0 is corrupted. Remove and install again using the SDK Manager.
35
+
36
+
* Try:
37
+
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
38
+
39
+
* Get more help at https://help.gradle.org
40
+
```
41
+
As a workaround you can create the following symlinks:
42
+
1. Inside `/Users/YOUR-USERNAME/Library/Android/sdk/build-tools/31.0.0/`: Create a `dx` symlink for the `d8` file with `ln -s d8 dx`.
43
+
2. From there, go to `./lib/` and create a `dx.jar` symlink for the `d8.jar` file with `ln -s d8.jar dx.jar`.
44
+
24
45
### Expo CLI
25
46
26
47
#### Limitations
@@ -47,7 +68,7 @@ In order to use this module with the Expo CLI you can make use of our integrated
47
68
}
48
69
```
49
70
50
-
If needed, you can also use a specific version of our native library for Android as well as define explicitly the included modules. By default, all modules for both PhotoEditor SDK and VideoEditor SDK are included.
71
+
If needed, you can also use a specific version of our native library for Android as well as define explicitly the included modules. By default, all modules for both PhotoEditor SDK and VideoEditor SDK are included. Furthermore, you can configure the `buildToolsVersion`, `minSdkVersion`, `compileSdkVersion`, `targetSdkVersion`, and `kotlinGradlePluginVersion`.
51
72
52
73
```json
53
74
{
@@ -56,13 +77,18 @@ In order to use this module with the Expo CLI you can make use of our integrated
56
77
"react-native-imglysdk",
57
78
{
58
79
"android": {
59
-
"version": "9.2.0",
80
+
"version": "10.0.1",
60
81
"modules": [
61
82
"ui:core",
62
83
"ui:transform",
63
84
"ui:filter",
64
85
"assets:filter-basic"
65
-
]
86
+
],
87
+
"buildToolsVersion": "31.0.0",
88
+
"minSdkVersion": "21",
89
+
"compileSdkVersion": "31",
90
+
"targetSdkVersion": "30",
91
+
"kotlinGradlePluginVersion": "1.5.32"
66
92
}
67
93
}
68
94
]
@@ -114,40 +140,22 @@ For older React Native versions autolinking is not available and PhotoEditor SDK
114
140
115
141
#### Android
116
142
117
-
1. Because PhotoEditor SDK for Android is quite large, there is a high chance that you will need to enable [Multidex](https://developer.android.com/studio/build/multidex) for your project as follows:
118
-
119
-
1. Open the `android/app/build.gradle` file (**not**`android/build.gradle`) and add these lines at the end:
120
-
```groovy
121
-
android {
122
-
defaultConfig {
123
-
multiDexEnabled true
124
-
}
125
-
}
126
-
dependencies {
127
-
implementation 'androidx.multidex:multidex:2.0.1'
128
-
}
129
-
```
130
-
2. Open the `android/app/src/main/java/.../MainApplication.java` file and change the superclass of your `MainApplication` class from `Application` to `androidx.multidex.MultiDexApplication`, e.g.:
131
-
```java
132
-
public class MainApplication extends androidx.multidex.MultiDexApplication implements ReactApplication {
133
-
```
134
-
135
-
2. Add the img.ly repository and plugin by opening the `android/build.gradle` file (**not** `android/app/build.gradle`) and adding these lines at the top:
143
+
1. Add the img.ly repository and plugin by opening the `android/build.gradle` file (**not**`android/app/build.gradle`) and adding these lines at the top:
In order to update PhotoEditor SDK for Android replace the version string `9.2.0` 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.0.1` with a [newer release](https://github.com/imgly/pesdk-android-demo/releases).
149
157
150
-
3. Still in the `android/build.gradle` file (**not**`android/app/build.gradle`), add these lines at the bottom:
158
+
2. Still in the `android/build.gradle` file (**not**`android/app/build.gradle`), add these lines at the bottom:
151
159
152
160
```groovy
153
161
allprojects {
@@ -157,6 +165,22 @@ For older React Native versions autolinking is not available and PhotoEditor SDK
157
165
}
158
166
```
159
167
168
+
3. In the same file, you will need to modify the `minSdkVersion` to at least `21`. We also recommend to update the `buildToolsVersion` to `31.0.0` or higher as well as the `compileSdkVersion` to `31` or higher:
169
+
170
+
```diff
171
+
buildscript {
172
+
ext {
173
+
- buildToolsVersion = "30.0.2"
174
+
+ buildToolsVersion = "31.0.0"
175
+
- minSdkVersion = 19
176
+
+ minSdkVersion = 21
177
+
- compileSdkVersion = 30
178
+
+ compileSdkVersion = 31
179
+
targetSdkVersion = 30
180
+
}
181
+
}
182
+
```
183
+
160
184
4. 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"`:
0 commit comments