react-native-macos 0.78.3 → 0.78.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Libraries/Blob/RCTBlobManager.h +0 -0
- package/Libraries/Blob/RCTBlobManager.mm +0 -0
- package/Libraries/Components/TextInput/TextInputState.js +5 -1
- package/Libraries/Components/Touchable/TouchableWithoutFeedback.js +0 -0
- package/Libraries/Core/ReactNativeVersion.js +1 -1
- package/Libraries/Inspector/NetworkOverlay.js +1 -1
- package/Libraries/Lists/FillRateHelper.js +3 -3
- package/Libraries/Lists/FlatList.d.ts +1 -1
- package/Libraries/Lists/FlatList.js +2 -2
- package/Libraries/Lists/SectionList.d.ts +1 -1
- package/Libraries/Lists/SectionList.js +2 -2
- package/Libraries/Lists/SectionListModern.js +2 -2
- package/Libraries/Lists/ViewabilityHelper.js +3 -3
- package/Libraries/Lists/VirtualizeUtils.js +2 -2
- package/Libraries/Lists/VirtualizedList.js +3 -3
- package/Libraries/Lists/VirtualizedListContext.js +2 -2
- package/Libraries/Lists/VirtualizedSectionList.js +3 -3
- package/Libraries/Modal/Modal.js +1 -1
- package/Libraries/StyleSheet/normalizeColor.js +0 -0
- package/Libraries/Text/Text.d.ts +1 -0
- package/Libraries/Text/TextInput/Singleline/RCTUITextField.mm +1 -1
- package/Libraries/Utilities/ReactNativeTestTools.js +1 -1
- package/React/Base/RCTJavaScriptLoader.h +0 -0
- package/React/Base/RCTJavaScriptLoader.mm +0 -0
- package/React/Base/RCTVersion.m +1 -1
- package/React/CoreModules/RCTDevLoadingView.mm +1 -1
- package/React/CoreModules/RCTLogBoxView.mm +4 -1
- package/React/DevSupport/RCTPausedInDebuggerOverlayController.mm +82 -14
- package/React/Views/RCTViewKeyboardEvent.m +24 -0
- package/ReactAndroid/gradle.properties +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +1 -1
- package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
- package/local-cli/cli.js +0 -0
- package/package.json +5 -4
- package/scripts/compose-source-maps.js +0 -0
- package/scripts/featureflags/README.md +156 -0
- package/scripts/featureflags/index.js +39 -0
- package/scripts/ios-configure-glog.sh +0 -0
- package/scripts/node-binary.sh +0 -0
- package/scripts/packager.sh +0 -0
- package/scripts/react-native-xcode.sh +0 -0
- package/scripts/react_native_pods_utils/script_phases.sh +0 -0
- package/scripts/xcode/ccache-clang++.sh +0 -0
- package/scripts/xcode/ccache-clang.sh +0 -0
- package/scripts/xcode/with-environment.sh +0 -0
- package/types/index.d.ts +1 -1
- package/scripts/cocoapods/autolinking.rb +0 -206
- package/scripts/cocoapods/autolinking_utils.rb +0 -25
- package/scripts/cocoapods/codegen.rb +0 -59
- package/scripts/cocoapods/codegen_script_phase_extractor.rb +0 -13
- package/scripts/cocoapods/codegen_utils.rb +0 -389
- package/scripts/cocoapods/fabric.rb +0 -18
- package/scripts/cocoapods/helpers.rb +0 -150
- package/scripts/cocoapods/jsengine.rb +0 -33
- package/scripts/cocoapods/local_podspec_patch.rb +0 -51
- package/scripts/cocoapods/new_architecture.rb +0 -194
- package/scripts/cocoapods/privacy_manifest_utils.rb +0 -194
- package/scripts/cocoapods/runtime.rb +0 -18
- package/scripts/cocoapods/spm.rb +0 -94
- package/scripts/cocoapods/utils.rb +0 -724
- package/scripts/codegen/codegen-utils.js +0 -51
- package/scripts/codegen/generate-artifacts-executor.js +0 -982
- package/scripts/codegen/generate-specs-cli-executor.js +0 -128
- package/scripts/codegen/templates/RCTAppDependencyProviderH.template +0 -25
- package/scripts/codegen/templates/RCTAppDependencyProviderMM.template +0 -55
- package/scripts/codegen/templates/RCTModulesConformingToProtocolsProviderH.template +0 -18
- package/scripts/codegen/templates/RCTModulesConformingToProtocolsProviderMM.template +0 -33
- package/scripts/codegen/templates/RCTThirdPartyComponentsProviderH.template +0 -16
- package/scripts/codegen/templates/RCTThirdPartyComponentsProviderMM.template +0 -23
- package/scripts/codegen/templates/ReactAppDependencyProvider.podspec.template +0 -34
- package/sdks/hermes-engine/hermes-engine.podspec +0 -169
- package/sdks/hermes-engine/hermes-utils.rb +0 -289
- package/sdks/hermes-engine/utils/build-apple-framework.sh +0 -225
- package/sdks/hermes-engine/utils/build-hermes-xcode.sh +0 -100
- package/sdks/hermes-engine/utils/build-hermesc-xcode.sh +0 -18
- package/sdks/hermes-engine/utils/build-ios-framework.sh +0 -90
- package/sdks/hermes-engine/utils/build-mac-framework.sh +0 -22
- package/sdks/hermes-engine/utils/copy-hermes-xcode.sh +0 -7
- package/sdks/hermes-engine/utils/create-dummy-hermes-xcframework.sh +0 -32
- package/sdks/hermes-engine/utils/replace_hermes_version.js +0 -106
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
#
|
|
4
|
-
# This source code is licensed under the MIT license found in the
|
|
5
|
-
# LICENSE file in the root directory of this source tree.
|
|
6
|
-
|
|
7
|
-
if [ "$CI" ]; then
|
|
8
|
-
set -x
|
|
9
|
-
fi
|
|
10
|
-
set -e
|
|
11
|
-
|
|
12
|
-
# Given a specific target, retrieve the right architecture for it
|
|
13
|
-
# $1 the target you want to build. Allowed values: iphoneos, iphonesimulator, catalyst, xros, xrsimulator
|
|
14
|
-
function get_architecture {
|
|
15
|
-
if [[ $1 == "iphoneos" || $1 == "xros" ]]; then
|
|
16
|
-
echo "arm64"
|
|
17
|
-
elif [[ $1 == "iphonesimulator" || $1 == "xrsimulator" ]]; then
|
|
18
|
-
echo "x86_64;arm64"
|
|
19
|
-
elif [[ $1 == "appletvos" ]]; then
|
|
20
|
-
echo "arm64"
|
|
21
|
-
elif [[ $1 == "appletvsimulator" ]]; then
|
|
22
|
-
echo "x86_64;arm64"
|
|
23
|
-
elif [[ $1 == "catalyst" ]]; then
|
|
24
|
-
echo "x86_64;arm64"
|
|
25
|
-
else
|
|
26
|
-
echo "Error: unknown architecture passed $1"
|
|
27
|
-
exit 1
|
|
28
|
-
fi
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
function get_deployment_target {
|
|
32
|
-
if [[ $1 == "xros" || $1 == "xrsimulator" ]]; then
|
|
33
|
-
echo "$(get_visionos_deployment_target)"
|
|
34
|
-
else # tvOS and iOS use the same deployment target
|
|
35
|
-
echo "$(get_ios_deployment_target)"
|
|
36
|
-
fi
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
# build a single framework
|
|
40
|
-
# $1 is the target to build
|
|
41
|
-
function build_framework {
|
|
42
|
-
if [ ! -d destroot/Library/Frameworks/universal/hermes.xcframework ]; then
|
|
43
|
-
deployment_target=$(get_deployment_target "$1")
|
|
44
|
-
|
|
45
|
-
architecture=$(get_architecture "$1")
|
|
46
|
-
|
|
47
|
-
build_apple_framework "$1" "$architecture" "$deployment_target"
|
|
48
|
-
else
|
|
49
|
-
echo "Skipping; Clean \"destroot\" to rebuild".
|
|
50
|
-
fi
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
# group the frameworks together to create a universal framework
|
|
54
|
-
function build_universal_framework {
|
|
55
|
-
if [ ! -d destroot/Library/Frameworks/universal/hermes.xcframework ]; then
|
|
56
|
-
create_universal_framework "iphoneos" "iphonesimulator" "catalyst" "xros" "xrsimulator" "appletvos" "appletvsimulator"
|
|
57
|
-
else
|
|
58
|
-
echo "Skipping; Clean \"destroot\" to rebuild".
|
|
59
|
-
fi
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
# single function that builds sequentially iphoneos, iphonesimulator and catalyst
|
|
63
|
-
# this is used to preserve backward compatibility
|
|
64
|
-
function create_framework {
|
|
65
|
-
if [ ! -d destroot/Library/Frameworks/universal/hermes.xcframework ]; then
|
|
66
|
-
build_framework "iphoneos"
|
|
67
|
-
build_framework "iphonesimulator"
|
|
68
|
-
build_framework "appletvos"
|
|
69
|
-
build_framework "appletvsimulator"
|
|
70
|
-
build_framework "catalyst"
|
|
71
|
-
build_framework "xros"
|
|
72
|
-
build_framework "xrsimulator"
|
|
73
|
-
build_universal_framework
|
|
74
|
-
else
|
|
75
|
-
echo "Skipping; Clean \"destroot\" to rebuild".
|
|
76
|
-
fi
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
CURR_SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd -P)"
|
|
81
|
-
# shellcheck source=xplat/js/react-native-github/sdks/hermes-engine/utils/build-apple-framework.sh
|
|
82
|
-
. "${CURR_SCRIPT_DIR}/build-apple-framework.sh"
|
|
83
|
-
|
|
84
|
-
if [[ -z $1 ]]; then
|
|
85
|
-
create_framework
|
|
86
|
-
elif [[ $1 == "build_framework" ]]; then
|
|
87
|
-
build_universal_framework
|
|
88
|
-
else
|
|
89
|
-
build_framework "$1"
|
|
90
|
-
fi
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
#
|
|
4
|
-
# This source code is licensed under the MIT license found in the
|
|
5
|
-
# LICENSE file in the root directory of this source tree.
|
|
6
|
-
|
|
7
|
-
if [ "$CI" ]; then
|
|
8
|
-
set -x
|
|
9
|
-
fi
|
|
10
|
-
set -e
|
|
11
|
-
|
|
12
|
-
# shellcheck source=xplat/js/react-native-github/sdks/hermes-engine/utils/build-apple-framework.sh
|
|
13
|
-
CURR_SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd -P)"
|
|
14
|
-
. "${CURR_SCRIPT_DIR}/build-apple-framework.sh"
|
|
15
|
-
|
|
16
|
-
if [ ! -d destroot/Library/Frameworks/macosx/hermes.framework ]; then
|
|
17
|
-
mac_deployment_target=$(get_mac_deployment_target)
|
|
18
|
-
|
|
19
|
-
build_apple_framework "macosx" "x86_64;arm64" "$mac_deployment_target"
|
|
20
|
-
else
|
|
21
|
-
echo "Skipping; Clean \"destroot\" to rebuild".
|
|
22
|
-
fi
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
#
|
|
4
|
-
# This source code is licensed under the MIT license found in the
|
|
5
|
-
# LICENSE file in the root directory of this source tree.
|
|
6
|
-
|
|
7
|
-
echo "This file is no-op now. Remove \"[RN] Copy Hermes Framework\" script phase from your main target if you don't want to see this message."
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
#
|
|
4
|
-
# This source code is licensed under the MIT license found in the
|
|
5
|
-
# LICENSE file in the root directory of this source tree.
|
|
6
|
-
|
|
7
|
-
set -x
|
|
8
|
-
|
|
9
|
-
# CocoaPods requires vendored frameworks to exist before `pod install` is run,
|
|
10
|
-
# and to be proper Moch-O binaries in order to auto-link them to the user's Xcode project.
|
|
11
|
-
# This script creates dummy hermes.framework for macosx and ios.
|
|
12
|
-
# They are then get rewritten by `build-hermes-xcode.sh` during Xcode build.
|
|
13
|
-
|
|
14
|
-
rm -rf destroot
|
|
15
|
-
|
|
16
|
-
mkdir -p destroot/Library/Frameworks
|
|
17
|
-
|
|
18
|
-
pushd destroot/Library/Frameworks > /dev/null || exit 1
|
|
19
|
-
|
|
20
|
-
echo '' > dummy.c
|
|
21
|
-
|
|
22
|
-
platforms=( "macosx" "ios" "xros" ) # Add other platforms here if needed
|
|
23
|
-
|
|
24
|
-
for platform in "${platforms[@]}"
|
|
25
|
-
do
|
|
26
|
-
mkdir -p "${platform}/hermes.framework"
|
|
27
|
-
clang dummy.c -dynamiclib -o "${platform}/hermes.framework/hermes"
|
|
28
|
-
done
|
|
29
|
-
|
|
30
|
-
rm dummy.c
|
|
31
|
-
|
|
32
|
-
popd > /dev/null || exit 1
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*
|
|
7
|
-
* @format
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
'use strict';
|
|
11
|
-
|
|
12
|
-
const {execSync} = require('child_process');
|
|
13
|
-
const fs = require('fs');
|
|
14
|
-
const yargs = require('yargs');
|
|
15
|
-
|
|
16
|
-
const LAST_BUILD_FILENAME = '.last_build_configuration';
|
|
17
|
-
|
|
18
|
-
function validateBuildConfiguration(configuration) {
|
|
19
|
-
if (!['Debug', 'Release'].includes(configuration)) {
|
|
20
|
-
throw new Error(`Invalid configuration ${configuration}`);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
function validateVersion(version) {
|
|
25
|
-
if (version == null || version === '') {
|
|
26
|
-
throw new Error('Version cannot be empty');
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
function shouldReplaceHermesConfiguration(configuration) {
|
|
31
|
-
const fileExists = fs.existsSync(LAST_BUILD_FILENAME);
|
|
32
|
-
|
|
33
|
-
if (fileExists) {
|
|
34
|
-
console.log(`Found ${LAST_BUILD_FILENAME} file`);
|
|
35
|
-
const oldConfiguration = fs.readFileSync(LAST_BUILD_FILENAME).toString();
|
|
36
|
-
if (oldConfiguration === configuration) {
|
|
37
|
-
console.log(
|
|
38
|
-
'Same config of the previous build. No need to replace Hermes engine',
|
|
39
|
-
);
|
|
40
|
-
return false;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
// Assumption: if there is no stored last build, we assume that it was build for debug.
|
|
45
|
-
if (!fileExists && configuration === 'Debug') {
|
|
46
|
-
console.log(
|
|
47
|
-
'No previous build detected, but Debug Configuration. No need to replace Hermes engine',
|
|
48
|
-
);
|
|
49
|
-
return false;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
return true;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
function replaceHermesConfiguration(configuration, version, podsRoot) {
|
|
56
|
-
const tarballURLPath = `${podsRoot}/hermes-engine-artifacts/hermes-ios-${version.toLowerCase()}-${configuration.toLowerCase()}.tar.gz`;
|
|
57
|
-
|
|
58
|
-
const finalLocation = 'hermes-engine';
|
|
59
|
-
console.log('Preparing the final location');
|
|
60
|
-
fs.rmSync(finalLocation, {force: true, recursive: true});
|
|
61
|
-
fs.mkdirSync(finalLocation, {recursive: true});
|
|
62
|
-
|
|
63
|
-
console.log('Extracting the tarball');
|
|
64
|
-
execSync(`tar -xf ${tarballURLPath} -C ${finalLocation}`);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
function updateLastBuildConfiguration(configuration) {
|
|
68
|
-
fs.writeFileSync(LAST_BUILD_FILENAME, configuration);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
function main(configuration, version, podsRoot) {
|
|
72
|
-
validateBuildConfiguration(configuration);
|
|
73
|
-
validateVersion(version);
|
|
74
|
-
|
|
75
|
-
if (!shouldReplaceHermesConfiguration(configuration)) {
|
|
76
|
-
return;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
replaceHermesConfiguration(configuration, version, podsRoot);
|
|
80
|
-
updateLastBuildConfiguration(configuration);
|
|
81
|
-
console.log('Done replacing hermes-engine');
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
// This script is executed in the Pods folder, which is usually not synched to Github, so it should be ok
|
|
85
|
-
const argv = yargs
|
|
86
|
-
.option('c', {
|
|
87
|
-
alias: 'configuration',
|
|
88
|
-
description:
|
|
89
|
-
'Configuration to use to download the right Hermes version. Allowed values are "Debug" and "Release".',
|
|
90
|
-
})
|
|
91
|
-
.option('r', {
|
|
92
|
-
alias: 'reactNativeVersion',
|
|
93
|
-
description:
|
|
94
|
-
'The Version of React Native associated with the Hermes tarball.',
|
|
95
|
-
})
|
|
96
|
-
.option('p', {
|
|
97
|
-
alias: 'podsRoot',
|
|
98
|
-
description: 'The path to the Pods root folder',
|
|
99
|
-
})
|
|
100
|
-
.usage('Usage: $0 -c Debug -r <version> -p <path/to/react-native>').argv;
|
|
101
|
-
|
|
102
|
-
const configuration = argv.configuration;
|
|
103
|
-
const version = argv.reactNativeVersion;
|
|
104
|
-
const podsRoot = argv.podsRoot;
|
|
105
|
-
|
|
106
|
-
main(configuration, version, podsRoot);
|