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

Update to Kotlin 1.5.10, bump other dependencies, clear compiler warnings #198

Merged
merged 1 commit into from
May 28, 2021

Conversation

russhwolf
Copy link
Contributor

[Platform]

  • iOS
  • Android
  • KMP

[Summary]

[Fix]

[Testing]

Reviewer Tips:
* Use "Nitpick:" if it's a minor non-crucial request.
* If you're done with comments either end with a review or comment something helpful like "done with comments for now"


implementation(Deps.Coroutines.common) {
version {
strictly(Versions.coroutines)
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we even need this anymore? I think ktor was the one causing issues

Copy link
Contributor Author

Choose a reason for hiding this comment

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

apparently, yes. Without it we get tests hanging due missing run loop, which indicates it's not picking up the native-mt version

Copy link

@ndipatri ndipatri Jul 4, 2021

Choose a reason for hiding this comment

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

@russhwolf @kpgalligan hello there.. Firstly, thank you both so much for all your hard work. KMM is amazing and I'm telling everyone that will listen that it's the future of mobile :-)

Ok, now the bad news :-( I have a fork of this repo that I've been using to convert an app I have in development. After I pulled down this merged PR, my iOS build started getting runtime errors.

It seems to be when I'm creating a cold flow for a KTOR network call. I tried rolling back just coroutines/kotlin version bumps but that wasn't enough. I can provide more information as I dig more, but I wanted to just let you know what I discovered thus far.. Thank you again!

2021-07-04 11:01:17.729169-0400 tRacket[39241:897272] Verbose: (Network) RESPONSE https://io.adafruit.com/api/v2/ndipatri/feeds/occupancy/data?start_time=2021-05-135T11:01-0400&x-aio-key=aio_XmSy92vYjddoZhQ4f19ztFc8Qm6r failed with exception: kotlin.native.concurrent.InvalidMutabilityException: mutation attempt of frozen kotlin.collections.HashMap@393d508
2021-07-04 11:01:17.730368-0400 tRacket[39241:897272] Error: (OccupancyModel) Error downloading data
2021-07-04 11:01:17.743070-0400 tRacket[39241:897272] kotlin.native.concurrent.InvalidMutabilityException: mutation attempt of frozen kotlin.collections.HashMap@393d508
at 0 tRacket 0x000000010d7f721f kfun:kotlin.Throwable#(kotlin.String?){} + 95
at 1 tRacket 0x000000010d7ef97d kfun:kotlin.Exception#(kotlin.String?){} + 93
at 2 tRacket 0x000000010d7efbed kfun:kotlin.RuntimeException#(kotlin.String?){} + 93
at 3 tRacket 0x000000010d8278fd kfun:kotlin.native.concurrent.InvalidMutabilityException#(kotlin.String){} + 93
at 4 tRacket 0x000000010d8290ff ThrowInvalidMutabilityException + 431
at 5 tRacket 0x000000010d994590 MutationCheck + 128
at 6 tRacket 0x000000010d80a102 kfun:kotlin.collections.HashMap.#internal + 82

@russhwolf russhwolf merged commit 7f79e90 into main May 28, 2021
@russhwolf russhwolf deleted the rw/1.5.10 branch May 28, 2021 19:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants