Commit Graph
26313 Commits
Author SHA1 Message Date
Nicola Corti 588f0c5ce6 Move React Native publishing URLs to Central Portal (#51693)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/51693

This moves React Native to use the Central Portal URLs rather than the legacy OSSRH ones.
See https://github.com/gradle-nexus/publish-plugin for more context.

Changelog:
[Internal] [Changed] -

Reviewed By: cipolleschi

Differential Revision: D75673984

fbshipit-source-id: 1de6746809eed72f232eac0c3fb4d809c2046620
2025-06-16 10:47:30 +01:00
Distiller 14e21de3be [0.71.19] Bump version numbers v0.71.19 2024-04-29 09:23:12 +00:00
Riccardo Cipolleschi d8d096d995 [LOCAL] Bump Hermes to remove iOS RRAPI 2024-04-26 14:30:23 +01:00
Riccardo CipolleschiandPhillip Pan d669ff7df8 [iOS][Privacy Manifest] Set up privacy manifest for React Native 0.71 (#44281)
* add privacy manifest to pod install

Summary:
Changelog: [iOS][Added]

this creates the RN privacy manifest in the ios build step if user has not created one yet. the reasons have been added for the following APIs:

NSPrivacyAccessedAPICategoryFileTimestamp
- C617.1: We use fstat and stat in a few places in the C++ layer. We use these to read information about the JavaScript files in RN.

NSPrivacyAccessedAPICategoryUserDefaults
- CA92.1: We access NSUserDefaults in a few places.
1) To store RTL preferences
2) As part of caching server URLs for developer mode
3) A generic native module that wraps NSUserDefaults

NSPrivacyAccessedAPICategorySystemBootTime
- 35F9.1: Best guess reason from RR API pulled in by boost

Reviewed By: cipolleschi

Differential Revision: D53687232

fbshipit-source-id: 6dffb1a6013f8f29438a49752e47ed75c13f4a5c

* add privacy manifest to hello world template

Summary:
Changelog: [iOS][Added]

this change will be included in the RN CLI. so all new apps running the RN CLI to get created will get this manifest. the reasons have been added for the following APIs:

NSPrivacyAccessedAPICategoryFileTimestamp
- C617.1: We use fstat and stat in a few places in the C++ layer. We use these to read information about the JavaScript files in RN.

NSPrivacyAccessedAPICategoryUserDefaults
- CA92.1: We access NSUserDefaults in a few places.
1) To store RTL preferences
2) As part of caching server URLs for developer mode
3) A generic native module that wraps NSUserDefaults

NSPrivacyAccessedAPICategorySystemBootTime
- 35F9.1: Best guess reason from RR API pulled in by boost

Reviewed By: cipolleschi

Differential Revision: D53682756

fbshipit-source-id: 0426fe0002a3bc8b45ef24053ac4228c9f61eb85

---------

