mirror of
https://github.com/facebook/react-native.git
synced 2024-11-22 06:29:46 +00:00
c5653a03fb
Summary: Having React Native support every Apple platform is tough to achieve as it introduces many platform-specific ifdefs. On the other side, maintaining an OOT platform fork is already a demanding job, so to make it easier I propose adding ifdefs for iOS-specific code. Thanks to this change, OOT platforms can focus on their OS-specific features while the core is also adding iOS-specific features behind ifdefs. Fortunately, **most of the code on Apple platforms can be shared** and this PR aims to introduce better support for this and to minimize OOT fork's surface. In this example `RCTDeviceInfo.mm` has support for handling orientation changes and the availability of this feature across Apple OS looks as follows: | Platform | Support | | ------------- | ------------- | | macOS | ❌ | | tvOS | ❌ | | visionOS | ❌ | | iOS/iPadOS | ✅ | Here is a table from `TargetConditionals.h` header file which shows the coverage of `TARGET_OS_IOS` macro. (It supports both iOS and iPadOS) ![CleanShot 2024-06-26 at 11 51 47@2x](https://github.com/facebook/react-native/assets/52801365/5f7dc99a-72b8-46ce-87d4-896bdb017269) ## Changelog: <!-- Help reviewers and the release process by writing your own changelog entry. Pick one each for the category and type tags: [ANDROID|GENERAL|IOS|INTERNAL] [BREAKING|ADDED|CHANGED|DEPRECATED|REMOVED|FIXED|SECURITY] - Message For more details, see: https://reactnative.dev/contributing/changelogs-in-pull-requests --> [INTERNAL] [ADDED] - Conditionals for iOS only code in RCTDeviceInfo.mm Pull Request resolved: https://github.com/facebook/react-native/pull/45176 Test Plan: CI Green Reviewed By: christophpurrer Differential Revision: D59106103 Pulled By: cipolleschi fbshipit-source-id: 594a9d2451024baddfbc9cd3bc1ccfb8829fc31c
100 lines
2.3 KiB
Plaintext
100 lines
2.3 KiB
Plaintext
GEM
|
|
remote: https://rubygems.org/
|
|
specs:
|
|
CFPropertyList (3.0.6)
|
|
rexml
|
|
activesupport (7.0.8)
|
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
i18n (>= 1.6, < 2)
|
|
minitest (>= 5.1)
|
|
tzinfo (~> 2.0)
|
|
addressable (2.8.5)
|
|
public_suffix (>= 2.0.2, < 6.0)
|
|
algoliasearch (1.27.5)
|
|
httpclient (~> 2.8, >= 2.8.3)
|
|
json (>= 1.5.1)
|
|
atomos (0.1.3)
|
|
claide (1.1.0)
|
|
cocoapods (1.14.2)
|
|
addressable (~> 2.8)
|
|
claide (>= 1.0.2, < 2.0)
|
|
cocoapods-core (= 1.14.2)
|
|
cocoapods-deintegrate (>= 1.0.3, < 2.0)
|
|
cocoapods-downloader (>= 2.0)
|
|
cocoapods-plugins (>= 1.0.0, < 2.0)
|
|
cocoapods-search (>= 1.0.0, < 2.0)
|
|
cocoapods-trunk (>= 1.6.0, < 2.0)
|
|
cocoapods-try (>= 1.1.0, < 2.0)
|
|
colored2 (~> 3.1)
|
|
escape (~> 0.0.4)
|
|
fourflusher (>= 2.3.0, < 3.0)
|
|
gh_inspector (~> 1.0)
|
|
molinillo (~> 0.8.0)
|
|
nap (~> 1.0)
|
|
ruby-macho (>= 2.3.0, < 3.0)
|
|
xcodeproj (>= 1.23.0, < 2.0)
|
|
cocoapods-core (1.14.2)
|
|
activesupport (>= 5.0, < 8)
|
|
addressable (~> 2.8)
|
|
algoliasearch (~> 1.0)
|
|
concurrent-ruby (~> 1.1)
|
|
fuzzy_match (~> 2.0.4)
|
|
nap (~> 1.0)
|
|
netrc (~> 0.11)
|
|
public_suffix (~> 4.0)
|
|
typhoeus (~> 1.0)
|
|
cocoapods-deintegrate (1.0.5)
|
|
cocoapods-downloader (2.0)
|
|
cocoapods-plugins (1.0.0)
|
|
nap
|
|
cocoapods-search (1.0.1)
|
|
cocoapods-trunk (1.6.0)
|
|
nap (>= 0.8, < 2.0)
|
|
netrc (~> 0.11)
|
|
cocoapods-try (1.2.0)
|
|
colored2 (3.1.2)
|
|
concurrent-ruby (1.2.2)
|
|
escape (0.0.4)
|
|
ethon (0.16.0)
|
|
ffi (>= 1.15.0)
|
|
ffi (1.16.3)
|
|
fourflusher (2.3.1)
|
|
fuzzy_match (2.0.4)
|
|
gh_inspector (1.1.3)
|
|
httpclient (2.8.3)
|
|
i18n (1.14.1)
|
|
concurrent-ruby (~> 1.0)
|
|
json (2.6.3)
|
|
minitest (5.20.0)
|
|
molinillo (0.8.0)
|
|
nanaimo (0.3.0)
|
|
nap (1.1.0)
|
|
netrc (0.11.0)
|
|
public_suffix (4.0.7)
|
|
rexml (3.2.6)
|
|
ruby-macho (2.5.1)
|
|
typhoeus (1.4.0)
|
|
ethon (>= 0.9.0)
|
|
tzinfo (2.0.6)
|
|
concurrent-ruby (~> 1.0)
|
|
xcodeproj (1.23.0)
|
|
CFPropertyList (>= 2.3.3, < 4.0)
|
|
atomos (~> 0.1.3)
|
|
claide (>= 1.0.2, < 2.0)
|
|
colored2 (~> 3.1)
|
|
nanaimo (~> 0.3.0)
|
|
rexml (~> 3.2.4)
|
|
|
|
PLATFORMS
|
|
ruby
|
|
|
|
DEPENDENCIES
|
|
activesupport (>= 6.1.7.5, < 7.1.0)
|
|
cocoapods (~> 1.13, != 1.15.1, != 1.15.0)
|
|
|
|
RUBY VERSION
|
|
ruby 3.2.0p0
|
|
|
|
BUNDLED WITH
|
|
2.4.12
|