@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.
- package/README.md +5 -0
- package/android/CMakeLists.txt +3 -3
- package/android/build.gradle +2 -2
- package/android/src/main/cpp/cpp-adapter.cpp +2 -2
- package/android/src/main/java/com/margelo/nitro/{rnpack/utils → rnpackutils}/RNPackUtils.kt +1 -1
- package/android/src/main/java/com/margelo/nitro/{rnpack/utils → rnpackutils}/RNPackUtilsPackage.kt +2 -2
- package/lib/module/index.js +2 -2
- package/lib/module/index.js.map +1 -1
- package/nitro.json +5 -5
- package/nitrogen/generated/android/c++/JHybridRNPackUtilsSpec.cpp +2 -2
- package/nitrogen/generated/android/c++/JHybridRNPackUtilsSpec.hpp +3 -3
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/{rnpack/utils → rnpackutils}/HybridRNPackUtilsSpec.kt +1 -1
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/{rnpack/utils/RNPackUtilsOnLoad.kt → rnpackutils/rnpackutilsOnLoad.kt} +9 -9
- package/nitrogen/generated/android/{RNPackUtils+autolinking.cmake → rnpackutils+autolinking.cmake} +8 -8
- package/nitrogen/generated/android/{RNPackUtils+autolinking.gradle → rnpackutils+autolinking.gradle} +3 -3
- package/nitrogen/generated/android/{RNPackUtilsOnLoad.cpp → rnpackutilsOnLoad.cpp} +8 -8
- package/nitrogen/generated/android/{RNPackUtilsOnLoad.hpp → rnpackutilsOnLoad.hpp} +5 -5
- package/nitrogen/generated/ios/RNPackUtils-Swift-Cxx-Bridge.cpp +4 -4
- package/nitrogen/generated/ios/RNPackUtils-Swift-Cxx-Bridge.hpp +3 -3
- package/nitrogen/generated/ios/RNPackUtils-Swift-Cxx-Umbrella.hpp +1 -1
- package/nitrogen/generated/ios/RNPackUtilsAutolinking.mm +1 -1
- package/nitrogen/generated/ios/RNPackUtilsAutolinking.swift +1 -1
- package/nitrogen/generated/ios/c++/HybridRNPackUtilsSpecSwift.cpp +2 -2
- package/nitrogen/generated/ios/c++/HybridRNPackUtilsSpecSwift.hpp +2 -2
- package/nitrogen/generated/ios/swift/HybridRNPackUtilsSpec_cxx.swift +2 -2
- package/nitrogen/generated/shared/c++/HybridRNPackUtilsSpec.cpp +2 -2
- package/nitrogen/generated/shared/c++/HybridRNPackUtilsSpec.hpp +2 -2
- package/package.json +46 -23
- package/src/index.tsx +2 -2
- package/__mocks__/jestSetupFile.js +0 -0
- package/__mocks__/rnpack-utils-mock.js +0 -17
- package/example/node_modules/react-native/Libraries/ActionSheetIOS/React-RCTActionSheet.podspec +0 -34
- package/example/node_modules/react-native/Libraries/AppDelegate/React-RCTAppDelegate.podspec +0 -88
- package/example/node_modules/react-native/Libraries/Blob/React-RCTBlob.podspec +0 -59
- package/example/node_modules/react-native/Libraries/FBLazyVector/FBLazyVector.podspec +0 -31
- package/example/node_modules/react-native/Libraries/Image/React-RCTImage.podspec +0 -57
- package/example/node_modules/react-native/Libraries/LinkingIOS/React-RCTLinking.podspec +0 -51
- package/example/node_modules/react-native/Libraries/NativeAnimation/React-RCTAnimation.podspec +0 -54
- package/example/node_modules/react-native/Libraries/Network/React-RCTNetwork.podspec +0 -56
- package/example/node_modules/react-native/Libraries/PushNotificationIOS/React-RCTPushNotification.podspec +0 -53
- package/example/node_modules/react-native/Libraries/Required/RCTRequired.podspec +0 -30
- package/example/node_modules/react-native/Libraries/Settings/React-RCTSettings.podspec +0 -53
- package/example/node_modules/react-native/Libraries/Text/React-RCTText.podspec +0 -37
- package/example/node_modules/react-native/Libraries/TypeSafety/RCTTypeSafety.podspec +0 -39
- package/example/node_modules/react-native/Libraries/Vibration/React-RCTVibration.podspec +0 -53
- package/example/node_modules/react-native/React/CoreModules/React-CoreModules.podspec +0 -67
- package/example/node_modules/react-native/React/React-RCTFBReactNativeSpec.podspec +0 -95
- package/example/node_modules/react-native/React/React-RCTFabric.podspec +0 -107
- package/example/node_modules/react-native/React/Runtime/React-RCTRuntime.podspec +0 -70
- package/example/node_modules/react-native/React-Core-prebuilt.podspec +0 -78
- package/example/node_modules/react-native/React-Core.podspec +0 -137
- package/example/node_modules/react-native/React.podspec +0 -56
- package/example/node_modules/react-native/ReactApple/Libraries/RCTFoundation/RCTDeprecation/RCTDeprecation.podspec +0 -25
- package/example/node_modules/react-native/ReactCommon/React-Fabric.podspec +0 -207
- package/example/node_modules/react-native/ReactCommon/React-FabricComponents.podspec +0 -170
- package/example/node_modules/react-native/ReactCommon/React-FabricImage.podspec +0 -79
- package/example/node_modules/react-native/ReactCommon/React-Mapbuffer.podspec +0 -40
- package/example/node_modules/react-native/ReactCommon/ReactCommon.podspec +0 -72
- package/example/node_modules/react-native/ReactCommon/callinvoker/React-callinvoker.podspec +0 -30
- package/example/node_modules/react-native/ReactCommon/cxxreact/React-cxxreact.podspec +0 -56
- package/example/node_modules/react-native/ReactCommon/hermes/React-hermes.podspec +0 -52
- package/example/node_modules/react-native/ReactCommon/hermes/executor/React-jsitracing.podspec +0 -38
- package/example/node_modules/react-native/ReactCommon/jserrorhandler/React-jserrorhandler.podspec +0 -52
- package/example/node_modules/react-native/ReactCommon/jsi/React-jsi.podspec +0 -50
- package/example/node_modules/react-native/ReactCommon/jsiexecutor/React-jsiexecutor.podspec +0 -45
- package/example/node_modules/react-native/ReactCommon/jsinspector-modern/React-jsinspector.podspec +0 -63
- package/example/node_modules/react-native/ReactCommon/jsinspector-modern/cdp/React-jsinspectorcdp.podspec +0 -48
- package/example/node_modules/react-native/ReactCommon/jsinspector-modern/network/React-jsinspectornetwork.podspec +0 -53
- package/example/node_modules/react-native/ReactCommon/jsinspector-modern/tracing/React-jsinspectortracing.podspec +0 -51
- package/example/node_modules/react-native/ReactCommon/jsitooling/React-jsitooling.podspec +0 -47
- package/example/node_modules/react-native/ReactCommon/logger/React-logger.podspec +0 -34
- package/example/node_modules/react-native/ReactCommon/oscompat/React-oscompat.podspec +0 -31
- package/example/node_modules/react-native/ReactCommon/react/debug/React-debug.podspec +0 -34
- package/example/node_modules/react-native/ReactCommon/react/featureflags/React-featureflags.podspec +0 -44
- package/example/node_modules/react-native/ReactCommon/react/nativemodule/core/platform/ios/React-NativeModulesApple.podspec +0 -54
- package/example/node_modules/react-native/ReactCommon/react/nativemodule/defaults/React-defaultsnativemodule.podspec +0 -54
- package/example/node_modules/react-native/ReactCommon/react/nativemodule/dom/React-domnativemodule.podspec +0 -60
- package/example/node_modules/react-native/ReactCommon/react/nativemodule/featureflags/React-featureflagsnativemodule.podspec +0 -53
- package/example/node_modules/react-native/ReactCommon/react/nativemodule/idlecallbacks/React-idlecallbacksnativemodule.podspec +0 -55
- package/example/node_modules/react-native/ReactCommon/react/nativemodule/microtasks/React-microtasksnativemodule.podspec +0 -52
- package/example/node_modules/react-native/ReactCommon/react/nativemodule/samples/ReactCommon-Samples.podspec +0 -63
- package/example/node_modules/react-native/ReactCommon/react/performance/timeline/React-performancetimeline.podspec +0 -50
- package/example/node_modules/react-native/ReactCommon/react/renderer/consistency/React-rendererconsistency.podspec +0 -43
- package/example/node_modules/react-native/ReactCommon/react/renderer/css/React-renderercss.podspec +0 -47
- package/example/node_modules/react-native/ReactCommon/react/renderer/debug/React-rendererdebug.podspec +0 -48
- package/example/node_modules/react-native/ReactCommon/react/renderer/graphics/React-graphics.podspec +0 -55
- package/example/node_modules/react-native/ReactCommon/react/renderer/imagemanager/platform/ios/React-ImageManager.podspec +0 -56
- package/example/node_modules/react-native/ReactCommon/react/renderer/runtimescheduler/React-runtimescheduler.podspec +0 -59
- package/example/node_modules/react-native/ReactCommon/react/runtime/React-RuntimeCore.podspec +0 -56
- package/example/node_modules/react-native/ReactCommon/react/runtime/React-RuntimeHermes.podspec +0 -53
- package/example/node_modules/react-native/ReactCommon/react/runtime/platform/ios/React-RuntimeApple.podspec +0 -72
- package/example/node_modules/react-native/ReactCommon/react/timing/React-timing.podspec +0 -43
- package/example/node_modules/react-native/ReactCommon/react/utils/React-utils.podspec +0 -55
- package/example/node_modules/react-native/ReactCommon/reactperflogger/React-perflogger.podspec +0 -42
- package/example/node_modules/react-native/ReactCommon/runtimeexecutor/React-runtimeexecutor.podspec +0 -56
- package/example/node_modules/react-native/ReactCommon/yoga/Yoga.podspec +0 -66
- package/example/node_modules/react-native/react-native.config.js +0 -139
- package/example/node_modules/react-native/sdks/hermes-engine/hermes-engine.podspec +0 -165
- package/example/node_modules/react-native/third-party-podspecs/DoubleConversion.podspec +0 -34
- package/example/node_modules/react-native/third-party-podspecs/RCT-Folly.podspec +0 -132
- package/example/node_modules/react-native/third-party-podspecs/ReactNativeDependencies.podspec +0 -99
- package/example/node_modules/react-native/third-party-podspecs/boost.podspec +0 -34
- package/example/node_modules/react-native/third-party-podspecs/fast_float.podspec +0 -29
- package/example/node_modules/react-native/third-party-podspecs/fmt.podspec +0 -29
- package/example/node_modules/react-native/third-party-podspecs/glog.podspec +0 -47
- package/example/node_modules/react-native-nitro-modules/NitroModules.podspec +0 -90
- package/example/node_modules/react-native-nitro-modules/react-native.config.js +0 -16
- package/example/react-native.config.js +0 -21
- package/lib/typescript/__tests__/utils/string.test.d.ts +0 -2
- package/lib/typescript/__tests__/utils/string.test.d.ts.map +0 -1
- /package/{Utils.podspec → RNPackUtils.podspec} +0 -0
|
@@ -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
|
-
"\"$(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
|
|
@@ -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
|
-
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
|
|
@@ -1,43 +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)/../../..\"" # 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
|
package/example/node_modules/react-native/ReactCommon/react/renderer/css/React-renderercss.podspec
DELETED
|
@@ -1,47 +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)/../../..\"" # 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
|
|
@@ -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)/../../..\"" # this is needed to allow the Renderer/Debug access its own files
|
|
23
|
-
end
|
|
24
|
-
|
|
25
|
-
Pod::Spec.new do |s|
|
|
26
|
-
s.name = "React-rendererdebug"
|
|
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,mm}", "**/*.h")
|
|
35
|
-
s.header_dir = "react/renderer/debug"
|
|
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_rendererdebug")
|
|
44
|
-
|
|
45
|
-
add_dependency(s, "React-debug")
|
|
46
|
-
add_rn_third_party_dependencies(s)
|
|
47
|
-
add_rncore_dependency(s)
|
|
48
|
-
end
|
package/example/node_modules/react-native/ReactCommon/react/renderer/graphics/React-graphics.podspec
DELETED
|
@@ -1,55 +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
|
-
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
|
|
@@ -1,56 +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
|
-
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
|
|
@@ -1,59 +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)/../../..\"" # 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
|
package/example/node_modules/react-native/ReactCommon/react/runtime/React-RuntimeCore.podspec
DELETED
|
@@ -1,56 +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-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
DELETED
|
@@ -1,53 +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-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
|
|
@@ -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
|
-
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
|
|
@@ -1,43 +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)/../..\"" # 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
|