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

Bug 1722271 - Update to Kotlin 1.5 #1747

Merged
merged 7 commits into from
Aug 16, 2021
Merged

Bug 1722271 - Update to Kotlin 1.5 #1747

merged 7 commits into from
Aug 16, 2021

Conversation

badboy
Copy link
Member

@badboy badboy commented Aug 10, 2021

Also upgrading Gradle and some dependencies.

Draft as I also want to update some stuff on CI

7.x is causing some trouble with the rust-gradle plugin right now,
so not going there yet.
@badboy badboy force-pushed the update-kotlin branch 2 times, most recently from ef40f7a to 870e640 Compare August 10, 2021 13:44
The Dokka plugin we were using is outdated
and the new one works slightly differently.
For now we're simply avoiding that work and remove the API docs for
Kotlin.
@travis79
Copy link
Member

This builds and runs all the Glean kotlin tests, but when I try and build and run the glean-sample-app, it fails in SharedTestUtils.kt with an unresolved reference to setDispatcher, and it looks like something is returning a String? instead of a String for the request.path in the waitForPingContent function, which is triggering a Only safe (?.) or non-null asserted (!!.) calls are allowed ...

This now uses the local server for testing, even though it doesn't send
a ping.
This is the same fix as  mozilla-mobile/android-components 465b85378d32d9f921bab2b7650edcfd3cecc8f7.

This also unbreaks the test, applying the fixes done in 3ff81f0
back in February.

And last but not least this now builds the sample app including its
tests on CI as well, to at least catch those mistakes early.
@badboy badboy marked this pull request as ready for review August 12, 2021 09:33
@auto-assign auto-assign bot requested a review from travis79 August 12, 2021 09:33
@badboy badboy requested review from travis79 and removed request for travis79 August 12, 2021 09:33
@badboy
Copy link
Member Author

badboy commented Aug 12, 2021

The Generate Kotlin documentation was removed in this PR, I'm going to remove it from our github enforcement rules.

@badboy badboy merged commit 60205f6 into main Aug 16, 2021
@badboy badboy deleted the update-kotlin branch August 16, 2021 09:23
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.

2 participants