@rnpack/utils 0.1.10 → 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/__mocks__/jestSetupFile.js +0 -0
- package/__mocks__/rnpack-utils-mock.js +17 -0
- 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
|
File without changes
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
NitroModules: {
|
|
3
|
+
createHybridObject: () => ({
|
|
4
|
+
init: () => {},
|
|
5
|
+
add: () => {},
|
|
6
|
+
createHybridNavigationBar: () => {},
|
|
7
|
+
createHybridStatusBar: () => ({}),
|
|
8
|
+
}),
|
|
9
|
+
},
|
|
10
|
+
responsive: {
|
|
11
|
+
size: () => Number,
|
|
12
|
+
height: () => Number,
|
|
13
|
+
},
|
|
14
|
+
mergeObjects: (obj1, obj2) => ({ ...obj1, ...obj2 }),
|
|
15
|
+
isNotEmpty: () => Boolean,
|
|
16
|
+
isEmpty: () => Boolean,
|
|
17
|
+
};
|
package/example/node_modules/react-native/Libraries/ActionSheetIOS/React-RCTActionSheet.podspec
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
+
#
|
|
3
|
+
# This source code is licensed under the MIT license found in the
|
|
4
|
+
# LICENSE file in the root directory of this source tree.
|
|
5
|
+
|
|
6
|
+
require "json"
|
|
7
|
+
|
|
8
|
+
package = JSON.parse(File.read(File.join(__dir__, "..", "..", "package.json")))
|
|
9
|
+
version = package['version']
|
|
10
|
+
|
|
11
|
+
source = { :git => 'https://github.com/facebook/react-native.git' }
|
|
12
|
+
if version == '1000.0.0'
|
|
13
|
+
# This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in.
|
|
14
|
+
source[:commit] = `git rev-parse HEAD`.strip if system("git rev-parse --git-dir > /dev/null 2>&1")
|
|
15
|
+
else
|
|
16
|
+
source[:tag] = "v#{version}"
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
Pod::Spec.new do |s|
|
|
20
|
+
s.name = "React-RCTActionSheet"
|
|
21
|
+
s.version = version
|
|
22
|
+
s.summary = "An API for displaying iOS action sheets and share sheets."
|
|
23
|
+
s.homepage = "https://reactnative.dev/"
|
|
24
|
+
s.documentation_url = "https://reactnative.dev/docs/actionsheetios"
|
|
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("*.{m}", "")
|
|
30
|
+
s.preserve_paths = "package.json", "LICENSE", "LICENSE-docs"
|
|
31
|
+
s.header_dir = "RCTActionSheet"
|
|
32
|
+
|
|
33
|
+
s.dependency "React-Core/RCTActionSheetHeaders", version
|
|
34
|
+
end
|
|
@@ -0,0 +1,88 @@
|
|
|
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
|
+
is_new_arch_enabled = ENV["RCT_NEW_ARCH_ENABLED"] != "0"
|
|
20
|
+
new_arch_enabled_flag = (is_new_arch_enabled ? " -DRCT_NEW_ARCH_ENABLED=1" : "")
|
|
21
|
+
other_cflags = "$(inherited) " + new_arch_enabled_flag + js_engine_flags()
|
|
22
|
+
|
|
23
|
+
header_search_paths = [
|
|
24
|
+
"$(PODS_TARGET_SRCROOT)/../../ReactCommon",
|
|
25
|
+
"$(PODS_ROOT)/Headers/Private/React-Core",
|
|
26
|
+
"${PODS_ROOT}/Headers/Public/FlipperKit",
|
|
27
|
+
"$(PODS_ROOT)/Headers/Public/ReactCommon",
|
|
28
|
+
"$(PODS_ROOT)/Headers/Public/React-RCTFabric",
|
|
29
|
+
"$(PODS_ROOT)/Headers/Private/Yoga",
|
|
30
|
+
].concat(use_hermes() ? [
|
|
31
|
+
"$(PODS_ROOT)/Headers/Public/React-hermes",
|
|
32
|
+
"$(PODS_ROOT)/Headers/Public/hermes-engine"
|
|
33
|
+
] : [])
|
|
34
|
+
|
|
35
|
+
Pod::Spec.new do |s|
|
|
36
|
+
s.name = "React-RCTAppDelegate"
|
|
37
|
+
s.version = version
|
|
38
|
+
s.summary = "An utility library to simplify common operations for the New Architecture"
|
|
39
|
+
s.homepage = "https://reactnative.dev/"
|
|
40
|
+
s.documentation_url = "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("**/*.{c,h,m,mm,S,cpp}", "**/*.h")
|
|
46
|
+
|
|
47
|
+
# This guard prevent to install the dependencies when we run `pod install` in the old architecture.
|
|
48
|
+
s.compiler_flags = other_cflags
|
|
49
|
+
s.pod_target_xcconfig = {
|
|
50
|
+
"HEADER_SEARCH_PATHS" => header_search_paths,
|
|
51
|
+
"OTHER_CPLUSPLUSFLAGS" => other_cflags,
|
|
52
|
+
"CLANG_CXX_LANGUAGE_STANDARD" => rct_cxx_language_standard(),
|
|
53
|
+
"DEFINES_MODULE" => "YES"
|
|
54
|
+
}
|
|
55
|
+
s.user_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/Headers/Private/React-Core\" \"$(PODS_ROOT)/Headers/Private/Yoga\""}
|
|
56
|
+
|
|
57
|
+
s.dependency "React-Core"
|
|
58
|
+
s.dependency "RCTRequired"
|
|
59
|
+
s.dependency "RCTTypeSafety"
|
|
60
|
+
s.dependency "React-RCTNetwork"
|
|
61
|
+
s.dependency "React-RCTImage"
|
|
62
|
+
s.dependency "React-CoreModules"
|
|
63
|
+
s.dependency "React-RCTFBReactNativeSpec"
|
|
64
|
+
s.dependency "React-defaultsnativemodule"
|
|
65
|
+
if use_hermes()
|
|
66
|
+
s.dependency 'React-hermes'
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
add_dependency(s, "React-runtimeexecutor", :additional_framework_paths => ["platform/ios"])
|
|
70
|
+
add_dependency(s, "ReactCommon", :subspec => "turbomodule/core", :additional_framework_paths => ["react/nativemodule/core"])
|
|
71
|
+
add_dependency(s, "React-NativeModulesApple")
|
|
72
|
+
add_dependency(s, "React-runtimescheduler")
|
|
73
|
+
add_dependency(s, "React-RCTFabric", :framework_name => "RCTFabric")
|
|
74
|
+
add_dependency(s, "React-RuntimeCore")
|
|
75
|
+
add_dependency(s, "React-RuntimeApple")
|
|
76
|
+
add_dependency(s, "React-Fabric", :additional_framework_paths => ["react/renderer/components/view/platform/cxx"])
|
|
77
|
+
add_dependency(s, "React-graphics", :additional_framework_paths => ["react/renderer/graphics/platform/ios"])
|
|
78
|
+
add_dependency(s, "React-utils")
|
|
79
|
+
add_dependency(s, "React-debug")
|
|
80
|
+
add_dependency(s, "React-rendererdebug")
|
|
81
|
+
add_dependency(s, "React-featureflags")
|
|
82
|
+
add_dependency(s, "React-jsitooling", :framework_name => "JSITooling")
|
|
83
|
+
add_dependency(s, "React-RCTRuntime", :framework_name => "RCTRuntime")
|
|
84
|
+
|
|
85
|
+
depend_on_js_engine(s)
|
|
86
|
+
add_rn_third_party_dependencies(s)
|
|
87
|
+
add_rncore_dependency(s)
|
|
88
|
+
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
|
+
"\"${PODS_ROOT}/Headers/Public/ReactCodegen/react/renderer/components\"",
|
|
21
|
+
]
|
|
22
|
+
|
|
23
|
+
Pod::Spec.new do |s|
|
|
24
|
+
s.name = "React-RCTBlob"
|
|
25
|
+
s.version = version
|
|
26
|
+
s.summary = "An API for displaying iOS action sheets and share sheets."
|
|
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.compiler_flags = '-Wno-nullability-completeness'
|
|
32
|
+
s.source = source
|
|
33
|
+
s.source_files = podspec_sources("*.{h,m,mm}", "**/*.h")
|
|
34
|
+
s.preserve_paths = "package.json", "LICENSE", "LICENSE-docs"
|
|
35
|
+
s.header_dir = "RCTBlob"
|
|
36
|
+
s.pod_target_xcconfig = {
|
|
37
|
+
"USE_HEADERMAP" => "YES",
|
|
38
|
+
"CLANG_CXX_LANGUAGE_STANDARD" => rct_cxx_language_standard(),
|
|
39
|
+
"HEADER_SEARCH_PATHS" => header_search_paths.join(' ')
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
s.dependency "React-jsi"
|
|
43
|
+
s.dependency "React-Core/RCTBlobHeaders"
|
|
44
|
+
s.dependency "React-Core/RCTWebSocket"
|
|
45
|
+
s.dependency "React-RCTNetwork"
|
|
46
|
+
|
|
47
|
+
add_dependency(s, "React-RCTFBReactNativeSpec")
|
|
48
|
+
add_dependency(s, "React-NativeModulesApple")
|
|
49
|
+
add_dependency(s, "React-jsinspector", :framework_name => 'jsinspector_modern')
|
|
50
|
+
add_dependency(s, "React-jsinspectorcdp", :framework_name => 'jsinspector_moderncdp')
|
|
51
|
+
add_dependency(s, "ReactCommon", :subspec => "turbomodule/core", :additional_framework_paths => ["react/nativemodule/core"])
|
|
52
|
+
|
|
53
|
+
if use_hermes()
|
|
54
|
+
s.dependency "hermes-engine"
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
add_rn_third_party_dependencies(s)
|
|
58
|
+
add_rncore_dependency(s)
|
|
59
|
+
end
|
|
@@ -0,0 +1,31 @@
|
|
|
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 = "FBLazyVector"
|
|
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("**/*.{c,h,m,mm,cpp}", "**/*.h")
|
|
29
|
+
s.header_dir = "FBLazyVector"
|
|
30
|
+
|
|
31
|
+
end
|
|
@@ -0,0 +1,57 @@
|
|
|
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/Public/ReactCodegen/react/renderer/components\"",
|
|
21
|
+
]
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
Pod::Spec.new do |s|
|
|
25
|
+
s.name = "React-RCTImage"
|
|
26
|
+
s.version = version
|
|
27
|
+
s.summary = "A React component for displaying different types of images."
|
|
28
|
+
s.homepage = "https://reactnative.dev/"
|
|
29
|
+
s.documentation_url = "https://reactnative.dev/docs/image"
|
|
30
|
+
s.license = package["license"]
|
|
31
|
+
s.author = "Meta Platforms, Inc. and its affiliates"
|
|
32
|
+
s.platforms = min_supported_versions
|
|
33
|
+
s.compiler_flags = '-Wno-nullability-completeness'
|
|
34
|
+
s.source = source
|
|
35
|
+
s.source_files = podspec_sources("*.{m,mm}", "**/*.h")
|
|
36
|
+
s.preserve_paths = "package.json", "LICENSE", "LICENSE-docs"
|
|
37
|
+
s.header_dir = "RCTImage"
|
|
38
|
+
s.pod_target_xcconfig = {
|
|
39
|
+
"USE_HEADERMAP" => "YES",
|
|
40
|
+
"CLANG_CXX_LANGUAGE_STANDARD" => rct_cxx_language_standard(),
|
|
41
|
+
"HEADER_SEARCH_PATHS" => header_search_paths.join(' '),
|
|
42
|
+
"DEFINES_MODULE" => "YES"
|
|
43
|
+
}
|
|
44
|
+
s.framework = ["Accelerate", "UIKit", "QuartzCore", "ImageIO", "CoreGraphics"]
|
|
45
|
+
|
|
46
|
+
s.dependency "RCTTypeSafety"
|
|
47
|
+
s.dependency "React-jsi"
|
|
48
|
+
s.dependency "React-Core/RCTImageHeaders"
|
|
49
|
+
s.dependency "React-RCTNetwork"
|
|
50
|
+
|
|
51
|
+
add_dependency(s, "React-RCTFBReactNativeSpec")
|
|
52
|
+
add_dependency(s, "ReactCommon", :subspec => "turbomodule/core", :additional_framework_paths => ["react/nativemodule/core"])
|
|
53
|
+
add_dependency(s, "React-NativeModulesApple")
|
|
54
|
+
|
|
55
|
+
add_rn_third_party_dependencies(s)
|
|
56
|
+
add_rncore_dependency(s)
|
|
57
|
+
end
|
|
@@ -0,0 +1,51 @@
|
|
|
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/Public/ReactCodegen/react/renderer/components\"",
|
|
21
|
+
]
|
|
22
|
+
|
|
23
|
+
Pod::Spec.new do |s|
|
|
24
|
+
s.name = "React-RCTLinking"
|
|
25
|
+
s.version = version
|
|
26
|
+
s.summary = "A general interface to interact with both incoming and outgoing app links."
|
|
27
|
+
s.homepage = "https://reactnative.dev/"
|
|
28
|
+
s.documentation_url = "https://reactnative.dev/docs/linking"
|
|
29
|
+
s.license = package["license"]
|
|
30
|
+
s.author = "Meta Platforms, Inc. and its affiliates"
|
|
31
|
+
s.platforms = min_supported_versions
|
|
32
|
+
s.compiler_flags = '-Wno-nullability-completeness'
|
|
33
|
+
s.source = source
|
|
34
|
+
s.source_files = podspec_sources("*.{m,mm}", "")
|
|
35
|
+
s.preserve_paths = "package.json", "LICENSE", "LICENSE-docs"
|
|
36
|
+
s.header_dir = "RCTLinking"
|
|
37
|
+
s.pod_target_xcconfig = {
|
|
38
|
+
"USE_HEADERMAP" => "YES",
|
|
39
|
+
"CLANG_CXX_LANGUAGE_STANDARD" => rct_cxx_language_standard(),
|
|
40
|
+
"HEADER_SEARCH_PATHS" => header_search_paths.join(' ')
|
|
41
|
+
}
|
|
42
|
+
s.framework = "UIKit"
|
|
43
|
+
|
|
44
|
+
s.dependency "React-Core/RCTLinkingHeaders", version
|
|
45
|
+
s.dependency "ReactCommon/turbomodule/core", version
|
|
46
|
+
s.dependency "React-jsi", version
|
|
47
|
+
|
|
48
|
+
add_dependency(s, "React-RCTFBReactNativeSpec")
|
|
49
|
+
add_dependency(s, "ReactCommon", :subspec => "turbomodule/core", :additional_framework_paths => ["react/nativemodule/core"])
|
|
50
|
+
add_dependency(s, "React-NativeModulesApple", :additional_framework_paths => ["build/generated/ios"])
|
|
51
|
+
end
|
package/example/node_modules/react-native/Libraries/NativeAnimation/React-RCTAnimation.podspec
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
+
#
|
|
3
|
+
# This source code is licensed under the MIT license found in the
|
|
4
|
+
# LICENSE file in the root directory of this source tree.
|
|
5
|
+
|
|
6
|
+
require "json"
|
|
7
|
+
|
|
8
|
+
package = JSON.parse(File.read(File.join(__dir__, "..", "..", "package.json")))
|
|
9
|
+
version = package['version']
|
|
10
|
+
|
|
11
|
+
source = { :git => 'https://github.com/facebook/react-native.git' }
|
|
12
|
+
if version == '1000.0.0'
|
|
13
|
+
# This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in.
|
|
14
|
+
source[:commit] = `git rev-parse HEAD`.strip if system("git rev-parse --git-dir > /dev/null 2>&1")
|
|
15
|
+
else
|
|
16
|
+
source[:tag] = "v#{version}"
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
header_search_paths = [
|
|
20
|
+
"\"${PODS_ROOT}/Headers/Public/ReactCodegen/react/renderer/components\"",
|
|
21
|
+
]
|
|
22
|
+
|
|
23
|
+
Pod::Spec.new do |s|
|
|
24
|
+
s.name = "React-RCTAnimation"
|
|
25
|
+
s.version = version
|
|
26
|
+
s.summary = "A native driver for the Animated API."
|
|
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.compiler_flags = '-Wno-nullability-completeness'
|
|
32
|
+
s.source = source
|
|
33
|
+
s.source_files = podspec_sources("**/*.{h,m,mm}", "**/*.h")
|
|
34
|
+
s.preserve_paths = "package.json", "LICENSE", "LICENSE-docs"
|
|
35
|
+
s.header_dir = "RCTAnimation"
|
|
36
|
+
s.pod_target_xcconfig = {
|
|
37
|
+
"USE_HEADERMAP" => "YES",
|
|
38
|
+
"CLANG_CXX_LANGUAGE_STANDARD" => rct_cxx_language_standard(),
|
|
39
|
+
"HEADER_SEARCH_PATHS" => header_search_paths.join(" ")
|
|
40
|
+
}
|
|
41
|
+
s.framework = ["UIKit", "QuartzCore"]
|
|
42
|
+
|
|
43
|
+
s.dependency "RCTTypeSafety"
|
|
44
|
+
s.dependency "React-jsi"
|
|
45
|
+
s.dependency "React-Core/RCTAnimationHeaders"
|
|
46
|
+
|
|
47
|
+
add_dependency(s, "React-RCTFBReactNativeSpec")
|
|
48
|
+
add_dependency(s, "ReactCommon", :subspec => "turbomodule/core", :additional_framework_paths => ["react/nativemodule/core"])
|
|
49
|
+
add_dependency(s, "React-NativeModulesApple")
|
|
50
|
+
add_dependency(s, "React-featureflags")
|
|
51
|
+
|
|
52
|
+
add_rn_third_party_dependencies(s)
|
|
53
|
+
add_rncore_dependency(s)
|
|
54
|
+
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
|
+
header_search_paths = [
|
|
20
|
+
"\"${PODS_ROOT}/Headers/Public/ReactCodegen/react/renderer/components\"",
|
|
21
|
+
]
|
|
22
|
+
|
|
23
|
+
Pod::Spec.new do |s|
|
|
24
|
+
s.name = "React-RCTNetwork"
|
|
25
|
+
s.version = version
|
|
26
|
+
s.summary = "The networking library of React Native."
|
|
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.compiler_flags = '-Wno-nullability-completeness'
|
|
32
|
+
s.source = source
|
|
33
|
+
s.source_files = podspec_sources("*.{m,mm}", "")
|
|
34
|
+
s.preserve_paths = "package.json", "LICENSE", "LICENSE-docs"
|
|
35
|
+
s.header_dir = "RCTNetwork"
|
|
36
|
+
s.pod_target_xcconfig = {
|
|
37
|
+
"USE_HEADERMAP" => "YES",
|
|
38
|
+
"CLANG_CXX_LANGUAGE_STANDARD" => rct_cxx_language_standard(),
|
|
39
|
+
"HEADER_SEARCH_PATHS" => header_search_paths.join(' ')
|
|
40
|
+
}
|
|
41
|
+
s.frameworks = "MobileCoreServices"
|
|
42
|
+
|
|
43
|
+
s.dependency "RCTTypeSafety"
|
|
44
|
+
s.dependency "React-jsi"
|
|
45
|
+
s.dependency "React-Core/RCTNetworkHeaders"
|
|
46
|
+
|
|
47
|
+
add_dependency(s, "React-RCTFBReactNativeSpec")
|
|
48
|
+
add_dependency(s, "ReactCommon", :subspec => "turbomodule/core", :additional_framework_paths => ["react/nativemodule/core"])
|
|
49
|
+
add_dependency(s, "React-featureflags")
|
|
50
|
+
add_dependency(s, "React-jsinspectorcdp", :framework_name => 'jsinspector_moderncdp')
|
|
51
|
+
add_dependency(s, "React-jsinspectornetwork", :framework_name => 'jsinspector_modernnetwork')
|
|
52
|
+
add_dependency(s, "React-NativeModulesApple", :additional_framework_paths => ["build/generated/ios"])
|
|
53
|
+
|
|
54
|
+
add_rn_third_party_dependencies(s)
|
|
55
|
+
add_rncore_dependency(s)
|
|
56
|
+
end
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
+
#
|
|
3
|
+
# This source code is licensed under the MIT license found in the
|
|
4
|
+
# LICENSE file in the root directory of this source tree.
|
|
5
|
+
|
|
6
|
+
require "json"
|
|
7
|
+
|
|
8
|
+
package = JSON.parse(File.read(File.join(__dir__, "..", "..", "package.json")))
|
|
9
|
+
version = package['version']
|
|
10
|
+
|
|
11
|
+
source = { :git => 'https://github.com/facebook/react-native.git' }
|
|
12
|
+
if version == '1000.0.0'
|
|
13
|
+
# This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in.
|
|
14
|
+
source[:commit] = `git rev-parse HEAD`.strip if system("git rev-parse --git-dir > /dev/null 2>&1")
|
|
15
|
+
else
|
|
16
|
+
source[:tag] = "v#{version}"
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
header_search_paths = [
|
|
20
|
+
"\"${PODS_ROOT}/Headers/Public/ReactCodegen/react/renderer/components\"",
|
|
21
|
+
]
|
|
22
|
+
|
|
23
|
+
Pod::Spec.new do |s|
|
|
24
|
+
s.name = "React-RCTPushNotification"
|
|
25
|
+
s.version = version
|
|
26
|
+
s.summary = "A library for handling push notifications for your app, including permission handling and icon badge number."
|
|
27
|
+
s.homepage = "https://reactnative.dev/"
|
|
28
|
+
s.documentation_url = "https://reactnative.dev/docs/pushnotificationios"
|
|
29
|
+
s.license = package["license"]
|
|
30
|
+
s.author = "Meta Platforms, Inc. and its affiliates"
|
|
31
|
+
s.platforms = min_supported_versions
|
|
32
|
+
s.compiler_flags = '-Wno-nullability-completeness'
|
|
33
|
+
s.source = source
|
|
34
|
+
s.source_files = "*.{m,mm}"
|
|
35
|
+
s.preserve_paths = "package.json", "LICENSE", "LICENSE-docs"
|
|
36
|
+
s.header_dir = "RCTPushNotification"
|
|
37
|
+
s.pod_target_xcconfig = {
|
|
38
|
+
"USE_HEADERMAP" => "YES",
|
|
39
|
+
"CLANG_CXX_LANGUAGE_STANDARD" => rct_cxx_language_standard(),
|
|
40
|
+
"HEADER_SEARCH_PATHS" => header_search_paths.join(' ')
|
|
41
|
+
}
|
|
42
|
+
s.framework = ["UIKit", "UserNotifications"]
|
|
43
|
+
|
|
44
|
+
s.dependency "RCTTypeSafety"
|
|
45
|
+
s.dependency "React-Core/RCTPushNotificationHeaders"
|
|
46
|
+
s.dependency "React-jsi"
|
|
47
|
+
|
|
48
|
+
add_dependency(s, "React-RCTFBReactNativeSpec")
|
|
49
|
+
add_dependency(s, "ReactCommon", :subspec => "turbomodule/core", :additional_framework_paths => ["react/nativemodule/core"])
|
|
50
|
+
add_dependency(s, "React-NativeModulesApple")
|
|
51
|
+
|
|
52
|
+
add_rncore_dependency(s)
|
|
53
|
+
end
|
|
@@ -0,0 +1,30 @@
|
|
|
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 = "RCTRequired"
|
|
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("**/*.{c,h,m,mm,cpp}", "**/*.h")
|
|
29
|
+
s.header_dir = "RCTRequired"
|
|
30
|
+
end
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
+
#
|
|
3
|
+
# This source code is licensed under the MIT license found in the
|
|
4
|
+
# LICENSE file in the root directory of this source tree.
|
|
5
|
+
|
|
6
|
+
require "json"
|
|
7
|
+
|
|
8
|
+
package = JSON.parse(File.read(File.join(__dir__, "..", "..", "package.json")))
|
|
9
|
+
version = package['version']
|
|
10
|
+
|
|
11
|
+
source = { :git => 'https://github.com/facebook/react-native.git' }
|
|
12
|
+
if version == '1000.0.0'
|
|
13
|
+
# This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in.
|
|
14
|
+
source[:commit] = `git rev-parse HEAD`.strip if system("git rev-parse --git-dir > /dev/null 2>&1")
|
|
15
|
+
else
|
|
16
|
+
source[:tag] = "v#{version}"
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
header_search_paths = [
|
|
20
|
+
"\"${PODS_ROOT}/Headers/Public/ReactCodegen/react/renderer/components\"",
|
|
21
|
+
]
|
|
22
|
+
|
|
23
|
+
Pod::Spec.new do |s|
|
|
24
|
+
s.name = "React-RCTSettings"
|
|
25
|
+
s.version = version
|
|
26
|
+
s.summary = "A wrapper for NSUserDefaults, a persistent key-value store available only on iOS."
|
|
27
|
+
s.homepage = "https://reactnative.dev/"
|
|
28
|
+
s.documentation_url = "https://reactnative.dev/docs/settings"
|
|
29
|
+
s.license = package["license"]
|
|
30
|
+
s.author = "Meta Platforms, Inc. and its affiliates"
|
|
31
|
+
s.platforms = min_supported_versions
|
|
32
|
+
s.compiler_flags = '-Wno-nullability-completeness'
|
|
33
|
+
s.source = source
|
|
34
|
+
s.source_files = podspec_sources("*.{m,mm}", "**/*.h")
|
|
35
|
+
s.preserve_paths = "package.json", "LICENSE", "LICENSE-docs"
|
|
36
|
+
s.header_dir = "RCTSettings"
|
|
37
|
+
s.pod_target_xcconfig = {
|
|
38
|
+
"USE_HEADERMAP" => "YES",
|
|
39
|
+
"CLANG_CXX_LANGUAGE_STANDARD" => rct_cxx_language_standard(),
|
|
40
|
+
"HEADER_SEARCH_PATHS" => header_search_paths.join(' ')
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
s.dependency "RCTTypeSafety"
|
|
44
|
+
s.dependency "React-jsi"
|
|
45
|
+
s.dependency "React-Core/RCTSettingsHeaders"
|
|
46
|
+
|
|
47
|
+
add_dependency(s, "React-RCTFBReactNativeSpec")
|
|
48
|
+
add_dependency(s, "ReactCommon", :subspec => "turbomodule/core", :additional_framework_paths => ["react/nativemodule/core"])
|
|
49
|
+
add_dependency(s, "React-NativeModulesApple", :additional_framework_paths => ["build/generated/ios"])
|
|
50
|
+
|
|
51
|
+
add_rn_third_party_dependencies(s)
|
|
52
|
+
add_rncore_dependency(s)
|
|
53
|
+
end
|
|
@@ -0,0 +1,37 @@
|
|
|
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-RCTText"
|
|
21
|
+
s.version = version
|
|
22
|
+
s.summary = "A React component for displaying text."
|
|
23
|
+
s.homepage = "https://reactnative.dev/"
|
|
24
|
+
s.documentation_url = "https://reactnative.dev/docs/text"
|
|
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("**/*.{h,m,mm}", "**/*.h")
|
|
30
|
+
s.preserve_paths = "package.json", "LICENSE", "LICENSE-docs"
|
|
31
|
+
s.header_dir = "RCTText"
|
|
32
|
+
s.framework = ["MobileCoreServices"]
|
|
33
|
+
s.pod_target_xcconfig = { "CLANG_CXX_LANGUAGE_STANDARD" => rct_cxx_language_standard() }
|
|
34
|
+
|
|
35
|
+
s.dependency "Yoga"
|
|
36
|
+
s.dependency "React-Core/RCTTextHeaders", version
|
|
37
|
+
end
|