Co-authored-by: Phillip Pan <phillippan@meta.com>
2024-04-26 14:27:37 +01:00
hurali97 35ee876f0d Local: update rn-tester podfile 2024-04-10 00:09:58 +05:00
Distiller 6b89acc1ab [0.71.18] Bump version numbers v0.71.18 2024-04-09 16:21:26 +00:00
hurali97 631c013126 Pick adaf5eb fixes ##133 2024-04-03 18:05:45 +05:00
Muhammad Hur Ali 87b14b49ad Merge pull request #43345 from facebook/cipolleschi/fix-flipper-0.71
[RN][iOS][0.71] Fix flipper for Xcode 15.3
2024-04-02 17:56:14 +05:00
Riccardo Cipolleschi 2944ca6554 [RN][iOS][0.71] Fix flipper for Xcode 15.3 2024-03-06 19:31:18 +00:00
Distiller ede87f82a1 [0.71.17] Bump version numbers v0.71.17 2024-02-27 01:05:02 +00:00
Luna Wei b4d8ae5b1b local - choco -y 2024-02-26 13:15:00 -08:00
Luna Wei 55d42d9ae8 local - remove test_windows 2024-02-26 12:00:47 -08:00
Luna Wei 6e59725c6b local - update podfile.lock for rntester 2024-02-26 11:09:09 -08:00
Szymon Rybczak 28998075d9 Update CLI to 10.2.7 (#43097) 2024-02-26 10:01:36 -08:00
Distiller 8fb6ae12c9 [0.71.16] Bump version numbers v0.71.16 2024-01-30 18:02:46 +00:00
Muhammad Hur Ali 794bb0b6f7 Merge pull request #42706 from facebook/hur/cp-3869ae4
Cherry-picking 'Avoid using Cocoapods 1.15 until it fixes an issue affection RN. (#42702)' onto 0.71
2024-01-29 20:50:52 +05:00
hurali97 666820fa98 Avoid using Cocoapods 1.15 until it fixes an issue affection RN. (#42702)
Summary:
Cocoapods 1.15 (https://github.com/facebook/react-native/issues/42698) current breaks the build, limit to version >= 1.13 & < 1.15

This is currently broken and affecting users, we'll remove this limit once Cocopods fixes the regression.  It's currently blocking 0.73.3.
[iOS][Fixed] don't allow cocoapods 1.15.

<!-- 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

Pull Request resolved: https://github.com/facebook/react-native/pull/42702

Test Plan:
```
bundle exec pod install
```

Reviewed By: cipolleschi

Differential Revision: D53180111

Pulled By: blakef

fbshipit-source-id: 4c5dd11db6d208e8d71249443a8f85e601913abd
2024-01-29 19:34:01 +05:00
Muhammad Hur Ali c6b6132112 Merge pull request #42662 from facebook/nc/cp-96ed1190
Cherry-picking 'Call super.onRequestPermissionsResult in ReactActivity (#42478)' onto 0.71
2024-01-26 11:30:41 +05:00
LIM Albert 8593306b34 Cherry-picking 'Call super.onRequestPermissionsResult in ReactActivity (#42478)' onto 0.71 2024-01-25 13:52:14 +00:00
Muhammad Hur Ali d6fe029858 Merge pull request #42283 from facebook/hur/disable-bitcode-hermes
[RN][iOS] Disable bitcode for Hermes
2024-01-25 18:35:34 +05:00
Muhammad Hur Ali bb592ef0dd Merge pull request #42229 from facebook/cipolleschi/fix-_jump_fcontex-071
[RN][iOS] Fix symbol not found _jump_fcontext with use_frameworks!
2024-01-15 20:56:24 +05:00
Muhammad Hur Ali 568031ecb2 Merge pull request #42222 from joe-sam/patch-symbolication_0.71
Apply stack Symbolication patch part 1 & 2 to 0.71-stable (#41377) (#42079) (original #40914)
2024-01-15 20:54:41 +05:00
hurali97 9d6a740bf7 fix: path to build-apple-framework 2024-01-15 19:58:24 +05:00
hurali97 ddbf5f804b feat: disable hermes bitcode from 0.71 2024-01-15 19:56:22 +05:00
Riccardo Cipolleschi c38cdb60ca [RN][iOS] Fix flags 2024-01-10 13:26:12 +00:00
joe-sam 022a9f7835 Symbolication stack fix (0.71.x) 2024-01-09 13:45:13 +05:30
Distiller 5761ad6437 [0.71.15] Bump version numbers v0.71.15 2024-01-08 18:48:53 +00:00
Alex Hunt 7538386fbe [LOCAL] Add monorepo paths to .gitignore 2024-01-08 13:27:57 +00:00
Muhammad Hur Ali 4b38d73792 Merge pull request #42177 from facebook/cipolleschi/071-fix-boost-url
[0.71][RN][General] Migrate boost download url away from JFrog
2024-01-08 16:08:52 +05:00
Riccardo Cipolleschi ab19fd6aef [LOCAL][RN][General]Migrate away from JFrog to download boost 2024-01-08 10:13:02 +00:00
Muhammad Hur Ali 3df6a77468 Merge pull request #42141 from facebook/hur/align-packages-for-0.71.15
chore: align package versions
2024-01-08 13:15:52 +05:00
hurali97 d323b14ae4 chore: align package versions 2024-01-04 17:30:58 +05:00
hurali97 028e2f0d6e bumped packages versions
#publish-packages-to-npm
2024-01-04 16:58:51 +05:00
Luna c74602fe47 Fix react-native-codegen (#42106) 2024-01-03 09:55:18 -08:00
aeb629623f chore: cherry picks for 0.71.15 (#41993)
* Fix android platform border color (#39893)

Summary:
If you try to apply PlatformColor to borders on Android app will crash with the next error:

"Error while updating property 'borderColor' of a view managed by: RCTView"

## Changelog:

[ANDROID] [FIXED] - Fix android crash when apply PlatformColor to borders

Pull Request resolved: https://github.com/facebook/react-native/pull/39893

Test Plan:
In RNTester example, go to APIs -> PlatformColor
|    Before  | After |
| ----------- | ----------- |
|  <img src="https://github.com/facebook/react-native/assets/70860930/66ac2880-53da-4438-bd9a-332f8ea40645" alt="drawing" width="200"/>    | <img src="https://github.com/facebook/react-native/assets/70860930/151f58a1-d857-4b3d-9ec6-de74eb065127" alt="drawing" width="200"/>      |

Reviewed By: NickGerleman

Differential Revision: D50011758

Pulled By: javache

fbshipit-source-id: ea06c18c6aef4b6731e9b9b87422a1e0d13de208

* Android: fix ClassCastException in ReactRootView.java when software keyboard is shown (#40755)

Summary:
Fixes https://github.com/facebook/react-native/issues/40754

Hi all!
We noticed that our app started to crash after bumping to RN v0.71.13, anyways after a deeper investigation we also found that the crash occurs in the latest version as well.

Crash log:
```
E  FATAL EXCEPTION: main
Process: com.nfl.fantasy.core.android.debug, PID: 6034
java.lang.ClassCastException: android.app.ContextImpl cannot be cast to android.app.Activity
at com.facebook.react.ReactRootView$CustomGlobalLayoutListener.getActivity(ReactRootView.java:926)
at com.facebook.react.ReactRootView$CustomGlobalLayoutListener.checkForKeyboardEvents(ReactRootView.java:946)
at com.facebook.react.ReactRootView$CustomGlobalLayoutListener.onGlobalLayout(ReactRootView.java:912)
at android.view.ViewTreeObserver.dispatchOnGlobalLayout(ViewTreeObserver.java:1061)
```
The code which causes ClassCastException is following [here](https://github.com/facebook/react-native/blob/ea88fbe229e1d276753ee8e118184274fc872138/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/ReactRootView.java#L864).
In this code explicit type conversion to Activity is not safe because it's not guaranteed by the compiler that context will be compatible with Activity type.
The appropriate issue [has been filed](https://github.com/facebook/react-native/issues/40754).

<!-- 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
-->

[ANDROID] [FIXED] - Fixed crash occurring in certain native views when keyboard events are fired.

Pull Request resolved: https://github.com/facebook/react-native/pull/40755

Test Plan:
Tested it manually with the [reference application](https://github.com/kot331107/rnCrashReproducer).  Repro steps are as follows:

- Build and run the app on Android
- Tap the button "Open Modal"
- You should see the red popup fragment to the bottom of the screen
- Tap on the text input to open software keyboard
- Expected: it should show the keyboard and no crash happens.

Reviewed By: arushikesarwani94

Differential Revision: D50198424

Pulled By: NickGerleman

fbshipit-source-id: a5a6d86334856f4ffbe818150da5793380da4702

* chore: bump podfile.lock

---------

Co-authored-by: Ivan Alexandrov <axinvd@gmail.com>
Co-authored-by: Filipp Mikheev <kot331107@gmail.com>
2024-01-03 09:53:49 -08:00
hurali97 0bc2dd03c1 chore: bump cli to 10.2.6 2023-12-19 15:08:01 +00:00
Ken Tominaga 16a605b6a3 Fix overriding EXCLUDED_ARCHS when installing Hermes on RN v0.71 (#39763) 2023-12-19 14:35:12 +00:00
Riccardo Cipolleschi bdc0ef3466 [RN][CI]Update node installation on debian (0.71) (#41277) 2023-12-19 14:34:47 +00:00
Distiller b0a27d2b4b [0.71.14] Bump version numbers v0.71.14 2023-10-12 13:28:06 +00:00
Riccardo Cipolleschi 4b386c9e87 cipolleschi/fix CI (#40793) 2023-10-11 17:51:03 +01:00
Riccardo Cipolleschi a2b3631075 Fix Gemfile, setting Active support to < 7.1.0 (#39828)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/39828

Active Suppert released a new Gem which is incompatible with Cocoapods 1.13.0, the latest release, as they removed a method used by cocoapods.

This fix ensures that we install compatible versions of the Gem.

[iOS][Fixed] - Set the max version of Active support to 7.0.8

Reviewed By: hoxyq

Differential Revision: D49949782

fbshipit-source-id: 278097502d3a416567cc8c0b90090fee4fb21503
2023-10-05 18:08:24 +02:00
Marek Fořt 287482e57f [Local] Xcode 15 patch (#39754)
* [Local] Xcode 15 patch

* Update rn-tester pods
2023-10-04 15:57:29 +02:00
fortmarek 14361bf74b [LOCAL] Aligned react-native-codegen package version 2023-09-25 09:55:07 +02:00
fortmarek d419a1f845 bumped packages versions
#publish-packages-to-npm
2023-09-25 09:45:02 +02:00
Saad Najmi fa9486227e Guard JSGlobalContextSetInspectable behind a compile time check for Xcode 14.3+ (#39037)
Summary:
An earlier [change](https://github.com/facebook/react-native/commit/8b1bf058c4bcbf4e5ca45b0056217266a1ed870c) I made (that huntie resubmitted) only works on Xcode 14.3+ (See more info [here](https://github.com/react-native-community/discussions-and-proposals/discussions/687)). This change adds the appropriate compiler checks so that the change is compatible with Xcode 14.2 and earlier, and therefore cherry-pickable to 0.71 and 0.72.

The check works by checking if iOS 16.4+ is defined, which is the closest proxy I could find for "Is this Xcode 14.3".

## Changelog:

[IOS] [CHANGED] - Guard `JSGlobalContextSetInspectable` behind a compile time check for Xcode 14.3+

Pull Request resolved: https://github.com/facebook/react-native/pull/39037

Test Plan: I can't actually test on Xcode 14.2 (it won't launch on my MacBook 😢), but I made a similar [PR](https://github.com/microsoft/react-native-macos/pull/1848) in React Native macOS, whose CI checks run against Xcode 14.2 and I'm getting passing checks there.

Reviewed By: huntie

Differential Revision: D48414196

Pulled By: NickGerleman

fbshipit-source-id: ba10a6505dd11d982cc56c02bf9f7dcdc104bbec
2023-09-25 09:31:16 +02:00
Alex Hunt 6e55926372 Re-enable direct debugging with JSC on iOS 16.4+ (#37914)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/37914

Restores https://github.com/facebook/react-native/pull/37874 (reverted earlier today), with fix for `JSCRuntime.cpp` build on Android.

Changelog: None

Reviewed By: cortinico

Differential Revision: D46762984

fbshipit-source-id: 6d56f81b9d0c928887860993b2b729ed96c0734c
2023-09-25 09:31:11 +02:00
Stian Jensen 37de064b15 Bump jscodeshift to 0.14 (#35356)
Summary:
Jscodeshift has become maintained again in the past year, and has gotten rid of quite a good chunk of old dependencies that are no longer needed!

<!-- Help reviewers and the release process by writing your own changelog entry. For an example, see:
https://reactnative.dev/contributing/changelogs-in-pull-requests
-->

[Internal] [Changed] - update jscodeshift

Pull Request resolved: https://github.com/facebook/react-native/pull/35356

Reviewed By: cipolleschi

Differential Revision: D41325527

Pulled By: rshest

fbshipit-source-id: 666b25c9bb3b1720479e9e098968b3b983adc2b4
2023-09-25 09:30:54 +02:00
Riccardo Cipolleschi 9c2efff20d [LOCAL] Copy hermes ruby files to hermes folder in local E2E test (#39577) 2023-09-22 14:35:03 +01:00
Thibault Malbranche 63bb3ba5a9 [Local]: fix min_ios_version after cherry picks 2023-09-19 13:35:38 +02:00
Riccardo Cipolleschi 647e09dc4c Add ld_classic flag to Hermes when building for Xcode 15 (#39516)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/39516

With Xcode15, Apple rewrote the C++ linker.
This is a breaking change that does not work with weak symbols.
As a workaround, apple is suggesting to add `-ld_classic` to the linker in order to readd support for weak symbols. The flag does not exists for Xcode 14.3 or lower, so we need to add it conditionally.

With this change, we introduce a couple of checks in the Hermes build logic:
1. Detect the version of Xcode that is used
2. Add the new flag to `HERMES_EXTRA_LINKER_FLAGS` if Xcode version is 15.

[Internal] - Make hermes build properly with Xcode 15

Reviewed By: cortinico, dmytrorykun

Differential Revision: D49368675

fbshipit-source-id: 62d8ed81855c426f56ed94b6a2d6da2eb882b355
2023-09-19 13:33:31 +02:00