@rnpack/utils 0.1.12 → 0.1.14
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 +43 -22
- package/src/index.tsx +2 -2
- 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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rnpack/utils",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.14",
|
|
4
4
|
"description": "Basic utilities will be available and ready to use",
|
|
5
5
|
"main": "./lib/module/index.js",
|
|
6
6
|
"types": "./lib/typescript/src/index.d.ts",
|
|
@@ -32,7 +32,6 @@
|
|
|
32
32
|
"!android/local.properties",
|
|
33
33
|
"!**/__tests__",
|
|
34
34
|
"!**/__fixtures__",
|
|
35
|
-
"**/__mocks__",
|
|
36
35
|
"!**/.*"
|
|
37
36
|
],
|
|
38
37
|
"scripts": {
|
|
@@ -41,9 +40,9 @@
|
|
|
41
40
|
"prepare": "bob build",
|
|
42
41
|
"nitrogen": "nitrogen",
|
|
43
42
|
"typecheck": "tsc",
|
|
44
|
-
"
|
|
45
|
-
"release": "release-it
|
|
46
|
-
"
|
|
43
|
+
"test": "jest",
|
|
44
|
+
"release": "release-it",
|
|
45
|
+
"lint": "eslint \"**/*.{js,ts,tsx}\""
|
|
47
46
|
},
|
|
48
47
|
"keywords": [
|
|
49
48
|
"react-native",
|
|
@@ -68,24 +67,24 @@
|
|
|
68
67
|
"@eslint/compat": "^1.3.2",
|
|
69
68
|
"@eslint/eslintrc": "^3.3.1",
|
|
70
69
|
"@eslint/js": "^9.35.0",
|
|
71
|
-
"@react-native/babel-preset": "0.
|
|
72
|
-
"@react-native/eslint-config": "
|
|
70
|
+
"@react-native/babel-preset": "0.83.0",
|
|
71
|
+
"@react-native/eslint-config": "0.83.0",
|
|
73
72
|
"@release-it/conventional-changelog": "^10.0.1",
|
|
74
73
|
"@types/jest": "^29.5.14",
|
|
75
|
-
"@types/react": "^19.
|
|
74
|
+
"@types/react": "^19.2.0",
|
|
76
75
|
"buffer": "^6.0.3",
|
|
77
76
|
"commitlint": "^19.8.1",
|
|
78
77
|
"del-cli": "^6.0.0",
|
|
79
78
|
"eslint": "^9.35.0",
|
|
80
79
|
"eslint-config-prettier": "^10.1.8",
|
|
81
80
|
"eslint-plugin-prettier": "^5.5.4",
|
|
82
|
-
"jest": "^
|
|
81
|
+
"jest": "^30.2.0",
|
|
83
82
|
"lefthook": "^2.0.3",
|
|
84
83
|
"nitrogen": "^0.31.10",
|
|
85
84
|
"prettier": "^2.8.8",
|
|
86
|
-
"react": "19.
|
|
87
|
-
"react-native": "0.
|
|
88
|
-
"react-native-builder-bob": "^0.40.
|
|
85
|
+
"react": "19.2.0",
|
|
86
|
+
"react-native": "0.83.0",
|
|
87
|
+
"react-native-builder-bob": "^0.40.17",
|
|
89
88
|
"react-native-nitro-modules": "^0.31.10",
|
|
90
89
|
"release-it": "^19.0.4",
|
|
91
90
|
"turbo": "^2.5.6",
|
|
@@ -126,12 +125,19 @@
|
|
|
126
125
|
]
|
|
127
126
|
]
|
|
128
127
|
},
|
|
129
|
-
"
|
|
130
|
-
"
|
|
131
|
-
"
|
|
132
|
-
"
|
|
133
|
-
|
|
134
|
-
|
|
128
|
+
"jest": {
|
|
129
|
+
"preset": "react-native",
|
|
130
|
+
"verbose": true,
|
|
131
|
+
"setupFiles": [
|
|
132
|
+
"./__mocks__/jestSetupFile.js"
|
|
133
|
+
],
|
|
134
|
+
"testEnvironment": "node",
|
|
135
|
+
"modulePathIgnorePatterns": [
|
|
136
|
+
"<rootDir>/example/node_modules",
|
|
137
|
+
"<rootDir>/lib/",
|
|
138
|
+
"<rootDir>/example/__tests__",
|
|
139
|
+
"<rootDir>/example/__mocks__"
|
|
140
|
+
]
|
|
135
141
|
},
|
|
136
142
|
"commitlint": {
|
|
137
143
|
"extends": [
|
|
@@ -157,15 +163,30 @@
|
|
|
157
163
|
}
|
|
158
164
|
}
|
|
159
165
|
},
|
|
166
|
+
"prettier": {
|
|
167
|
+
"quoteProps": "consistent",
|
|
168
|
+
"singleQuote": true,
|
|
169
|
+
"tabWidth": 2,
|
|
170
|
+
"trailingComma": "es5",
|
|
171
|
+
"useTabs": false
|
|
172
|
+
},
|
|
160
173
|
"create-react-native-library": {
|
|
161
|
-
"languages": "kotlin-swift",
|
|
162
174
|
"type": "nitro-module",
|
|
175
|
+
"languages": "kotlin-swift",
|
|
163
176
|
"tools": [
|
|
164
|
-
"
|
|
177
|
+
"jest",
|
|
165
178
|
"lefthook",
|
|
166
179
|
"release-it",
|
|
167
|
-
"
|
|
180
|
+
"eslint"
|
|
168
181
|
],
|
|
169
|
-
"version": "0.
|
|
182
|
+
"version": "0.56.0"
|
|
183
|
+
},
|
|
184
|
+
"codegenConfig": {
|
|
185
|
+
"name": "RNPackUtils",
|
|
186
|
+
"type": "modules",
|
|
187
|
+
"jsSrcsDir": "src",
|
|
188
|
+
"android": {
|
|
189
|
+
"javaPackageName": "com.margelo.nitro.rnpackutils"
|
|
190
|
+
}
|
|
170
191
|
}
|
|
171
192
|
}
|
package/src/index.tsx
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { NitroModules } from 'react-native-nitro-modules';
|
|
2
2
|
import type { RNPackUtils } from './RNPackUtils.nitro';
|
|
3
3
|
|
|
4
|
-
const
|
|
4
|
+
const RNPackUtilsHybridObject =
|
|
5
5
|
NitroModules.createHybridObject<RNPackUtils>('RNPackUtils');
|
|
6
6
|
|
|
7
7
|
export function multiply(a: number, b: number): number {
|
|
8
|
-
return
|
|
8
|
+
return RNPackUtilsHybridObject.multiply(a, b);
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
export * from './utils';
|
package/example/node_modules/react-native/Libraries/ActionSheetIOS/React-RCTActionSheet.podspec
DELETED
|
@@ -1,34 +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-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
|
package/example/node_modules/react-native/Libraries/AppDelegate/React-RCTAppDelegate.podspec
DELETED
|
@@ -1,88 +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
|
-
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
|
|
@@ -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
|
-
"\"${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
|
|
@@ -1,31 +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 = "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
|
|
@@ -1,57 +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/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
|
|
@@ -1,51 +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/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
DELETED
|
@@ -1,54 +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/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
|
|
@@ -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
|
-
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
|
|
@@ -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
|
-
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
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
-
#
|
|
3
|
-
# This source code is licensed under the MIT license found in the
|
|
4
|
-
# LICENSE file in the root directory of this source tree.
|
|
5
|
-
|
|
6
|
-
require "json"
|
|
7
|
-
|
|
8
|
-
package = JSON.parse(File.read(File.join(__dir__, "..", "..", "package.json")))
|
|
9
|
-
version = package['version']
|
|
10
|
-
|
|
11
|
-
source = { :git => 'https://github.com/facebook/react-native.git' }
|
|
12
|
-
if version == '1000.0.0'
|
|
13
|
-
# This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in.
|
|
14
|
-
source[:commit] = `git rev-parse HEAD`.strip if system("git rev-parse --git-dir > /dev/null 2>&1")
|
|
15
|
-
else
|
|
16
|
-
source[:tag] = "v#{version}"
|
|
17
|
-
end
|
|
18
|
-
|
|
19
|
-
Pod::Spec.new do |s|
|
|
20
|
-
s.name = "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
|