Skip to content

Conversation

@mickael-menu
Copy link
Member

Fixed

  • Fix building with Kotlin 1.6.

This doesn't bump the minimum required Kotlin version to 1.6, but fixes any build issue if someone chooses to use it.

@mickael-menu mickael-menu requested a review from qnga November 18, 2021 13:26
Comment on lines +319 to 321
// FIXME: To remove after bumping to Kotlin 1.6
@Suppress("DEPRECATION")
val data = network.fetch(url, timeout = Duration.seconds(5))
Copy link
Member Author

Choose a reason for hiding this comment

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

I couldn't find any API to create a Duration in seconds that doesn't give a deprecation warning either on Kotlin 1.5 or 1.6... Since we have the android.kotlinOptions.allWarningsAsErrors flag on in build.gradle, we need to suppress the deprecation warning for now to be able to build.

@mickael-menu mickael-menu merged commit aac14c9 into develop Nov 22, 2021
@mickael-menu mickael-menu deleted the kotlin-1.6 branch November 22, 2021 08:46
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.

3 participants