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

Gate Platform.isTesting via __DEV__ on the native level #38339

Closed
wants to merge 1 commit into from

Conversation

rshest
Copy link
Contributor

@rshest rshest commented Jul 13, 2023

Summary:

Changelog:

[Internal] -

In D13050583, the Platform.isTesting was unconditionally forced to false in __DEV__ on JS side.

On some platforms, we may want to run tests in the release mode.

This hoists these gatings down to the corresponding platforms' native modules.

Differential Revision: D47438069

@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 fb-exported labels Jul 13, 2023
@facebook-github-bot
Copy link
Contributor

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

@analysis-bot
Copy link

analysis-bot commented Jul 13, 2023

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 8,833,479 +20
android hermes armeabi-v7a 8,142,639 +15
android hermes x86 9,337,813 +1
android hermes x86_64 9,180,521 +11
android jsc arm64-v8a 9,446,557 +145
android jsc armeabi-v7a 8,628,107 +145
android jsc x86 9,528,718 +137
android jsc x86_64 9,772,173 +131

Base commit: 4048317
Branch: main

Summary:
Pull Request resolved: facebook#38339

## Changelog:
[Internal] -

In D13050583, the `Platform.isTesting` was unconditionally forced to `false` in `__DEV__` on JS side.

On some platforms, we may want to run tests in the release mode.

This hoists these gatings down to the corresponding platforms' native modules.

Reviewed By: ryancat

Differential Revision: D47438069

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

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

@rshest rshest force-pushed the export-D47438069 branch from 590b253 to 42d9160 Compare July 13, 2023 23:31
@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Jul 14, 2023
@facebook-github-bot
Copy link
Contributor

This pull request has been merged in ecb58a1.

juniorklawa pushed a commit to juniorklawa/react-native that referenced this pull request Jul 20, 2023
Summary:
Pull Request resolved: facebook#38339

## Changelog:
[Internal] -

In D13050583, the `Platform.isTesting` was unconditionally forced to `false` in `__DEV__` on JS side.

On some platforms, we may want to run tests in the release mode.

This hoists these gatings down to the corresponding platforms' native modules.

Reviewed By: ryancat

Differential Revision: D47438069

fbshipit-source-id: 5bae3df9873f659f65179df93e727108d0062047
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