react-native-tvos 0.72.4-0rc1 → 0.72.6-0

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.
Files changed (70) hide show
  1. package/Libraries/Core/ReactNativeVersion.js +2 -2
  2. package/Libraries/vendor/emitter/EventEmitter.js +3 -1
  3. package/README-core.md +147 -0
  4. package/README.md +4 -3
  5. package/React/Base/RCTBundleURLProvider.h +33 -2
  6. package/React/Base/RCTBundleURLProvider.mm +78 -15
  7. package/React/Base/RCTVersion.m +2 -2
  8. package/React/CoreModules/RCTTiming.mm +5 -0
  9. package/ReactAndroid/gradle.properties +1 -1
  10. package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +2 -2
  11. package/ReactAndroid/src/main/java/com/facebook/react/shell/MainReactPackage.java +5 -0
  12. package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/MaintainVisibleScrollPositionHelper.java +4 -0
  13. package/ReactAndroid/src/main/jni/CMakeLists.txt +5 -0
  14. package/ReactCommon/React-Fabric.podspec +1 -1
  15. package/ReactCommon/ReactCommon.podspec +1 -1
  16. package/ReactCommon/cxxreact/ReactNativeVersion.h +2 -2
  17. package/ReactCommon/jsc/JSCRuntime.cpp +10 -0
  18. package/ReactCommon/react/debug/React-debug.podspec +1 -1
  19. package/ReactCommon/react/nativemodule/core/platform/ios/React-NativeModulesApple.podspec +1 -1
  20. package/ReactCommon/react/nativemodule/samples/ReactCommon-Samples.podspec +1 -1
  21. package/ReactCommon/react/renderer/core/RawPropsKeyMap.cpp +2 -0
  22. package/ReactCommon/react/renderer/core/RawPropsParser.cpp +1 -0
  23. package/ReactCommon/react/renderer/core/RawPropsPrimitives.h +4 -4
  24. package/ReactCommon/react/renderer/graphics/React-graphics.podspec +1 -1
  25. package/ReactCommon/react/renderer/imagemanager/platform/ios/React-ImageManager.podspec +1 -1
  26. package/ReactCommon/react/renderer/runtimescheduler/React-runtimescheduler.podspec +1 -1
  27. package/ReactCommon/react/utils/React-utils.podspec +1 -1
  28. package/package.json +8 -7
  29. package/scripts/cocoapods/helpers.rb +16 -0
  30. package/scripts/cocoapods/utils.rb +104 -8
  31. package/scripts/react_native_pods.rb +6 -2
  32. package/sdks/hermes-engine/utils/build-apple-framework.sh +8 -1
  33. package/sdks/hermes-engine/utils/build-hermes-xcode.sh +8 -0
  34. package/sdks/hermesc/linux64-bin/hermesc +0 -0
  35. package/sdks/hermesc/osx-bin/hermesc +0 -0
  36. package/sdks/hermesc/win64-bin/hermesc.exe +0 -0
  37. package/template/Gemfile +2 -1
  38. package/template/ios/HelloWorld.xcodeproj/project.pbxproj +95 -13
  39. package/template/package.json +2 -2
  40. package/types/index.d.ts +1 -0
  41. package/types/public/ReactNativeTVTypes.d.ts +192 -0
  42. package/ReactAndroid/src/main/java/com/facebook/react/ReactAndroidHWInputDeviceHelper.java +0 -98
  43. package/scripts/cocoapods/__tests__/codegen-test.rb +0 -242
  44. package/scripts/cocoapods/__tests__/codegen_utils-test.rb +0 -602
  45. package/scripts/cocoapods/__tests__/fabric-test.rb +0 -68
  46. package/scripts/cocoapods/__tests__/flipper-test.rb +0 -161
  47. package/scripts/cocoapods/__tests__/jsengine-test.rb +0 -130
  48. package/scripts/cocoapods/__tests__/local_podspec_patch-test.rb +0 -167
  49. package/scripts/cocoapods/__tests__/new_architecture-test.rb +0 -303
  50. package/scripts/cocoapods/__tests__/test_utils/CodegenScriptPhaseExtractorMock.rb +0 -21
  51. package/scripts/cocoapods/__tests__/test_utils/CodegenUtilsMock.rb +0 -108
  52. package/scripts/cocoapods/__tests__/test_utils/DirMock.rb +0 -72
  53. package/scripts/cocoapods/__tests__/test_utils/EnvironmentMock.rb +0 -21
  54. package/scripts/cocoapods/__tests__/test_utils/FileMock.rb +0 -113
  55. package/scripts/cocoapods/__tests__/test_utils/FileUtilsMock.rb +0 -40
  56. package/scripts/cocoapods/__tests__/test_utils/FinderMock.rb +0 -28
  57. package/scripts/cocoapods/__tests__/test_utils/InstallerMock.rb +0 -222
  58. package/scripts/cocoapods/__tests__/test_utils/LocalPodspecPatchMock.rb +0 -14
  59. package/scripts/cocoapods/__tests__/test_utils/Open3Mock.rb +0 -43
  60. package/scripts/cocoapods/__tests__/test_utils/PathnameMock.rb +0 -42
  61. package/scripts/cocoapods/__tests__/test_utils/PodMock.rb +0 -144
  62. package/scripts/cocoapods/__tests__/test_utils/SpecMock.rb +0 -30
  63. package/scripts/cocoapods/__tests__/test_utils/SysctlCheckerMock.rb +0 -21
  64. package/scripts/cocoapods/__tests__/test_utils/TargetDefinitionMock.rb +0 -12
  65. package/scripts/cocoapods/__tests__/test_utils/podSpy.rb +0 -39
  66. package/scripts/cocoapods/__tests__/test_utils/systemUtils.rb +0 -14
  67. package/scripts/cocoapods/__tests__/utils-test.rb +0 -766
  68. package/scripts/codegen/__test_fixtures__/fixtures.js +0 -132
  69. package/scripts/codegen/__tests__/generate-artifacts-executor-test.js +0 -500
  70. package/scripts/codegen/__tests__/generate-specs-cli-executor-test.js +0 -88
@@ -45,7 +45,7 @@ Pod::Spec.new do |s|
45
45
 
46
46
  if ENV['USE_FRAMEWORKS']
47
47
  s.module_name = "React_graphics"
48
- s.header_mappings_dir = File.absolute_path("../../..")
48
+ s.header_mappings_dir = "../../.."
49
49
  header_search_paths = header_search_paths + ["\"$(PODS_TARGET_SRCROOT)/platform/ios\""]
50
50
  end
51
51
 
@@ -42,7 +42,7 @@ Pod::Spec.new do |s|
42
42
 
43
43
  if ENV['USE_FRAMEWORKS']
44
44
  s.module_name = "React_ImageManager"
45
- s.header_mappings_dir = File.absolute_path("./")
45
+ s.header_mappings_dir = "./"
46
46
  header_search_paths = header_search_paths + [
47
47
  "\"${PODS_CONFIGURATION_BUILD_DIR}/React-Fabric/React_Fabric.framework/Headers\"",
48
48
  "\"$(PODS_ROOT)/DoubleConversion\"",
@@ -47,7 +47,7 @@ Pod::Spec.new do |s|
47
47
 
48
48
  if ENV['USE_FRAMEWORKS']
49
49
  s.module_name = "React_runtimescheduler"
50
- s.header_mappings_dir = File.absolute_path("../../..")
50
+ s.header_mappings_dir = "../../.."
51
51
  end
52
52
 
53
53
  s.dependency "React-jsi"
@@ -48,7 +48,7 @@ Pod::Spec.new do |s|
48
48
 
49
49
  if ENV['USE_FRAMEWORKS']
50
50
  s.module_name = "React_utils"
51
- s.header_mappings_dir = File.absolute_path("../..")
51
+ s.header_mappings_dir = "../.."
52
52
  end
53
53
 
54
54
  s.dependency "RCT-Folly", folly_version
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-tvos",
3
- "version": "0.72.4-0rc1",
3
+ "version": "0.72.6-0",
4
4
  "bin": "./cli.js",
5
5
  "description": "A framework for building native apps using React",
6
6
  "license": "MIT",
@@ -34,6 +34,7 @@
34
34
  "ReactAndroid",
35
35
  "ReactCommon",
36
36
  "README.md",
37
+ "README-core.md",
37
38
  "rn-get-polyfills.js",
38
39
  "scripts/compose-source-maps.js",
39
40
  "scripts/find-node-for-xcode.sh",
@@ -72,18 +73,18 @@
72
73
  "types"
73
74
  ],
74
75
  "scripts": {
75
- "prepack": "cp ../../README-tv.md ./README.md"
76
+ "prepack": "cp ../../README.md ./README.md; cp ../../README-core.md ./README-core.md"
76
77
  },
77
78
  "peerDependencies": {
78
79
  "react": "18.2.0"
79
80
  },
80
81
  "dependencies": {
81
82
  "@jest/create-cache-key-function": "^29.2.1",
82
- "@react-native-community/cli": "11.3.6",
83
- "@react-native-community/cli-platform-android": "11.3.6",
84
- "@react-native-community/cli-platform-ios": "11.3.6",
83
+ "@react-native-community/cli": "11.3.7",
84
+ "@react-native-community/cli-platform-android": "11.3.7",
85
+ "@react-native-community/cli-platform-ios": "11.3.7",
85
86
  "@react-native/assets-registry": "^0.72.0",
86
- "@react-native/codegen": "^0.72.6",
87
+ "@react-native/codegen": "^0.72.7",
87
88
  "@react-native/gradle-plugin": "^0.72.11",
88
89
  "@react-native/js-polyfills": "^0.72.1",
89
90
  "@react-native/normalize-colors": "^0.72.0",
@@ -91,7 +92,7 @@
91
92
  "abort-controller": "^3.0.0",
92
93
  "anser": "^1.4.9",
93
94
  "base64-js": "^1.1.2",
94
- "deprecated-react-native-prop-types": "4.1.0",
95
+ "deprecated-react-native-prop-types": "^4.2.3",
95
96
  "event-target-shim": "^5.0.1",
96
97
  "flow-enums-runtime": "^0.0.5",
97
98
  "invariant": "^2.2.4",
@@ -11,6 +11,14 @@ class SysctlChecker
11
11
  end
12
12
  end
13
13
 
14
+ # Helper class that is used to easily send commands to Xcodebuild
15
+ # And that can be subclassed for testing purposes.
16
+ class Xcodebuild
17
+ def self.version
18
+ `xcodebuild -version`
19
+ end
20
+ end
21
+
14
22
  # Helper object to wrap system properties like RUBY_PLATFORM
15
23
  # This makes it easier to mock the behaviour in tests
16
24
  class Environment
@@ -26,3 +34,11 @@ class Finder
26
34
  return `find #{path} -type f \\( #{js_files} -or #{ts_files} \\)`.split("\n").sort()
27
35
  end
28
36
  end
37
+
38
+ module Helpers
39
+ class Constants
40
+ def self.min_ios_version_supported
41
+ return '12.4'
42
+ end
43
+ end
44
+ end
@@ -122,16 +122,31 @@ class ReactNativePodsUtils
122
122
  end
123
123
  end
124
124
 
125
- def self.apply_xcode_15_patch(installer)
126
- installer.target_installation_results.pod_target_installation_results
127
- .each do |pod_name, target_installation_result|
128
- target_installation_result.native_target.build_configurations.each do |config|
129
- # unary_function and binary_function are no longer provided in C++17 and newer standard modes as part of Xcode 15. They can be re-enabled with setting _LIBCPP_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION
130
- # Ref: https://developer.apple.com/documentation/xcode-release-notes/xcode-15-release-notes#Deprecations
131
- config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= '$(inherited) '
132
- config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] << '"_LIBCPP_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION" '
125
+ def self.apply_xcode_15_patch(installer, xcodebuild_manager: Xcodebuild)
126
+ projects = self.extract_projects(installer)
127
+
128
+ gcc_preprocessor_definition_key = 'GCC_PREPROCESSOR_DEFINITIONS'
129
+ other_ld_flags_key = 'OTHER_LDFLAGS'
130
+ libcpp_cxx17_fix = '_LIBCPP_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION'
131
+ xcode15_compatibility_flags = '-Wl -ld_classic '
132
+
133
+ projects.each do |project|
134
+ project.build_configurations.each do |config|
135
+ # fix for unary_function and binary_function
136
+ self.safe_init(config, gcc_preprocessor_definition_key)
137
+ self.add_value_to_setting_if_missing(config, gcc_preprocessor_definition_key, libcpp_cxx17_fix)
138
+
139
+ # fix for weak linking
140
+ self.safe_init(config, other_ld_flags_key)
141
+ if self.is_using_xcode15_or_greter(:xcodebuild_manager => xcodebuild_manager)
142
+ self.add_value_to_setting_if_missing(config, other_ld_flags_key, xcode15_compatibility_flags)
143
+ else
144
+ self.remove_value_from_setting_if_present(config, other_ld_flags_key, xcode15_compatibility_flags)
145
+ end
133
146
  end
147
+ project.save()
134
148
  end
149
+
135
150
  end
136
151
 
137
152
  def self.apply_flags_for_fabric(installer, fabric_enabled: false)
@@ -233,6 +248,38 @@ class ReactNativePodsUtils
233
248
  end
234
249
  end
235
250
 
