Skip to content

Commit

Permalink
fix rn66 build error
Browse files Browse the repository at this point in the history
  • Loading branch information
Kudo committed Jan 15, 2022
1 parent 2dfe3c0 commit 33d34bb
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions packages/expo-dev-launcher/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,6 @@ android {
buildFeatures {
viewBinding true
}

configurations.implementation {
resolutionStrategy {
force "com.squareup.okhttp3:okhttp:3.14.9"
}
}
}

repositories {
Expand Down Expand Up @@ -136,13 +130,20 @@ dependencies {
testImplementation "org.robolectric:robolectric:4.3.1"
}

// Koin uses a different version of Kotlin under the hood.
configurations.all {
configurations.all { conf ->
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
def requested = details.requested
// Koin uses a different version of Kotlin under the hood.
if (requested.group == 'org.jetbrains.kotlin') {
details.useVersion safeExtGet('kotlinVersion', '1.4.21')
}

// Keep old okhttp in compile time
if (conf.name.contains('Compile')) {
if (requested.group == 'com.squareup.okhttp3' && requested.name == 'okhttp') {
details.useVersion '3.14.9'
}
}
}
}

Expand Down

0 comments on commit 33d34bb

Please sign in to comment.