Commit Graph
27280 Commits
Author SHA1 Message Date
Nicola Corti 75dc002a52 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:18 +01:00
distiller 6304cce015 [0.72.17] Bump version numbers v0.72.17 2024-08-19 14:00:35 +00:00
Riccardo Cipolleschi ce34674382 [LOCAL] bump podfile.lock 2024-08-19 14:55:54 +01:00
Riccardo Cipolleschi ab7e77c024 Revert "[LOCAL] Bump Hermes"
This reverts commit ccdb8b58db.
2024-08-19 11:20:32 +01:00
Riccardo Cipolleschi cedd6385b5 Revert "[0.72.17] Bump version numbers"
This reverts commit bb8ddab2a8.
2024-08-19 11:16:12 +01:00
Riccardo Cipolleschi ccdb8b58db [LOCAL] Bump Hermes 2024-08-19 10:32:17 +01:00
Siddharth 123cec3de5 update podfile.lock 2024-08-16 16:39:17 -07:00
distiller bb8ddab2a8 [0.72.17] Bump version numbers 2024-08-16 22:40:57 +00:00
Siddharth Kulkarni 524a48dce6 update Podfile.lock 2024-08-01 14:16:45 -07:00
distiller 337dcaa54a [0.72.16] Bump version numbers v0.72.16 2024-08-01 20:14:59 +00:00
siddharthkul da0f8ac060 Fix Privacy Manifest file path by providing targets 2024-07-23 08:59:35 -07:00
Riccardo Cipolleschiandsiddharthkul 350779af17 [CI] Move machines to M1 for 0.72 2024-07-22 11:17:43 -07:00
Rui Yingandsiddharthkul b5b3f3c43d Handle the case where the file reference doesn't have a path (#44410) 2024-07-22 11:17:10 -07:00
Alfonso Curbelo e24be3072c update Podfile.lock 2024-06-13 10:21:01 -04:00
Distiller 4cee0a4c06 [0.72.15] Bump version numbers v0.72.15 2024-06-12 13:29:08 +00:00
Alfonso Curbelo 5c77748632 Fix bad cherry-pick conflict in react_native_pods (2) 2024-06-10 12:56:28 -04:00
Alfonso Curbelo b7c2a1c88d Fix bad cherry-pick conflict in react_native_pods 2024-06-10 11:48:12 -04:00
Renaud ChaputandAlfonso Curbelo 38ad610021 Fix Privacy Manifest generator when it does not contain a NSPrivacyAccessedAPITypes key (#44628)
Summary:
XCode privacy files might not contain a `NSPrivacyAccessedAPITypes` key, which causes the following error:

```
[!] An error occurred while processing the post-install hook of the Podfile.

undefined method `each' for nil

node_modules/react-native/scripts/cocoapods/privacy_manifest_utils.rb:111:in `block (4 levels) in get_used_required_reason_apis'
node_modules/react-native/scripts/cocoapods/privacy_manifest_utils.rb:106:in `each'
node_modules/react-native/scripts/cocoapods/privacy_manifest_utils.rb:106:in `block (3 levels) in get_used_required_reason_apis'
```

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

[IOS] [FIXED] - Privacy Manifest aggregation failing due to no `NSPrivacyAccessedAPITypes` key

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

Test Plan: I tested this patch on our own app and it solved the issue.

Reviewed By: christophpurrer

Differential Revision: D57618425

Pulled By: cipolleschi

fbshipit-source-id: 1a36ab5a1bb45b8507d3663b782c95258d97c8a4
2024-06-10 10:09:18 -04:00
aleqsioandAlfonso Curbelo 48e9e62846 Implement privacy manifest aggregation (#44214)
Summary:
As of now, Apple does not respect privacy manifests added as cocoapods resource bundles. This forces react-native developers to manually copy `.xcprivacy` files content for each native dependency that accesses restricted reason APIs to the root file.

This PR adds an aggregation step that crawls through pod dependencies to collect all reasons into the root privacy info file.

[IOS][ADDED] – Add privacy manifest aggregation.

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

Test Plan:
When run on RNTester, it appends aggregated entries (while keeping existing ones) to existing .xcprivacy file without modifing .pbxproj:
![image](https://github.com/facebook/react-native/assets/5597580/1d07a07d-bbec-4266-a599-a8d629078971)

When run on RNTester with the xcprivacy file removed from xcode beforehand, it creates a new .xcprivacy file, and adds it to Compile Bundle Resources in the same way as in the new template:
![image](https://github.com/facebook/react-native/assets/5597580/f80a3b4e-e41a-4906-8e2f-06cca0bc225a)

When run on RNTester with an empty .xcprivacy file, it appends aggregated entries from pods AND reasons for react-native core.

When run with `privacy_file_aggregation_enabled: false` in `use_react_native`, it falls back to existing behavior:
![image](https://github.com/facebook/react-native/assets/5597580/4519bba1-c80e-4cd0-b19c-bbbebfa8493b)

Reviewed By: cipolleschi

Differential Revision: D56481045

Pulled By: philIip

fbshipit-source-id: 1841bad821511c734d0cc0fcff5065ed92af76d8
2024-06-10 10:05:23 -04:00
hurali97 d724007364 [LOCAL] update podfile.lock 2024-04-30 17:41:59 +05:00
Distiller 33865b9899 [0.72.14] Bump version numbers v0.72.14 2024-04-30 09:08:10 +00:00
Muhammad Hur AliandGitHub 9322b5cabf Merge pull request #44317 from facebook/hur/pick-pr-42978-for-072
add privacy manifest to hello world template
2024-04-29 20:25:54 +05:00
hurali97 d357a61ead pick 42978 add privacy manifest to hello world template 2024-04-29 20:19:59 +05:00
hurali97 ee14572e24 [LOCAL] Bump Hermes 2024-04-29 14:50:45 +05:00
Riccardo Cipolleschiandhurali97 ae4c62a933 Fix Symbol not found: (_JSGlobalContextSetInspectable) (#44185)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/44185

This change will fix a symbol not found for JSC Runtime.

The `if` check was not a compile time check, therefore the symbol ended up in the binary even if it is not available.

Following this post on [Apple forum](https://forums.developer.apple.com/forums/thread/749534), this changes should do the trick.

## Changelog
[iOS][Fixed] - Fix Symbol not found: (_JSGlobalContextSetInspectable)

Reviewed By: hash3r

Differential Revision: D56425834

fbshipit-source-id: a37af51b078bd47a938e6b65d9d8e0f7506e746f
2024-04-29 14:44:07 +05:00
Alan Hughes 21010037e1 Bump Podfile.lock 2024-04-18 21:50:41 +01:00
Distiller 9a369f4036 [0.72.13] Bump version numbers v0.72.13 2024-04-18 15:37:03 +00:00
Phillip PanandAlan Hughes f3ecc0bf73 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
2024-04-16 09:16:16 +01:00
Evert EtiandAlan Hughes 250ab8211c Fix possible deadlock in dispatchViewUpdates (#43643)
Summary:
In https://github.com/th3rdwave/react-native-safe-area-context/issues/448 it was noticed that from 0.72 (https://github.com/facebook/react-native/commit/bc766ec7f8b18ddc0ff72a2fff5783eeeff24857 https://github.com/facebook/react-native/pull/35889) it was possible to get a deadlock in dispatchViewUpdates. ([More details](https://github.com/th3rdwave/react-native-safe-area-context/issues/448#issuecomment-1871155936))

This deadlock resulted in a laggy experience for all users using https://github.com/th3rdwave/react-native-safe-area-context/ on Android.

To avoid this problem, the author of the original fix [proposed](https://github.com/th3rdwave/react-native-safe-area-context/issues/448#issuecomment-1872121172) this solution which was tested by Discord and many other users.

It would be great to have this backported to 0.72 and 0.73 because of the large userbase using react-native-safe-area-context since it's recommended by expo and react-navigation.

<!-- Help reviewers and the release process by writing your own changelog entry.

Pick one each for the category and type tags:

[ANDROID] [FIXED] - Fixed possible deadlock in dispatchViewUpdates

For more details, see:
https://reactnative.dev/contributing/changelogs-in-pull-requests
-->

[ANDROID] [FIXED] - Fixed possible deadlock in dispatchViewUpdates

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

Test Plan:
The original memory leak remains fixed, and can be verified in https://github.com/feiyin0719/RNMemoryLeakAndroid.

To verify the deadlock is gone, every app using https://github.com/th3rdwave/react-native-safe-area-context will work smoothly and not log any excessive `Timed out waiting for layout`
(https://github.com/17Amir17/SafeAreaContext)

Reviewed By: arushikesarwani94

Differential Revision: D55339059

Pulled By: zeyap

fbshipit-source-id: c067997364fbec734510ce99b9994e89d044384a
2024-04-09 15:16:38 +01:00
Alfonso Curbelo d5648f8e79 Podfile.lock bump 2024-03-11 14:27:09 -04:00
Distiller b418498807 [0.72.12] Bump version numbers v0.72.12 2024-03-11 15:52:02 +00:00
Rick HanlonandAlfonso Curbelo dd311c9782 Fix component stacks for tsx, ts, and jsx files (#43370)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/43370

Component stacks with files ending in .ts, .tsx, or .jsx were skipped in LogBox reporting. This diff fixes the regex.

Changelog:
[General][Fixed] - Support .tsx, .ts, and .jsx in component stacks

Reviewed By: yungsters

Differential Revision: D54638526

fbshipit-source-id: a5271daaa7b687e8e075be3f94ab9b9c03f79b66
2024-03-08 12:55:14 -05:00
Alfonso CurbeloandGitHub 1d69e2fbac Merge pull request #43344 from facebook/cipolleschi/fix-flipper-072
[RN][iOS][0.72] Fix flipper for Xcode 15.3
2024-03-07 17:14:12 -05:00
Riccardo Cipolleschi a316e0154e [RN][iOS][0.72] Fix flipper for Xcode 15.3 2024-03-06 19:34:56 +00:00
Riccardo CipolleschiandAlex Hunt 0724c2769a [RN][IOS] Fix flags for new arch 2024-02-29 18:32:47 +00:00
Riccardo CipolleschiandAlex Hunt a215805eb7 [RN][iOS]Rename BUILD_FROM_SOURCE to RCT_BUILD_HERMES_FROM_SOURCE 2024-02-29 18:32:36 +00:00
Distiller e8e03a4240 [0.72.11] Bump version numbers v0.72.11 2024-02-28 16:59:38 +00:00
hurali97 a0142432a7 bumped packages versions
#publish-packages-to-npm
2024-02-27 13:17:04 +05:00
Luna Wei 2f77e408a3 local - delete test_windows, choco -y 2024-02-26 13:18:51 -08:00
Szymon RybczakandGitHub c57a29a08c Upgrade CLI to 11.4.1 (#43096) 2024-02-19 12:56:25 -08:00
Ken TominagaandGitHub a4282a91c3 Fix overriding EXCLUDED_ARCHS when installing Hermes on RN v0.72 (#43002) 2024-02-16 15:57:47 -08:00
LIM AlbertandLuna Wei 5de1d4f932 Call super.onRequestPermissionsResult in ReactActivity (#42478)
Summary:
This change allows activities to handle onRequestPermissionsResult callbacks (eg: registerForActivityResult)

Fixes #42403

[Android][Changed] - Call super.onRequestPermissionsResult in ReactActivity's onRequestPermissionsResult()

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

Test Plan:
**Without super.onRequestPermissionsResult() call**

![before](https://github.com/facebook/react-native/assets/8672580/553ff597-c077-4831-a4d3-51846a253536)

**With super.onRequestPermissionsResult() call**

![after](https://github.com/facebook/react-native/assets/8672580/c7d588d2-5846-4083-a02f-59b5f915442c)

Reviewed By: cipolleschi

Differential Revision: D52952198

Pulled By: cortinico

fbshipit-source-id: 53b5dac65f6b5409d87b5fe7f8be659d7b48f70d
2024-02-16 15:56:02 -08:00
huangtaibinandLuna Wei c8e9836c18 Fix crash in getChildDrawingOrder (#40859)
Summary:
Problem Causes: In ReactViewGroup, there is a conflict between the zIndex attribute and the removeClippedSubviews optimization attribute. When both are used at the same time, the array mDrawingOrderIndices in ViewGroupDrawingOrderHelper that records the rendering order of subviews is not reset when super is called in the updateSubviewClipStatus method to add and remove subviews.

Solution:�Because there are many third-party components that inherit from or depend on ReactViewGroup, all methods for adding and removing subviews in ViewGroup need to be override in ReactViewGroup, and ViewGroupDrawingOrderHelper corresponding to handleAddView and handleRemoveView needs to be called in these methods. And all the precautions for directly calling super to add and remove subviews are changed to calling the overridden method by ReactViewGroup.

Special Note: All addView related methods in ViewGroup will eventually be called to the addView(View child, int index, LayoutParams params) method, except addViewInLayout. Regarding the method of adding subviews, we only need to override  addView(View child, int index, LayoutParams params) and addViewInLayout(View child, int index, LayoutParams params,boolean preventRequestLayout) in ReactViewGroup.

## Changelog:
[Android] [Fixed] - Fix the crash in ReactViewGroup of https://github.com/facebook/react-native/issues/30785

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

Reviewed By: NickGerleman

Differential Revision: D50321718

Pulled By: javache

fbshipit-source-id: 7fa7069937b8c2afb9f30dd10554370b1be5d515
2024-02-16 15:37:22 -08:00
Riccardo CipolleschiandGitHub 6939021518 [RN][iOS] Improve Swift support for 3rd party libs (#42075) 2024-02-16 15:31:39 -08:00
Luna Wei c3fda24003 Local: Update rn-tester podfile 2024-02-16 15:22:04 -08:00
Rob HoganandRob Hogan ddff36f770 Update Metro to ^0.76.9, CLI to ^11.4.0 2024-02-08 16:56:04 +00:00
Blake FriedmanandAlex Hunt 08fd9170fc 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.

## Changelog:
[iOS][Fixed] don't allow cocoapods 1.15.
2024-01-29 14:06:16 +00:00
Distiller 19f3ddd5c1 [0.72.10] Bump version numbers v0.72.10 2024-01-18 15:48:24 +00:00
Alex Hunt 1f70f58aa4 [LOCAL] Fix min ios version regression and update podfile.lock
Manually applied version of https://github.com/facebook/react-native/pull/42232
2024-01-15 15:46:01 +00:00
Oscar FrancoandAlex Hunt 91872826f3 Unhandled promise rejection - attach non-standard Error object stack info if possible (#42079)
Summary:
This is a continuation of my [last PR](https://github.com/facebook/react-native/pull/40914) which improved the symbolication of unhandled promise rejections.

While I was developing another library I noticed I still got an error stack of the log adding and not of the error itself. The library I'm trying to debug does not throw a standard error object but rather a custom one, but it still contains the stack field. By passing this stack field to the logbox call I was able to get a better symbolicated stack trace. The exact line of the failure is not displayed but at least the correct file is.

## Changelog:

<!-- Help reviewers and the release process by writing your own changelog entry.

Pick one each for the category and type tags:

[GENERAL] [ADDED] - Unhandled promise rejection - attach non-standard Error object stack info if possible

For more details, see:
https://reactnative.dev/contributing/changelogs-in-pull-requests

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

Test Plan:
Test any unhandled promise rejection with a non-standard error (line 23, toString must not return `[object Error]`) and see if the correct (or at least a better) stack trace is shown.

Here is the one I got before and after this change:

<img src="https://github.com/facebook/react-native/assets/1634213/3d07faad-9535-42c9-8032-b4d8fe407e88" width="200" />

<img src="https://github.com/facebook/react-native/assets/1634213/2c39bd82-c7a1-4f58-8ac4-5c479bb96b6e" width="200" />

Reviewed By: huntie

Differential Revision: D52431711

Pulled By: cipolleschi

fbshipit-source-id: be2172d3b1e2fc3f72812faac372c83bc6dface2
2024-01-15 15:46:01 +00:00