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 "Tips for improving Kotlin/Native compilation times" #4575

Merged
merged 15 commits into from
Dec 2, 2024

Conversation

SvyatoslavScherbina
Copy link
Contributor

This PR adds a few more tips to the document, clarifies existing tips and removes an outdated part.

@SvyatoslavScherbina SvyatoslavScherbina requested a review from a team as a code owner November 27, 2024 14:25
@danil-pavlov danil-pavlov self-requested a review November 27, 2024 14:53
@danil-pavlov danil-pavlov self-assigned this Nov 27, 2024
>
{style="note"}

To build a platform-specific framework, call the `embedAndSignAppleFrameworkForXcode` task.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could you please cross reference the embedAndSign guide

Release is highly optimized, and this takes a lot of time: compilation of release binaries takes an order of magnitude
more time than debug binaries. In a typical development cycle, all the optimizations might be unnecessary. So, if
your development cycle uses a task with "Release" in its name, consider replacing it with "Debug". Similarly, instead
of running `assembleXCFramework`, you can run `assembleXcfDebugXCFramework`, for example.
Copy link
Collaborator

Choose a reason for hiding this comment

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

assembleXcfDebugXCFramework

nit: I think the task is likely to be called assembleSharedDebugXCFramework or assembleComposeAppDebugXCFramework since we use project name as the default XCFramework name (same as the framework's baseName)

@danil-pavlov danil-pavlov merged commit 24904f7 into master Dec 2, 2024
4 checks passed
@danil-pavlov danil-pavlov deleted the update-native-compilation-time-tips branch December 2, 2024 17:08
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