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

Consider generating R class bytecode directly. #35

Open
arunkumar9t2 opened this issue Jul 30, 2022 · 0 comments
Open

Consider generating R class bytecode directly. #35

arunkumar9t2 opened this issue Jul 30, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@arunkumar9t2
Copy link
Contributor

Currently stub compiler generates R.java and other databinding classes for Kotlin compilation to work. The R.java in particular is compiled independently to allow not link it in runtime using never_link. This can be avoided by simply generating the R class as .class file using Java bytecode manipulation and pass it to Kotlin target via a JavaInfo provider.

On large modules R class compilation will not be a botteneck.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant