react-native-tvos 0.71.8-0rc0 → 0.71.8-0rc2
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/Components/TextInput/TextInput.js +1 -0
- package/Libraries/Core/ReactNativeVersion.js +1 -1
- package/React/Base/RCTVersion.m +1 -1
- package/React-Core.podspec +1 -2
- package/ReactAndroid/gradle.properties +1 -1
- package/ReactAndroid/hermes-engine/build.gradle +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +1 -1
- package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
- package/ReactCommon/hermes/React-hermes.podspec +1 -1
- package/package.json +1 -1
- package/scripts/hermes/hermes-utils.js +3 -3
- package/sdks/.hermesversion +1 -1
- package/sdks/hermes-engine/hermes-engine.podspec +8 -3
- package/sdks/hermes-engine/utils/build-apple-framework.sh +5 -1
- package/sdks/hermes-engine/utils/build-ios-framework.sh +5 -1
- package/template/package.json +1 -1
- package/sdks/hermesc/linux64-bin/hermesc +0 -0
- package/sdks/hermesc/osx-bin/hermesc +0 -0
- package/sdks/hermesc/win64-bin/hermesc.exe +0 -0
- package/sdks/hermesc/win64-bin/icudt64.dll +0 -0
- package/sdks/hermesc/win64-bin/icuin64.dll +0 -0
- package/sdks/hermesc/win64-bin/icuio64.dll +0 -0
- package/sdks/hermesc/win64-bin/icutest64.dll +0 -0
- package/sdks/hermesc/win64-bin/icutu64.dll +0 -0
- package/sdks/hermesc/win64-bin/icuuc64.dll +0 -0
- package/sdks/hermesc/win64-bin/msvcp140.dll +0 -0
- package/sdks/hermesc/win64-bin/vcruntime140.dll +0 -0
- package/sdks/hermesc/win64-bin/vcruntime140_1.dll +0 -0
|
@@ -18,6 +18,7 @@ import type {ViewProps} from '../View/ViewPropTypes';
|
|
|
18
18
|
import type {TextInputType} from './TextInput.flow';
|
|
19
19
|
|
|
20
20
|
import usePressability from '../../Pressability/usePressability';
|
|
21
|
+
import warnOnce from '../../Utilities/warnOnce';
|
|
21
22
|
import flattenStyle from '../../StyleSheet/flattenStyle';
|
|
22
23
|
import StyleSheet, {
|
|
23
24
|
type ColorValue,
|
package/React/Base/RCTVersion.m
CHANGED
package/React-Core.podspec
CHANGED
|
@@ -19,7 +19,6 @@ end
|
|
|
19
19
|
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'
|
|
20
20
|
folly_version = '2021.07.22.00'
|
|
21
21
|
boost_compiler_flags = '-Wno-documentation'
|
|
22
|
-
tvos_no_hermes_flags = '-DRCT_USE_HERMES=0'
|
|
23
22
|
|
|
24
23
|
use_hermes = ENV['USE_HERMES'] == '1'
|
|
25
24
|
|
|
@@ -61,7 +60,7 @@ Pod::Spec.new do |s|
|
|
|
61
60
|
s.source = source
|
|
62
61
|
s.resource_bundle = { "AccessibilityResources" => ["React/AccessibilityResources/*.lproj"]}
|
|
63
62
|
s.ios.compiler_flags = folly_compiler_flags + ' ' + boost_compiler_flags
|
|
64
|
-
s.tvos.compiler_flags = folly_compiler_flags + ' ' + boost_compiler_flags
|
|
63
|
+
s.tvos.compiler_flags = folly_compiler_flags + ' ' + boost_compiler_flags
|
|
65
64
|
s.header_dir = "React"
|
|
66
65
|
s.framework = "JavaScriptCore"
|
|
67
66
|
s.pod_target_xcconfig = {
|
|
@@ -47,7 +47,7 @@ def hermesDir = System.getenv("REACT_NATIVE_OVERRIDE_HERMES_DIR") ?: new File(re
|
|
|
47
47
|
def hermesBuildDir = new File("$buildDir/hermes")
|
|
48
48
|
|
|
49
49
|
def hermesVersion = "main"
|
|
50
|
-
def hermesVersionFile = new File(reactNativeRootDir, "sdks/.hermesversion")
|
|
50
|
+
def hermesVersionFile = new File(reactNativeRootDir, "node_modules/react-native-core/sdks/.hermesversion")
|
|
51
51
|
if (hermesVersionFile.exists()) {
|
|
52
52
|
hermesVersion = hermesVersionFile.text
|
|
53
53
|
}
|
|
@@ -31,7 +31,7 @@ Pod::Spec.new do |s|
|
|
|
31
31
|
s.homepage = "https://reactnative.dev/"
|
|
32
32
|
s.license = package['license']
|
|
33
33
|
s.author = "Facebook, Inc. and its affiliates"
|
|
34
|
-
s.platforms = { :osx => "10.14", :ios => "12.4" }
|
|
34
|
+
s.platforms = { :osx => "10.14", :ios => "12.4", :tvos => "12.4" }
|
|
35
35
|
s.source = source
|
|
36
36
|
s.source_files = "executor/*.{cpp,h}",
|
|
37
37
|
"inspector/*.{cpp,h}",
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@ const SDKS_DIR = path.normalize(path.join(__dirname, '..', '..', 'sdks'));
|
|
|
18
18
|
const HERMES_DIR = path.join(SDKS_DIR, 'hermes');
|
|
19
19
|
const HERMES_TAG_FILE_PATH = path.join(SDKS_DIR, '.hermesversion');
|
|
20
20
|
const HERMES_SOURCE_TARBALL_BASE_URL =
|
|
21
|
-
'https://github.com/
|
|
21
|
+
'https://github.com/react-native-tvos/hermes/tarball/';
|
|
22
22
|
const HERMES_TARBALL_DOWNLOAD_DIR = path.join(SDKS_DIR, 'download');
|
|
23
23
|
const MACOS_BIN_DIR = path.join(SDKS_DIR, 'hermesc', 'osx-bin');
|
|
24
24
|
const MACOS_HERMESC_PATH = path.join(MACOS_BIN_DIR, 'hermesc');
|
|
@@ -72,7 +72,7 @@ function setHermesTag(hermesTag) {
|
|
|
72
72
|
|
|
73
73
|
function getHermesTagSHA(hermesTag) {
|
|
74
74
|
return execSync(
|
|
75
|
-
`git ls-remote https://github.com/
|
|
75
|
+
`git ls-remote https://github.com/react-native-tvos/hermes ${hermesTag} | cut -f 1`,
|
|
76
76
|
)
|
|
77
77
|
.toString()
|
|
78
78
|
.trim();
|
|
@@ -98,7 +98,7 @@ function downloadHermesSourceTarball() {
|
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
console.info(
|
|
101
|
-
`[Hermes] Downloading Hermes source code for commit ${hermesTagSHA}`,
|
|
101
|
+
`[Hermes] Downloading Hermes source code for commit ${hermesTagSHA} from ${hermesTarballUrl}`,
|
|
102
102
|
);
|
|
103
103
|
try {
|
|
104
104
|
delegateSync('curl', [hermesTarballUrl, '-Lo', hermesTarballDownloadPath]);
|
package/sdks/.hermesversion
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
hermes-2023-
|
|
1
|
+
hermes-2023-05-19-RNv0.71.8-03c5337ba368c343ff3220d428c58f499dbb4ff1
|
|
@@ -20,7 +20,7 @@ hermestag_file = File.join(react_native_path, "sdks", ".hermesversion")
|
|
|
20
20
|
isInCI = ENV['REACT_NATIVE_CI'] === 'true'
|
|
21
21
|
|
|
22
22
|
source = {}
|
|
23
|
-
git = "https://github.com/
|
|
23
|
+
git = "https://github.com/react-native-tvos/hermes.git"
|
|
24
24
|
|
|
25
25
|
isInMain = version.include?('1000.0.0')
|
|
26
26
|
isNightly = version.start_with?('0.0.0-')
|
|
@@ -51,7 +51,9 @@ elsif File.exist?(hermestag_file) && isInCI
|
|
|
51
51
|
else
|
|
52
52
|
# Sample url from Maven:
|
|
53
53
|
# https://repo1.maven.org/maven2/com/facebook/react/react-native-artifacts/0.71.0/react-native-artifacts-0.71.0-hermes-ios-debug.tar.gz
|
|
54
|
-
source[:http] = "https://
|
|
54
|
+
source[:http] = "https://s01.oss.sonatype.org/content/groups/public/io/github/react-native-tvos/react-native-artifacts/#{version}/react-native-artifacts-#{version}-hermes-ios-#{build_type.to_s}.tar.gz"
|
|
55
|
+
# Use the URL below when testing artifacts published to local temp Maven
|
|
56
|
+
# source[:http] = "file:///tmp/maven-local/io/github/react-native-tvos/react-native-artifacts/#{version}/react-native-artifacts-#{version}-hermes-ios-#{build_type.to_s}.tar.gz"
|
|
55
57
|
end
|
|
56
58
|
|
|
57
59
|
Pod::Spec.new do |spec|
|
|
@@ -63,7 +65,7 @@ Pod::Spec.new do |spec|
|
|
|
63
65
|
spec.license = package['license']
|
|
64
66
|
spec.author = "Facebook"
|
|
65
67
|
spec.source = source
|
|
66
|
-
spec.platforms = { :osx => "10.13", :ios => "12.4" }
|
|
68
|
+
spec.platforms = { :osx => "10.13", :ios => "12.4", :tvos => "12.4" }
|
|
67
69
|
|
|
68
70
|
spec.preserve_paths = '**/*.*'
|
|
69
71
|
spec.source_files = ''
|
|
@@ -81,6 +83,7 @@ Pod::Spec.new do |spec|
|
|
|
81
83
|
ss.exclude_files = ["destroot/include/jsi/jsi/JSIDynamic.{h,cpp}", "destroot/include/jsi/jsi/jsilib-*.{h,cpp}"]
|
|
82
84
|
ss.header_mappings_dir = "destroot/include"
|
|
83
85
|
ss.ios.vendored_frameworks = "destroot/Library/Frameworks/universal/hermes.xcframework"
|
|
86
|
+
ss.tvos.vendored_frameworks = "destroot/Library/Frameworks/universal/hermes.xcframework"
|
|
84
87
|
ss.osx.vendored_frameworks = "destroot/Library/Frameworks/macosx/hermes.framework"
|
|
85
88
|
end
|
|
86
89
|
|
|
@@ -119,6 +122,8 @@ Pod::Spec.new do |spec|
|
|
|
119
122
|
spec.user_target_xcconfig = {
|
|
120
123
|
'FRAMEWORK_SEARCH_PATHS' => '"$(PODS_ROOT)/hermes-engine/destroot/Library/Frameworks/iphoneos" ' +
|
|
121
124
|
'"$(PODS_ROOT)/hermes-engine/destroot/Library/Frameworks/iphonesimulator" ' +
|
|
125
|
+
'"$(PODS_ROOT)/hermes-engine/destroot/Library/Frameworks/appletvos" ' +
|
|
126
|
+
'"$(PODS_ROOT)/hermes-engine/destroot/Library/Frameworks/appletvsimulator" ' +
|
|
122
127
|
'"$(PODS_ROOT)/hermes-engine/destroot/Library/Frameworks/macosx" ' +
|
|
123
128
|
'"$(PODS_ROOT)/hermes-engine/destroot/Library/Frameworks/catalyst"',
|
|
124
129
|
'OTHER_LDFLAGS' => '-framework "hermes"',
|
|
@@ -37,6 +37,10 @@ function get_ios_deployment_target {
|
|
|
37
37
|
use_env_var_or_ruby_prop "${IOS_DEPLOYMENT_TARGET}" "deployment_target('ios')"
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
+
function get_tvos_deployment_target {
|
|
41
|
+
use_env_var_or_ruby_prop "${IOS_DEPLOYMENT_TARGET}" "deployment_target('tvos')"
|
|
42
|
+
}
|
|
43
|
+
|
|
40
44
|
function get_mac_deployment_target {
|
|
41
45
|
use_env_var_or_ruby_prop "${MAC_DEPLOYMENT_TARGET}" "deployment_target('osx')"
|
|
42
46
|
}
|
|
@@ -54,7 +58,7 @@ function build_host_hermesc {
|
|
|
54
58
|
function configure_apple_framework {
|
|
55
59
|
local build_cli_tools enable_bitcode enable_debugger cmake_build_type
|
|
56
60
|
|
|
57
|
-
if [[ $1 == iphoneos || $1 == catalyst ]]; then
|
|
61
|
+
if [[ $1 == appletvos || $1 == iphoneos || $1 == catalyst ]]; then
|
|
58
62
|
enable_bitcode="true"
|
|
59
63
|
else
|
|
60
64
|
enable_bitcode="false"
|
|
@@ -10,12 +10,16 @@ CURR_SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd -P)"
|
|
|
10
10
|
|
|
11
11
|
if [ ! -d destroot/Library/Frameworks/universal/hermes.xcframework ]; then
|
|
12
12
|
ios_deployment_target=$(get_ios_deployment_target)
|
|
13
|
+
tvos_deployment_target=$(get_tvos_deployment_target)
|
|
13
14
|
|
|
14
15
|
build_apple_framework "iphoneos" "arm64" "$ios_deployment_target"
|
|
15
16
|
build_apple_framework "iphonesimulator" "x86_64;arm64" "$ios_deployment_target"
|
|
16
17
|
build_apple_framework "catalyst" "x86_64;arm64" "$ios_deployment_target"
|
|
17
18
|
|
|
18
|
-
|
|
19
|
+
build_apple_framework "appletvos" "arm64" "$tvos_deployment_target"
|
|
20
|
+
build_apple_framework "appletvsimulator" "x86_64;arm64" "$tvos_deployment_target"
|
|
21
|
+
|
|
22
|
+
create_universal_framework "iphoneos" "iphonesimulator" "appletvos" "appletvsimulator" "catalyst"
|
|
19
23
|
else
|
|
20
24
|
echo "Skipping; Clean \"destroot\" to rebuild".
|
|
21
25
|
fi
|
package/template/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|