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 2.0 #868

Merged
merged 20 commits into from
Jul 22, 2024
Merged

Update to Kotlin 2.0 #868

merged 20 commits into from
Jul 22, 2024

Conversation

LionZXY
Copy link
Member

@LionZXY LionZXY commented May 27, 2024

Background

Kotlin 2.0 is the next generation of Kotlin language development. The transition to it should be smooth, but we are using compiler plugins and there may be problems because of that
More info: square/anvil#733

Changes

  • Update kotlin to 2.0
  • Update anvil to 2.5.0-beta09
  • Update anvil-utils
  • Migrate to Kotlin Compose gradle plugin

Test plan

Try to build app

LionZXY and others added 8 commits May 23, 2024 22:45
**Background**

Here I'm upgrading anvil-utils to `0.2.0-beta01`. It supports KSP.

**Changes**

- Upgrade anvil-utils to `0.2.0-beta01`.
- Migrate Kotlin configuration to new DSL.
- Fix errors introduced by migration to K2 (lambdas can't have named
arguments)
- Disable AGP and KMP possible incompatibility warning
@LionZXY
Copy link
Member Author

LionZXY commented May 29, 2024

Waiting for a fix: gradle/gradle#27099

@LionZXY LionZXY marked this pull request as ready for review July 22, 2024 13:57
@LionZXY LionZXY changed the title [WIP] Update to Kotlin 2.0 Update to Kotlin 2.0 Jul 22, 2024
@LionZXY LionZXY enabled auto-merge July 22, 2024 13:58
@LionZXY LionZXY added this pull request to the merge queue Jul 22, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jul 22, 2024
@LionZXY LionZXY merged commit cfc3388 into dev Jul 22, 2024
10 checks passed
@LionZXY LionZXY deleted the feature/k2 branch July 22, 2024 15:12
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