-
Notifications
You must be signed in to change notification settings - Fork 25k
[kotlinify] Refacetor BaseJavaModule from java to kotlin #54504
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
base: main
Are you sure you want to change the base?
Conversation
javache
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's try and limit changes to just BaseJavaModule. Having to change anything else means this is a breaking change.
| public @Nullable Map<String, Object> getConstants() { | ||
| return null; | ||
| } | ||
| public open val constants: Map<String, Any>? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a breaking change, please revert this back to the function form.
Ditto to this. I'd suggest we (someone from Meta) do this migration as it's going to be a painful one for the whole ecosystem |
| public @Nullable Map<String, Object> getConstants() { | ||
| return null; | ||
| } | ||
| public open fun getConstants(): Map<String, Any>? = null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a breaking change, please revert this back to the function form.
I applied your review @javache
|
Also the other changes in this PR are fixes for errors that were reported by the linter and the CI. |
Summary:
BaseJavaModuleclass from Java to Kotlin.Changelog:
[ANDROID] [CHANGED] - Refactor BaseJavaModule from Java to Kotlin
Test Plan:
e2e-test-androidtask should run successfully