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

trigger codegenned reflection if module is a turbomodule #36672

Closed
wants to merge 3 commits into from

Conversation

philIip
Copy link
Contributor

@philIip philIip commented Mar 28, 2023

Summary:
Changelog: [Internal]

if we look at usages of ReactModuleWithSpec, we see that it's existence was to simply identify generated native modules since the inheritance graph of native modules was different if they were generated.

this was introduced before we created the TurboModule interface, which all codegenned native modules also conform to. since that exists now, there's no need for both of these. this is the only callsite in our code where ReactModuleWithSpec triggers any logic, so i'm updating it.

Differential Revision: D44450687

philIip and others added 3 commits March 27, 2023 22:32
Differential Revision: D44445586

fbshipit-source-id: e5582ca489b47b46a21ee3168601df6a2af935c4
Differential Revision: D44450433

fbshipit-source-id: e4851de44c547a44a7023a61068d585835455188
Summary:
Changelog: [Internal]

if we look at usages of ReactModuleWithSpec, we see that it's existence was to simply identify generated native modules since the inheritance graph of native modules was different if they were generated.

this was introduced before we created the TurboModule interface, which all codegenned native modules also conform to. since that exists now, there's no need for both of these. this is the only callsite in our code where ReactModuleWithSpec triggers any logic, so i'm updating it.

Differential Revision: D44450687

fbshipit-source-id: 622007e0bceb9d4984bde561f6dec240872dd1b8
@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner labels Mar 28, 2023
@philIip philIip closed this Mar 28, 2023
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D44450687

1 similar comment
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D44450687

philIip added a commit to philIip/react-native that referenced this pull request Mar 28, 2023
)

Summary:
Pull Request resolved: facebook#36672

Changelog: [Internal]

if we look at usages of ReactModuleWithSpec, we see that it's existence was to simply identify generated native modules since the inheritance graph of native modules was different if they were generated.

this was introduced before we created the TurboModule interface, which all codegenned native modules also conform to. since that exists now, there's no need for both of these. this is the only callsite in our code where ReactModuleWithSpec triggers any logic, so i'm updating it.

Differential Revision: D44450687

fbshipit-source-id: 799bac320851edfc09048446c9a5f947a126d9c7
@analysis-bot
Copy link

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 8,519,538 +5
android hermes armeabi-v7a 7,835,747 +4
android hermes x86 8,998,690 -2
android hermes x86_64 8,854,876 +13
android jsc arm64-v8a 9,140,872 +7
android jsc armeabi-v7a 8,333,018 +5
android jsc x86 9,194,564 +8
android jsc x86_64 9,453,654 +5

Base commit: d9f7c4c
Branch: main

philIip added a commit to philIip/react-native that referenced this pull request Mar 28, 2023
)

Summary:
Pull Request resolved: facebook#36672

Changelog: [Internal]

if we look at usages of ReactModuleWithSpec, we see that it's existence was to simply identify generated native modules since the inheritance graph of native modules was different if they were generated.

this was introduced before we created the TurboModule interface, which all codegenned native modules also conform to. since that exists now, there's no need for both of these. this is the only callsite in our code where ReactModuleWithSpec triggers any logic, so i'm updating it.

Differential Revision: D44450687

fbshipit-source-id: 97520424e4c781cf97aaaf1cfa55e2c1dc63761a
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D44450687

1 similar comment
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D44450687

philIip added a commit to philIip/react-native that referenced this pull request Mar 28, 2023
)

Summary:
Pull Request resolved: facebook#36672

Changelog: [Internal]

if we look at usages of ReactModuleWithSpec, we see that it's existence was to simply identify generated native modules since the inheritance graph of native modules was different if they were generated.

this was introduced before we created the TurboModule interface, which all codegenned native modules also conform to. since that exists now, there's no need for both of these. this is the only callsite in our code where ReactModuleWithSpec triggers any logic, so i'm updating it.

Reviewed By: javache

Differential Revision: D44450687

fbshipit-source-id: c89840c4c94fba14afd80939b80dbab4672d74d1
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D44450687

philIip added a commit to philIip/react-native that referenced this pull request Mar 29, 2023
)

Summary:
Pull Request resolved: facebook#36672

Changelog: [Internal]

if we look at usages of ReactModuleWithSpec, we see that it's existence was to simply identify generated native modules since the inheritance graph of native modules was different if they were generated.

this was introduced before we created the TurboModule interface, which all codegenned native modules also conform to. since that exists now, there's no need for both of these. this is the only callsite in our code where ReactModuleWithSpec triggers any logic, so i'm updating it.

Reviewed By: javache

Differential Revision: D44450687

fbshipit-source-id: 4ec83ffc71c78eb37387bd931f9226c4e35dca97
philIip added a commit to philIip/react-native that referenced this pull request Mar 29, 2023
)

Summary:
Pull Request resolved: facebook#36672

Changelog: [Internal]

if we look at usages of ReactModuleWithSpec, we see that it's existence was to simply identify generated native modules since the inheritance graph of native modules was different if they were generated.