251
+ def self.updateIphoneOSDeploymentTarget(installer)
252
+ pod_to_update = Set.new([
253
+ "boost",
254
+ "CocoaAsyncSocket",
255
+ "Flipper",
256
+ "Flipper-DoubleConversion",
257
+ "Flipper-Fmt",
258
+ "Flipper-Boost-iOSX",
259
+ "Flipper-Folly",
260
+ "Flipper-Glog",
261
+ "Flipper-PeerTalk",
262
+ "FlipperKit",
263
+ "fmt",
264
+ "libevent",
265
+ "OpenSSL-Universal",
266
+ "RCT-Folly",
267
+ "SocketRocket",
268
+ "YogaKit"
269
+ ])
270
+
271
+ installer.target_installation_results.pod_target_installation_results
272
+ .each do |pod_name, target_installation_result|
273
+ unless pod_to_update.include?(pod_name)
274
+ next
275
+ end
276
+ target_installation_result.native_target.build_configurations.each do |config|
277
+ config.build_settings["IPHONEOS_DEPLOYMENT_TARGET"] = Helpers::Constants.min_ios_version_supported
278
+ config.build_settings["TVOS_DEPLOYMENT_TARGET"] = Helpers::Constants.min_ios_version_supported
279
+ end
280
+ end
281
+ end
282
+
236
283
  # ========= #
237
284
  # Utilities #
238
285
  # ========= #
@@ -244,6 +291,55 @@ class ReactNativePodsUtils
244
291
  .push(installer.pods_project)
245
292
  end
246
293
 
294
+ def self.safe_init(config, setting_name)
295
+ old_config = config.build_settings[setting_name]
296
+ if old_config == nil
297
+ config.build_settings[setting_name] ||= '$(inherited) '
298
+ end
299
+ end
300
+
301
+ def self.add_value_to_setting_if_missing(config, setting_name, value)
302
+ old_config = config.build_settings[setting_name]
303
+ if old_config.is_a?(Array)
304
+ old_config = old_config.join(" ")
305
+ end
306
+
307
+ trimmed_value = value.strip()
308
+ if !old_config.include?(trimmed_value)
309
+ config.build_settings[setting_name] = "#{old_config.strip()} #{trimmed_value}".strip()
310
+ end
311
+ end
312
+
313
+ def self.remove_value_from_setting_if_present(config, setting_name, value)
314
+ old_config = config.build_settings[setting_name]
315
+ if old_config.is_a?(Array)
316
+ old_config = old_config.join(" ")
317
+ end
318
+
319
+ trimmed_value = value.strip()
320
+ if old_config.include?(trimmed_value)
321
+ new_config = old_config.gsub(trimmed_value, "")
322
+ config.build_settings[setting_name] = new_config.strip()
323
+ end
324
+ end
325
+
326
+ def self.is_using_xcode15_or_greter(xcodebuild_manager: Xcodebuild)
327
+ xcodebuild_version = xcodebuild_manager.version
328
+
329
+ # The output of xcodebuild -version is something like
330
+ # Xcode 15.0
331
+ # or
332
+ # Xcode 14.3.1
333
+ # We want to capture the version digits
334
+ regex = /(\d+)\.(\d+)(?:\.(\d+))?/
335
+ if match_data = xcodebuild_version.match(regex)
336
+ major = match_data[1].to_i
337
+ return major >= 15
338
+ end
339
+
340
+ return false
341
+ end
342
+
247
343
  def self.add_compiler_flag_to_project(installer, flag, configuration: nil)
248
344
  projects = self.extract_projects(installer)
249
345
 
@@ -16,6 +16,7 @@ require_relative './cocoapods/codegen_utils.rb'
16
16
  require_relative './cocoapods/utils.rb'
17
17
  require_relative './cocoapods/new_architecture.rb'
18
18
  require_relative './cocoapods/local_podspec_patch.rb'
19
+ require_relative './cocoapods/helpers.rb'
19
20
 
20
21
  $CODEGEN_OUTPUT_DIR = 'build/generated/ios'
21
22
  $CODEGEN_COMPONENT_DIR = 'react/renderer/components'
