-
Notifications
You must be signed in to change notification settings - Fork 9.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Split okhttp core into Android and JVM #8600
Conversation
It's noisier because something is persistently picking up the main source set in the android build, and warning about it. Worse it makes builds fail because of duplicate sources. |
Also more invasive because a lot is changing here, so building this against 1.9.24 and AGP 8.2 sounds like a dead end. |
@@ -360,15 +360,17 @@ class TaskFaker : Closeable { | |||
timeout: Long, | |||
unit: TimeUnit, | |||
): T? { | |||
taskRunner.withLock { | |||
return taskRunner.withLock { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what’s with this change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Kotlin 2 didn't like the inline with return?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I love it. There’s some Gradle stuff to clean up before landing though!
14cf0c7
to
7ea2b89
Compare
# Conflicts: # okcurl/build.gradle.kts # okhttp/build.gradle.kts
1e18b6a
to
f1c8396
Compare
# Conflicts: # okhttp/build.gradle.kts
@swankjesse @JakeWharton heads up, I think it's working now. Going to land based on prior Jesse approval and work through any issues that pop up. But I think these are working
The gradle builds got messier, but I think we should adopt convention plugins, so maybe a good thing to have this in first. |
almost! Working through |
Uses this approach for a shared Java core between Android and JVM.
https://jeroenmols.com/blog/2021/03/17/share-code-kotlin-multiplatform/
Source structure under okhttp
Outputs
TODO