@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.
Files changed (109) hide show
  1. package/README.md +5 -0
  2. package/android/CMakeLists.txt +3 -3
  3. package/android/build.gradle +2 -2
  4. package/android/src/main/cpp/cpp-adapter.cpp +2 -2
  5. package/android/src/main/java/com/margelo/nitro/{rnpack/utils → rnpackutils}/RNPackUtils.kt +1 -1
  6. package/android/src/main/java/com/margelo/nitro/{rnpack/utils → rnpackutils}/RNPackUtilsPackage.kt +2 -2
  7. package/lib/module/index.js +2 -2
  8. package/lib/module/index.js.map +1 -1
  9. package/nitro.json +5 -5
  10. package/nitrogen/generated/android/c++/JHybridRNPackUtilsSpec.cpp +2 -2
  11. package/nitrogen/generated/android/c++/JHybridRNPackUtilsSpec.hpp +3 -3
  12. package/nitrogen/generated/android/kotlin/com/margelo/nitro/{rnpack/utils → rnpackutils}/HybridRNPackUtilsSpec.kt +1 -1
  13. package/nitrogen/generated/android/kotlin/com/margelo/nitro/{rnpack/utils/RNPackUtilsOnLoad.kt → rnpackutils/rnpackutilsOnLoad.kt} +9 -9
  14. package/nitrogen/generated/android/{RNPackUtils+autolinking.cmake → rnpackutils+autolinking.cmake} +8 -8
  15. package/nitrogen/generated/android/{RNPackUtils+autolinking.gradle → rnpackutils+autolinking.gradle} +3 -3
  16. package/nitrogen/generated/android/{RNPackUtilsOnLoad.cpp → rnpackutilsOnLoad.cpp} +8 -8
  17. package/nitrogen/generated/android/{RNPackUtilsOnLoad.hpp → rnpackutilsOnLoad.hpp} +5 -5
  18. package/nitrogen/generated/ios/RNPackUtils-Swift-Cxx-Bridge.cpp +4 -4
  19. package/nitrogen/generated/ios/RNPackUtils-Swift-Cxx-Bridge.hpp +3 -3
  20. package/nitrogen/generated/ios/RNPackUtils-Swift-Cxx-Umbrella.hpp +1 -1
  21. package/nitrogen/generated/ios/RNPackUtilsAutolinking.mm +1 -1
  22. package/nitrogen/generated/ios/RNPackUtilsAutolinking.swift +1 -1
  23. package/nitrogen/generated/ios/c++/HybridRNPackUtilsSpecSwift.cpp +2 -2
  24. package/nitrogen/generated/ios/c++/HybridRNPackUtilsSpecSwift.hpp +2 -2
  25. package/nitrogen/generated/ios/swift/HybridRNPackUtilsSpec_cxx.swift +2 -2
  26. package/nitrogen/generated/shared/c++/HybridRNPackUtilsSpec.cpp +2 -2
  27. package/nitrogen/generated/shared/c++/HybridRNPackUtilsSpec.hpp +2 -2
  28. package/package.json +43 -22
  29. package/src/index.tsx +2 -2
  30. package/example/node_modules/react-native/Libraries/ActionSheetIOS/React-RCTActionSheet.podspec +0 -34
  31. package/example/node_modules/react-native/Libraries/AppDelegate/React-RCTAppDelegate.podspec +0 -88
  32. package/example/node_modules/react-native/Libraries/Blob/React-RCTBlob.podspec +0 -59
  33. package/example/node_modules/react-native/Libraries/FBLazyVector/FBLazyVector.podspec +0 -31
  34. package/example/node_modules/react-native/Libraries/Image/React-RCTImage.podspec +0 -57
  35. package/example/node_modules/react-native/Libraries/LinkingIOS/React-RCTLinking.podspec +0 -51
  36. package/example/node_modules/react-native/Libraries/NativeAnimation/React-RCTAnimation.podspec +0 -54
  37. package/example/node_modules/react-native/Libraries/Network/React-RCTNetwork.podspec +0 -56
  38. package/example/node_modules/react-native/Libraries/PushNotificationIOS/React-RCTPushNotification.podspec +0 -53
  39. package/example/node_modules/react-native/Libraries/Required/RCTRequired.podspec +0 -30
  40. package/example/node_modules/react-native/Libraries/Settings/React-RCTSettings.podspec +0 -53
  41. package/example/node_modules/react-native/Libraries/Text/React-RCTText.podspec +0 -37
  42. package/example/node_modules/react-native/Libraries/TypeSafety/RCTTypeSafety.podspec +0 -39
  43. package/example/node_modules/react-native/Libraries/Vibration/React-RCTVibration.podspec +0 -53
  44. package/example/node_modules/react-native/React/CoreModules/React-CoreModules.podspec +0 -67
  45. package/example/node_modules/react-native/React/React-RCTFBReactNativeSpec.podspec +0 -95
  46. package/example/node_modules/react-native/React/React-RCTFabric.podspec +0 -107
  47. package/example/node_modules/react-native/React/Runtime/React-RCTRuntime.podspec +0 -70
  48. package/example/node_modules/react-native/React-Core-prebuilt.podspec +0 -78
  49. package/example/node_modules/react-native/React-Core.podspec +0 -137
  50. package/example/node_modules/react-native/React.podspec +0 -56
  51. package/example/node_modules/react-native/ReactApple/Libraries/RCTFoundation/RCTDeprecation/RCTDeprecation.podspec +0 -25
  52. package/example/node_modules/react-native/ReactCommon/React-Fabric.podspec +0 -207
  53. package/example/node_modules/react-native/ReactCommon/React-FabricComponents.podspec +0 -170
  54. package/example/node_modules/react-native/ReactCommon/React-FabricImage.podspec +0 -79
  55. package/example/node_modules/react-native/ReactCommon/React-Mapbuffer.podspec +0 -40
  56. package/example/node_modules/react-native/ReactCommon/ReactCommon.podspec +0 -72
  57. package/example/node_modules/react-native/ReactCommon/callinvoker/React-callinvoker.podspec +0 -30
  58. package/example/node_modules/react-native/ReactCommon/cxxreact/React-cxxreact.podspec +0 -56
  59. package/example/node_modules/react-native/ReactCommon/hermes/React-hermes.podspec +0 -52
  60. package/example/node_modules/react-native/ReactCommon/hermes/executor/React-jsitracing.podspec +0 -38
  61. package/example/node_modules/react-native/ReactCommon/jserrorhandler/React-jserrorhandler.podspec +0 -52
  62. package/example/node_modules/react-native/ReactCommon/jsi/React-jsi.podspec +0 -50
  63. package/example/node_modules/react-native/ReactCommon/jsiexecutor/React-jsiexecutor.podspec +0 -45
  64. package/example/node_modules/react-native/ReactCommon/jsinspector-modern/React-jsinspector.podspec +0 -63
  65. package/example/node_modules/react-native/ReactCommon/jsinspector-modern/cdp/React-jsinspectorcdp.podspec +0 -48
  66. package/example/node_modules/react-native/ReactCommon/jsinspector-modern/network/React-jsinspectornetwork.podspec +0 -53
  67. package/example/node_modules/react-native/ReactCommon/jsinspector-modern/tracing/React-jsinspectortracing.podspec +0 -51
  68. package/example/node_modules/react-native/ReactCommon/jsitooling/React-jsitooling.podspec +0 -47
  69. package/example/node_modules/react-native/ReactCommon/logger/React-logger.podspec +0 -34
  70. package/example/node_modules/react-native/ReactCommon/oscompat/React-oscompat.podspec +0 -31
  71. package/example/node_modules/react-native/ReactCommon/react/debug/React-debug.podspec +0 -34
  72. package/example/node_modules/react-native/ReactCommon/react/featureflags/React-featureflags.podspec +0 -44
  73. package/example/node_modules/react-native/ReactCommon/react/nativemodule/core/platform/ios/React-NativeModulesApple.podspec +0 -54
  74. package/example/node_modules/react-native/ReactCommon/react/nativemodule/defaults/React-defaultsnativemodule.podspec +0 -54
  75. package/example/node_modules/react-native/ReactCommon/react/nativemodule/dom/React-domnativemodule.podspec +0 -60
  76. package/example/node_modules/react-native/ReactCommon/react/nativemodule/featureflags/React-featureflagsnativemodule.podspec +0 -53
  77. package/example/node_modules/react-native/ReactCommon/react/nativemodule/idlecallbacks/React-idlecallbacksnativemodule.podspec +0 -55
  78. package/example/node_modules/react-native/ReactCommon/react/nativemodule/microtasks/React-microtasksnativemodule.podspec +0 -52
  79. package/example/node_modules/react-native/ReactCommon/react/nativemodule/samples/ReactCommon-Samples.podspec +0 -63
  80. package/example/node_modules/react-native/ReactCommon/react/performance/timeline/React-performancetimeline.podspec +0 -50
  81. package/example/node_modules/react-native/ReactCommon/react/renderer/consistency/React-rendererconsistency.podspec +0 -43
  82. package/example/node_modules/react-native/ReactCommon/react/renderer/css/React-renderercss.podspec +0 -47
  83. package/example/node_modules/react-native/ReactCommon/react/renderer/debug/React-rendererdebug.podspec +0 -48
  84. package/example/node_modules/react-native/ReactCommon/react/renderer/graphics/React-graphics.podspec +0 -55
  85. package/example/node_modules/react-native/ReactCommon/react/renderer/imagemanager/platform/ios/React-ImageManager.podspec +0 -56
  86. package/example/node_modules/react-native/ReactCommon/react/renderer/runtimescheduler/React-runtimescheduler.podspec +0 -59
  87. package/example/node_modules/react-native/ReactCommon/react/runtime/React-RuntimeCore.podspec +0 -56
  88. package/example/node_modules/react-native/ReactCommon/react/runtime/React-RuntimeHermes.podspec +0 -53
  89. package/example/node_modules/react-native/ReactCommon/react/runtime/platform/ios/React-RuntimeApple.podspec +0 -72
  90. package/example/node_modules/react-native/ReactCommon/react/timing/React-timing.podspec +0 -43
  91. package/example/node_modules/react-native/ReactCommon/react/utils/React-utils.podspec +0 -55
  92. package/example/node_modules/react-native/ReactCommon/reactperflogger/React-perflogger.podspec +0 -42
  93. package/example/node_modules/react-native/ReactCommon/runtimeexecutor/React-runtimeexecutor.podspec +0 -56
  94. package/example/node_modules/react-native/ReactCommon/yoga/Yoga.podspec +0 -66
  95. package/example/node_modules/react-native/react-native.config.js +0 -139
  96. package/example/node_modules/react-native/sdks/hermes-engine/hermes-engine.podspec +0 -165
  97. package/example/node_modules/react-native/third-party-podspecs/DoubleConversion.podspec +0 -34
  98. package/example/node_modules/react-native/third-party-podspecs/RCT-Folly.podspec +0 -132
  99. package/example/node_modules/react-native/third-party-podspecs/ReactNativeDependencies.podspec +0 -99
  100. package/example/node_modules/react-native/third-party-podspecs/boost.podspec +0 -34
  101. package/example/node_modules/react-native/third-party-podspecs/fast_float.podspec +0 -29
  102. package/example/node_modules/react-native/third-party-podspecs/fmt.podspec +0 -29
  103. package/example/node_modules/react-native/third-party-podspecs/glog.podspec +0 -47
  104. package/example/node_modules/react-native-nitro-modules/NitroModules.podspec +0 -90
  105. package/example/node_modules/react-native-nitro-modules/react-native.config.js +0 -16
  106. package/example/react-native.config.js +0 -21
  107. package/lib/typescript/__tests__/utils/string.test.d.ts +0 -2
  108. package/lib/typescript/__tests__/utils/string.test.d.ts.map +0 -1
  109. /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.12",
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
- "lint": "eslint \"**/*.{js,ts,tsx}\"",
45
- "release": "release-it patch --only-version",
46
- "test": "jest"
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.81.1",
72
- "@react-native/eslint-config": "^0.81.1",
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.1.0",
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": "^29.7.0",
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.1.0",
87
- "react-native": "0.81.1",
88
- "react-native-builder-bob": "^0.40.16",
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
- "prettier": {
130
- "quoteProps": "consistent",
131
- "singleQuote": true,
132
- "tabWidth": 2,
133
- "trailingComma": "es5",
134
- "useTabs": false
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
- "eslint",
177
+ "jest",
165
178
  "lefthook",
166
179
  "release-it",
167
- "jest"
180
+ "eslint"
168
181
  ],
169
- "version": "0.55.1"
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 UtilsHybridObject =
4
+ const RNPackUtilsHybridObject =
5
5
  NitroModules.createHybridObject<RNPackUtils>('RNPackUtils');
6
6
 
7
7
  export function multiply(a: number, b: number): number {
8
- return UtilsHybridObject.multiply(a, b);
8
+ return RNPackUtilsHybridObject.multiply(a, b);
9
9
  }
10
10
 
11
11
  export * from './utils';
@@ -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
@@ -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
@@ -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