Commit Graph
26303 Commits
Author SHA1 Message Date
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
Riccardo Cipolleschi 5a671c130b Fix Xcode 15 RC issues (#39474)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/39474

When it comes to Xcode 15 RC, we are aware of two issues:
1. `unary_function` and `binary_function` not available in Cxx17
2. [Weak linking](https://developer.apple.com/documentation/xcode-release-notes/xcode-15-release-notes#Linking) is not supported anymore.

This change should fix both of the issues, adding the flags to allow for `unary_function`and `binary_function` to be called and adding the `-Wl -ld_classic` flag to `OTHER_LDFLAGS` in case Xcode 15 is detected.

[Internal] - add the `_LIBCPP_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION` and the `-Wl -ld_classic` flags to projects when needed

Reviewed By: dmytrorykun

Differential Revision: D49319256

fbshipit-source-id: bb895f1e60db915db79684f71fa436ce80b42111
2023-09-19 13:32:33 +02:00
Riccardo Cipolleschi f6107b6c79 Bump IPHONEOS_DEPLOYMENT_TARGET to 13.4 for 3rd party pods (#39478)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/39478

When testing Xcode 15, we realized that a few pods we do not control directly have the IPHONEOS_DEPLOYMENT_TARGET set to old versions of iOS.
We can update that setting to silence the warning with Cocoapods and this is what this script does.

Notice that bumping that setting generated other warning as some APIs have been deprecated.

[Internal] - Bump min IPHONEOS_DEPLOYMENT_TARGET for 3rd party pods

Reviewed By: dmytrorykun

Differential Revision: D49274837

fbshipit-source-id: 584d105c76d654daa2ecf5eb2f1b9381e70f567a
2023-09-19 13:28:12 +02:00
Distiller 7399bbbd02 [0.71.13] Bump version numbers v0.71.13 2023-08-22 08:34:07 +00:00
Lorenzo Sciandra e4ab2b2d58 [LOCAL] augment forEachPackage to accept optional excludes and add for the bump and trigger release script 2023-08-21 17:29:03 +01:00
Lorenzo Sciandra 4f82350679 Revert "[LOCAL] skip un-semver packages in 71 branch"
This reverts commit a90485a957.
2023-08-21 17:16:16 +01:00
Lorenzo Sciandra a90485a957 [LOCAL] skip un-semver packages in 71 branch 2023-08-21 16:22:47 +01:00
Kun Wang bfd26b7514 For targeting SDK 34 - Added RECEIVER_EXPORTED/RECEIVER_NOT_EXPORTED flag support in DevSupportManagerBase (#38256)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/38256

Add RECEIVER_EXPORTED/RECEIVER_NOT_EXPORTED flag support to DevSupportManagerBase for Android 14 change. See
https://developer.android.com/about/versions/14/behavior-changes-14#runtime-receivers-exported for details.

Without this fix, app crashes during launch because of :
```SecurityException: {package name here}: One of RECEIVER_EXPORTED or RECEIVER_NOT_EXPORTED should be specified when a receiver isn't being registered exclusively for system broadcasts```

Changelog:
[Targeting SDK 34] Added RECEIVER_EXPORTED/RECEIVER_NOT_EXPORTED flag support in DevSupportManagerBase

Reviewed By: javache

Differential Revision: D47313501

fbshipit-source-id: 12e8299559d08b4ff87b4bdabb0a29d27763c698
2023-08-17 10:19:47 +02:00
Koichi Nagaoka 843043c088 Fix onChangeText not firing when clearing the value of TextInput with multiline=true on iOS (#37958)
Summary:
This fix fixes the TextInput issue in https://github.com/facebook/react-native/issues/37784 with onChangeText not working on iOS only.

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

[IOS] [FIXED] - Fix onChangeText not firing when clearing the value of TextInput with multiline=true on iOS

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

Test Plan:
1. Run the repro code given in the issue (https://github.com/facebook/react-native/issues/37784).
2. Verified that onChangeText works after pressing the submit button.
3. Run the repro code from the issue (https://github.com/facebook/react-native/issues/36494) that caused this issue.
4. Verified that issue (https://github.com/facebook/react-native/issues/36494) is not reoccurring.

Reviewed By: rshest

Differential Revision: D47185775

Pulled By: dmytrorykun

fbshipit-source-id: 1a1a6534d6bf8b5bb8cf1090734dd894bab43f82
2023-08-17 10:19:39 +02:00
Riccardo Cipolleschi 22d1e89cbb Add scripts and pipeline to poll for maven (#38980) (#39039) 2023-08-16 16:26:50 +02:00
Lorenzo Sciandra 209e743dc9 chore(releases): improve bump oss script to allow less human errors (#38666) (#38890)
Summary:
One of the limitations of the existing flow for the release crew is that they need to manually remember to publish all the other packages in the monorepo ahead of a new patch release - this PR modifies the logic for the bump-oss-version script (and makes it available via yarn) so that it will not run if:
* there are git changes lying around
* if some of the packages need a new release

it required a bit of refactoring to extract some portions of the logic from the bump-all-package-versions script, but I think the end result is pretty decent.

## Changelog:

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

Pick one each for the category and type tags:

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

[INTERNAL] [CHANGED] - improve bump oss script to allow less human errors

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

Test Plan:
* checkout this branch
* comment L54 of bump-oss-version.js (to remove the check on the branch name)
* run `yarn bump-all-updated-packages`, verify that it works and that it detects that some packages have unreleased code
* run `yarn bump-oss-version -t asd -v asd` (the "fake" parameters are needed to pass the yargs check), verify that it will throw an error because it finds a package that has unreleased code

Reviewed By: mdvacca

Differential Revision: D48156963

Pulled By: cortinico

fbshipit-source-id: 2473ad5a84578c5236c905fd9aa9a88113fe8d22

# Conflicts:
#	scripts/publish-npm.js

re-add the file

nit

# Conflicts:
#	package.json
2023-08-16 13:26:04 +02:00