this was introduced before we created the TurboModule interface, which all codegenned native modules also conform to. since that exists now, there's no need for both of these. this is the only callsite in our code where ReactModuleWithSpec triggers any logic, so i'm updating it.

Reviewed By: javache

Differential Revision: D44450687

fbshipit-source-id: 03af1cad1b1e7f89b008727137974d1ef57ceea2
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D44450687

1 similar comment
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D44450687

philIip added a commit to philIip/react-native that referenced this pull request Mar 29, 2023
)

Summary:
Pull Request resolved: facebook#36672

Changelog: [Internal]

if we look at usages of ReactModuleWithSpec, we see that it's existence was to simply identify generated native modules since the inheritance graph of native modules was different if they were generated.

this was introduced before we created the TurboModule interface, which all codegenned native modules also conform to. since that exists now, there's no need for both of these. this is the only callsite in our code where ReactModuleWithSpec triggers any logic, so i'm updating it.

Reviewed By: javache

Differential Revision: D44450687

fbshipit-source-id: 3d7d4abdbf9979a9c6a37d7400ac7b52d94e6560
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D44450687

philIip added a commit to philIip/react-native that referenced this pull request Mar 29, 2023
)

Summary:
Pull Request resolved: facebook#36672

Changelog: [Internal]

if we look at usages of ReactModuleWithSpec, we see that it's existence was to simply identify generated native modules since the inheritance graph of native modules was different if they were generated.

this was introduced before we created the TurboModule interface, which all codegenned native modules also conform to. since that exists now, there's no need for both of these. this is the only callsite in our code where ReactModuleWithSpec triggers any logic, so i'm updating it.

Reviewed By: javache

Differential Revision: D44450687

fbshipit-source-id: a84e04e1b8fc403545bfd689836995f9e61b8624
philIip added a commit to philIip/react-native that referenced this pull request Mar 29, 2023
)

Summary:
Pull Request resolved: facebook#36672

Changelog: [Internal]

if we look at usages of ReactModuleWithSpec, we see that it's existence was to simply identify generated native modules since the inheritance graph of native modules was different if they were generated.

this was introduced before we created the TurboModule interface, which all codegenned native modules also conform to. since that exists now, there's no need for both of these. this is the only callsite in our code where ReactModuleWithSpec triggers any logic, so i'm updating it.

Reviewed By: javache

Differential Revision: D44450687

fbshipit-source-id: be205d38ffab4ddabf617e133ca5fb82d0ee35bc
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D44450687

facebook-github-bot pushed a commit that referenced this pull request Mar 29, 2023
Summary:
Pull Request resolved: #36672

Changelog: [Internal]

if we look at usages of ReactModuleWithSpec, we see that it's existence was to simply identify generated native modules since the inheritance graph of native modules was different if they were generated.

this was introduced before we created the TurboModule interface, which all codegenned native modules also conform to. since that exists now, there's no need for both of these. this is the only callsite in our code where ReactModuleWithSpec triggers any logic, so i'm updating it.

bypass-github-export-checks

Reviewed By: javache

Differential Revision: D44450687

fbshipit-source-id: f9c26fce8e360b6e319153aad83fc788079bac91
@github-actions
Copy link

This pull request was successfully merged by @philIip in bd7aa2c.

When will my fix make it into a release? | Upcoming Releases

@github-actions github-actions bot added the Merged This PR has been merged. label Mar 29, 2023
jeongshin pushed a commit to jeongshin/react-native that referenced this pull request May 7, 2023
)

Summary:
Pull Request resolved: facebook#36672

Changelog: [Internal]

if we look at usages of ReactModuleWithSpec, we see that it's existence was to simply identify generated native modules since the inheritance graph of native modules was different if they were generated.

this was introduced before we created the TurboModule interface, which all codegenned native modules also conform to. since that exists now, there's no need for both of these. this is the only callsite in our code where ReactModuleWithSpec triggers any logic, so i'm updating it.

bypass-github-export-checks

Reviewed By: javache

Differential Revision: D44450687

fbshipit-source-id: f9c26fce8e360b6e319153aad83fc788079bac91
OlimpiaZurek pushed a commit to OlimpiaZurek/react-native that referenced this pull request May 22, 2023
)

Summary:
Pull Request resolved: facebook#36672

Changelog: [Internal]

if we look at usages of ReactModuleWithSpec, we see that it's existence was to simply identify generated native modules since the inheritance graph of native modules was different if they were generated.

this was introduced before we created the TurboModule interface, which all codegenned native modules also conform to. since that exists now, there's no need for both of these. this is the only callsite in our code where ReactModuleWithSpec triggers any logic, so i'm updating it.

bypass-github-export-checks

Reviewed By: javache

Differential Revision: D44450687

fbshipit-source-id: f9c26fce8e360b6e319153aad83fc788079bac91
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. fb-exported Merged This PR has been merged. p: Facebook Partner: Facebook Partner
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants