@rnpack/utils 0.1.11 → 0.1.13

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 (111) hide show
  1. package/README.md +5 -0
  2. package/android/CMakeLists.txt +3 -3
  3. package/android/build.gradle +2 -2
  4. package/android/src/main/cpp/cpp-adapter.cpp +2 -2
  5. package/android/src/main/java/com/margelo/nitro/{rnpack/utils → rnpackutils}/RNPackUtils.kt +1 -1
  6. package/android/src/main/java/com/margelo/nitro/{rnpack/utils → rnpackutils}/RNPackUtilsPackage.kt +2 -2
  7. package/lib/module/index.js +2 -2
  8. package/lib/module/index.js.map +1 -1
  9. package/nitro.json +5 -5
  10. package/nitrogen/generated/android/c++/JHybridRNPackUtilsSpec.cpp +2 -2
  11. package/nitrogen/generated/android/c++/JHybridRNPackUtilsSpec.hpp +3 -3
  12. package/nitrogen/generated/android/kotlin/com/margelo/nitro/{rnpack/utils → rnpackutils}/HybridRNPackUtilsSpec.kt +1 -1
  13. package/nitrogen/generated/android/kotlin/com/margelo/nitro/{rnpack/utils/RNPackUtilsOnLoad.kt → rnpackutils/rnpackutilsOnLoad.kt} +9 -9
  14. package/nitrogen/generated/android/{RNPackUtils+autolinking.cmake → rnpackutils+autolinking.cmake} +8 -8
  15. package/nitrogen/generated/android/{RNPackUtils+autolinking.gradle → rnpackutils+autolinking.gradle} +3 -3
  16. package/nitrogen/generated/android/{RNPackUtilsOnLoad.cpp → rnpackutilsOnLoad.cpp} +8 -8
  17. package/nitrogen/generated/android/{RNPackUtilsOnLoad.hpp → rnpackutilsOnLoad.hpp} +5 -5
  18. package/nitrogen/generated/ios/RNPackUtils-Swift-Cxx-Bridge.cpp +4 -4
  19. package/nitrogen/generated/ios/RNPackUtils-Swift-Cxx-Bridge.hpp +3 -3
  20. package/nitrogen/generated/ios/RNPackUtils-Swift-Cxx-Umbrella.hpp +1 -1
  21. package/nitrogen/generated/ios/RNPackUtilsAutolinking.mm +1 -1
  22. package/nitrogen/generated/ios/RNPackUtilsAutolinking.swift +1 -1
  23. package/nitrogen/generated/ios/c++/HybridRNPackUtilsSpecSwift.cpp +2 -2
  24. package/nitrogen/generated/ios/c++/HybridRNPackUtilsSpecSwift.hpp +2 -2
  25. package/nitrogen/generated/ios/swift/HybridRNPackUtilsSpec_cxx.swift +2 -2
  26. package/nitrogen/generated/shared/c++/HybridRNPackUtilsSpec.cpp +2 -2
  27. package/nitrogen/generated/shared/c++/HybridRNPackUtilsSpec.hpp +2 -2
  28. package/package.json +46 -23
  29. package/src/index.tsx +2 -2
  30. package/__mocks__/jestSetupFile.js +0 -0
  31. package/__mocks__/rnpack-utils-mock.js +0 -17
  32. package/example/node_modules/react-native/Libraries/ActionSheetIOS/React-RCTActionSheet.podspec +0 -34
  33. package/example/node_modules/react-native/Libraries/AppDelegate/React-RCTAppDelegate.podspec +0 -88
  34. package/example/node_modules/react-native/Libraries/Blob/React-RCTBlob.podspec +0 -59
  35. package/example/node_modules/react-native/Libraries/FBLazyVector/FBLazyVector.podspec +0 -31
  36. package/example/node_modules/react-native/Libraries/Image/React-RCTImage.podspec +0 -57
  37. package/example/node_modules/react-native/Libraries/LinkingIOS/React-RCTLinking.podspec +0 -51
  38. package/example/node_modules/react-native/Libraries/NativeAnimation/React-RCTAnimation.podspec +0 -54
  39. package/example/node_modules/react-native/Libraries/Network/React-RCTNetwork.podspec +0 -56
  40. package/example/node_modules/react-native/Libraries/PushNotificationIOS/React-RCTPushNotification.podspec +0 -53
  41. package/example/node_modules/react-native/Libraries/Required/RCTRequired.podspec +0 -30
  42. package/example/node_modules/react-native/Libraries/Settings/React-RCTSettings.podspec +0 -53
  43. package/example/node_modules/react-native/Libraries/Text/React-RCTText.podspec +0 -37
  44. package/example/node_modules/react-native/Libraries/TypeSafety/RCTTypeSafety.podspec +0 -39
  45. package/example/node_modules/react-native/Libraries/Vibration/React-RCTVibration.podspec +0 -53
  46. package/example/node_modules/react-native/React/CoreModules/React-CoreModules.podspec +0 -67
  47. package/example/node_modules/react-native/React/React-RCTFBReactNativeSpec.podspec +0 -95
  48. package/example/node_modules/react-native/React/React-RCTFabric.podspec +0 -107
  49. package/example/node_modules/react-native/React/Runtime/React-RCTRuntime.podspec +0 -70
  50. package/example/node_modules/react-native/React-Core-prebuilt.podspec +0 -78
  51. package/example/node_modules/react-native/React-Core.podspec +0 -137
  52. package/example/node_modules/react-native/React.podspec +0 -56
  53. package/example/node_modules/react-native/ReactApple/Libraries/RCTFoundation/RCTDeprecation/RCTDeprecation.podspec +0 -25
  54. package/example/node_modules/react-native/ReactCommon/React-Fabric.podspec +0 -207
  55. package/example/node_modules/react-native/ReactCommon/React-FabricComponents.podspec +0 -170
  56. package/example/node_modules/react-native/ReactCommon/React-FabricImage.podspec +0 -79
  57. package/example/node_modules/react-native/ReactCommon/React-Mapbuffer.podspec +0 -40
  58. package/example/node_modules/react-native/ReactCommon/ReactCommon.podspec +0 -72
  59. package/example/node_modules/react-native/ReactCommon/callinvoker/React-callinvoker.podspec +0 -30
  60. package/example/node_modules/react-native/ReactCommon/cxxreact/React-cxxreact.podspec +0 -56
  61. package/example/node_modules/react-native/ReactCommon/hermes/React-hermes.podspec +0 -52
  62. package/example/node_modules/react-native/ReactCommon/hermes/executor/React-jsitracing.podspec +0 -38
  63. package/example/node_modules/react-native/ReactCommon/jserrorhandler/React-jserrorhandler.podspec +0 -52
  64. package/example/node_modules/react-native/ReactCommon/jsi/React-jsi.podspec +0 -50
  65. package/example/node_modules/react-native/ReactCommon/jsiexecutor/React-jsiexecutor.podspec +0 -45
  66. package/example/node_modules/react-native/ReactCommon/jsinspector-modern/React-jsinspector.podspec +0 -63
  67. package/example/node_modules/react-native/ReactCommon/jsinspector-modern/cdp/React-jsinspectorcdp.podspec +0 -48
  68. package/example/node_modules/react-native/ReactCommon/jsinspector-modern/network/React-jsinspectornetwork.podspec +0 -53
  69. package/example/node_modules/react-native/ReactCommon/jsinspector-modern/tracing/React-jsinspectortracing.podspec +0 -51
  70. package/example/node_modules/react-native/ReactCommon/jsitooling/React-jsitooling.podspec +0 -47
  71. package/example/node_modules/react-native/ReactCommon/logger/React-logger.podspec +0 -34
  72. package/example/node_modules/react-native/ReactCommon/oscompat/React-oscompat.podspec +0 -31
  73. package/example/node_modules/react-native/ReactCommon/react/debug/React-debug.podspec +0 -34
  74. package/example/node_modules/react-native/ReactCommon/react/featureflags/React-featureflags.podspec +0 -44
  75. package/example/node_modules/react-native/ReactCommon/react/nativemodule/core/platform/ios/React-NativeModulesApple.podspec +0 -54
  76. package/example/node_modules/react-native/ReactCommon/react/nativemodule/defaults/React-defaultsnativemodule.podspec +0 -54
  77. package/example/node_modules/react-native/ReactCommon/react/nativemodule/dom/React-domnativemodule.podspec +0 -60
  78. package/example/node_modules/react-native/ReactCommon/react/nativemodule/featureflags/React-featureflagsnativemodule.podspec +0 -53
  79. package/example/node_modules/react-native/ReactCommon/react/nativemodule/idlecallbacks/React-idlecallbacksnativemodule.podspec +0 -55
  80. package/example/node_modules/react-native/ReactCommon/react/nativemodule/microtasks/React-microtasksnativemodule.podspec +0 -52
  81. package/example/node_modules/react-native/ReactCommon/react/nativemodule/samples/ReactCommon-Samples.podspec +0 -63
  82. package/example/node_modules/react-native/ReactCommon/react/performance/timeline/React-performancetimeline.podspec +0 -50
  83. package/example/node_modules/react-native/ReactCommon/react/renderer/consistency/React-rendererconsistency.podspec +0 -43
  84. package/example/node_modules/react-native/ReactCommon/react/renderer/css/React-renderercss.podspec +0 -47
  85. package/example/node_modules/react-native/ReactCommon/react/renderer/debug/React-rendererdebug.podspec +0 -48
  86. package/example/node_modules/react-native/ReactCommon/react/renderer/graphics/React-graphics.podspec +0 -55
  87. package/example/node_modules/react-native/ReactCommon/react/renderer/imagemanager/platform/ios/React-ImageManager.podspec +0 -56
  88. package/example/node_modules/react-native/ReactCommon/react/renderer/runtimescheduler/React-runtimescheduler.podspec +0 -59
  89. package/example/node_modules/react-native/ReactCommon/react/runtime/React-RuntimeCore.podspec +0 -56
  90. package/example/node_modules/react-native/ReactCommon/react/runtime/React-RuntimeHermes.podspec +0 -53
  91. package/example/node_modules/react-native/ReactCommon/react/runtime/platform/ios/React-RuntimeApple.podspec +0 -72
  92. package/example/node_modules/react-native/ReactCommon/react/timing/React-timing.podspec +0 -43
  93. package/example/node_modules/react-native/ReactCommon/react/utils/React-utils.podspec +0 -55
  94. package/example/node_modules/react-native/ReactCommon/reactperflogger/React-perflogger.podspec +0 -42
  95. package/example/node_modules/react-native/ReactCommon/runtimeexecutor/React-runtimeexecutor.podspec +0 -56
  96. package/example/node_modules/react-native/ReactCommon/yoga/Yoga.podspec +0 -66
  97. package/example/node_modules/react-native/react-native.config.js +0 -139
  98. package/example/node_modules/react-native/sdks/hermes-engine/hermes-engine.podspec +0 -165
  99. package/example/node_modules/react-native/third-party-podspecs/DoubleConversion.podspec +0 -34
  100. package/example/node_modules/react-native/third-party-podspecs/RCT-Folly.podspec +0 -132
  101. package/example/node_modules/react-native/third-party-podspecs/ReactNativeDependencies.podspec +0 -99
  102. package/example/node_modules/react-native/third-party-podspecs/boost.podspec +0 -34
  103. package/example/node_modules/react-native/third-party-podspecs/fast_float.podspec +0 -29
  104. package/example/node_modules/react-native/third-party-podspecs/fmt.podspec +0 -29
  105. package/example/node_modules/react-native/third-party-podspecs/glog.podspec +0 -47
  106. package/example/node_modules/react-native-nitro-modules/NitroModules.podspec +0 -90
  107. package/example/node_modules/react-native-nitro-modules/react-native.config.js +0 -16
  108. package/example/react-native.config.js +0 -21
  109. package/lib/typescript/__tests__/utils/string.test.d.ts +0 -2
  110. package/lib/typescript/__tests__/utils/string.test.d.ts.map +0 -1
  111. /package/{Utils.podspec → RNPackUtils.podspec} +0 -0
