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

Migrating to Kotlin 2.0 #475

Open
tuuhin opened this issue Jun 18, 2024 · 4 comments
Open

Migrating to Kotlin 2.0 #475

tuuhin opened this issue Jun 18, 2024 · 4 comments

Comments

@tuuhin
Copy link
Contributor

tuuhin commented Jun 18, 2024

The K2 compiler is very fast, and many are migrating their projects to Kotlin 2.0 .
so why not this one too?

@aritra-tech
Copy link
Owner

it's already done @tuuhin

@tuuhin
Copy link
Contributor Author

tuuhin commented Jun 20, 2024

Great 👍🏼
I was looking on the compiler report after migrating it to k2 ,
Some tweaking can be done, i.e., some of the classes are unstable and the compiler is not skipping re-compositions.
Check the report and do let me know if I can work on making these classes stable .

@aritra-tech
Copy link
Owner

How are you creating the report @tuuhin ?

@tuuhin
Copy link
Contributor Author

tuuhin commented Jun 21, 2024

Add this block in app level build.gradle.kts file

composeCompiler {
        // You can enable strong skipping mode if required
	// enableStrongSkippingMode = true
       // metrics report destination
	metricsDestination = layout.buildDirectory.dir("compose_compiler")
        // reports destination
	reportsDestination = layout.buildDirectory.dir("compose_compiler")
        // if your app uses certain java based classes like LocalDateTime add them into a `stability_config.conf` file
	// stabilityConfigurationFile = rootProject.layout.projectDirectory.file("stability_config.conf")
}

run a release build though debug build will work (as per docs it should be performed on release build), check out app level build folder
You can follow the instructions over stability_in_compose

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

No branches or pull requests

2 participants