Skip to content

Commit f1f66e1

Browse files
committed
Upgrade uCrop ver to 2.2.2 to be able to use UCropFragment
Also had to upgrade Kotlin version to avoid a coroutines error: "Main dispatcher is missing" Kotlin/kotlinx.coroutines#1532
1 parent b2bf8b1 commit f1f66e1

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

ImageEditor/build.gradle

+3
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,7 @@ dependencies {
4343
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
4444

4545
implementation 'com.github.bumptech.glide:glide:4.10.0'
46+
implementation ('com.github.yalantis:ucrop:2.2.2') {
47+
exclude group: 'com.squareup.okhttp3'
48+
}
4649
}

WordPress/build.gradle

+1-2
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ dependencies {
203203
implementation 'com.airbnb.android:lottie:3.0.7'
204204
implementation 'com.facebook.shimmer:shimmer:0.4.0'
205205

206-
implementation ('com.yalantis:ucrop:2.2.0') {
206+
implementation ('com.github.yalantis:ucrop:2.2.2') {
207207
exclude group: 'com.squareup.okhttp3'
208208
}
209209

@@ -291,7 +291,6 @@ dependencies {
291291
debugImplementation 'com.facebook.stetho:stetho:1.5.0'
292292
debugImplementation 'com.facebook.stetho:stetho-okhttp3:1.5.0'
293293

294-
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$kotlin_coroutines_version"
295294
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$kotlin_coroutines_version"
296295

297296
implementation 'com.github.PhilJay:MPAndroidChart:v3.1.0-alpha'

build.gradle

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
buildscript {
2-
ext.kotlin_version = '1.3.11'
2+
ext.kotlin_version = '1.3.31'
33
ext.kotlin_coroutines_version = '1.1.0'
44
ext.androidx_work_version = "2.0.1"
55

@@ -31,6 +31,7 @@ allprojects {
3131
google()
3232
jcenter()
3333
maven { url "https://dl.bintray.com/wordpress-mobile/maven" }
34+
maven { url "https://jitpack.io" }
3435

3536
if (rootProject.ext.buildGutenbergFromSource) {
3637
// nested RN libraries need the RN maven repo defined from outside so, do it here when building from source

0 commit comments

Comments
 (0)