Christian Falch
e876e4926f
Improve RCT-Folly so that other dependencies don't have to specify the folly flags ( #49969 )
...
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/49969
Improved RCT-Folly podspec by configuring it as a prepare step, so that we don't need to forward the folly flags to all the others pods and to 3rd party dependencies.
## Changelog:
[INTERNAL] - Configure folly in a prepare step
Test Plan:
✅ Run Rn-Tester and verify that it works as expected both building deps from source and using prebuilt tarballs
✅ Add third-party library (react-native-reanimated) and perform the same tests to verify that it works with the changed podspec and utilities
Reviewed By: javache
Differential Revision: D71032640
Pulled By: cipolleschi
fbshipit-source-id: a34a9b38fa5d5b37a0a193a73659f0d45dd3d660
2025-03-13 08:40:14 -07:00
Dawid Małecki
c50465c637
Add support for triple-slash directives in generated .d.ts files ( #50008 )
...
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/50008
The diff adds extraction of triple-slash directives using regex to match and retrieve following reference.
Changelog:
[internal] - Added support for triple-slash directives in generated .d.ts files
Reviewed By: huntie
Differential Revision: D71113674
fbshipit-source-id: 2207d5b455515c44ba585ffecc063914e0818e58
2025-03-13 08:00:59 -07:00
Rob Hogan
0967a821b1
Test fixtures - don't reference Metro versions ( #49895 )
...
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/49895
Minor thing, but the fact that these fixture `package.json`s for testing a release script reference real Metro packages and versions always trips me up when I'm updating Metro (grepping, etc).
There's no need for them to mention Metro - any non-RN package is sufficient to test that the script preserves other dependencies. This swaps them for dummy packages.
Changelog: [Internal]
Reviewed By: vzaidman
Differential Revision: D70789598
fbshipit-source-id: 32f394bf1f783534b76d260908538d7b5716ef1f
2025-03-07 10:29:38 -08:00
Iwo Plaza
fef7933f63
Align Animated/Easing with OSS types ( #49842 )
...
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/49842
Changelog: [Internal]
Reviewed By: huntie
Differential Revision: D70623703
fbshipit-source-id: c02a0b17d257fa4eb0dbb38db8842c1755384239
2025-03-07 07:19:01 -08:00
Riccardo Cipolleschi
e23d7106d5
Add function to sign XCFramework ( #49863 )
...
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/49863
After the creation of the XCFramework, that needs to be signed. After the XCFramework is signed, no further modification can happen or they would break the signature.
## Changelog:
[Internal] - Add function to sign the XCFramework
Reviewed By: cortinico
Differential Revision: D70697279
fbshipit-source-id: c2411ca7d12d4679ba55f124cbb445367b15945a
2025-03-06 12:04:23 -08:00
Dawid Małecki
2cbb54e956
Add TextInput to buildTypes and align Flow with TS types ( #49720 )
...
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/49720
Changelog:
[Internal] - Added TextInput to buildTypes and aligned Flow with TS types
Reviewed By: huntie
Differential Revision: D70180918
fbshipit-source-id: 2ea815153cbff47af534d80faec5db98e4a4a0e8
2025-03-06 08:54:21 -08:00
Iwo Plaza
dc689aa415
Skip redundant reparsing when translating Flow defs to TS defs ( #49840 )
...
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/49840
Changelog: [Internal]
Reviewed By: huntie
Differential Revision: D70620551
fbshipit-source-id: d526c1de733f19ab6106ae586632709fd1a389dc
2025-03-05 05:39:22 -08:00
Mateo Guzmán
71fbf51979
Migrate ReactNativeVersion Android template to Kotlin ( #49758 )
...
Summary:
Added a new template `ReactNativeVersion.kt-template.js` to be used to generate the Kotlin template for Android. Updating also the set-rn-artifacts-version script to use this template instead of the Java one.
## Changelog:
[INTERNAL] - Migrate ReactNativeVersion Android template to Kotlin
Pull Request resolved: https://github.com/facebook/react-native/pull/49758
Test Plan:
```bash
yarn test-android
yarn android
node ./scripts/releases/set-version.js 1000.0.0
```
Reviewed By: huntie, rshest
Differential Revision: D70486775
Pulled By: cortinico
fbshipit-source-id: 5dd1e0e2ecf4d848dc24e6c47df243a1259ab559
2025-03-04 07:38:18 -08:00
Pieter De Baets
3dc78f804a
Update fast_float dependency to 8.0.0 ( #49775 )
...
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/49775
Upgrading this dependency to match folly and to enable using this for number parsing across Fabric.
Changelog: [Internal]
Reviewed By: cipolleschi
Differential Revision: D70482373
fbshipit-source-id: 64429595c1126e6a06436701a7562bdf6dd962d5
2025-03-04 07:25:59 -08:00
Alex Hunt
9c6af97ff8
Include root entry point, switch to excludes ( #49806 )
...
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/49806
Changelog: [Internal]
Reviewed By: iwoplaza
Differential Revision: D70488623
fbshipit-source-id: 72f10da4082754dea7d8675f09559607ac96905e
2025-03-04 05:35:34 -08:00
Alex Hunt
ec851ccf4f
Simplify type source file resolution logic ( #49785 )
...
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/49785
Changelog: [Internal]
Reviewed By: cipolleschi, iwoplaza
Differential Revision: D70487265
fbshipit-source-id: ed4654e975f5fec0fe76f8d5f156fef611e24d14
2025-03-04 05:35:34 -08:00
Jakub Piasecki
13ac1a9a88
Align FlatList types with OSS ( #49713 )
...
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/49713
Changelog: [Internal]
Reviewed By: huntie
Differential Revision: D70317013
fbshipit-source-id: f131cb204135a2a41aa7d3bafe13fc7b44446036
2025-03-03 04:06:39 -08:00
Dawid Małecki
569c01e141
Add Text to buildTypes and align Flow with TS ( #49774 )
...
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/49774
Changelog:
[Internal] - Added Text to buildTypes and aligned Flow with TS
Reviewed By: huntie
Differential Revision: D70324061
fbshipit-source-id: 2a032317acdc0a119f5d33da86a40461f8c60ab1
2025-03-03 04:02:18 -08:00
Alex Hunt
2acb407562
Update references to relocated react-native-devtools-frontend repo ( #49777 )
...
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/49777
Changelog: [Internal]
Reviewed By: robhogan
Differential Revision: D70485084
fbshipit-source-id: d6243b3bc607af39c67c3f1cebdf0b53a3502538
2025-03-03 03:49:04 -08:00
Riccardo Cipolleschi
da88bf0030
Add job to build the slices for ios prebuilds ( #49528 )
...
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/49528
This change introduces a job to prebuild iOS slices.
## Changelog:
[Internal] - Create prepare artifacts workflows
Reviewed By: cortinico
Differential Revision: D69855542
fbshipit-source-id: 54d5b24b55f9e7bebdbb201073524dc4f3748e07
2025-02-28 09:05:37 -08:00
Iwo Plaza
5fc2484440
Align useAnimatedValue with OSS types ( #49643 )
...
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/49643
## Motivation
Modernising the RN codebase to allow for modern Flow tooling to process it.
## This diff
Aligns `useAnimatedValue.js` with its manual .d.ts types.
Changelog: [Internal]
Reviewed By: huntie
Differential Revision: D70096210
fbshipit-source-id: c3cd517eccf1cb68400772ddde6e5891861c927d
2025-02-28 06:33:21 -08:00
Jakub Piasecki
be59427448
Align ProgressBarAndroid types with OSS ( #49663 )
...
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/49663
Changelog: [Internal]
Reviewed By: huntie
Differential Revision: D70176068
fbshipit-source-id: 0a1febb390affc2a3123e49e88b039b390a34387
2025-02-28 05:46:48 -08:00
Iwo Plaza
42cea2dc9c
(reattempt) Use implicit namespace to better align Animated module with OSS types ( #49685 )
...
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/49685
## Motivation
Modernising the RN codebase to allow for modern Flow tooling to process it.
## This diff
Renames `Animated.js` to `AnimatedExports.js`, and introduces an intermediate file that reexports `* as Animated` as a default. This should have equivalent runtime behavior, but allows for a common interface file: `Animated.js.flow` to reinterpret the module as having single exports. TypeScript treats this as a namespace.
Changelog: [Internal]
Reviewed By: huntie
Differential Revision: D70237239
fbshipit-source-id: f552490cb6bb721c6163272689ec9b6c68386574
2025-02-28 05:03:55 -08:00
Dawid Małecki
38e1444162
Add TouchableOpacity to buildTypes and align Flow with TS types ( #49700 )
...
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/49700
Changelog:
[Internal] - Added TouchableOpacity to buildTypes and aligned Flow with TS types
Reviewed By: huntie
Differential Revision: D69922731
fbshipit-source-id: 852b8afe99469512c0951d2fd3818fca744102fe
2025-02-27 03:02:16 -08:00
Riccardo Cipolleschi
9e64099df6
Cleanup script and move the index to release ( #49666 )
...
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/49666
This change moves the index.js file to the `releases` folder, giving it a meaningful name.
It also rename the prebuild folder to ios-prebuild to be more descriptive.
It finally removes the old scripts that this refactoring supersedes.
bypass-github-export-checks
## Changelog:
[INTERNAL] - Move the infdex.js to the prepare-ios-prebuilds script.
Reviewed By: cortinico
Differential Revision: D70176043
fbshipit-source-id: e0c3f3bd53adf97fa388c37a746d274fd678f690
2025-02-26 08:19:39 -08:00
Christian Falch
8b984ca2c4
Glue all the scripts together. ( #49671 )
...
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/49671
This change refactors the script to prebuild ios dependencies by adding a script that glues all the steps together.
bypass-github-export-checks
## Changelog:
[INTERNAL] - Add script to orchestrate all the steps
Test Plan:
Tested in this `AppDelegate.mm`:
Imports:
```obj-c
#import "AppDelegate.h"
#import <glog/logging.h>
#import <double-conversion.h>
#include <fmt/core.h>
#include <boost/assert.hpp>
#include <fast_float/fast_float.h>
#include <string>
#import <SocketRocket/SRWebSocket.h>
```
Code:
```obj-c
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
std::string input = "3.1416 xyz ";
double_conversion::DoubleToStringConverter::EcmaScriptConverter();
LOG(INFO) << "Hello from GLOG";
fmt::print("Hello, world from FMT!\n");
BOOST_ASSERT(100 == 100);
double result;
fast_float::from_chars(input.data(), input.data() + input.size(), result);
LOG(INFO) << "Answer :" << result;
NSArray *frameworks = [NSBundle allFrameworks];
for (NSBundle *framework in frameworks) {
NSString *frameworkName = framework.bundleURL.lastPathComponent;
if ([frameworkName isEqualToString: @"ReactNativeDependencies.framework"]) {
NSBundle *bundle = [NSBundle bundleWithURL:[framework bundleURL]];
NSURL *bundleURL = [bundle URLForResource:@"ReactNativeDependencies_glog" withExtension:@"bundle"];
NSBundle *resourceBundle = [NSBundle bundleWithURL:bundleURL];
NSURL* url = [resourceBundle URLForResource:@"PrivacyInfo" withExtension:@"xcprivacy"];
if (url == nil) {
throw [NSException exceptionWithName:@"ResourceNotFoundException"
reason:@"Could not find PrivacyInfo.xcprivacy in ReactNativeDependencies_glog bundle"
userInfo:nil];
}
break;
}
}
return YES;
}
```
Reviewed By: cortinico
Differential Revision: D70175842
Pulled By: cipolleschi
fbshipit-source-id: e4bb4ad5d12e7ceaaca0eeee7ce6dc7269aa7bad
2025-02-26 08:19:39 -08:00
Christian Falch
2fdb6c9832
Refactor compose-framework script ( #49665 )
...
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/49665
This change refactors the script to prebuild ios dependencies by factoring out the code that creates the XCFrameworks
bypass-github-export-checks
## Changelog:
[INTERNAL] - Factor out flow types, constants and gitignore
Test Plan:
Tested in this `AppDelegate.mm`:
Imports:
```obj-c
#import "AppDelegate.h"
#import <glog/logging.h>
#import <double-conversion.h>
#include <fmt/core.h>
#include <boost/assert.hpp>
#include <fast_float/fast_float.h>
#include <string>
#import <SocketRocket/SRWebSocket.h>
```
Code:
```obj-c
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
std::string input = "3.1416 xyz ";
double_conversion::DoubleToStringConverter::EcmaScriptConverter();
LOG(INFO) << "Hello from GLOG";
fmt::print("Hello, world from FMT!\n");
BOOST_ASSERT(100 == 100);
double result;
fast_float::from_chars(input.data(), input.data() + input.size(), result);
LOG(INFO) << "Answer :" << result;
NSArray *frameworks = [NSBundle allFrameworks];
for (NSBundle *framework in frameworks) {
NSString *frameworkName = framework.bundleURL.lastPathComponent;
if ([frameworkName isEqualToString: @"ReactNativeDependencies.framework"]) {
NSBundle *bundle = [NSBundle bundleWithURL:[framework bundleURL]];
NSURL *bundleURL = [bundle URLForResource:@"ReactNativeDependencies_glog" withExtension:@"bundle"];
NSBundle *resourceBundle = [NSBundle bundleWithURL:bundleURL];
NSURL* url = [resourceBundle URLForResource:@"PrivacyInfo" withExtension:@"xcprivacy"];
if (url == nil) {
throw [NSException exceptionWithName:@"ResourceNotFoundException"
reason:@"Could not find PrivacyInfo.xcprivacy in ReactNativeDependencies_glog bundle"
userInfo:nil];
}
break;
}
}
return YES;
}
```
Reviewed By: cortinico
Differential Revision: D70175797
Pulled By: cipolleschi
fbshipit-source-id: 8eb07fd3ff9f309d5f6e4b55156c5d5cbbd41235
2025-02-26 08:19:39 -08:00
Christian Falch
1cf751ed58
Refactor build script ( #49669 )
...
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/49669
This change refactors the script to prebuild ios dependencies by factoring out the script that builds the frameworks
bypass-github-export-checks
## Changelog:
[INTERNAL] - Factor out the script to build the frameworks.
Test Plan:
Tested in this `AppDelegate.mm`:
Imports:
```obj-c
#import "AppDelegate.h"
#import <glog/logging.h>
#import <double-conversion.h>
#include <fmt/core.h>
#include <boost/assert.hpp>
#include <fast_float/fast_float.h>
#include <string>
#import <SocketRocket/SRWebSocket.h>
```
Code:
```obj-c
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
std::string input = "3.1416 xyz ";
double_conversion::DoubleToStringConverter::EcmaScriptConverter();
LOG(INFO) << "Hello from GLOG";
fmt::print("Hello, world from FMT!\n");
BOOST_ASSERT(100 == 100);
double result;
fast_float::from_chars(input.data(), input.data() + input.size(), result);
LOG(INFO) << "Answer :" << result;
NSArray *frameworks = [NSBundle allFrameworks];
for (NSBundle *framework in frameworks) {
NSString *frameworkName = framework.bundleURL.lastPathComponent;
if ([frameworkName isEqualToString: @"ReactNativeDependencies.framework"]) {
NSBundle *bundle = [NSBundle bundleWithURL:[framework bundleURL]];
NSURL *bundleURL = [bundle URLForResource:@"ReactNativeDependencies_glog" withExtension:@"bundle"];
NSBundle *resourceBundle = [NSBundle bundleWithURL:bundleURL];
NSURL* url = [resourceBundle URLForResource:@"PrivacyInfo" withExtension:@"xcprivacy"];
if (url == nil) {
throw [NSException exceptionWithName:@"ResourceNotFoundException"
reason:@"Could not find PrivacyInfo.xcprivacy in ReactNativeDependencies_glog bundle"
userInfo:nil];
}
break;
}
}
return YES;
}
```
Reviewed By: cortinico
Differential Revision: D70175778
Pulled By: cipolleschi
fbshipit-source-id: 987ea8922ab566c6601a77084226df2b6456243f
2025-02-26 08:19:39 -08:00
Christian Falch
f7970cddf2
Add code to generate the Swift Package
...
Summary:
This change refactors the script to prebuild ios dependencies by:
- remove the manually maintained Package.swift
- add script to generate it starting from the configurations that we have
bypass-github-export-checks
## Changelog:
[INTERNAL] - Factor out script to generate Package.swift file
Reviewed By: cortinico
Differential Revision: D70175760
Pulled By: cipolleschi
fbshipit-source-id: a1b0fc6dcdc1860b04ab260697f259c297338f41
2025-02-26 08:19:39 -08:00
Christian Falch
7aa5df32a4
Refactor setupDependencies script ( #49670 )
...
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/49670
This change refactors the script to prebuild ios dependencies by factoring out the code that setups native dependencies.
bypass-github-export-checks
## Changelog:
[INTERNAL] - Factor out code to setup native dependencies
Test Plan:
Tested in this `AppDelegate.mm`:
Imports:
```obj-c
#import "AppDelegate.h"
#import <glog/logging.h>
#import <double-conversion.h>
#include <fmt/core.h>
#include <boost/assert.hpp>
#include <fast_float/fast_float.h>
#include <string>
#import <SocketRocket/SRWebSocket.h>
```
Code:
```obj-c
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
std::string input = "3.1416 xyz ";
double_conversion::DoubleToStringConverter::EcmaScriptConverter();
LOG(INFO) << "Hello from GLOG";
fmt::print("Hello, world from FMT!\n");
BOOST_ASSERT(100 == 100);
double result;
fast_float::from_chars(input.data(), input.data() + input.size(), result);
LOG(INFO) << "Answer :" << result;
NSArray *frameworks = [NSBundle allFrameworks];
for (NSBundle *framework in frameworks) {
NSString *frameworkName = framework.bundleURL.lastPathComponent;
if ([frameworkName isEqualToString: @"ReactNativeDependencies.framework"]) {
NSBundle *bundle = [NSBundle bundleWithURL:[framework bundleURL]];
NSURL *bundleURL = [bundle URLForResource:@"ReactNativeDependencies_glog" withExtension:@"bundle"];
NSBundle *resourceBundle = [NSBundle bundleWithURL:bundleURL];
NSURL* url = [resourceBundle URLForResource:@"PrivacyInfo" withExtension:@"xcprivacy"];
if (url == nil) {
throw [NSException exceptionWithName:@"ResourceNotFoundException"
reason:@"Could not find PrivacyInfo.xcprivacy in ReactNativeDependencies_glog bundle"
userInfo:nil];
}
break;
}
}
return YES;
}
```
Reviewed By: cortinico
Differential Revision: D70175729
Pulled By: cipolleschi
fbshipit-source-id: 4e1c19b5482b4335ab66c2b605abcb9db47091d3
2025-02-26 08:19:39 -08:00
Christian Falch
339b0b5653
Add utils: CLI arg validation and folders utils ( #49668 )
...
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/49668
This change refactors the script to prebuild ios dependencies by:
- factoring out CLI validation in a separate file
- factoring out the folder utilities in a separate file
bypass-github-export-checks
## Changelog:
[INTERNAL] - Factor out CLI and folder utilities
Test Plan:
Tested in this `AppDelegate.mm`:
Imports:
```obj-c
#import "AppDelegate.h"
#import <glog/logging.h>
#import <double-conversion.h>
#include <fmt/core.h>
#include <boost/assert.hpp>
#include <fast_float/fast_float.h>
#include <string>
#import <SocketRocket/SRWebSocket.h>
```
Code:
```obj-c
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
std::string input = "3.1416 xyz ";
double_conversion::DoubleToStringConverter::EcmaScriptConverter();
LOG(INFO) << "Hello from GLOG";
fmt::print("Hello, world from FMT!\n");
BOOST_ASSERT(100 == 100);
double result;
fast_float::from_chars(input.data(), input.data() + input.size(), result);
LOG(INFO) << "Answer :" << result;
NSArray *frameworks = [NSBundle allFrameworks];
for (NSBundle *framework in frameworks) {
NSString *frameworkName = framework.bundleURL.lastPathComponent;
if ([frameworkName isEqualToString: @"ReactNativeDependencies.framework"]) {
NSBundle *bundle = [NSBundle bundleWithURL:[framework bundleURL]];
NSURL *bundleURL = [bundle URLForResource:@"ReactNativeDependencies_glog" withExtension:@"bundle"];
NSBundle *resourceBundle = [NSBundle bundleWithURL:bundleURL];
NSURL* url = [resourceBundle URLForResource:@"PrivacyInfo" withExtension:@"xcprivacy"];
if (url == nil) {
throw [NSException exceptionWithName:@"ResourceNotFoundException"
reason:@"Could not find PrivacyInfo.xcprivacy in ReactNativeDependencies_glog bundle"
userInfo:nil];
}
break;
}
}
return YES;
}
```
Reviewed By: cortinico
Differential Revision: D70175663
Pulled By: cipolleschi
fbshipit-source-id: 5c6653aed7054658c5e265675766a28415da3918
2025-02-26 08:19:39 -08:00
Christian Falch
6eac2bd5b9
Configure all the third party dependencies we need ( #49667 )
...
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/49667
This change refactors the script to prebuild ios dependencies by extracting all the dependencies' configurations in a separate file
bypass-github-export-checks
## Changelog:
[INTERNAL] - Factor out all the dependencies configurations in a separate file
Test Plan:
Tested in this `AppDelegate.mm`:
Imports:
```obj-c
#import "AppDelegate.h"
#import <glog/logging.h>
#import <double-conversion.h>
#include <fmt/core.h>
#include <boost/assert.hpp>
#include <fast_float/fast_float.h>
#include <string>
#import <SocketRocket/SRWebSocket.h>
```
Code:
```obj-c
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
std::string input = "3.1416 xyz ";
double_conversion::DoubleToStringConverter::EcmaScriptConverter();
LOG(INFO) << "Hello from GLOG";
fmt::print("Hello, world from FMT!\n");
BOOST_ASSERT(100 == 100);
double result;
fast_float::from_chars(input.data(), input.data() + input.size(), result);
LOG(INFO) << "Answer :" << result;
NSArray *frameworks = [NSBundle allFrameworks];
for (NSBundle *framework in frameworks) {
NSString *frameworkName = framework.bundleURL.lastPathComponent;
if ([frameworkName isEqualToString: @"ReactNativeDependencies.framework"]) {
NSBundle *bundle = [NSBundle bundleWithURL:[framework bundleURL]];
NSURL *bundleURL = [bundle URLForResource:@"ReactNativeDependencies_glog" withExtension:@"bundle"];
NSBundle *resourceBundle = [NSBundle bundleWithURL:bundleURL];
NSURL* url = [resourceBundle URLForResource:@"PrivacyInfo" withExtension:@"xcprivacy"];
if (url == nil) {
throw [NSException exceptionWithName:@"ResourceNotFoundException"
reason:@"Could not find PrivacyInfo.xcprivacy in ReactNativeDependencies_glog bundle"
userInfo:nil];
}
break;
}
}
return YES;
}
```
Reviewed By: cortinico
Differential Revision: D70175499
Pulled By: cipolleschi
fbshipit-source-id: c0eacb831e6551d39956c9835d15ab8d9e91d8f2
2025-02-26 08:19:39 -08:00
Christian Falch
a860c55f38
Extract Flow types and constants ( #49614 )
...
Summary:
This change refactors the script to prebuild ios dependencies by:
- factoring out the constants
- factoring out the flow type definitions
- factoring out the .gitignore
bypass-github-export-check
## Changelog:
[INTERNAL] - Factor out flow types, constants and gitignore
Pull Request resolved: https://github.com/facebook/react-native/pull/49614
Test Plan:
Tested in this `AppDelegate.mm`:
Imports:
```obj-c
#import "AppDelegate.h"
#import <glog/logging.h>
#import <double-conversion.h>
#include <fmt/core.h>
#include <boost/assert.hpp>
#include <fast_float/fast_float.h>
#include <string>
#import <SocketRocket/SRWebSocket.h>
```
Code:
```obj-c
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
std::string input = "3.1416 xyz ";
double_conversion::DoubleToStringConverter::EcmaScriptConverter();
LOG(INFO) << "Hello from GLOG";
fmt::print("Hello, world from FMT!\n");
BOOST_ASSERT(100 == 100);
double result;
fast_float::from_chars(input.data(), input.data() + input.size(), result);
LOG(INFO) << "Answer :" << result;
NSArray *frameworks = [NSBundle allFrameworks];
for (NSBundle *framework in frameworks) {
NSString *frameworkName = framework.bundleURL.lastPathComponent;
if ([frameworkName isEqualToString: @"ReactNativeDependencies.framework"]) {
NSBundle *bundle = [NSBundle bundleWithURL:[framework bundleURL]];
NSURL *bundleURL = [bundle URLForResource:@"ReactNativeDependencies_glog" withExtension:@"bundle"];
NSBundle *resourceBundle = [NSBundle bundleWithURL:bundleURL];
NSURL* url = [resourceBundle URLForResource:@"PrivacyInfo" withExtension:@"xcprivacy"];
if (url == nil) {
throw [NSException exceptionWithName:@"ResourceNotFoundException"
reason:@"Could not find PrivacyInfo.xcprivacy in ReactNativeDependencies_glog bundle"
userInfo:nil];
}
break;
}
}
return YES;
}
```
Reviewed By: cortinico
Differential Revision: D70172536
Pulled By: cipolleschi
fbshipit-source-id: 91589693fd24e2b0d6d67759fb9fbc86841f4d13
2025-02-26 08:19:39 -08:00
Jakub Piasecki
65242998ca
Align Pressable types with OSS ( #49631 )
...
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/49631
Changelog: [Internal]
Reviewed By: huntie
Differential Revision: D70091770
fbshipit-source-id: 8a2fb448984fccf31c473002ffccd5ddb174b7e1
2025-02-26 07:21:43 -08:00
Dawid Małecki
dbbdb985f5
Add SafeAreaView to buildTypes and align Flow with TS types ( #49664 )
...
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/49664
Changelog:
[Internal] - Added SafeAreaView to buildTypes and aligned Flow with TS types
Reviewed By: huntie
Differential Revision: D70176107
fbshipit-source-id: 5da4ef4751c2d4a57b3ffd736294587836babecf
2025-02-26 03:15:02 -08:00
Iwo Plaza
9d92b277bf
Optional post-transform pipeline for .d.ts files generated by build-types script ( #49634 )
...
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/49634
Changelog: [Internal]
Reviewed By: huntie
Differential Revision: D69992512
fbshipit-source-id: 7fc004e9460498de236a833aea5265a5fac5f490
2025-02-26 03:06:57 -08:00
Dawid Małecki
7856ef8409
Add Image and ImageBackground to buildTypes and align Flow with TS defs ( #49659 )
...
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/49659
Changelog:
[Internal] - Added Image and ImageBackground to buildTypes and aligned Flow with TS defs
Reviewed By: huntie
Differential Revision: D70099485
fbshipit-source-id: 6000fc7099a4f811c451a08c4d5cf505d84ec0c9
2025-02-25 09:12:52 -08:00
Jakub Piasecki
edfc73d1a1
Align DrawerLayoutAndroid type definitions with OSS ( #49620 )
...
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/49620
Changelog: [Internal]
Reviewed By: huntie
Differential Revision: D70081361
fbshipit-source-id: 203a9a984fddef6dfd2fce7e84ae44e8e68e8fcc
2025-02-25 05:51:21 -08:00
Dawid Małecki
4e79ca4464
Add Touchable to buildTypes and align Flow with TS types ( #49562 )
...
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/49562
Changelog:
[Internal]: Added Touchable to buildTypes and aligned Flow with TS types.
Reviewed By: huntie
Differential Revision: D69843245
fbshipit-source-id: 578987a277c3407890a541e442bb347311f71efa
2025-02-25 01:49:28 -08:00
Jakub Piasecki
dee6168027
Align Keyboard types with OSS ( #49623 )
...
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/49623
Changelog: [Internal]
Reviewed By: huntie
Differential Revision: D70083211
fbshipit-source-id: c91d3cd7e8f4ad8770bc686768103b43611d4ebb
2025-02-25 01:23:04 -08:00
Jakub Piasecki
091f542a2e
Add a pretransform replacing Stringish with string ( #49636 )
...
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/49636
Changelog: [Internal]
Reviewed By: huntie
Differential Revision: D70094483
fbshipit-source-id: 3ec23f19af437e28e82f73f03541cbf38469d670
2025-02-25 01:22:31 -08:00
Shawn Dempsey
f17c26437b
Revert D69849314: Use implicit namespace to better align Animated module with OSS types
...
Differential Revision:
D69849314
Original commit changeset: cdaa605ba536
Original Phabricator Diff: D69849314
fbshipit-source-id: b97b049cf5f3728568a55abfb93dc67cadfa26ba
2025-02-24 15:40:33 -08:00
Iwo Plaza
b56548969a
Use implicit namespace to better align Animated module with OSS types ( #49559 )
...
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/49559
## Motivation
Modernising the RN codebase to allow for modern Flow tooling to process it.
## This diff
Renames `Animated.js` to `AnimatedExports.js`, and introduces an intermediate file that reexports `* as Animated` as a default. This should have equivalent runtime behavior, but allows for a common interface file: `Animated.js.flow` to reinterpret the module as having single exports. TypeScript treats this as a namespace.
Changelog: [Internal]
Reviewed By: huntie
Differential Revision: D69849314
fbshipit-source-id: cdaa605ba5361d3349c6dd0e84fd0fbfee263941
2025-02-24 09:20:04 -08:00
Jakub Piasecki
c66728dc35
Add ButtonProps export ( #49593 )
...
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/49593
Changelog: [Internal]
Reviewed By: huntie
Differential Revision: D69984581
fbshipit-source-id: 1a9607866dee564718081a15f9f6740dfb8dd0e4
2025-02-24 08:50:19 -08:00
Dawid Małecki
92e21688db
Add RefreshControl to buildTypes and align Flow with TS types ( #49564 )
...
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/49564
Changelog:
[Internal] - Added RefreshControl to buildTypes and aligned Flow with TS types
Reviewed By: huntie
Differential Revision: D69924368
fbshipit-source-id: 1a01ede28f9d0729c483036f8d3f9c9eced58286
2025-02-24 07:08:03 -08:00
Jakub Piasecki
f8627e5627
Align ActivityIndicator with OSS types ( #49519 )
...
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/49519
Changelog: [Internal]
Reviewed By: huntie
Differential Revision: D69661567
fbshipit-source-id: 35e3849eeea188f8bdfa0664c90d3d9e5328ef80
2025-02-24 06:36:56 -08:00
Jakub Piasecki
db4086de97
Align LayoutConformance types with OSS ( #49625 )
...
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/49625
Changelog: [Internal]
Reviewed By: huntie
Differential Revision: D70084487
fbshipit-source-id: f4f0a06f3d7cf87659696ac41a27be5f5972d99f
2025-02-24 06:19:45 -08:00
Jakub Piasecki
0a87f0cf5c
Align ScrollView with the OSS types ( #49617 )
...
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/49617
Changelog: [Internal]
Reviewed By: huntie
Differential Revision: D69981167
fbshipit-source-id: d4b2661b9ec746f30b512bad2c84d4dd0c1755c7
2025-02-24 05:03:18 -08:00
Dawid Małecki
b060fbe99c
Add StatusBar to buildTypes and align Flow with TS types ( #49598 )
...
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/49598
Changelog:
[Internal] - Added StatusBar to buildTypes and aligned Flow with TS types
Reviewed By: huntie
Differential Revision: D69990300
fbshipit-source-id: 684c3692fd3cc4862fd3cd3fe4731129887b9bcc
2025-02-24 03:11:31 -08:00
Dawid Małecki
0d454285c7
Add Switch to buildTypes and align Flow with TS types. ( #49597 )
...
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/49597
Changelog:
[Internal] - Added Switch to buildTypes and aligned Flow with TS types.
Reviewed By: huntie
Differential Revision: D69984618
fbshipit-source-id: 1fb978bb712be20f0e685af80bef0ac6d78b73ba
2025-02-21 09:09:01 -08:00
Jakub Piasecki
289dba8cf2
Align InteractionManager and PanResponder types with OSS ( #49517 )
...
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/49517
Changelog: [Internal]
Reviewed By: huntie
Differential Revision: D69742877
fbshipit-source-id: ccd99b29aed4ec4ef8c0b7b2a57763f716be411e
2025-02-21 05:18:56 -08:00
Dawid Małecki
f5837bf9f4
Add TouchableHighlight to buildTypes and move comments from TS definitions ( #49560 )
...
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/49560
Changelog:
[Internal] - Added TouchableHighlight to buildTypes and moved comments from TS definitions
Reviewed By: huntie
Differential Revision: D69919248
fbshipit-source-id: 66b615df60862a53132bd7b2ae9f54065c444e22
2025-02-21 04:00:06 -08:00
Dawid Małecki
e96e0de756
Add TouchableNativeFeedback to buildTypes and align Flow types ( #49561 )
...
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/49561
Changelog:
[Internal] - Added TouchableNativeFeedback to buildTypes and aligned Flow types
Reviewed By: huntie
Differential Revision: D69858177
fbshipit-source-id: 4bd55cba9a9eb1a1d304911cf929b363205a20d5
2025-02-21 04:00:06 -08:00
Dawid Małecki
b418aacd85
Add TouchableWithoutFeedback to buildTypes and align Flow with TS types ( #49529 )
...
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/49529
Changelog:
[Internal] - Added TouchableWithoutFeedback to buildTypes and aligned Flow with TS types
Reviewed By: huntie
Differential Revision: D69855221
fbshipit-source-id: a1de660e02a90f8e1c181b8e0c5dfdbaa4d2c75c
2025-02-21 04:00:06 -08:00
Jakub Piasecki
c079d5218f
Partially align Utilities with OSS types ( #49471 )
...
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/49471
Changelog: [Internal]
Reviewed By: huntie
Differential Revision: D69747254
fbshipit-source-id: 70bfe94d0950d31e7f4f3c3bc4df47121e8be9c1
2025-02-20 09:12:43 -08:00