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

Reduce visibility of ReactHost.destroy() method #37693

Closed
wants to merge 3 commits into from

Conversation

mdvacca
Copy link
Contributor

@mdvacca mdvacca commented Jun 5, 2023

Summary:
This diff reduces the visibility of ReactHost.destroy() method

changelog: [internal] internal

Reviewed By: luluwu2032

Differential Revision: D46293388

@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 Jun 5, 2023
@facebook-github-bot
Copy link
Contributor

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

@analysis-bot
Copy link

analysis-bot commented Jun 5, 2023

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 8,744,467 -1
android hermes armeabi-v7a 8,056,628 -3
android hermes x86 9,235,569 +0
android hermes x86_64 9,086,369 -2
android jsc arm64-v8a 9,307,267 +0
android jsc armeabi-v7a 8,496,809 -1
android jsc x86 9,369,287 +1
android jsc x86_64 9,624,205 -2

Base commit: 396cdac
Branch: main

mdvacca added a commit to mdvacca/react-native that referenced this pull request Jun 6, 2023
Summary:
Pull Request resolved: facebook#37693

This diff reduces the visibility of ReactHost.destroy() method

changelog: [internal] internal

Reviewed By: philIip, luluwu2032

Differential Revision: D46293388

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

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

mdvacca added a commit to mdvacca/react-native that referenced this pull request Jun 6, 2023
Summary:
Pull Request resolved: facebook#37693

This diff reduces the visibility of ReactHost.destroy() method

changelog: [internal] internal

Reviewed By: philIip, luluwu2032

Differential Revision: D46293388

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

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

mdvacca and others added 3 commits June 6, 2023 16:20
…tHost API

Summary:
This diff introduces the new generic class BoltsFutureTask<> that will be used by ReactHost to expose async task in its API.
The goal of BoltsFutureTask is to avoid leadking the bolts.Task dependency into the ReactHost API.

Public methods of this class follow the spec defined in the Future interface, see: https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/Future.html. I didn't add javadocs to avoid duplicated documentation with Future and also
becuase this is private class.

changelog: [internal] internal

Differential Revision: D46170466

fbshipit-source-id: 4500384a6bab227caab570977040528955b5beab
Summary:
In this diff I'm reducing visibility of RCTDeviceEventEmitter interface in ReactContext.

This is an internal interface that has no usages externally (neither at Meta or github source)

changelog: [internal] internal

Differential Revision: D46241623

fbshipit-source-id: 9abef4be32f4570e7ed96ae55b3a881ad5c618d8
Summary:
Pull Request resolved: facebook#37693

This diff reduces the visibility of ReactHost.destroy() method

changelog: [internal] internal

Reviewed By: philIip, luluwu2032

Differential Revision: D46293388

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

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

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Jun 7, 2023
@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 57e79fa.

adamaveray added a commit to adamaveray/react-native that referenced this pull request Jun 8, 2023
* main: (1824 commits)
  Convert FallbackJSBundleLoaderTest to Kotlin (facebook#37750)
  Migrate JSPackagerClientTest to Kotlin (facebook#37747)
  (refactor): kotlin-ify `ShareModuleTest.java` (facebook#37746)
  Upgrade `@react-native/codegen-typescript-test`'s Jest dependency to Jest 29 (facebook#37745)
  Move flow-typed definitions to repo root (facebook#37636)
  Convert InterpolatorTypeTest to Kotlin (facebook#37724)
  Update documentation of ReactHost.reload method (facebook#37691)
  Reduce visibility of ReactHost.destroy() method (facebook#37693)
  Reduce visibility in React Context (facebook#37695)
  Remove InstanceHandleHelper as unused (facebook#37740)
  Convert CompositeReactPackageTest to Kotlin (facebook#37734)
  Add license header to SetSpanOperation.java
  Convert FakeEventDispatcher to kotlin (facebook#37739)
  Convert FakeRCTEventEmitter to Kotlin (facebook#37733)
  Convert InteropModuleRegistryTest to Kotlin (facebook#37735)
  Bump `autorebase.yml` to `v1.8` (facebook#37584)
  Convert StackTraceHelperTest to Kotlin (facebook#37741)
  Convert BlobModuleTest class to Kotlin (facebook#37719)
  Update prettier to v2.8.8 (facebook#37738)
  Introduce BoltsFutureTask class to avoid leaking bolts.Task into ReactHost API (facebook#37744)
  ...

# Conflicts:
#	BUCK
#	packages/react-native/React/Views/UIResponder+FirstResponder.h
#	packages/react-native/React/Views/UIResponder+FirstResponder.m
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