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

Kotlin 1.9.0 #3835

Merged
merged 17 commits into from
Aug 2, 2023
Merged

Kotlin 1.9.0 #3835

merged 17 commits into from
Aug 2, 2023

Conversation

Goooler
Copy link
Contributor

@Goooler Goooler commented Jul 11, 2023

@Goooler
Copy link
Contributor Author

Goooler commented Jul 11, 2023

The ktlint failure related to JLLeitschuh/ktlint-gradle#692.

@connyduck
Copy link
Collaborator

connyduck commented Jul 11, 2023

The ktlint failure related to JLLeitschuh/ktlint-gradle#692.

Yes then please undo that change, I don't think we should wait for an update to the ktlint plugin.

@Goooler
Copy link
Contributor Author

Goooler commented Jul 12, 2023

The lint issues seem should be fixed in a separate PR by creating a baseline file?

@nikclayton
Copy link
Contributor

The lint issues seem should be fixed in a separate PR by creating a baseline file?

I don't think so, these look like issues that would crash on API < 24, e.g.,

/bitrise/src/app/src/main/java/com/keylesspalace/tusky/adapter/AccountFieldEditAdapter.kt:36: Error: Call requires API level 24 (current min is 23): java.lang.Iterable#forEach [NewApi]
        fields.forEach { field ->

So I don't think we should ignore them.

@connyduck
Copy link
Collaborator

Seems like a false positive, it is correctly using the Kotlin stdlib extension function and not the Java method. This PR is not crashing on Api 23, I tried it out. No idea why lint suddenly reports it though?

@connyduck
Copy link
Collaborator

@gooler you can recreate the baseline file by deleting app/lint-baseline.xml and running ./gradlew app:lintGreenDebug

@nikclayton
Copy link
Contributor

Seems like a false positive, it is correctly using the Kotlin stdlib extension function and not the Java method. This PR is not crashing on Api 23, I tried it out. No idea why lint suddenly reports it though?

Looks like https://issuetracker.google.com/issues/185418482 :sigh:

@Goooler
Copy link
Contributor Author

Goooler commented Jul 19, 2023

It doesn't work here.

@connyduck
Copy link
Collaborator

Execution failed for task ':app:lintAnalyzeGreenDebug'.
A failure occurred while executing com.android.build.gradle.internal.lint.AndroidLintWorkAction
com/android/tools/lint/client/api/IssueRegistry has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0

Not sure what exactly that means? But maybe it will be resolved once #3541 is merged?

@nikclayton nikclayton merged commit 40bd95d into tuskyapp:develop Aug 2, 2023
2 checks passed
@Goooler Goooler deleted the kt190 branch August 2, 2023 07:13
@nikclayton
Copy link
Contributor

@Goooler -- thanks!

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