@@ -1,79 +0,0 @@
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
- react_native_path = ".."
20
-
21
- header_search_path = [
22
- "\"$(PODS_TARGET_SRCROOT)/ReactCommon\"",
23
- "\"$(PODS_ROOT)/Headers/Private/Yoga\"",
24
- ]
25
-
26
- if ENV['USE_FRAMEWORKS']
27
- header_search_path = header_search_path + [
28
- "\"$(PODS_TARGET_SRCROOT)\"",
29
- "\"$(PODS_TARGET_SRCROOT)/react/renderer/textlayoutmanager/platform/ios\"",
30
- "\"$(PODS_TARGET_SRCROOT)/react/renderer/components/text/platform/cxx\"",
31
- "\"$(PODS_TARGET_SRCROOT)/react/renderer/components/textinput/platform/ios\"",
32
- # "\"$(PODS_CONFIGURATION_BUILD_DIR)/ReactCodegen/ReactCodegen.framework/Headers\"",
33
- ]
34
- end
35
-
36
- Pod::Spec.new do |s|
37
- s.name = "React-FabricImage"
38
- s.version = version
39
- s.summary = "Image Component for Fabric for React Native."
40
- s.homepage = "https://reactnative.dev/"
41
- s.license = package["license"]
42
- s.author = "Meta Platforms, Inc. and its affiliates"
43
- s.platforms = min_supported_versions
44
- s.source = source
45
- s.source_files = podspec_sources("react/renderer/components/image/**/*.{m,mm,cpp,h}", "react/renderer/components/image/**/*.h")
46
- s.exclude_files = "react/renderer/components/image/tests"
47
- s.header_dir = "react/renderer/components/image"
48
- s.pod_target_xcconfig = { "USE_HEADERMAP" => "YES",
49
- "CLANG_CXX_LANGUAGE_STANDARD" => rct_cxx_language_standard(),
50
- "HEADER_SEARCH_PATHS" => header_search_path.join(" ")
51
- }
52
-
53
- resolve_use_frameworks(s, header_mappings_dir: './', module_name: "React_FabricImage")
54
-
55
- s.dependency "React-jsiexecutor", version
56
- s.dependency "RCTRequired", version
57
- s.dependency "RCTTypeSafety", version
58
- s.dependency "React-jsi"
59
- s.dependency "React-logger"
60
- s.dependency "React-featureflags"
61
- s.dependency "React-utils"
62
- s.dependency "Yoga"
63
-
64
- add_dependency(s, "React-ImageManager", :additional_framework_paths => [
65
- "react/renderer/components/view/platform/cxx",
66
- "react/renderer/imagemanager/platform/ios",
67
- ])
68
- add_dependency(s, "ReactCommon", :subspec => "turbomodule/core")
69
- add_dependency(s, "React-graphics", :additional_framework_paths => ["react/renderer/graphics/platform/ios"])
70
- add_dependency(s, "React-Fabric", :additional_framework_paths => [
71
- "react/renderer/components/view/platform/cxx",
72
- "react/renderer/imagemanager/platform/ios"
73
- ])
74
- add_dependency(s, "React-rendererdebug")
75
-
76
- depend_on_js_engine(s)
77
- add_rn_third_party_dependencies(s)
78
- add_rncore_dependency(s)
79
- end
@@ -1,40 +0,0 @@
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-Mapbuffer"
21
- s.version = version
22
- s.summary = "-"
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("react/renderer/mapbuffer/*.{cpp,h}", "react/renderer/mapbuffer/*.h")
29
- s.exclude_files = "react/renderer/mapbuffer/tests"
30
- s.public_header_files = 'react/renderer/mapbuffer/*.h'
31
- s.header_dir = "react/renderer/mapbuffer"
32
- s.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => ["\"$(PODS_TARGET_SRCROOT)\""], "USE_HEADERMAP" => "YES",
33
- "CLANG_CXX_LANGUAGE_STANDARD" => rct_cxx_language_standard() }
34
-
35
- resolve_use_frameworks(s, header_mappings_dir: './', module_name: "React_Mapbuffer")
36
-
37
- add_dependency(s, "React-debug")
38
- add_rn_third_party_dependencies(s)
39
- add_rncore_dependency(s)
40
- end
@@ -1,72 +0,0 @@
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 = "ReactCommon"
21
- s.module_name = "ReactCommon"
22
- s.version = version
23
- s.summary = "-" # TODO
24
- s.homepage = "https://reactnative.dev/"
25
- s.license = package["license"]
26
- s.author = "Meta Platforms, Inc. and its affiliates"
27
- s.platforms = min_supported_versions
28
- s.source = source
29
- s.header_dir = "ReactCommon" # Use global header_dir for all subspecs for use_frameworks! compatibility
30
- s.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/Headers/Private/React-Core\"",
31
- "USE_HEADERMAP" => "YES",
32
- "DEFINES_MODULE" => "YES",
33
- "CLANG_CXX_LANGUAGE_STANDARD" => rct_cxx_language_standard(),
34
- "GCC_WARN_PEDANTIC" => "YES" }
35
-
36
- resolve_use_frameworks(s, header_mappings_dir: './')
37
-
38
- add_rn_third_party_dependencies(s)
39
- add_rncore_dependency(s)
40
-
41
- # TODO (T48588859): Restructure this target to align with dir structure: "react/nativemodule/..."
42
- # Note: Update this only when ready to minimize breaking changes.
43
- s.subspec "turbomodule" do |ss|
44
- ss.dependency "React-callinvoker", version
45
- ss.dependency "React-perflogger", version
46
- ss.dependency "React-cxxreact", version
47
- ss.dependency "React-jsi", version
48
- ss.dependency "React-logger", version
49
- if use_hermes()
50
- ss.dependency "hermes-engine"
51
- end
52
-
53
- ss.subspec "bridging" do |sss|
54
- sss.dependency "React-jsi", version
55
- sss.source_files = podspec_sources("react/bridging/**/*.{cpp,h}", "react/bridging/**/*.h")
56
- sss.exclude_files = "react/bridging/tests"
57
- sss.header_dir = "react/bridging"
58
- sss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)/ReactCommon\"" }
59
- if use_hermes()
60
- sss.dependency "hermes-engine"
61
- end
62
- end
63
-
64
- ss.subspec "core" do |sss|
65
- sss.source_files = podspec_sources("react/nativemodule/core/ReactCommon/**/*.{cpp,h}", "react/nativemodule/core/ReactCommon/**/*.h")
66
- sss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)/ReactCommon\" \"$(PODS_CONFIGURATION_BUILD_DIR)/React-debug/React_debug.framework/Headers\" \"$(PODS_CONFIGURATION_BUILD_DIR)/React-debug/React_featureflags.framework/Headers\" \"$(PODS_CONFIGURATION_BUILD_DIR)/React-utils/React_utils.framework/Headers\"" }
67
- sss.dependency "React-debug", version
68
- sss.dependency "React-featureflags", version
69
- sss.dependency "React-utils", version
70
- end
71
- end
72
- end
@@ -1,30 +0,0 @@
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-callinvoker"
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 = "ReactCommon"
30
- end
@@ -1,56 +0,0 @@
1
- # coding: utf-8
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
- require "json"
8
-
9
- package = JSON.parse(File.read(File.join(__dir__, "..", "..", "package.json")))
10
- version = package['version']
11
-
12
- source = { :git => 'https://github.com/facebook/react-native.git' }
13
- if version == '1000.0.0'
14
- # This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in.
15
- source[:commit] = `git rev-parse HEAD`.strip if system("git rev-parse --git-dir > /dev/null 2>&1")
16
- else
17
- source[:tag] = "v#{version}"
18
- end
19
-
20
-
21
- Pod::Spec.new do |s|
22
- s.name = "React-cxxreact"
23
- s.version = version
24
- s.summary = "-" # TODO
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.source_files = podspec_sources("*.{cpp,h}", "*.h")
31
- s.pod_target_xcconfig = {
32
- "HEADER_SEARCH_PATHS" => "\"$(PODS_CONFIGURATION_BUILD_DIR)/React-debug/React_debug.framework/Headers\" \"${PODS_CONFIGURATION_BUILD_DIR}/React-runtimeexecutor/React_runtimeexecutor.framework/Headers\"",
33
- "CLANG_CXX_LANGUAGE_STANDARD" => rct_cxx_language_standard()
34
- }
35
- s.header_dir = "cxxreact"
36
-
37
- add_dependency(s, "React-jsinspector", :framework_name => 'jsinspector_modern')
38
- add_dependency(s, "React-jsinspectorcdp", :framework_name => 'jsinspector_moderncdp')
39
- add_dependency(s, "React-jsinspectortracing", :framework_name => 'jsinspector_moderntracing')
40
- s.dependency "React-callinvoker", version
41
- add_dependency(s, "React-runtimeexecutor", :additional_framework_paths => ["platform/ios"])
42
- s.dependency "React-perflogger", version
43
- s.dependency "React-jsi", version
44
- s.dependency "React-logger", version
45
- s.dependency "React-debug", version
46
- s.dependency "React-timing", version
47
-
48
- s.resource_bundles = {'React-cxxreact_privacy' => 'PrivacyInfo.xcprivacy'}
49
-
50
- if use_hermes()
51
- s.dependency 'hermes-engine'
52
- end
53
-
54
- add_rn_third_party_dependencies(s)
55
- add_rncore_dependency(s)
56
- end
@@ -1,52 +0,0 @@
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
9
- package = JSON.parse(File.read(File.join(__dir__, "..", "..", "package.json")))
10
- version = package['version']
11
-
12
- source = { :git => 'https://github.com/facebook/react-native.git' }
13
- if version == '1000.0.0'
14
- # This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in.
15
- source[:commit] = `git rev-parse HEAD`.strip if system("git rev-parse --git-dir > /dev/null 2>&1")
16
- else
17
- source[:tag] = "v#{version}"
18
- end
19
-
20
- Pod::Spec.new do |s|
21
- s.name = "React-hermes"
22
- s.version = version
23
- s.summary = "Hermes engine for React Native"
24
- s.homepage = "https://reactnative.dev/"
25
- s.license = package['license']
26
- s.author = "Meta Platforms, Inc. and its affiliates"
27
- s.platforms = min_supported_versions
28
- s.source = source
29
- s.source_files = podspec_sources(["executor/*.{cpp,h}",
30
- "inspector-modern/chrome/*.{cpp,h}"],
31
- ["executor/*.h",
32
- "inspector-modern/chrome/*.h"])
33
- s.public_header_files = "executor/HermesExecutorFactory.h"
34
- s.pod_target_xcconfig = {
35
- "HEADER_SEARCH_PATHS" => "\"${PODS_ROOT}/hermes-engine/destroot/include\" \"$(PODS_TARGET_SRCROOT)/..\"",
36
- "CLANG_CXX_LANGUAGE_STANDARD" => rct_cxx_language_standard(),
37
- "DEFINES_MODULE" => "YES",
38
- }
39
- s.header_dir = "reacthermes"
40
- s.dependency "React-cxxreact", version
41
- s.dependency "React-jsiexecutor", version
42
- add_dependency(s, "React-jsinspector", :framework_name => 'jsinspector_modern')
43
- add_dependency(s, "React-jsinspectorcdp", :framework_name => 'jsinspector_moderncdp')
44
- add_dependency(s, "React-jsinspectortracing", :framework_name => 'jsinspector_moderntracing')
45
- s.dependency "React-perflogger", version
46
- s.dependency "hermes-engine"
47
- s.dependency "React-jsi"
48
- add_dependency(s, "React-runtimeexecutor", :additional_framework_paths => ["platform/ios"])
49
-
50
- add_rn_third_party_dependencies(s)
51
- add_rncore_dependency(s)
52
- end
@@ -1,38 +0,0 @@
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-jsitracing"
21
- s.version = version
22
- s.summary = "Internal library for JSI debugging."
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("JSITracing.{cpp,h}", "JSITracing.h")
29
- s.header_dir = "."
30
- s.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"${PODS_TARGET_SRCROOT}/../..\"",
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: './', module_name: "React_jsitracing")
36
-
37
- s.dependency "React-jsi"
38
- end
@@ -1,52 +0,0 @@
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
- react_native_path = ".."
20
-
21
- Pod::Spec.new do |s|
22
- s.name = "React-jserrorhandler"
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.header_dir = "jserrorhandler"
31
- s.source_files = podspec_sources(["JsErrorHandler.{cpp,h}", "StackTraceParser.{cpp,h}"], ["JsErrorHandler.h", "StackTraceParser.h"])
32
- s.pod_target_xcconfig = {
33
- "USE_HEADERMAP" => "YES",
34
- "CLANG_CXX_LANGUAGE_STANDARD" => rct_cxx_language_standard()
35
- }
36
-
37
- resolve_use_frameworks(s, header_mappings_dir: '../', module_name: "React_jserrorhandler")
38
-
39
- s.dependency "React-jsi"
40
- s.dependency "React-cxxreact"
41
- s.dependency "ReactCommon/turbomodule/bridging"
42
- add_dependency(s, "React-featureflags")
43
- add_dependency(s, "React-debug")
44
-
45
- if use_hermes()
46
- s.dependency 'hermes-engine'
47
- end
48
-
49
- add_rn_third_party_dependencies(s)
50
- add_rncore_dependency(s)
51
-
52
- end
@@ -1,50 +0,0 @@
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-jsi"
21
- s.version = version
22
- s.summary = "JavaScript Interface layer for React Native"
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
-
29
- s.header_dir = "jsi"
30
- s.pod_target_xcconfig = {
31
- "CLANG_CXX_LANGUAGE_STANDARD" => rct_cxx_language_standard(),
32
- "DEFINES_MODULE" => "YES"
33
- }
34
-
35
- s.source_files = podspec_sources("**/*.{cpp,h}", "**/*.h")
36
- files_to_exclude = [
37
- "jsi/jsilib-posix.cpp",
38
- "jsi/jsilib-windows.cpp",
39
- "**/test/*"
40
- ]
41
- if use_hermes()
42
- # JSI is a part of hermes-engine. Including them also in react-native will violate the One Definition Rulle.
43
- files_to_exclude += [ "jsi/jsi.cpp" ]
44
- s.dependency "hermes-engine"
45
- end
46
- s.exclude_files = files_to_exclude
47
-
48
- add_rn_third_party_dependencies(s)
49
- add_rncore_dependency(s)
50
- end
@@ -1,45 +0,0 @@
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-jsiexecutor"
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("jsireact/*.{cpp,h}", "jsireact/*.h")
29
- s.pod_target_xcconfig = { "CLANG_CXX_LANGUAGE_STANDARD" => rct_cxx_language_standard() }
30
- s.header_dir = "jsireact"
31
-
32
- s.dependency "React-cxxreact", version
33
- s.dependency "React-jsi", version
34
- s.dependency "React-perflogger", version
35
- add_dependency(s, "React-runtimeexecutor", :additional_framework_paths => ["platform/ios"])
36
- add_dependency(s, "React-jsinspector", :framework_name => 'jsinspector_modern')
37
- add_dependency(s, "React-jsinspectorcdp", :framework_name => 'jsinspector_moderncdp')
38
- add_dependency(s, "React-jsinspectortracing", :framework_name => 'jsinspector_moderntracing')
39
- if use_hermes()
40
- s.dependency 'hermes-engine'
41
- end
42
-
43
- add_rn_third_party_dependencies(s)
44
- add_rncore_dependency(s)
45
- end
@@ -1,63 +0,0 @@
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)/..\""
23
- end
24
-
25
- header_dir = 'jsinspector-modern'
26
- module_name = "jsinspector_modern"
27
-
28
- Pod::Spec.new do |s|
29
- s.name = "React-jsinspector"
30
- s.version = version
31
- s.summary = "React Native subsystem for modern debugging over the Chrome DevTools Protocol (CDP)"
32
- s.homepage = "https://reactnative.dev/"
33
- s.license = package["license"]
34
- s.author = "Meta Platforms, Inc. and its affiliates"
35
- s.platforms = min_supported_versions
36
- s.source = source
37
- s.source_files = podspec_sources("*.{cpp,h}", "*.h")
38
- s.header_dir = header_dir
39
- s.pod_target_xcconfig = {
40
- "HEADER_SEARCH_PATHS" => header_search_paths.join(' '),
41
- "CLANG_CXX_LANGUAGE_STANDARD" => rct_cxx_language_standard(),
42
- "DEFINES_MODULE" => "YES"
43
- }.merge!(ENV['USE_FRAMEWORKS'] ? {
44
- "PUBLIC_HEADERS_FOLDER_PATH" => "#{module_name}.framework/Headers/#{header_dir}"
45
- } : {})
46
-
47
- resolve_use_frameworks(s, module_name: module_name)
48
-
49
- add_dependency(s, "React-oscompat") # Needed for USE_FRAMEWORKS=dynamic
50
- s.dependency "React-featureflags"
51
- add_dependency(s, "React-runtimeexecutor", :additional_framework_paths => ["platform/ios"])
52
- s.dependency "React-jsi"
53
- add_dependency(s, "React-jsinspectorcdp", :framework_name => 'jsinspector_moderncdp')
54
- add_dependency(s, "React-jsinspectornetwork", :framework_name => 'jsinspector_modernnetwork')
55
- add_dependency(s, "React-jsinspectortracing", :framework_name => 'jsinspector_moderntracing')
56
- s.dependency "React-perflogger", version
57
- if use_hermes()
58
- s.dependency "hermes-engine"
59
- end
60
-
61
- add_rn_third_party_dependencies(s)
62
- add_rncore_dependency(s)
63
- end
@@ -1,48 +0,0 @@
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)/../..\""
23
- end
24
-
25
- header_dir = 'jsinspector-modern/cdp'
26
- module_name = "jsinspector_moderncdp"
27
-
28
- Pod::Spec.new do |s|
29
- s.name = "React-jsinspectorcdp"
30
- s.version = version
31
- s.summary = "Common helper functions for working with CDP messages in jsinspector-modern"
32
- s.homepage = "https://reactnative.dev/"
33
- s.license = package["license"]
34
- s.author = "Meta Platforms, Inc. and its affiliates"
35
- s.platforms = min_supported_versions
36
- s.source = source
37
- s.source_files = podspec_sources("*.{cpp,h}", "*.h")
38
- s.header_dir = header_dir
39
- s.pod_target_xcconfig = {
40
- "HEADER_SEARCH_PATHS" => header_search_paths.join(' '),
41
- "CLANG_CXX_LANGUAGE_STANDARD" => rct_cxx_language_standard(),
42
- "DEFINES_MODULE" => "YES"}
43
-
44
- resolve_use_frameworks(s, header_mappings_dir: "../..", module_name: module_name)
45
-
46
- add_rn_third_party_dependencies(s)
47
- add_rncore_dependency(s)
48
- end