Skip to content
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

Move code Arrow-Core #2403

Merged
merged 7 commits into from
May 21, 2021
Merged

Move code Arrow-Core #2403

merged 7 commits into from
May 21, 2021

Conversation

nomisRev
Copy link
Member

This PR moves all common code from jvmMain to commonMain.

  • Arrow Retrofit is reverted to a full JVM module since Retrofit is a JVM dependency

@nomisRev nomisRev added the MPP Tickets belonging to Arrow Multiplatform Support label May 20, 2021
@nomisRev nomisRev self-assigned this May 20, 2021
@@ -233,7 +233,7 @@ sealed class Eval<out A> {
is FlatMap<A> -> object : FlatMap<B>() {
override fun <S> start(): Eval<S> = (this@Eval).start()

@IgnoreJRERequirement
// @IgnoreJRERequirement
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems this annotation is not needed anymore. AnimalSniffer seems to pass on this code.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, I'm going to review AnimalSniffer configuration because maybe it must be updated with the last change.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alright, if we need it back we can turn it into a expect/actual annotation where native and JS have no-op annotations.

* ```
*
*/
// https://youtrack.jetbrains.com/issue/KT-36036
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Link to issue on Kotlin tracker.
This extension cannot live in NonFatal.kt anymore since it conflicts with the NonFatalKt file generated by jvmMain which has the expect implementation for NonFatal.kt.

}
assertSoftly {
res.orNull()?.forEach {
it shouldStartWith "single"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to use shouldStartWith instead because KotlinX Coroutines post fixes the thread name with "@coroutine$id" if the -ea flag is enabled. Which it is with testing.

Copy link
Member

@raulraja raulraja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks so much, @nomisRev @rachelcarmena. Almost there!

Copy link
Member

@rachelcarmena rachelcarmena left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome work @nomisRev !! I'm going to check some things locally.

Copy link
Member

@rachelcarmena rachelcarmena left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome work @nomisRev !! 🚀

@nomisRev nomisRev merged commit 5a3037b into main May 21, 2021
@franciscodr franciscodr deleted the sv-arrow-mpp branch February 23, 2023 08:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
MPP Tickets belonging to Arrow Multiplatform Support
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants