@rnpack/utils 0.1.10 → 0.1.12

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 (82) hide show
  1. package/__mocks__/jestSetupFile.js +0 -0
  2. package/__mocks__/rnpack-utils-mock.js +17 -0
  3. package/example/node_modules/react-native/Libraries/ActionSheetIOS/React-RCTActionSheet.podspec +34 -0
  4. package/example/node_modules/react-native/Libraries/AppDelegate/React-RCTAppDelegate.podspec +88 -0
  5. package/example/node_modules/react-native/Libraries/Blob/React-RCTBlob.podspec +59 -0
  6. package/example/node_modules/react-native/Libraries/FBLazyVector/FBLazyVector.podspec +31 -0
  7. package/example/node_modules/react-native/Libraries/Image/React-RCTImage.podspec +57 -0
  8. package/example/node_modules/react-native/Libraries/LinkingIOS/React-RCTLinking.podspec +51 -0
  9. package/example/node_modules/react-native/Libraries/NativeAnimation/React-RCTAnimation.podspec +54 -0
  10. package/example/node_modules/react-native/Libraries/Network/React-RCTNetwork.podspec +56 -0
  11. package/example/node_modules/react-native/Libraries/PushNotificationIOS/React-RCTPushNotification.podspec +53 -0
  12. package/example/node_modules/react-native/Libraries/Required/RCTRequired.podspec +30 -0
  13. package/example/node_modules/react-native/Libraries/Settings/React-RCTSettings.podspec +53 -0
  14. package/example/node_modules/react-native/Libraries/Text/React-RCTText.podspec +37 -0
  15. package/example/node_modules/react-native/Libraries/TypeSafety/RCTTypeSafety.podspec +39 -0
  16. package/example/node_modules/react-native/Libraries/Vibration/React-RCTVibration.podspec +53 -0
  17. package/example/node_modules/react-native/React/CoreModules/React-CoreModules.podspec +67 -0
  18. package/example/node_modules/react-native/React/React-RCTFBReactNativeSpec.podspec +95 -0
  19. package/example/node_modules/react-native/React/React-RCTFabric.podspec +107 -0
  20. package/example/node_modules/react-native/React/Runtime/React-RCTRuntime.podspec +70 -0
  21. package/example/node_modules/react-native/React-Core-prebuilt.podspec +78 -0
  22. package/example/node_modules/react-native/React-Core.podspec +137 -0
  23. package/example/node_modules/react-native/React.podspec +56 -0
  24. package/example/node_modules/react-native/ReactApple/Libraries/RCTFoundation/RCTDeprecation/RCTDeprecation.podspec +25 -0
  25. package/example/node_modules/react-native/ReactCommon/React-Fabric.podspec +207 -0
  26. package/example/node_modules/react-native/ReactCommon/React-FabricComponents.podspec +170 -0
  27. package/example/node_modules/react-native/ReactCommon/React-FabricImage.podspec +79 -0
  28. package/example/node_modules/react-native/ReactCommon/React-Mapbuffer.podspec +40 -0
  29. package/example/node_modules/react-native/ReactCommon/ReactCommon.podspec +72 -0
  30. package/example/node_modules/react-native/ReactCommon/callinvoker/React-callinvoker.podspec +30 -0
  31. package/example/node_modules/react-native/ReactCommon/cxxreact/React-cxxreact.podspec +56 -0
  32. package/example/node_modules/react-native/ReactCommon/hermes/React-hermes.podspec +52 -0
  33. package/example/node_modules/react-native/ReactCommon/hermes/executor/React-jsitracing.podspec +38 -0
  34. package/example/node_modules/react-native/ReactCommon/jserrorhandler/React-jserrorhandler.podspec +52 -0
  35. package/example/node_modules/react-native/ReactCommon/jsi/React-jsi.podspec +50 -0
  36. package/example/node_modules/react-native/ReactCommon/jsiexecutor/React-jsiexecutor.podspec +45 -0
  37. package/example/node_modules/react-native/ReactCommon/jsinspector-modern/React-jsinspector.podspec +63 -0
  38. package/example/node_modules/react-native/ReactCommon/jsinspector-modern/cdp/React-jsinspectorcdp.podspec +48 -0
  39. package/example/node_modules/react-native/ReactCommon/jsinspector-modern/network/React-jsinspectornetwork.podspec +53 -0
  40. package/example/node_modules/react-native/ReactCommon/jsinspector-modern/tracing/React-jsinspectortracing.podspec +51 -0
  41. package/example/node_modules/react-native/ReactCommon/jsitooling/React-jsitooling.podspec +47 -0
  42. package/example/node_modules/react-native/ReactCommon/logger/React-logger.podspec +34 -0
  43. package/example/node_modules/react-native/ReactCommon/oscompat/React-oscompat.podspec +31 -0
  44. package/example/node_modules/react-native/ReactCommon/react/debug/React-debug.podspec +34 -0
  45. package/example/node_modules/react-native/ReactCommon/react/featureflags/React-featureflags.podspec +44 -0
  46. package/example/node_modules/react-native/ReactCommon/react/nativemodule/core/platform/ios/React-NativeModulesApple.podspec +54 -0
  47. package/example/node_modules/react-native/ReactCommon/react/nativemodule/defaults/React-defaultsnativemodule.podspec +54 -0
  48. package/example/node_modules/react-native/ReactCommon/react/nativemodule/dom/React-domnativemodule.podspec +60 -0
  49. package/example/node_modules/react-native/ReactCommon/react/nativemodule/featureflags/React-featureflagsnativemodule.podspec +53 -0
  50. package/example/node_modules/react-native/ReactCommon/react/nativemodule/idlecallbacks/React-idlecallbacksnativemodule.podspec +55 -0
  51. package/example/node_modules/react-native/ReactCommon/react/nativemodule/microtasks/React-microtasksnativemodule.podspec +52 -0
  52. package/example/node_modules/react-native/ReactCommon/react/nativemodule/samples/ReactCommon-Samples.podspec +63 -0
  53. package/example/node_modules/react-native/ReactCommon/react/performance/timeline/React-performancetimeline.podspec +50 -0
  54. package/example/node_modules/react-native/ReactCommon/react/renderer/consistency/React-rendererconsistency.podspec +43 -0
  55. package/example/node_modules/react-native/ReactCommon/react/renderer/css/React-renderercss.podspec +47 -0
  56. package/example/node_modules/react-native/ReactCommon/react/renderer/debug/React-rendererdebug.podspec +48 -0
  57. package/example/node_modules/react-native/ReactCommon/react/renderer/graphics/React-graphics.podspec +55 -0
  58. package/example/node_modules/react-native/ReactCommon/react/renderer/imagemanager/platform/ios/React-ImageManager.podspec +56 -0
  59. package/example/node_modules/react-native/ReactCommon/react/renderer/runtimescheduler/React-runtimescheduler.podspec +59 -0
  60. package/example/node_modules/react-native/ReactCommon/react/runtime/React-RuntimeCore.podspec +56 -0
  61. package/example/node_modules/react-native/ReactCommon/react/runtime/React-RuntimeHermes.podspec +53 -0
  62. package/example/node_modules/react-native/ReactCommon/react/runtime/platform/ios/React-RuntimeApple.podspec +72 -0
  63. package/example/node_modules/react-native/ReactCommon/react/timing/React-timing.podspec +43 -0
  64. package/example/node_modules/react-native/ReactCommon/react/utils/React-utils.podspec +55 -0
  65. package/example/node_modules/react-native/ReactCommon/reactperflogger/React-perflogger.podspec +42 -0
  66. package/example/node_modules/react-native/ReactCommon/runtimeexecutor/React-runtimeexecutor.podspec +56 -0
  67. package/example/node_modules/react-native/ReactCommon/yoga/Yoga.podspec +66 -0
  68. package/example/node_modules/react-native/react-native.config.js +139 -0
  69. package/example/node_modules/react-native/sdks/hermes-engine/hermes-engine.podspec +165 -0
  70. package/example/node_modules/react-native/third-party-podspecs/DoubleConversion.podspec +34 -0
  71. package/example/node_modules/react-native/third-party-podspecs/RCT-Folly.podspec +132 -0
  72. package/example/node_modules/react-native/third-party-podspecs/ReactNativeDependencies.podspec +99 -0
  73. package/example/node_modules/react-native/third-party-podspecs/boost.podspec +34 -0
  74. package/example/node_modules/react-native/third-party-podspecs/fast_float.podspec +29 -0
  75. package/example/node_modules/react-native/third-party-podspecs/fmt.podspec +29 -0
  76. package/example/node_modules/react-native/third-party-podspecs/glog.podspec +47 -0
  77. package/example/node_modules/react-native-nitro-modules/NitroModules.podspec +90 -0
  78. package/example/node_modules/react-native-nitro-modules/react-native.config.js +16 -0
  79. package/example/react-native.config.js +21 -0
  80. package/lib/typescript/__tests__/utils/string.test.d.ts +2 -0
  81. package/lib/typescript/__tests__/utils/string.test.d.ts.map +1 -0
  82. package/package.json +5 -3
