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

[gradle] New Compose Compiler gradle plugin checks. #4604

Merged
merged 5 commits into from Apr 25, 2024

Conversation

terrakok
Copy link
Collaborator

If KGP >= 2.0.0-RC1 new Compose gradle plugin has to be applied.

To throw a configuration error if it's not.

@terrakok terrakok requested review from igordmn and eymar April 11, 2024 10:29
}
}

internal const val newCompilerIsAvailableVersion = "2.0.0-RC1"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
internal const val newCompilerIsAvailableVersion = "2.0.0-RC1"
internal const val newCompilerIsAvailableVersion = "2.0.0"

The 2.0.0-RC1 Compose Compiler isn't suitable for Compose Multiplatform.

If we'll have some Kotlin RC that supports it, we can downgrade this version later.

@eymar, please, confirm

Copy link
Collaborator

Choose a reason for hiding this comment

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

Some thoughts:

  • RC1 is the only version we can test this chnage at the moment.
  • RC1 is okay for android+jvm projects where we can test this change.

But we should not force 1.6.10-beta01 users to apply a new compose-compiler-gradle plugin, because it doesn't support compose multiplatform yet.

Perhaps we don't merge this now, so it won't go into 1.6.10-beta01.
Before merging, we can update to RC2 (hopefully) or RC3 version here.

@terrakok
Copy link
Collaborator Author

The error happens because there is no Kotlin 2.0.0-RC2 yet

@igordmn
Copy link
Collaborator

igordmn commented Apr 24, 2024

The error happens because there is no Kotlin 2.0.0-RC2 yet

Is it only in tests? Can we disable them? We need to merge the PR before it will be available

Copy link
Collaborator

@igordmn igordmn left a comment

Choose a reason for hiding this comment

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

Let's sync tomorrow before the merge.

@terrakok terrakok merged commit 7d456d4 into master Apr 25, 2024
12 checks passed
@terrakok terrakok deleted the k.tskh/new-comp-plugin branch April 25, 2024 10:30
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

3 participants