Skip to content

Conversation

@l2hyunwoo
Copy link
Contributor

Summary:

Changelog:

[ANDROID] [CHANGED] - Refactor BaseJavaModule from Java to Kotlin

Test Plan:

  • e2e-test-android task should run successfully

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Nov 12, 2025
@facebook-github-bot facebook-github-bot added the Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. label Nov 12, 2025
Copy link
Member

@javache javache 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 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>?
Copy link
Member

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.

@cortinico
Copy link
Contributor

Let's try and limit changes to just BaseJavaModule. Having to change anything else means this is a breaking change.

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
Copy link
Contributor Author

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

@l2hyunwoo
Copy link
Contributor Author

Also the other changes in this PR are fixes for errors that were reported by the linter and the CI.

@l2hyunwoo l2hyunwoo requested a review from javache November 13, 2025 01:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

☂️ Help us Kotlin-ify React Native - Round 3

4 participants