@@ -0,0 +1,34 @@
1
+ # Copyright (c) Meta Platforms, Inc. and affiliates.
2
+ #
3
+ # This source code is licensed under the MIT license found in the
4
+ # LICENSE file in the root directory of this source tree.
5
+
6
+ require "json"
7
+
8
+ package = JSON.parse(File.read(File.join(__dir__, "..", "..", "..", "package.json")))
9
+ version = package['version']
10
+
11
+ source = { :git => 'https://github.com/facebook/react-native.git' }
12
+ if version == '1000.0.0'
13
+ # This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in.
14
+ source[:commit] = `git rev-parse HEAD`.strip if system("git rev-parse --git-dir > /dev/null 2>&1")
15
+ else
16
+ source[:tag] = "v#{version}"
17
+ end
18
+
19
+ Pod::Spec.new do |s|
20
+ s.name = "React-debug"
21
+ s.version = version
22
+ s.summary = "-" # TODO
23
+ s.homepage = "https://reactnative.dev/"
24
+ s.license = package["license"]
25
+ s.author = "Meta Platforms, Inc. and its affiliates"
26
+ s.platforms = min_supported_versions
27
+ s.source = source
28
+ s.source_files = podspec_sources("**/*.{cpp,h}", "**/*.h")
29
+ s.header_dir = "react/debug"
30
+ s.pod_target_xcconfig = { "CLANG_CXX_LANGUAGE_STANDARD" => rct_cxx_language_standard(),
31
+ "DEFINES_MODULE" => "YES" }
32
+
33
+ resolve_use_frameworks(s, header_mappings_dir: "../..", module_name: "React_debug")
34
+ end
@@ -0,0 +1,44 @@
1
+ # Copyright (c) Meta Platforms, Inc. and affiliates.
2
+ #
3
+ # This source code is licensed under the MIT license found in the
4
+ # LICENSE file in the root directory of this source tree.
5
+
6
+ require "json"
7
+
8
+ package = JSON.parse(File.read(File.join(__dir__, "..", "..", "..", "package.json")))
9
+ version = package['version']
10
+
11
+ source = { :git => 'https://github.com/facebook/react-native.git' }
12
+ if version == '1000.0.0'
13
+ # This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in.
14
+ source[:commit] = `git rev-parse HEAD`.strip if system("git rev-parse --git-dir > /dev/null 2>&1")
15
+ else
16
+ source[:tag] = "v#{version}"
17
+ end
18
+
19
+ header_search_paths = []
20
+
21
+ if ENV['USE_FRAMEWORKS']
22
+ header_search_paths << "\"$(PODS_TARGET_SRCROOT)/../..\"" # this is needed to allow the feature flags access its own files
23
+ end
24
+
25
+ Pod::Spec.new do |s|
26
+ s.name = "React-featureflags"
27
+ s.version = version
28
+ s.summary = "React Native internal feature flags"
29
+ s.homepage = "https://reactnative.dev/"
30
+ s.license = package["license"]
31
+ s.author = "Meta Platforms, Inc. and its affiliates"
32
+ s.platforms = min_supported_versions
33
+ s.source = source
34
+ s.source_files = podspec_sources("*.{cpp,h}", "*.h")
35
+ s.header_dir = "react/featureflags"
36
+ s.pod_target_xcconfig = { "CLANG_CXX_LANGUAGE_STANDARD" => rct_cxx_language_standard(),
37
+ "HEADER_SEARCH_PATHS" => header_search_paths.join(' '),
38
+ "DEFINES_MODULE" => "YES" }
39
+
40
+ resolve_use_frameworks(s, header_mappings_dir: "../..", module_name: "React_featureflags")
41
+
42
+ add_rn_third_party_dependencies(s)
43
+ add_rncore_dependency(s)
44
+ end
@@ -0,0 +1,54 @@
1
+ # Copyright (c) Meta Platforms, Inc. and affiliates.
2
+ #
3
+ # This source code is licensed under the MIT license found in the
4
+ # LICENSE file in the root directory of this source tree.
5
+
6
+ require "json"
7
+
8
+ package = JSON.parse(File.read(File.join(__dir__, "..", "..", "..", "..", "..", "..", "package.json")))
9
+ version = package['version']
10
+
11
+ source = { :git => 'https://github.com/facebook/react-native.git' }
12
+ if version == '1000.0.0'
13
+ # This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in.
14
+ source[:commit] = `git rev-parse HEAD`.strip if system("git rev-parse --git-dir > /dev/null 2>&1")
15
+ else
16
+ source[:tag] = "v#{version}"
17
+ end
18
+
19
+ Pod::Spec.new do |s|
20
+ s.name = "React-NativeModulesApple"
21
+ s.module_name = "React_NativeModulesApple"
22
+ s.header_dir = "ReactCommon" # Use global header_dir for all subspecs for use_frameworks! compatibility
23
+ s.version = version
24
+ s.summary = "-"
25
+ s.homepage = "https://reactnative.dev/"
26
+ s.license = package["license"]
27
+ s.author = "Meta Platforms, Inc. and its affiliates"
28
+ s.platforms = min_supported_versions
29
+ s.source = source
30
+ s.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/Headers/Private/React-Core\" \"$(PODS_CONFIGURATION_BUILD_DIR)/React-debug/React_featureflags.framework/Headers\"",
31
+ "USE_HEADERMAP" => "YES",
32
+ "CLANG_CXX_LANGUAGE_STANDARD" => rct_cxx_language_standard(),
33
+ "GCC_WARN_PEDANTIC" => "YES" }
34
+
35
+ resolve_use_frameworks(s, header_mappings_dir: './')
36
+
37
+ s.source_files = podspec_sources("ReactCommon/**/*.{mm,cpp,h}", "ReactCommon/**/*.{h}")
38
+
39
+ s.dependency "ReactCommon/turbomodule/core"
40
+ s.dependency "ReactCommon/turbomodule/bridging"
41
+ s.dependency "React-callinvoker"
42
+ s.dependency "React-Core"
43
+ s.dependency "React-cxxreact"
44
+ s.dependency "React-jsi"
45
+ s.dependency "React-featureflags"
46
+ add_dependency(s, "React-runtimeexecutor", :additional_framework_paths => ["platform/ios"])
47
+ add_dependency(s, "React-featureflags")
48
+ add_dependency(s, "React-jsinspector", :framework_name => 'jsinspector_modern')
49
+ add_dependency(s, "React-jsinspectorcdp", :framework_name => 'jsinspector_moderncdp')
50
+
51
+ depend_on_js_engine(s)
52
+ add_rn_third_party_dependencies(s)
53
+ add_rncore_dependency(s)
54
+ end
@@ -0,0 +1,54 @@
1
+ # Copyright (c) Meta Platforms, Inc. and affiliates.
2
+ #
3
+ # This source code is licensed under the MIT license found in the
4
+ # LICENSE file in the root directory of this source tree.
5
+
6
+ require "json"
7
+
8
+ package = JSON.parse(File.read(File.join(__dir__, "..", "..", "..", "..", "package.json")))
9
+ version = package['version']
10
+
11
+ source = { :git => 'https://github.com/facebook/react-native.git' }
12
+ if version == '1000.0.0'
13
+ # This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in.
14
+ source[:commit] = `git rev-parse HEAD`.strip if system("git rev-parse --git-dir > /dev/null 2>&1")
15
+ else
16
+ source[:tag] = "v#{version}"
17
+ end
18
+
19
+ header_search_paths = []
20
+
21
+ if ENV['USE_FRAMEWORKS']
22
+ header_search_paths << "\"$(PODS_TARGET_SRCROOT)/../../..\"" # this is needed to allow the defaultsnativemodule to access its own files
23
+ end
24
+
25
+ Pod::Spec.new do |s|
26
+ s.name = "React-defaultsnativemodule"
27
+ s.version = version
28
+ s.summary = "React Native Default native modules"
29
+ s.homepage = "https://reactnative.dev/"
30
+ s.license = package["license"]
31
+ s.author = "Meta Platforms, Inc. and its affiliates"
32
+ s.platforms = min_supported_versions
33
+ s.source = source
34
+ s.source_files = podspec_sources("*.{cpp,h}", "*.h")
35
+ s.header_dir = "react/nativemodule/defaults"
36
+ s.pod_target_xcconfig = { "CLANG_CXX_LANGUAGE_STANDARD" => rct_cxx_language_standard(),
37
+ "HEADER_SEARCH_PATHS" => header_search_paths.join(' '),
38
+ "OTHER_CFLAGS" => "$(inherited)",
39
+ "DEFINES_MODULE" => "YES" }
40
+
41
+ resolve_use_frameworks(s, header_mappings_dir: "../..", module_name: "React_defaultsnativemodule")
42
+
43
+ s.dependency "React-jsi"
44
+ s.dependency "React-jsiexecutor"
45
+ depend_on_js_engine(s)
46
+ add_rn_third_party_dependencies(s)
47
+ add_rncore_dependency(s)
48
+
49
+ s.dependency "React-domnativemodule"
50
+ s.dependency "React-featureflagsnativemodule"
51
+ s.dependency "React-microtasksnativemodule"
52
+ s.dependency "React-idlecallbacksnativemodule"
53
+ add_dependency(s, "React-RCTFBReactNativeSpec")
54
+ end
@@ -0,0 +1,60 @@
1
+ # Copyright (c) Meta Platforms, Inc. and affiliates.
2
+ #
3
+ # This source code is licensed under the MIT license found in the
4
+ # LICENSE file in the root directory of this source tree.
5
+
6
+ require "json"
7
+
8
+ package = JSON.parse(File.read(File.join(__dir__, "..", "..", "..", "..", "package.json")))
9
+ version = package['version']
10
+
11
+ source = { :git => 'https://github.com/facebook/react-native.git' }
12
+ if version == '1000.0.0'
13
+ # This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in.
14
+ source[:commit] = `git rev-parse HEAD`.strip if system("git rev-parse --git-dir > /dev/null 2>&1")
15
+ else
16
+ source[:tag] = "v#{version}"
17
+ end
18
+
19
+ header_search_paths = [
20
+ "\"$(PODS_ROOT)/Headers/Private/Yoga\"",
21
+ ]
22
+
23
+ if ENV['USE_FRAMEWORKS']
24
+ header_search_paths << "\"$(PODS_TARGET_SRCROOT)/../../..\"" # this is needed to allow the domnativemodule to access its own files
25
+ end
26
+
27
+ Pod::Spec.new do |s|
28
+ s.name = "React-domnativemodule"
29
+ s.version = version
30
+ s.summary = "React Native DOM native module"
31
+ s.homepage = "https://reactnative.dev/"
32
+ s.license = package["license"]
33
+ s.author = "Meta Platforms, Inc. and its affiliates"
34
+ s.platforms = min_supported_versions
35
+ s.source = source
36
+ s.source_files = podspec_sources("*.{cpp,h}", "*.h")
37
+ s.header_dir = "react/nativemodule/dom"
38
+ s.pod_target_xcconfig = { "CLANG_CXX_LANGUAGE_STANDARD" => rct_cxx_language_standard(),
39
+ "HEADER_SEARCH_PATHS" => header_search_paths.join(' '),
40
+ "OTHER_CFLAGS" => "$(inherited)",
41
+ "DEFINES_MODULE" => "YES" }
42
+
43
+ resolve_use_frameworks(s, header_mappings_dir: "../..", module_name: "React_domnativemodule")
44
+
45
+ s.dependency "React-jsi"
46
+ s.dependency "React-jsiexecutor"
47
+
48
+ depend_on_js_engine(s)
49
+ add_rn_third_party_dependencies(s)
50
+ add_rncore_dependency(s)
51
+
52
+ s.dependency "Yoga"
53
+ s.dependency "ReactCommon/turbomodule/core"
54
+ s.dependency "React-Fabric"
55
+ s.dependency "React-Fabric/bridging"
56
+ s.dependency "React-FabricComponents"
57
+ add_dependency(s, "React-runtimeexecutor", :additional_framework_paths => ["platform/ios"])
58
+ add_dependency(s, "React-graphics", :additional_framework_paths => ["react/renderer/graphics/platform/ios"])
59
+ add_dependency(s, "React-RCTFBReactNativeSpec")
60
+ end
@@ -0,0 +1,53 @@
1
+ # Copyright (c) Meta Platforms, Inc. and affiliates.
2
+ #
3
+ # This source code is licensed under the MIT license found in the
4
+ # LICENSE file in the root directory of this source tree.
5
+
6
+ require "json"
7
+
8
+ package = JSON.parse(File.read(File.join(__dir__, "..", "..", "..", "..", "package.json")))
9
+ version = package['version']
10
+
11
+ source = { :git => 'https://github.com/facebook/react-native.git' }
12
+ if version == '1000.0.0'
13
+ # This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in.
14
+ source[:commit] = `git rev-parse HEAD`.strip if system("git rev-parse --git-dir > /dev/null 2>&1")
15
+ else
16
+ source[:tag] = "v#{version}"
17
+ end
18
+
19
+ header_search_paths = []
20
+
21
+ if ENV['USE_FRAMEWORKS']
22
+ header_search_paths << "\"$(PODS_TARGET_SRCROOT)/../../..\"" # this is needed to allow the feature flags access its own files
23
+ end
24
+
25
+ Pod::Spec.new do |s|
26
+ s.name = "React-featureflagsnativemodule"
27
+ s.version = version
28
+ s.summary = "React Native internal feature flags"
29
+ s.homepage = "https://reactnative.dev/"
30
+ s.license = package["license"]
31
+ s.author = "Meta Platforms, Inc. and its affiliates"
32
+ s.platforms = min_supported_versions
33
+ s.source = source
34
+ s.source_files = podspec_sources("*.{cpp,h}", "*.h")
35
+ s.header_dir = "react/nativemodule/featureflags"
36
+ s.pod_target_xcconfig = { "CLANG_CXX_LANGUAGE_STANDARD" => rct_cxx_language_standard(),
37
+ "HEADER_SEARCH_PATHS" => header_search_paths.join(' '),
38
+ "OTHER_CFLAGS" => "$(inherited)",
39
+ "DEFINES_MODULE" => "YES" }
40
+
41
+ resolve_use_frameworks(s, header_mappings_dir: "../..", module_name: "React_featureflagsnativemodule")
42
+
43
+ s.dependency "React-jsi"
44
+ s.dependency "React-jsiexecutor"
45
+
46
+ depend_on_js_engine(s)
47
+ add_rn_third_party_dependencies(s)
48
+ add_rncore_dependency(s)
49
+
50
+ s.dependency "ReactCommon/turbomodule/core"
51
+ s.dependency "React-RCTFBReactNativeSpec"
52
+ s.dependency "React-featureflags"
53
+ end
@@ -0,0 +1,55 @@
1
+ # Copyright (c) Meta Platforms, Inc. and affiliates.
2
+ #
3
+ # This source code is licensed under the MIT license found in the
4
+ # LICENSE file in the root directory of this source tree.
5
+
6
+ require "json"
7
+
8
+ package = JSON.parse(File.read(File.join(__dir__, "..", "..", "..", "..", "package.json")))
9
+ version = package['version']
10
+
11
+ source = { :git => 'https://github.com/facebook/react-native.git' }
12
+ if version == '1000.0.0'
13
+ # This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in.
14
+ source[:commit] = `git rev-parse HEAD`.strip if system("git rev-parse --git-dir > /dev/null 2>&1")
15
+ else
16
+ source[:tag] = "v#{version}"
17
+ end
18
+
19
+ header_search_paths = []
20
+
21
+ if ENV['USE_FRAMEWORKS']
22
+ header_search_paths << "\"$(PODS_TARGET_SRCROOT)/../../..\"" # this is needed to allow the module access its own files
23
+ end
24
+
25
+ Pod::Spec.new do |s|
26
+ s.name = "React-idlecallbacksnativemodule"
27
+ s.version = version
28
+ s.summary = "React Native idle callbacks native module"
29
+ s.homepage = "https://reactnative.dev/"
30
+ s.license = package["license"]
31
+ s.author = "Meta Platforms, Inc. and its affiliates"
32
+ s.platforms = min_supported_versions
33
+ s.source = source
34
+ s.source_files = podspec_sources("*.{cpp,h}", "*.h")
35
+ s.header_dir = "react/nativemodule/idlecallbacks"
36
+ s.pod_target_xcconfig = { "CLANG_CXX_LANGUAGE_STANDARD" => rct_cxx_language_standard(),
37
+ "HEADER_SEARCH_PATHS" => header_search_paths.join(' '),
38
+ "OTHER_CFLAGS" => "$(inherited)",
39
+ "DEFINES_MODULE" => "YES" }
40
+
41
+ resolve_use_frameworks(s, header_mappings_dir: "../..", module_name: "idlecallbacksnativemodule")
42
+
43
+ s.dependency "React-jsi"
44
+ s.dependency "React-jsiexecutor"
45
+
46
+ depend_on_js_engine(s)
47
+ add_rn_third_party_dependencies(s)
48
+ add_rncore_dependency(s)
49
+
50
+ s.dependency "ReactCommon/turbomodule/core"
51
+ s.dependency "React-runtimescheduler"
52
+ add_dependency(s, "React-RCTFBReactNativeSpec")
53
+ add_dependency(s, "React-runtimeexecutor", :additional_framework_paths => ["platform/ios"])
54
+
55
+ end
@@ -0,0 +1,52 @@
1
+ # Copyright (c) Meta Platforms, Inc. and affiliates.
2
+ #
3
+ # This source code is licensed under the MIT license found in the
4
+ # LICENSE file in the root directory of this source tree.
5
+
6
+ require "json"
7
+
8
+ package = JSON.parse(File.read(File.join(__dir__, "..", "..", "..", "..", "package.json")))
9
+ version = package['version']
10
+
11
+ source = { :git => 'https://github.com/facebook/react-native.git' }
12
+ if version == '1000.0.0'
13
+ # This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in.
14
+ source[:commit] = `git rev-parse HEAD`.strip if system("git rev-parse --git-dir > /dev/null 2>&1")
15
+ else
16
+ source[:tag] = "v#{version}"
17
+ end
18
+
19
+ header_search_paths = []
20
+
21
+ if ENV['USE_FRAMEWORKS']
22
+ header_search_paths << "\"$(PODS_TARGET_SRCROOT)/../../..\"" # this is needed to allow the microtasks module access its own files
23
+ end
24
+
25
+ Pod::Spec.new do |s|
26
+ s.name = "React-microtasksnativemodule"
27
+ s.version = version
28
+ s.summary = "React Native microtasks native module"
29
+ s.homepage = "https://reactnative.dev/"
30
+ s.license = package["license"]
31
+ s.author = "Meta Platforms, Inc. and its affiliates"
32
+ s.platforms = min_supported_versions
33
+ s.source = source
34
+ s.source_files = podspec_sources("*.{cpp,h}", "*.h")
35
+ s.header_dir = "react/nativemodule/microtasks"
36
+ s.pod_target_xcconfig = { "CLANG_CXX_LANGUAGE_STANDARD" => rct_cxx_language_standard(),
37
+ "OTHER_CFLAGS" => "$(inherited)",
38
+ "HEADER_SEARCH_PATHS" => header_search_paths.join(' '),
39
+ "DEFINES_MODULE" => "YES" }
40
+
41
+ resolve_use_frameworks(s, header_mappings_dir: "../..", module_name: "React_microtasksnativemodule")
42
+
43
+ s.dependency "React-jsi"
44
+ s.dependency "React-jsiexecutor"
45
+
46
+ depend_on_js_engine(s)
47
+ add_rn_third_party_dependencies(s)
48
+ add_rncore_dependency(s)
49
+
50
+ s.dependency "ReactCommon/turbomodule/core"
51
+ add_dependency(s, "React-RCTFBReactNativeSpec")
52
+ end
@@ -0,0 +1,63 @@
1
+ # Copyright (c) Meta Platforms, Inc. and affiliates.
2
+ #
3
+ # This source code is licensed under the MIT license found in the
4
+ # LICENSE file in the root directory of this source tree.
5
+
6
+ require "json"
7
+
8
+ package = JSON.parse(File.read(File.join(__dir__, "..", "..", "..", "..", "package.json")))
9
+ version = package['version']
10
+
11
+ source = { :git => 'https://github.com/facebook/react-native.git' }
12
+ if version == '1000.0.0'
13
+ # This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in.
14
+ source[:commit] = `git rev-parse HEAD`.strip if system("git rev-parse --git-dir > /dev/null 2>&1")
15
+ else
16
+ source[:tag] = "v#{version}"
17
+ end
18
+
19
+ header_search_paths = [
20
+ "\"$(PODS_ROOT)/Headers/Private/React-Core\"",
21
+ ]
22
+
23
+ create_header_search_path_for_frameworks("ReactCommon-Samples").each { |search_path| header_search_paths << "\"#{search_path}\""}
24
+
25
+ Pod::Spec.new do |s|
26
+ s.name = "ReactCommon-Samples"
27
+ s.module_name = "ReactCommon_Samples"
28
+ s.header_dir = "ReactCommon"
29
+ s.version = version
30
+ s.summary = "-" # TODO
31
+ s.homepage = "https://reactnative.dev/"
32
+ s.license = package["license"]
33
+ s.author = "Meta Platforms, Inc. and its affiliates"
34
+ s.platforms = min_supported_versions
35
+ s.source = source
36
+ s.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => header_search_paths,
37
+ "USE_HEADERMAP" => "YES",
38
+ "CLANG_CXX_LANGUAGE_STANDARD" => rct_cxx_language_standard(),
39
+ "GCC_WARN_PEDANTIC" => "YES" }
40
+ s.framework = "UIKit"
41
+
42
+ if ENV['USE_FRAMEWORKS']
43
+ # Do not use resolve_use_frameworks here - since we're including source files.
44
+ # Then it is not needed.
45
+ s.header_mappings_dir = './'
46
+ end
47
+
48
+
49
+
50
+ s.source_files = "ReactCommon/**/*.{cpp,h}",
51
+ "platform/ios/**/*.{mm,cpp,h}"
52
+
53
+ s.dependency "React-Core"
54
+ s.dependency "React-cxxreact"
55
+ s.dependency "React-jsi"
56
+ add_dependency(s, "React-RCTFBReactNativeSpec")
57
+ add_dependency(s, "ReactCommon", :subspec => "turbomodule/core", :additional_framework_paths => ["react/nativemodule/core"])
58
+ add_dependency(s, "React-NativeModulesApple")
59
+
60
+ depend_on_js_engine(s)
61
+ add_rn_third_party_dependencies(s)
62
+ add_rncore_dependency(s)
63
+ end
@@ -0,0 +1,50 @@
1
+ # Copyright (c) Meta Platforms, Inc. and affiliates.
2
+ #
3
+ # This source code is licensed under the MIT license found in the
4
+ # LICENSE file in the root directory of this source tree.
5
+
6
+ require "json"
7
+
8
+ package = JSON.parse(File.read(File.join(__dir__, "..", "..", "..", "..", "package.json")))
9
+ version = package['version']
10
+
11
+ source = { :git => 'https://github.com/facebook/react-native.git' }
12
+ if version == '1000.0.0'
13
+ # This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in.
14
+ source[:commit] = `git rev-parse HEAD`.strip if system("git rev-parse --git-dir > /dev/null 2>&1")
15
+ else
16
+ source[:tag] = "v#{version}"
17
+ end
18
+
19
+ header_search_paths = []
20
+
21
+ if ENV['USE_FRAMEWORKS']
22
+ header_search_paths << "\"$(PODS_TARGET_SRCROOT)/../../..\"" # this is needed to allow the performancetimeline access its own files
23
+ end
24
+
25
+ Pod::Spec.new do |s|
26
+ s.name = "React-performancetimeline"
27
+ s.version = version
28
+ s.summary = "React performance timeline utilities"
29
+ s.homepage = "https://reactnative.dev/"
30
+ s.license = package["license"]
31
+ s.author = "Meta Platforms, Inc. and its affiliates"
32
+ s.platforms = min_supported_versions
33
+ s.source = source
34
+ s.source_files = podspec_sources("**/*.{cpp,h}", "**/*.h")
35
+ s.header_dir = "react/performance/timeline"
36
+ s.exclude_files = "tests"
37
+ s.pod_target_xcconfig = {
38
+ "CLANG_CXX_LANGUAGE_STANDARD" => rct_cxx_language_standard(),
39
+ "HEADER_SEARCH_PATHS" => header_search_paths.join(' ')}
40
+
41
+ resolve_use_frameworks(s, header_mappings_dir: "../../..", module_name: "React_performancetimeline")
42
+
43
+ s.dependency "React-featureflags"
44
+ add_dependency(s, "React-jsinspectortracing", :framework_name => 'jsinspector_moderntracing')
45
+ s.dependency "React-timing"
46
+ s.dependency "React-perflogger"
47
+
48
+ add_rn_third_party_dependencies(s)
49
+ add_rncore_dependency(s)
50
+ end
@@ -0,0 +1,43 @@
1
+ # Copyright (c) Meta Platforms, Inc. and affiliates.
2
+ #
3
+ # This source code is licensed under the MIT license found in the
4
+ # LICENSE file in the root directory of this source tree.
5
+
6
+ require "json"
7
+
8
+ package = JSON.parse(File.read(File.join(__dir__, "..", "..", "..", "..", "package.json")))
9
+ version = package['version']
10
+
11
+ source = { :git => 'https://github.com/facebook/react-native.git' }
12
+ if version == '1000.0.0'
13
+ # This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in.
14
+ source[:commit] = `git rev-parse HEAD`.strip if system("git rev-parse --git-dir > /dev/null 2>&1")
15
+ else
16
+ source[:tag] = "v#{version}"
17
+ end
18
+
19
+ header_search_paths = []
20
+
21
+ if ENV['USE_FRAMEWORKS']
22
+ header_search_paths << "\"$(PODS_TARGET_SRCROOT)/../../..\"" # this is needed to allow the rendererconsistency access its own files
23
+ end
24
+
25
+ Pod::Spec.new do |s|
26
+ s.name = "React-rendererconsistency"
27
+ s.version = version
28
+ s.summary = "Fabric UI consistency primitives"
29
+ s.homepage = "https://reactnative.dev/"
30
+ s.license = package["license"]
31
+ s.author = "Meta Platforms, Inc. and its affiliates"
32
+ s.platforms = min_supported_versions
33
+ s.source = source
34
+ s.source_files = podspec_sources("**/*.{cpp,h}", "**/*.h")
35
+ s.header_dir = "react/renderer/consistency"
36
+ s.exclude_files = "tests"
37
+ s.pod_target_xcconfig = {
38
+ "CLANG_CXX_LANGUAGE_STANDARD" => rct_cxx_language_standard(),
39
+ "HEADER_SEARCH_PATHS" => header_search_paths.join(' ')}
40
+
41
+ resolve_use_frameworks(s, header_mappings_dir: "../../..", module_name: "React_rendererconsistency")
42
+
43
+ end
@@ -0,0 +1,47 @@
1
+ # Copyright (c) Meta Platforms, Inc. and affiliates.
2
+ #
3
+ # This source code is licensed under the MIT license found in the
4
+ # LICENSE file in the root directory of this source tree.
5
+
6
+ require "json"
7
+
8
+ package = JSON.parse(File.read(File.join(__dir__, "..", "..", "..", "..", "package.json")))
9
+ version = package['version']
10
+
11
+ source = { :git => 'https://github.com/facebook/react-native.git' }
12
+ if version == '1000.0.0'
13
+ # This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in.
14
+ source[:commit] = `git rev-parse HEAD`.strip if system("git rev-parse --git-dir > /dev/null 2>&1")
15
+ else
16
+ source[:tag] = "v#{version}"
17
+ end
18
+
19
+ header_search_paths = []
20
+
21
+ if ENV['USE_FRAMEWORKS']
22
+ header_search_paths << "\"$(PODS_TARGET_SRCROOT)/../../..\"" # this is needed to allow the renderer/css access its own files
23
+ end
24
+
25
+ Pod::Spec.new do |s|
26
+ s.name = "React-renderercss"
27
+ s.version = version
28
+ s.summary = "Fabric CSS parser and data types"
29
+ s.homepage = "https://reactnative.dev/"
30
+ s.license = package["license"]
31
+ s.author = "Meta Platforms, Inc. and its affiliates"
32
+ s.platforms = min_supported_versions
33
+ s.source = source
34
+ s.source_files = podspec_sources("**/*.{cpp,h}", "**/*.h")
35
+ s.header_dir = "react/renderer/css"
36
+ s.exclude_files = "tests"
37
+ s.pod_target_xcconfig = {
38
+ "CLANG_CXX_LANGUAGE_STANDARD" => rct_cxx_language_standard(),
39
+ "HEADER_SEARCH_PATHS" => header_search_paths.join(' '),
40
+ "DEFINES_MODULE" => "YES",
41
+ }
42
+
43
+ resolve_use_frameworks(s, header_mappings_dir: "../../..", module_name: "React_renderercss")
44
+
45
+ add_dependency(s, "React-debug")
46
+ add_dependency(s, "React-utils")
47
+ end