@rnpack/utils 0.1.9 → 0.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/example/node_modules/react-native/Libraries/ActionSheetIOS/React-RCTActionSheet.podspec +34 -0
- package/example/node_modules/react-native/Libraries/AppDelegate/React-RCTAppDelegate.podspec +88 -0
- package/example/node_modules/react-native/Libraries/Blob/React-RCTBlob.podspec +59 -0
- package/example/node_modules/react-native/Libraries/FBLazyVector/FBLazyVector.podspec +31 -0
- package/example/node_modules/react-native/Libraries/Image/React-RCTImage.podspec +57 -0
- package/example/node_modules/react-native/Libraries/LinkingIOS/React-RCTLinking.podspec +51 -0
- package/example/node_modules/react-native/Libraries/NativeAnimation/React-RCTAnimation.podspec +54 -0
- package/example/node_modules/react-native/Libraries/Network/React-RCTNetwork.podspec +56 -0
- package/example/node_modules/react-native/Libraries/PushNotificationIOS/React-RCTPushNotification.podspec +53 -0
- package/example/node_modules/react-native/Libraries/Required/RCTRequired.podspec +30 -0
- package/example/node_modules/react-native/Libraries/Settings/React-RCTSettings.podspec +53 -0
- package/example/node_modules/react-native/Libraries/Text/React-RCTText.podspec +37 -0
- package/example/node_modules/react-native/Libraries/TypeSafety/RCTTypeSafety.podspec +39 -0
- package/example/node_modules/react-native/Libraries/Vibration/React-RCTVibration.podspec +53 -0
- package/example/node_modules/react-native/React/CoreModules/React-CoreModules.podspec +67 -0
- package/example/node_modules/react-native/React/React-RCTFBReactNativeSpec.podspec +95 -0
- package/example/node_modules/react-native/React/React-RCTFabric.podspec +107 -0
- package/example/node_modules/react-native/React/Runtime/React-RCTRuntime.podspec +70 -0
- package/example/node_modules/react-native/React-Core-prebuilt.podspec +78 -0
- package/example/node_modules/react-native/React-Core.podspec +137 -0
- package/example/node_modules/react-native/React.podspec +56 -0
- package/example/node_modules/react-native/ReactApple/Libraries/RCTFoundation/RCTDeprecation/RCTDeprecation.podspec +25 -0
- package/example/node_modules/react-native/ReactCommon/React-Fabric.podspec +207 -0
- package/example/node_modules/react-native/ReactCommon/React-FabricComponents.podspec +170 -0
- package/example/node_modules/react-native/ReactCommon/React-FabricImage.podspec +79 -0
- package/example/node_modules/react-native/ReactCommon/React-Mapbuffer.podspec +40 -0
- package/example/node_modules/react-native/ReactCommon/ReactCommon.podspec +72 -0
- package/example/node_modules/react-native/ReactCommon/callinvoker/React-callinvoker.podspec +30 -0
- package/example/node_modules/react-native/ReactCommon/cxxreact/React-cxxreact.podspec +56 -0
- package/example/node_modules/react-native/ReactCommon/hermes/React-hermes.podspec +52 -0
- package/example/node_modules/react-native/ReactCommon/hermes/executor/React-jsitracing.podspec +38 -0
- package/example/node_modules/react-native/ReactCommon/jserrorhandler/React-jserrorhandler.podspec +52 -0
- package/example/node_modules/react-native/ReactCommon/jsi/React-jsi.podspec +50 -0
- package/example/node_modules/react-native/ReactCommon/jsiexecutor/React-jsiexecutor.podspec +45 -0
- package/example/node_modules/react-native/ReactCommon/jsinspector-modern/React-jsinspector.podspec +63 -0
- package/example/node_modules/react-native/ReactCommon/jsinspector-modern/cdp/React-jsinspectorcdp.podspec +48 -0
- package/example/node_modules/react-native/ReactCommon/jsinspector-modern/network/React-jsinspectornetwork.podspec +53 -0
- package/example/node_modules/react-native/ReactCommon/jsinspector-modern/tracing/React-jsinspectortracing.podspec +51 -0
- package/example/node_modules/react-native/ReactCommon/jsitooling/React-jsitooling.podspec +47 -0
- package/example/node_modules/react-native/ReactCommon/logger/React-logger.podspec +34 -0
- package/example/node_modules/react-native/ReactCommon/oscompat/React-oscompat.podspec +31 -0
- package/example/node_modules/react-native/ReactCommon/react/debug/React-debug.podspec +34 -0
- package/example/node_modules/react-native/ReactCommon/react/featureflags/React-featureflags.podspec +44 -0
- package/example/node_modules/react-native/ReactCommon/react/nativemodule/core/platform/ios/React-NativeModulesApple.podspec +54 -0
- package/example/node_modules/react-native/ReactCommon/react/nativemodule/defaults/React-defaultsnativemodule.podspec +54 -0
- package/example/node_modules/react-native/ReactCommon/react/nativemodule/dom/React-domnativemodule.podspec +60 -0
- package/example/node_modules/react-native/ReactCommon/react/nativemodule/featureflags/React-featureflagsnativemodule.podspec +53 -0
- package/example/node_modules/react-native/ReactCommon/react/nativemodule/idlecallbacks/React-idlecallbacksnativemodule.podspec +55 -0
- package/example/node_modules/react-native/ReactCommon/react/nativemodule/microtasks/React-microtasksnativemodule.podspec +52 -0
- package/example/node_modules/react-native/ReactCommon/react/nativemodule/samples/ReactCommon-Samples.podspec +63 -0
- package/example/node_modules/react-native/ReactCommon/react/performance/timeline/React-performancetimeline.podspec +50 -0
- package/example/node_modules/react-native/ReactCommon/react/renderer/consistency/React-rendererconsistency.podspec +43 -0
- package/example/node_modules/react-native/ReactCommon/react/renderer/css/React-renderercss.podspec +47 -0
- package/example/node_modules/react-native/ReactCommon/react/renderer/debug/React-rendererdebug.podspec +48 -0
- package/example/node_modules/react-native/ReactCommon/react/renderer/graphics/React-graphics.podspec +55 -0
- package/example/node_modules/react-native/ReactCommon/react/renderer/imagemanager/platform/ios/React-ImageManager.podspec +56 -0
- package/example/node_modules/react-native/ReactCommon/react/renderer/runtimescheduler/React-runtimescheduler.podspec +59 -0
- package/example/node_modules/react-native/ReactCommon/react/runtime/React-RuntimeCore.podspec +56 -0
- package/example/node_modules/react-native/ReactCommon/react/runtime/React-RuntimeHermes.podspec +53 -0
- package/example/node_modules/react-native/ReactCommon/react/runtime/platform/ios/React-RuntimeApple.podspec +72 -0
- package/example/node_modules/react-native/ReactCommon/react/timing/React-timing.podspec +43 -0
- package/example/node_modules/react-native/ReactCommon/react/utils/React-utils.podspec +55 -0
- package/example/node_modules/react-native/ReactCommon/reactperflogger/React-perflogger.podspec +42 -0
- package/example/node_modules/react-native/ReactCommon/runtimeexecutor/React-runtimeexecutor.podspec +56 -0
- package/example/node_modules/react-native/ReactCommon/yoga/Yoga.podspec +66 -0
- package/example/node_modules/react-native/react-native.config.js +139 -0
- package/example/node_modules/react-native/sdks/hermes-engine/hermes-engine.podspec +165 -0
- package/example/node_modules/react-native/third-party-podspecs/DoubleConversion.podspec +34 -0
- package/example/node_modules/react-native/third-party-podspecs/RCT-Folly.podspec +132 -0
- package/example/node_modules/react-native/third-party-podspecs/ReactNativeDependencies.podspec +99 -0
- package/example/node_modules/react-native/third-party-podspecs/boost.podspec +34 -0
- package/example/node_modules/react-native/third-party-podspecs/fast_float.podspec +29 -0
- package/example/node_modules/react-native/third-party-podspecs/fmt.podspec +29 -0
- package/example/node_modules/react-native/third-party-podspecs/glog.podspec +47 -0
- package/example/node_modules/react-native-nitro-modules/NitroModules.podspec +90 -0
- package/example/node_modules/react-native-nitro-modules/react-native.config.js +16 -0
- package/example/react-native.config.js +21 -0
- package/lib/typescript/__tests__/utils/string.test.d.ts +2 -0
- package/lib/typescript/__tests__/utils/string.test.d.ts.map +1 -0
- package/package.json +3 -2
- package/lib/module/__mock__/jestSetupFile.js +0 -2
- package/lib/module/__mock__/jestSetupFile.js.map +0 -1
- package/lib/module/__mock__/rnpack-utils-mock.js +0 -23
- package/lib/module/__mock__/rnpack-utils-mock.js.map +0 -1
- /package/{src/__mock__ → __mocks__}/jestSetupFile.js +0 -0
- /package/{src/__mock__ → __mocks__}/rnpack-utils-mock.js +0 -0
package/example/node_modules/react-native/ReactCommon/react/renderer/graphics/React-graphics.podspec
ADDED
|
@@ -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
|
+
Pod::Spec.new do |s|
|
|
20
|
+
source_files = ["*.{m,mm,cpp,h}", "platform/ios/**/*.{m,mm,cpp,h}"]
|
|
21
|
+
header_search_paths = [
|
|
22
|
+
"\"$(PODS_TARGET_SRCROOT)/../../../\"",
|
|
23
|
+
]
|
|
24
|
+
|
|
25
|
+
s.name = "React-graphics"
|
|
26
|
+
s.version = version
|
|
27
|
+
s.summary = "Fabric for React Native."
|
|
28
|
+
s.homepage = "https://reactnative.dev/"
|
|
29
|
+
s.license = package["license"]
|
|
30
|
+
s.author = "Meta Platforms, Inc. and its affiliates"
|
|
31
|
+
s.platforms = min_supported_versions
|
|
32
|
+
s.source = source
|
|
33
|
+
s.source_files = podspec_sources(source_files, ["*.h", "platform/ios/**/*.h"])
|
|
34
|
+
s.header_dir = "react/renderer/graphics"
|
|
35
|
+
s.framework = "UIKit"
|
|
36
|
+
|
|
37
|
+
if ENV['USE_FRAMEWORKS']
|
|
38
|
+
header_search_paths = header_search_paths + ["\"$(PODS_TARGET_SRCROOT)/platform/ios\""]
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
resolve_use_frameworks(s, header_mappings_dir: "../../..", module_name: "React_graphics")
|
|
42
|
+
|
|
43
|
+
s.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
|
44
|
+
"HEADER_SEARCH_PATHS" => header_search_paths.join(" "),
|
|
45
|
+
"DEFINES_MODULE" => "YES",
|
|
46
|
+
"CLANG_CXX_LANGUAGE_STANDARD" => rct_cxx_language_standard() }
|
|
47
|
+
|
|
48
|
+
s.dependency "React-jsi"
|
|
49
|
+
s.dependency "React-jsiexecutor"
|
|
50
|
+
s.dependency "React-utils"
|
|
51
|
+
|
|
52
|
+
depend_on_js_engine(s)
|
|
53
|
+
add_rn_third_party_dependencies(s)
|
|
54
|
+
add_rncore_dependency(s)
|
|
55
|
+
end
|
|
@@ -0,0 +1,56 @@
|
|
|
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
|
+
source_files = "**/*.{m,mm,cpp,h}"
|
|
21
|
+
header_search_paths = [
|
|
22
|
+
"\"$(PODS_TARGET_SRCROOT)/../../../\"",
|
|
23
|
+
"\"$(PODS_TARGET_SRCROOT)\"",
|
|
24
|
+
].join(" ")
|
|
25
|
+
|
|
26
|
+
s.name = "React-ImageManager"
|
|
27
|
+
s.version = version
|
|
28
|
+
s.summary = "Fabric for React Native."
|
|
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(source_files, "**/*.h")
|
|
35
|
+
s.header_dir = "react/renderer/imagemanager"
|
|
36
|
+
|
|
37
|
+
resolve_use_frameworks(s, header_mappings_dir: "./", module_name: "React_ImageManager")
|
|
38
|
+
|
|
39
|
+
s.pod_target_xcconfig = {
|
|
40
|
+
"USE_HEADERMAP" => "NO",
|
|
41
|
+
"HEADER_SEARCH_PATHS" => header_search_paths,
|
|
42
|
+
"CLANG_CXX_LANGUAGE_STANDARD" => rct_cxx_language_standard(),
|
|
43
|
+
"DEFINES_MODULE" => "YES",
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
s.dependency "React-Core/Default"
|
|
47
|
+
|
|
48
|
+
add_dependency(s, "React-Fabric")
|
|
49
|
+
add_dependency(s, "React-graphics", :additional_framework_paths => ["react/renderer/graphics/platform/ios"])
|
|
50
|
+
add_dependency(s, "React-debug")
|
|
51
|
+
add_dependency(s, "React-utils")
|
|
52
|
+
add_dependency(s, "React-rendererdebug")
|
|
53
|
+
|
|
54
|
+
add_rn_third_party_dependencies(s)
|
|
55
|
+
add_rncore_dependency(s)
|
|
56
|
+
end
|
|
@@ -0,0 +1,59 @@
|
|
|
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 RuntimeScheduler access its own files
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
Pod::Spec.new do |s|
|
|
26
|
+
s.name = "React-runtimescheduler"
|
|
27
|
+
s.version = version
|
|
28
|
+
s.summary = "-" # TODO
|
|
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/runtimescheduler"
|
|
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_runtimescheduler")
|
|
42
|
+
|
|
43
|
+
add_dependency(s, "React-runtimeexecutor", :additional_framework_paths => ["platform/ios"])
|
|
44
|
+
s.dependency "React-callinvoker"
|
|
45
|
+
s.dependency "React-cxxreact"
|
|
46
|
+
s.dependency "React-rendererdebug"
|
|
47
|
+
s.dependency "React-utils"
|
|
48
|
+
s.dependency "React-featureflags"
|
|
49
|
+
s.dependency "React-timing"
|
|
50
|
+
s.dependency "React-jsi"
|
|
51
|
+
s.dependency "React-performancetimeline"
|
|
52
|
+
s.dependency "React-rendererconsistency"
|
|
53
|
+
add_dependency(s, "React-debug")
|
|
54
|
+
add_dependency(s, "React-jsinspectortracing", :framework_name => 'jsinspector_moderntracing')
|
|
55
|
+
|
|
56
|
+
depend_on_js_engine(s)
|
|
57
|
+
add_rn_third_party_dependencies(s)
|
|
58
|
+
add_rncore_dependency(s)
|
|
59
|
+
end
|
|
@@ -0,0 +1,56 @@
|
|
|
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-RuntimeCore"
|
|
21
|
+
s.version = version
|
|
22
|
+
s.summary = "The React Native Runtime."
|
|
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}", "nativeviewconfig/*.{cpp,h}"], ["*.h", "nativeviewconfig/*.h"])
|
|
29
|
+
s.exclude_files = "iostests/*", "tests/**/*.{cpp,h}"
|
|
30
|
+
s.header_dir = "react/runtime"
|
|
31
|
+
s.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/Headers/Private/React-Core\" \"${PODS_TARGET_SRCROOT}/../..\"",
|
|
32
|
+
"USE_HEADERMAP" => "YES",
|
|
33
|
+
"CLANG_CXX_LANGUAGE_STANDARD" => rct_cxx_language_standard(),
|
|
34
|
+
"GCC_WARN_PEDANTIC" => "YES" }
|
|
35
|
+
|
|
36
|
+
resolve_use_frameworks(s, header_mappings_dir: "../..", module_name: "React_RuntimeCore")
|
|
37
|
+
|
|
38
|
+
s.dependency "React-jsiexecutor"
|
|
39
|
+
s.dependency "React-cxxreact"
|
|
40
|
+
add_dependency(s, "React-runtimeexecutor", :additional_framework_paths => ["platform/ios"])
|
|
41
|
+
s.dependency "React-jsi"
|
|
42
|
+
s.dependency "React-jserrorhandler"
|
|
43
|
+
s.dependency "React-performancetimeline"
|
|
44
|
+
s.dependency "React-runtimescheduler"
|
|
45
|
+
s.dependency "React-utils"
|
|
46
|
+
s.dependency "React-featureflags"
|
|
47
|
+
|
|
48
|
+
add_dependency(s, "React-Fabric")
|
|
49
|
+
|
|
50
|
+
depend_on_js_engine(s)
|
|
51
|
+
add_rn_third_party_dependencies(s)
|
|
52
|
+
add_rncore_dependency(s)
|
|
53
|
+
|
|
54
|
+
s.dependency "React-jsinspector"
|
|
55
|
+
add_dependency(s, "React-jsitooling", :framework_name => "JSITooling")
|
|
56
|
+
end
|
package/example/node_modules/react-native/ReactCommon/react/runtime/React-RuntimeHermes.podspec
ADDED
|
@@ -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
|
+
Pod::Spec.new do |s|
|
|
20
|
+
s.name = "React-RuntimeHermes"
|
|
21
|
+
s.version = version
|
|
22
|
+
s.summary = "The React Native Runtime."
|
|
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("hermes/*.{cpp,h}", "hermes/*.h")
|
|
29
|
+
s.header_dir = "react/runtime/hermes"
|
|
30
|
+
s.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"${PODS_TARGET_SRCROOT}/../..\" \"${PODS_TARGET_SRCROOT}/../../hermes/executor\"",
|
|
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_RuntimeHermes")
|
|
36
|
+
|
|
37
|
+
s.dependency "React-jsitracing"
|
|
38
|
+
s.dependency "React-jsi"
|
|
39
|
+
s.dependency "React-utils"
|
|
40
|
+
s.dependency "React-RuntimeCore"
|
|
41
|
+
s.dependency "React-featureflags"
|
|
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
|
+
|
|
46
|
+
s.dependency "React-hermes"
|
|
47
|
+
s.dependency "hermes-engine"
|
|
48
|
+
add_dependency(s, "React-runtimeexecutor", :additional_framework_paths => ["platform/ios"])
|
|
49
|
+
add_dependency(s, "React-jsitooling", :framework_name => "JSITooling")
|
|
50
|
+
|
|
51
|
+
add_rn_third_party_dependencies(s)
|
|
52
|
+
add_rncore_dependency(s)
|
|
53
|
+
end
|
|
@@ -0,0 +1,72 @@
|
|
|
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
|
+
"$(PODS_TARGET_SRCROOT)/../../../..",
|
|
22
|
+
"$(PODS_TARGET_SRCROOT)/../../../../..",
|
|
23
|
+
]
|
|
24
|
+
|
|
25
|
+
Pod::Spec.new do |s|
|
|
26
|
+
s.name = "React-RuntimeApple"
|
|
27
|
+
s.version = version
|
|
28
|
+
s.summary = "The React Native Runtime."
|
|
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("ReactCommon/*.{mm,h}", "ReactCommon/*.{h}")
|
|
35
|
+
s.header_dir = "ReactCommon"
|
|
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
|
+
|
|
41
|
+
resolve_use_frameworks(s, header_mappings_dir: "./", module_name: "React_RuntimeApple")
|
|
42
|
+
|
|
43
|
+
s.dependency "React-jsiexecutor"
|
|
44
|
+
s.dependency "React-cxxreact"
|
|
45
|
+
s.dependency "React-callinvoker"
|
|
46
|
+
add_dependency(s, "React-runtimeexecutor", :additional_framework_paths => ["platform/ios"])
|
|
47
|
+
s.dependency "React-runtimescheduler"
|
|
48
|
+
s.dependency "React-jsi"
|
|
49
|
+
s.dependency "React-Core/Default"
|
|
50
|
+
s.dependency "React-CoreModules"
|
|
51
|
+
s.dependency "React-NativeModulesApple"
|
|
52
|
+
s.dependency "React-RCTFabric"
|
|
53
|
+
s.dependency "React-RuntimeCore"
|
|
54
|
+
s.dependency "React-Mapbuffer"
|
|
55
|
+
s.dependency "React-jserrorhandler"
|
|
56
|
+
s.dependency "React-jsinspector"
|
|
57
|
+
s.dependency "React-featureflags"
|
|
58
|
+
add_dependency(s, "React-jsitooling", :framework_name => "JSITooling")
|
|
59
|
+
add_dependency(s, "React-RCTFBReactNativeSpec")
|
|
60
|
+
add_dependency(s, "React-utils", :additional_framework_paths => ["react/utils/platform/ios"])
|
|
61
|
+
|
|
62
|
+
if use_third_party_jsc()
|
|
63
|
+
s.exclude_files = ["ReactCommon/RCTHermesInstance.{mm,h}", "ReactCommon/RCTJscInstance.{mm,h}"]
|
|
64
|
+
else
|
|
65
|
+
s.dependency "hermes-engine"
|
|
66
|
+
add_dependency(s, "React-RuntimeHermes")
|
|
67
|
+
s.exclude_files = "ReactCommon/RCTJscInstance.{mm,h}"
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
add_rn_third_party_dependencies(s)
|
|
71
|
+
add_rncore_dependency(s)
|
|
72
|
+
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 target access its own files
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
Pod::Spec.new do |s|
|
|
26
|
+
s.name = "React-timing"
|
|
27
|
+
s.version = version
|
|
28
|
+
s.summary = "React Native timing 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/timing"
|
|
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_timing")
|
|
41
|
+
|
|
42
|
+
add_dependency(s, "React-debug")
|
|
43
|
+
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
|
+
Pod::Spec.new do |s|
|
|
20
|
+
source_files = ["*.{m,mm,cpp,h}", "platform/ios/**/*.{m,mm,cpp,h}"]
|
|
21
|
+
header_search_paths = [
|
|
22
|
+
"\"$(PODS_TARGET_SRCROOT)/../../\"",
|
|
23
|
+
]
|
|
24
|
+
|
|
25
|
+
s.name = "React-utils"
|
|
26
|
+
s.version = version
|
|
27
|
+
s.summary = "-" # TODO
|
|
28
|
+
s.homepage = "https://reactnative.dev/"
|
|
29
|
+
s.license = package["license"]
|
|
30
|
+
s.author = "Meta Platforms, Inc. and its affiliates"
|
|
31
|
+
s.platforms = min_supported_versions
|
|
32
|
+
s.source = source
|
|
33
|
+
s.source_files = podspec_sources(source_files, ["*.h", "platform/ios/**/*.h"])
|
|
34
|
+
s.header_dir = "react/utils"
|
|
35
|
+
s.exclude_files = "tests"
|
|
36
|
+
|
|
37
|
+
if ENV['USE_FRAMEWORKS']
|
|
38
|
+
header_search_paths = header_search_paths + ["\"$(PODS_TARGET_SRCROOT)/platform/ios\""]
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
resolve_use_frameworks(s, header_mappings_dir: "../..", module_name: "React_utils")
|
|
42
|
+
|
|
43
|
+
s.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
|
44
|
+
"CLANG_CXX_LANGUAGE_STANDARD" => rct_cxx_language_standard(),
|
|
45
|
+
"HEADER_SEARCH_PATHS" => header_search_paths.join(' '),
|
|
46
|
+
"DEFINES_MODULE" => "YES" }
|
|
47
|
+
|
|
48
|
+
s.dependency "React-jsi", version
|
|
49
|
+
|
|
50
|
+
depend_on_js_engine(s)
|
|
51
|
+
add_rn_third_party_dependencies(s)
|
|
52
|
+
add_rncore_dependency(s)
|
|
53
|
+
|
|
54
|
+
add_dependency(s, "React-debug")
|
|
55
|
+
end
|
package/example/node_modules/react-native/ReactCommon/reactperflogger/React-perflogger.podspec
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
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_TARGET_SRCROOT)/..\""
|
|
21
|
+
]
|
|
22
|
+
|
|
23
|
+
Pod::Spec.new do |s|
|
|
24
|
+
s.name = "React-perflogger"
|
|
25
|
+
s.version = version
|
|
26
|
+
s.summary = "-" # TODO
|
|
27
|
+
s.homepage = "https://reactnative.dev/"
|
|
28
|
+
s.license = package["license"]
|
|
29
|
+
s.author = "Meta Platforms, Inc. and its affiliates"
|
|
30
|
+
s.platforms = min_supported_versions
|
|
31
|
+
s.source = source
|
|
32
|
+
s.source_files = podspec_sources(["reactperflogger/*.{cpp,h}", "fusebox/*.{cpp,h}"], ["reactperflogger/*.h", "fusebox/*.h"])
|
|
33
|
+
s.header_dir = "reactperflogger"
|
|
34
|
+
s.pod_target_xcconfig = { "CLANG_CXX_LANGUAGE_STANDARD" => rct_cxx_language_standard() }
|
|
35
|
+
s.pod_target_xcconfig = {
|
|
36
|
+
"CLANG_CXX_LANGUAGE_STANDARD" => rct_cxx_language_standard(),
|
|
37
|
+
"HEADER_SEARCH_PATHS" => header_search_paths.join(' '),
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
add_rn_third_party_dependencies(s)
|
|
41
|
+
add_rncore_dependency(s)
|
|
42
|
+
end
|
package/example/node_modules/react-native/ReactCommon/runtimeexecutor/React-runtimeexecutor.podspec
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
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
|
+
header_search_paths = [
|
|
21
|
+
"\"$(PODS_TARGET_SRCROOT)\"",
|
|
22
|
+
]
|
|
23
|
+
|
|
24
|
+
s.name = "React-runtimeexecutor"
|
|
25
|
+
s.module_name = "React_runtimeexecutor"
|
|
26
|
+
s.version = version
|
|
27
|
+
s.summary = "-" # TODO
|
|
28
|
+
s.homepage = "https://reactnative.dev/"
|
|
29
|
+
s.license = package["license"]
|
|
30
|
+
s.author = "Meta Platforms, Inc. and its affiliates"
|
|
31
|
+
s.platforms = min_supported_versions
|
|
32
|
+
s.source = source
|
|
33
|
+
s.source_files = podspec_sources(["ReactCommon/*.{m,mm,cpp,h}", "platform/ios/**/*.{m,mm,cpp,h}"], ["ReactCommon/*.h", "platform/ios/**/*.h"])
|
|
34
|
+
s.header_dir = "ReactCommon"
|
|
35
|
+
|
|
36
|
+
if ENV['USE_FRAMEWORKS']
|
|
37
|
+
header_search_paths = header_search_paths + ["\"$(PODS_TARGET_SRCROOT)/platform/ios\""]
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
resolve_use_frameworks(s, header_mappings_dir: ".")
|
|
41
|
+
|
|
42
|
+
s.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
|
43
|
+
"CLANG_CXX_LANGUAGE_STANDARD" => rct_cxx_language_standard(),
|
|
44
|
+
"HEADER_SEARCH_PATHS" => header_search_paths.join(' '),
|
|
45
|
+
"DEFINES_MODULE" => "YES" }
|
|
46
|
+
|
|
47
|
+
add_rn_third_party_dependencies(s)
|
|
48
|
+
add_rncore_dependency(s)
|
|
49
|
+
|
|
50
|
+
s.dependency "React-jsi", version
|
|
51
|
+
add_dependency(s, "React-featureflags")
|
|
52
|
+
add_dependency(s, "React-debug")
|
|
53
|
+
add_dependency(s, "React-utils", :additional_framework_paths => ["react/utils/platform/ios"])
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
end
|
|
@@ -0,0 +1,66 @@
|
|
|
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
|
+
package = JSON.parse(File.read(File.expand_path('../../package.json', __dir__)))
|
|
7
|
+
version = package['version']
|
|
8
|
+
|
|
9
|
+
source = { :git => ENV['INSTALL_YOGA_FROM_LOCATION'] || 'https://github.com/facebook/react-native.git' }
|
|
10
|
+
if version == '1000.0.0'
|
|
11
|
+
# This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in.
|
|
12
|
+
source[:commit] = `git rev-parse HEAD`.strip if system("git rev-parse --git-dir > /dev/null 2>&1")
|
|
13
|
+
else
|
|
14
|
+
source[:tag] = "v#{version}"
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
Pod::Spec.new do |spec|
|
|
18
|
+
spec.name = 'Yoga'
|
|
19
|
+
spec.version = '0.0.0'
|
|
20
|
+
spec.license = { :type => 'MIT' }
|
|
21
|
+
spec.homepage = 'https://yogalayout.dev'
|
|
22
|
+
spec.documentation_url = 'https://yogalayout.dev/docs/'
|
|
23
|
+
|
|
24
|
+
spec.summary = 'Yoga is a cross-platform layout engine which implements Flexbox.'
|
|
25
|
+
spec.description = 'Yoga is a cross-platform layout engine enabling maximum collaboration within your team by implementing an API many designers are familiar with, and opening it up to developers across different platforms.'
|
|
26
|
+
|
|
27
|
+
spec.authors = 'Facebook'
|
|
28
|
+
spec.source = source
|
|
29
|
+
|
|
30
|
+
spec.module_name = 'yoga'
|
|
31
|
+
spec.header_dir = 'yoga'
|
|
32
|
+
spec.requires_arc = false
|
|
33
|
+
spec.pod_target_xcconfig = {
|
|
34
|
+
'DEFINES_MODULE' => 'YES'
|
|
35
|
+
}.merge!(ENV['USE_FRAMEWORKS'] != nil ? {
|
|
36
|
+
'HEADER_SEARCH_PATHS' => '"$(PODS_TARGET_SRCROOT)"'
|
|
37
|
+
} : {})
|
|
38
|
+
spec.compiler_flags = [
|
|
39
|
+
'-fno-omit-frame-pointer',
|
|
40
|
+
'-fexceptions',
|
|
41
|
+
'-Wall',
|
|
42
|
+
'-Werror',
|
|
43
|
+
'-std=c++20',
|
|
44
|
+
'-fPIC'
|
|
45
|
+
]
|
|
46
|
+
|
|
47
|
+
# Pinning to the same version as React.podspec.
|
|
48
|
+
spec.platforms = min_supported_versions
|
|
49
|
+
|
|
50
|
+
# Set this environment variable when *not* using the `:path` option to install the pod.
|
|
51
|
+
# E.g. when publishing this spec to a spec repo.
|
|
52
|
+
source_files = 'yoga/**/*.{cpp,h}'
|
|
53
|
+
source_files = File.join('ReactCommon/yoga', source_files) if ENV['INSTALL_YOGA_WITHOUT_PATH_OPTION']
|
|
54
|
+
spec.source_files = podspec_sources(source_files, "yoga/**/*.h")
|
|
55
|
+
spec.header_mappings_dir = 'yoga'
|
|
56
|
+
|
|
57
|
+
public_header_files = 'yoga/*.h'
|
|
58
|
+
public_header_files = File.join('ReactCommon/yoga', public_header_files) if ENV['INSTALL_YOGA_WITHOUT_PATH_OPTION']
|
|
59
|
+
spec.public_header_files = public_header_files
|
|
60
|
+
|
|
61
|
+
# Fabric must be able to access private headers (which should not be included in the umbrella header)
|
|
62
|
+
all_header_files = 'yoga/**/*.h'
|
|
63
|
+
all_header_files = File.join('ReactCommon/yoga', all_header_files) if ENV['INSTALL_YOGA_WITHOUT_PATH_OPTION']
|
|
64
|
+
spec.private_header_files = Dir.glob(all_header_files) - Dir.glob(public_header_files)
|
|
65
|
+
spec.preserve_paths = [all_header_files]
|
|
66
|
+
end
|