@@ -35,11 +36,12 @@ require Pod::Executable.execute_command('node', ['-p',
35
36
  {paths: [process.argv[1]]},
36
37
  )', __dir__]).strip
37
38
 
38
- # This function returns the min iOS version supported by React Native
39
+
40
+ # This function returns the min supported OS versions supported by React Native
39
41
  # By using this function, you won't have to manually change your Podfile
40
42
  # when we change the minimum version supported by the framework.
41
43
  def min_ios_version_supported
42
- return '12.4'
44
+ return Helpers::Constants.min_ios_version_supported
43
45
  end
44
46
 
45
47
  # This function prepares the project for React Native, before processing
@@ -250,11 +252,13 @@ def react_native_post_install(
250
252
  ReactNativePodsUtils.set_node_modules_user_settings(installer, react_native_path)
251
253
  ReactNativePodsUtils.apply_flags_for_fabric(installer, fabric_enabled: fabric_enabled)
252
254
  ReactNativePodsUtils.apply_xcode_15_patch(installer)
255
+ ReactNativePodsUtils.updateIphoneOSDeploymentTarget(installer)
253
256
 
254
257
  NewArchitectureHelper.set_clang_cxx_language_standard_if_needed(installer)
255
258
  is_new_arch_enabled = ENV['RCT_NEW_ARCH_ENABLED'] == "1"
256
259
  NewArchitectureHelper.modify_flags_for_new_architecture(installer, is_new_arch_enabled)
257
260
 
261
+
258
262
  Pod::UI.puts "Pod install took #{Time.now.to_i - $START_TIME} [s] to run".green
259
263
  end
260
264
 
@@ -56,7 +56,7 @@ function build_host_hermesc {
56
56
 
57
57
  # Utility function to configure an Apple framework
58
58
  function configure_apple_framework {
59
- local build_cli_tools enable_bitcode enable_debugger cmake_build_type
59
+ local build_cli_tools enable_bitcode enable_debugger cmake_build_type xcode_15_flags xcode_major_version
60
60
 
61
61
  # if [[ $1 == appletvos || $1 == iphoneos || $1 == catalyst ]]; then
62
62
  # enable_bitcode="true"
@@ -84,8 +84,15 @@ function configure_apple_framework {
84
84
  cmake_build_type="MinSizeRel"
85
85
  fi
86
86
 
87
+ xcode_15_flags=""
88
+ xcode_major_version=$(xcodebuild -version | grep -oE '[0-9]*' | head -n 1)
89
+ if [[ $xcode_major_version -ge 15 ]]; then
90
+ xcode_15_flags="LINKER:-ld_classic"
91
+ fi
92
+
87
93
  pushd "$HERMES_PATH" > /dev/null || exit 1
88
94
  cmake -S . -B "build_$1" \
95
+ -DHERMES_EXTRA_LINKER_FLAGS="$xcode_15_flags" \
89
96
  -DHERMES_APPLE_TARGET_PLATFORM:STRING="$1" \
90
97
  -DCMAKE_OSX_ARCHITECTURES:STRING="$2" \
91
98
  -DCMAKE_OSX_DEPLOYMENT_TARGET:STRING="$3" \
@@ -33,6 +33,13 @@ if [ -z "$deployment_target" ]; then
33
33
  deployment_target=${MACOSX_DEPLOYMENT_TARGET}
34
34
  fi
35
35
 
36
+ xcode_15_flags=""
37
+ xcode_major_version=$(xcodebuild -version | grep -oE '[0-9]*' | head -n 1)
38
+ if [[ $xcode_major_version -ge 15 ]]; then
39
+ echo "########### Using LINKER:-ld_classic ###########"
40
+ xcode_15_flags="LINKER:-ld_classic"
41
+ fi
42
+
36
43
  architectures=$( echo "$ARCHS" | tr " " ";" )
37
44
 
38
45
  echo "Configure Apple framework"
@@ -40,6 +47,7 @@ echo "Configure Apple framework"
40
47
  "$CMAKE_BINARY" \
41
48
  -S "${PODS_ROOT}/hermes-engine" \
42
49
  -B "${PODS_ROOT}/hermes-engine/build/${PLATFORM_NAME}" \
50
+ -DHERMES_EXTRA_LINKER_FLAGS="$xcode_15_flags" \
43
51
  -DHERMES_APPLE_TARGET_PLATFORM:STRING="$PLATFORM_NAME" \
44
52
  -DCMAKE_OSX_ARCHITECTURES:STRING="$architectures" \
45
53
  -DCMAKE_OSX_DEPLOYMENT_TARGET:STRING="$deployment_target" \
Binary file
Binary file
Binary file
package/template/Gemfile CHANGED
@@ -3,4 +3,5 @@ source 'https://rubygems.org'
3
3
  # You may use http://rbenv.org/ or https://rvm.io/ to install and use this version
4
4
  ruby ">= 2.6.10"
5
5
 
6
- gem 'cocoapods', '~> 1.12'
6
+ gem 'cocoapods', '~> 1.13'
7
+ gem 'activesupport', '>= 6.1.7.3', '< 7.1.0'
@@ -3,7 +3,7 @@
3
3
  archiveVersion = 1;
4
4
  classes = {
5
5
  };
6
- objectVersion = 46;
6
+ objectVersion = 54;
7
7
  objects = {
8
8
 
9
9
  /* Begin PBXBuildFile section */
@@ -254,6 +254,7 @@
254
254
  2D02E4791E0B4A5D006451C7 /* Resources */,
255
255
  2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */,
256
256
  42686649B799B0EA1ADB4648 /* [CP] Copy Pods Resources */,
257
+ 1D628A144AB903441126BE7D /* [CP] Embed Pods Frameworks */,
257
258
  );
258
259
  buildRules = (
259
260
  );
@@ -273,6 +274,7 @@
273
274
  2D02E48D1E0B4A5D006451C7 /* Frameworks */,
274
275
  2D02E48E1E0B4A5D006451C7 /* Resources */,
275
276
  84F93B44286727BF8D357577 /* [CP] Copy Pods Resources */,
277
+ 1B09D78B63D400B062C57686 /* [CP] Embed Pods Frameworks */,
276
278
  );
277
279
  buildRules = (
278
280
  );
@@ -399,6 +401,40 @@
399
401
  shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-HelloWorld/Pods-HelloWorld-resources.sh\"\n";
400
402
  showEnvVarsInLog = 0;
401
403
  };
404
+ 1B09D78B63D400B062C57686 /* [CP] Embed Pods Frameworks */ = {
405
+ isa = PBXShellScriptBuildPhase;
406
+ buildActionMask = 2147483647;
407
+ files = (
408
+ );
409
+ inputFileListPaths = (
410
+ "${PODS_ROOT}/Target Support Files/Pods-HelloWorld-tvOS-HelloWorld-tvOSTests/Pods-HelloWorld-tvOS-HelloWorld-tvOSTests-frameworks-${CONFIGURATION}-input-files.xcfilelist",
411
+ );
412
+ name = "[CP] Embed Pods Frameworks";
413
+ outputFileListPaths = (
414
+ "${PODS_ROOT}/Target Support Files/Pods-HelloWorld-tvOS-HelloWorld-tvOSTests/Pods-HelloWorld-tvOS-HelloWorld-tvOSTests-frameworks-${CONFIGURATION}-output-files.xcfilelist",
415
+ );
416
+ runOnlyForDeploymentPostprocessing = 0;
417
+ shellPath = /bin/sh;
418
+ shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-HelloWorld-tvOS-HelloWorld-tvOSTests/Pods-HelloWorld-tvOS-HelloWorld-tvOSTests-frameworks.sh\"\n";
419
+ showEnvVarsInLog = 0;
420
+ };
421
+ 1D628A144AB903441126BE7D /* [CP] Embed Pods Frameworks */ = {
422
+ isa = PBXShellScriptBuildPhase;
423
+ buildActionMask = 2147483647;
424
+ files = (
425
+ );
426
+ inputFileListPaths = (
427
+ "${PODS_ROOT}/Target Support Files/Pods-HelloWorld-tvOS/Pods-HelloWorld-tvOS-frameworks-${CONFIGURATION}-input-files.xcfilelist",
428
+ );
429
+ name = "[CP] Embed Pods Frameworks";
430
+ outputFileListPaths = (
431
+ "${PODS_ROOT}/Target Support Files/Pods-HelloWorld-tvOS/Pods-HelloWorld-tvOS-frameworks-${CONFIGURATION}-output-files.xcfilelist",
432
+ );
433
+ runOnlyForDeploymentPostprocessing = 0;
434
+ shellPath = /bin/sh;
435
+ shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-HelloWorld-tvOS/Pods-HelloWorld-tvOS-frameworks.sh\"\n";
436
+ showEnvVarsInLog = 0;
437
+ };
402
438
  2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */ = {
403
439
  isa = PBXShellScriptBuildPhase;
404
440
  buildActionMask = 2147483647;
@@ -688,7 +724,11 @@
688
724
  );
689
725
  INFOPLIST_FILE = HelloWorldTests/Info.plist;
690
726
  IPHONEOS_DEPLOYMENT_TARGET = 12.4;
691
- LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
727
+ LD_RUNPATH_SEARCH_PATHS = (
728
+ "$(inherited)",
729
+ "@executable_path/Frameworks",
730
+ "@loader_path/Frameworks",
731
+ );
692
732
  OTHER_LDFLAGS = (
693
733
  "-ObjC",
694
734
  "-lc++",
@@ -708,7 +748,11 @@
708
748
  COPY_PHASE_STRIP = NO;
709
749
  INFOPLIST_FILE = HelloWorldTests/Info.plist;
710
750
  IPHONEOS_DEPLOYMENT_TARGET = 12.4;
711
- LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
751
+ LD_RUNPATH_SEARCH_PATHS = (
752
+ "$(inherited)",
753
+ "@executable_path/Frameworks",
754
+ "@loader_path/Frameworks",
755
+ );
712
756
  OTHER_LDFLAGS = (
713
757
  "-ObjC",
714
758
  "-lc++",
@@ -733,7 +777,11 @@
733
777
  "COCOAPODS=1",
734
778
  );
735
779
  INFOPLIST_FILE = HelloWorld/Info.plist;
736
- LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
780
+ LD_RUNPATH_SEARCH_PATHS = (
781
+ "$(inherited)",
782
+ "@executable_path/Frameworks",
783
+ "@loader_path/Frameworks",
784
+ );
737
785
  MARKETING_VERSION = 1.0;
738
786
  OTHER_LDFLAGS = (
739
787
  "$(inherited)",
@@ -756,7 +804,11 @@
756
804
  CLANG_ENABLE_MODULES = YES;
757
805
  CURRENT_PROJECT_VERSION = 1;
758
806
  INFOPLIST_FILE = HelloWorld/Info.plist;
759
- LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
807
+ LD_RUNPATH_SEARCH_PATHS = (
808
+ "$(inherited)",
809
+ "@executable_path/Frameworks",
810
+ "@loader_path/Frameworks",
811
+ );
760
812
  MARKETING_VERSION = 1.0;
761
813
  OTHER_LDFLAGS = (
762
814
  "$(inherited)",
@@ -785,7 +837,11 @@
785
837
  ENABLE_TESTABILITY = YES;
786
838
  GCC_NO_COMMON_BLOCKS = YES;
787
839
  INFOPLIST_FILE = "HelloWorld-tvOS/Info.plist";
788
- LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
840
+ LD_RUNPATH_SEARCH_PATHS = (
841
+ "$(inherited)",
842
+ "@executable_path/Frameworks",
843
+ "@loader_path/Frameworks",
844
+ );
789
845
  MARKETING_VERSION = 1.0;
790
846
  OTHER_LDFLAGS = (
791
847
  "$(inherited)",
@@ -814,10 +870,14 @@
814
870
  CLANG_WARN_SUSPICIOUS_MOVE = YES;
815
871
  COPY_PHASE_STRIP = NO;
816
872
  DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
817
- ENABLE_BITCODE = YES;
873
+ ENABLE_BITCODE = NO;
818
874
  GCC_NO_COMMON_BLOCKS = YES;
819
875
  INFOPLIST_FILE = "HelloWorld-tvOS/Info.plist";
820
- LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
876
+ LD_RUNPATH_SEARCH_PATHS = (
877
+ "$(inherited)",
878
+ "@executable_path/Frameworks",
879
+ "@loader_path/Frameworks",
880
+ );
821
881
  MARKETING_VERSION = 1.0;
822
882
  OTHER_LDFLAGS = (
823
883
  "$(inherited)",
@@ -846,7 +906,11 @@
846
906
  ENABLE_TESTABILITY = YES;
847
907
  GCC_NO_COMMON_BLOCKS = YES;
848
908
  INFOPLIST_FILE = "HelloWorld-tvOSTests/Info.plist";
849
- LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
909
+ LD_RUNPATH_SEARCH_PATHS = (
910
+ "$(inherited)",
911
+ "@executable_path/Frameworks",
912
+ "@loader_path/Frameworks",
913
+ );
850
914
  OTHER_LDFLAGS = (
851
915
  "$(inherited)",
852
916
  "-ObjC",
@@ -873,7 +937,11 @@
873
937
  DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
874
938
  GCC_NO_COMMON_BLOCKS = YES;
875
939
  INFOPLIST_FILE = "HelloWorld-tvOSTests/Info.plist";
876
- LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
940
+ LD_RUNPATH_SEARCH_PATHS = (
941
+ "$(inherited)",
942
+ "@executable_path/Frameworks",
943
+ "@loader_path/Frameworks",
944
+ );
877
945
  OTHER_LDFLAGS = (
878
946
  "$(inherited)",
879
947
  "-ObjC",
@@ -919,6 +987,7 @@
919
987
  COPY_PHASE_STRIP = NO;
920
988
  ENABLE_STRICT_OBJC_MSGSEND = YES;
921
989
  ENABLE_TESTABILITY = YES;
990
+ "EXCLUDED_ARCHS[sdk=appletvsimulator*]" = i386;
922
991
  "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = i386;
923
992
  GCC_C_LANGUAGE_STANDARD = gnu99;
924
993
  GCC_DYNAMIC_NO_PIC = NO;
@@ -936,7 +1005,10 @@
936
1005
  GCC_WARN_UNUSED_FUNCTION = YES;
937
1006
  GCC_WARN_UNUSED_VARIABLE = YES;
938
1007
  IPHONEOS_DEPLOYMENT_TARGET = 12.4;
939
- LD_RUNPATH_SEARCH_PATHS = "/usr/lib/swift $(inherited)";
1008
+ LD_RUNPATH_SEARCH_PATHS = (
1009
+ /usr/lib/swift,
1010
+ "$(inherited)",
1011
+ );
940
1012
  LIBRARY_SEARCH_PATHS = (
941
1013
  "$(SDKROOT)/usr/lib/swift",
942
1014
  "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"",
@@ -944,6 +1016,9 @@
944
1016
  );
945
1017
  MTL_ENABLE_DEBUG_INFO = YES;
946
1018
  ONLY_ACTIVE_ARCH = YES;
1019
+ OTHER_CFLAGS = "$(inherited)";
1020
+ OTHER_CPLUSPLUSFLAGS = "$(inherited)";
1021
+ REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
947
1022
  SDKROOT = iphoneos;
948
1023
  };
949
1024
  name = Debug;
@@ -953,7 +1028,7 @@
953
1028
  buildSettings = {
954
1029
  ALWAYS_SEARCH_USER_PATHS = NO;
955
1030
  CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
956
- CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
1031
+ CLANG_CXX_LANGUAGE_STANDARD = "c++17";
957
1032
  CLANG_CXX_LIBRARY = "libc++";
958
1033
  CLANG_ENABLE_MODULES = YES;
959
1034
  CLANG_ENABLE_OBJC_ARC = YES;
@@ -980,6 +1055,7 @@
980
1055
  COPY_PHASE_STRIP = YES;
981
1056
  ENABLE_NS_ASSERTIONS = NO;
982
1057
  ENABLE_STRICT_OBJC_MSGSEND = YES;
1058
+ "EXCLUDED_ARCHS[sdk=appletvsimulator*]" = i386;
983
1059
  "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = i386;
984
1060
  GCC_C_LANGUAGE_STANDARD = gnu99;
985
1061
  GCC_NO_COMMON_BLOCKS = YES;
@@ -990,13 +1066,19 @@
990
1066
  GCC_WARN_UNUSED_FUNCTION = YES;
991
1067
  GCC_WARN_UNUSED_VARIABLE = YES;
992
1068
  IPHONEOS_DEPLOYMENT_TARGET = 12.4;
993
- LD_RUNPATH_SEARCH_PATHS = "/usr/lib/swift $(inherited)";
1069
+ LD_RUNPATH_SEARCH_PATHS = (
1070
+ /usr/lib/swift,
1071
+ "$(inherited)",
1072
+ );
994
1073
  LIBRARY_SEARCH_PATHS = (
995
1074
  "$(SDKROOT)/usr/lib/swift",
996
1075
  "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"",
997
1076
  "\"$(inherited)\"",
998
1077
  );
999
1078
  MTL_ENABLE_DEBUG_INFO = NO;
1079
+ OTHER_CFLAGS = "$(inherited)";
1080
+ OTHER_CPLUSPLUSFLAGS = "$(inherited)";
1081
+ REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
1000
1082
  SDKROOT = iphoneos;
1001
1083
  VALIDATE_PRODUCT = YES;
1002
1084
  };
@@ -13,7 +13,7 @@
13
13
  "dependencies": {
14
14
  "expo": "^49.0.7",
15
15
  "react": "18.2.0",
16
- "react-native": "npm:react-native-tvos@0.72.4-0rc1"
16
+ "react-native": "npm:react-native-tvos@0.72.6-0"
17
17
  },
18
18
  "devDependencies": {
19
19
  "@babel/core": "^7.20.0",
@@ -35,4 +35,4 @@
35
35
  "engines": {
36
36
  "node": ">=16"
37
37
  }
38
- }
38
+ }
package/types/index.d.ts CHANGED
@@ -156,6 +156,7 @@ export * from './public/DeprecatedPropertiesAlias';
156
156
  export * from './public/Insets';
157
157
  export * from './public/ReactNativeRenderer';
158
158
  export * from './public/ReactNativeTypes';
159
+ export * from './public/ReactNativeTVTypes';
159
160
 
160
161
  import type {ErrorUtils} from '../Libraries/vendor/core/ErrorUtils';
161
162