@rnpack/utils 0.1.11 → 0.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -0
- package/android/CMakeLists.txt +3 -3
- package/android/build.gradle +2 -2
- package/android/src/main/cpp/cpp-adapter.cpp +2 -2
- package/android/src/main/java/com/margelo/nitro/{rnpack/utils → rnpackutils}/RNPackUtils.kt +1 -1
- package/android/src/main/java/com/margelo/nitro/{rnpack/utils → rnpackutils}/RNPackUtilsPackage.kt +2 -2
- package/lib/module/index.js +2 -2
- package/lib/module/index.js.map +1 -1
- package/nitro.json +5 -5
- package/nitrogen/generated/android/c++/JHybridRNPackUtilsSpec.cpp +2 -2
- package/nitrogen/generated/android/c++/JHybridRNPackUtilsSpec.hpp +3 -3
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/{rnpack/utils → rnpackutils}/HybridRNPackUtilsSpec.kt +1 -1
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/{rnpack/utils/RNPackUtilsOnLoad.kt → rnpackutils/rnpackutilsOnLoad.kt} +9 -9
- package/nitrogen/generated/android/{RNPackUtils+autolinking.cmake → rnpackutils+autolinking.cmake} +8 -8
- package/nitrogen/generated/android/{RNPackUtils+autolinking.gradle → rnpackutils+autolinking.gradle} +3 -3
- package/nitrogen/generated/android/{RNPackUtilsOnLoad.cpp → rnpackutilsOnLoad.cpp} +8 -8
- package/nitrogen/generated/android/{RNPackUtilsOnLoad.hpp → rnpackutilsOnLoad.hpp} +5 -5
- package/nitrogen/generated/ios/RNPackUtils-Swift-Cxx-Bridge.cpp +4 -4
- package/nitrogen/generated/ios/RNPackUtils-Swift-Cxx-Bridge.hpp +3 -3
- package/nitrogen/generated/ios/RNPackUtils-Swift-Cxx-Umbrella.hpp +1 -1
- package/nitrogen/generated/ios/RNPackUtilsAutolinking.mm +1 -1
- package/nitrogen/generated/ios/RNPackUtilsAutolinking.swift +1 -1
- package/nitrogen/generated/ios/c++/HybridRNPackUtilsSpecSwift.cpp +2 -2
- package/nitrogen/generated/ios/c++/HybridRNPackUtilsSpecSwift.hpp +2 -2
- package/nitrogen/generated/ios/swift/HybridRNPackUtilsSpec_cxx.swift +2 -2
- package/nitrogen/generated/shared/c++/HybridRNPackUtilsSpec.cpp +2 -2
- package/nitrogen/generated/shared/c++/HybridRNPackUtilsSpec.hpp +2 -2
- package/package.json +46 -23
- package/src/index.tsx +2 -2
- package/__mocks__/jestSetupFile.js +0 -0
- package/__mocks__/rnpack-utils-mock.js +0 -17
- package/example/node_modules/react-native/Libraries/ActionSheetIOS/React-RCTActionSheet.podspec +0 -34
- package/example/node_modules/react-native/Libraries/AppDelegate/React-RCTAppDelegate.podspec +0 -88
- package/example/node_modules/react-native/Libraries/Blob/React-RCTBlob.podspec +0 -59
- package/example/node_modules/react-native/Libraries/FBLazyVector/FBLazyVector.podspec +0 -31
- package/example/node_modules/react-native/Libraries/Image/React-RCTImage.podspec +0 -57
- package/example/node_modules/react-native/Libraries/LinkingIOS/React-RCTLinking.podspec +0 -51
- package/example/node_modules/react-native/Libraries/NativeAnimation/React-RCTAnimation.podspec +0 -54
- package/example/node_modules/react-native/Libraries/Network/React-RCTNetwork.podspec +0 -56
- package/example/node_modules/react-native/Libraries/PushNotificationIOS/React-RCTPushNotification.podspec +0 -53
- package/example/node_modules/react-native/Libraries/Required/RCTRequired.podspec +0 -30
- package/example/node_modules/react-native/Libraries/Settings/React-RCTSettings.podspec +0 -53
- package/example/node_modules/react-native/Libraries/Text/React-RCTText.podspec +0 -37
- package/example/node_modules/react-native/Libraries/TypeSafety/RCTTypeSafety.podspec +0 -39
- package/example/node_modules/react-native/Libraries/Vibration/React-RCTVibration.podspec +0 -53
- package/example/node_modules/react-native/React/CoreModules/React-CoreModules.podspec +0 -67
- package/example/node_modules/react-native/React/React-RCTFBReactNativeSpec.podspec +0 -95
- package/example/node_modules/react-native/React/React-RCTFabric.podspec +0 -107
- package/example/node_modules/react-native/React/Runtime/React-RCTRuntime.podspec +0 -70
- package/example/node_modules/react-native/React-Core-prebuilt.podspec +0 -78
- package/example/node_modules/react-native/React-Core.podspec +0 -137
- package/example/node_modules/react-native/React.podspec +0 -56
- package/example/node_modules/react-native/ReactApple/Libraries/RCTFoundation/RCTDeprecation/RCTDeprecation.podspec +0 -25
- package/example/node_modules/react-native/ReactCommon/React-Fabric.podspec +0 -207
- package/example/node_modules/react-native/ReactCommon/React-FabricComponents.podspec +0 -170
- package/example/node_modules/react-native/ReactCommon/React-FabricImage.podspec +0 -79
- package/example/node_modules/react-native/ReactCommon/React-Mapbuffer.podspec +0 -40
- package/example/node_modules/react-native/ReactCommon/ReactCommon.podspec +0 -72
- package/example/node_modules/react-native/ReactCommon/callinvoker/React-callinvoker.podspec +0 -30
- package/example/node_modules/react-native/ReactCommon/cxxreact/React-cxxreact.podspec +0 -56
- package/example/node_modules/react-native/ReactCommon/hermes/React-hermes.podspec +0 -52
- package/example/node_modules/react-native/ReactCommon/hermes/executor/React-jsitracing.podspec +0 -38
- package/example/node_modules/react-native/ReactCommon/jserrorhandler/React-jserrorhandler.podspec +0 -52
- package/example/node_modules/react-native/ReactCommon/jsi/React-jsi.podspec +0 -50
- package/example/node_modules/react-native/ReactCommon/jsiexecutor/React-jsiexecutor.podspec +0 -45
- package/example/node_modules/react-native/ReactCommon/jsinspector-modern/React-jsinspector.podspec +0 -63
- package/example/node_modules/react-native/ReactCommon/jsinspector-modern/cdp/React-jsinspectorcdp.podspec +0 -48
- package/example/node_modules/react-native/ReactCommon/jsinspector-modern/network/React-jsinspectornetwork.podspec +0 -53
- package/example/node_modules/react-native/ReactCommon/jsinspector-modern/tracing/React-jsinspectortracing.podspec +0 -51
- package/example/node_modules/react-native/ReactCommon/jsitooling/React-jsitooling.podspec +0 -47
- package/example/node_modules/react-native/ReactCommon/logger/React-logger.podspec +0 -34
- package/example/node_modules/react-native/ReactCommon/oscompat/React-oscompat.podspec +0 -31
- package/example/node_modules/react-native/ReactCommon/react/debug/React-debug.podspec +0 -34
- package/example/node_modules/react-native/ReactCommon/react/featureflags/React-featureflags.podspec +0 -44
- package/example/node_modules/react-native/ReactCommon/react/nativemodule/core/platform/ios/React-NativeModulesApple.podspec +0 -54
- package/example/node_modules/react-native/ReactCommon/react/nativemodule/defaults/React-defaultsnativemodule.podspec +0 -54
- package/example/node_modules/react-native/ReactCommon/react/nativemodule/dom/React-domnativemodule.podspec +0 -60
- package/example/node_modules/react-native/ReactCommon/react/nativemodule/featureflags/React-featureflagsnativemodule.podspec +0 -53
- package/example/node_modules/react-native/ReactCommon/react/nativemodule/idlecallbacks/React-idlecallbacksnativemodule.podspec +0 -55
- package/example/node_modules/react-native/ReactCommon/react/nativemodule/microtasks/React-microtasksnativemodule.podspec +0 -52
- package/example/node_modules/react-native/ReactCommon/react/nativemodule/samples/ReactCommon-Samples.podspec +0 -63
- package/example/node_modules/react-native/ReactCommon/react/performance/timeline/React-performancetimeline.podspec +0 -50
- package/example/node_modules/react-native/ReactCommon/react/renderer/consistency/React-rendererconsistency.podspec +0 -43
- package/example/node_modules/react-native/ReactCommon/react/renderer/css/React-renderercss.podspec +0 -47
- package/example/node_modules/react-native/ReactCommon/react/renderer/debug/React-rendererdebug.podspec +0 -48
- package/example/node_modules/react-native/ReactCommon/react/renderer/graphics/React-graphics.podspec +0 -55
- package/example/node_modules/react-native/ReactCommon/react/renderer/imagemanager/platform/ios/React-ImageManager.podspec +0 -56
- package/example/node_modules/react-native/ReactCommon/react/renderer/runtimescheduler/React-runtimescheduler.podspec +0 -59
- package/example/node_modules/react-native/ReactCommon/react/runtime/React-RuntimeCore.podspec +0 -56
- package/example/node_modules/react-native/ReactCommon/react/runtime/React-RuntimeHermes.podspec +0 -53
- package/example/node_modules/react-native/ReactCommon/react/runtime/platform/ios/React-RuntimeApple.podspec +0 -72
- package/example/node_modules/react-native/ReactCommon/react/timing/React-timing.podspec +0 -43
- package/example/node_modules/react-native/ReactCommon/react/utils/React-utils.podspec +0 -55
- package/example/node_modules/react-native/ReactCommon/reactperflogger/React-perflogger.podspec +0 -42
- package/example/node_modules/react-native/ReactCommon/runtimeexecutor/React-runtimeexecutor.podspec +0 -56
- package/example/node_modules/react-native/ReactCommon/yoga/Yoga.podspec +0 -66
- package/example/node_modules/react-native/react-native.config.js +0 -139
- package/example/node_modules/react-native/sdks/hermes-engine/hermes-engine.podspec +0 -165
- package/example/node_modules/react-native/third-party-podspecs/DoubleConversion.podspec +0 -34
- package/example/node_modules/react-native/third-party-podspecs/RCT-Folly.podspec +0 -132
- package/example/node_modules/react-native/third-party-podspecs/ReactNativeDependencies.podspec +0 -99
- package/example/node_modules/react-native/third-party-podspecs/boost.podspec +0 -34
- package/example/node_modules/react-native/third-party-podspecs/fast_float.podspec +0 -29
- package/example/node_modules/react-native/third-party-podspecs/fmt.podspec +0 -29
- package/example/node_modules/react-native/third-party-podspecs/glog.podspec +0 -47
- package/example/node_modules/react-native-nitro-modules/NitroModules.podspec +0 -90
- package/example/node_modules/react-native-nitro-modules/react-native.config.js +0 -16
- package/example/react-native.config.js +0 -21
- package/lib/typescript/__tests__/utils/string.test.d.ts +0 -2
- package/lib/typescript/__tests__/utils/string.test.d.ts.map +0 -1
- /package/{Utils.podspec → RNPackUtils.podspec} +0 -0
|
@@ -1,132 +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
|
-
folly_config = get_folly_config()
|
|
7
|
-
folly_config_file = folly_config[:config_file]
|
|
8
|
-
folly_release_version = folly_config[:version]
|
|
9
|
-
folly_git_url = folly_config[:git]
|
|
10
|
-
|
|
11
|
-
Pod::Spec.new do |spec|
|
|
12
|
-
spec.name = 'RCT-Folly'
|
|
13
|
-
# Patched to v2 to address https://github.com/react-native-community/releases/issues/251
|
|
14
|
-
spec.version = folly_release_version
|
|
15
|
-
spec.license = { :type => 'Apache License, Version 2.0' }
|
|
16
|
-
spec.homepage = 'https://github.com/facebook/folly'
|
|
17
|
-
spec.summary = 'An open-source C++ library developed and used at Facebook.'
|
|
18
|
-
spec.authors = 'Facebook'
|
|
19
|
-
spec.source = { :git => folly_git_url,
|
|
20
|
-
:tag => "v#{folly_release_version}" }
|
|
21
|
-
spec.module_name = 'folly'
|
|
22
|
-
spec.prepare_command = "echo '#{folly_config_file.join("\n")}' > folly/folly-config.h"
|
|
23
|
-
spec.header_mappings_dir = '.'
|
|
24
|
-
spec.dependency "boost"
|
|
25
|
-
spec.dependency "DoubleConversion"
|
|
26
|
-
spec.dependency "glog"
|
|
27
|
-
spec.dependency "fast_float", "8.0.0"
|
|
28
|
-
spec.dependency "fmt", "11.0.2"
|
|
29
|
-
spec.compiler_flags = '-Wno-documentation -faligned-new'
|
|
30
|
-
spec.source_files = 'folly/String.cpp',
|
|
31
|
-
'folly/Conv.cpp',
|
|
32
|
-
'folly/Demangle.cpp',
|
|
33
|
-
'folly/FileUtil.cpp',
|
|
34
|
-
'folly/Format.cpp',
|
|
35
|
-
'folly/lang/SafeAssert.cpp',
|
|
36
|
-
'folly/lang/ToAscii.cpp',
|
|
37
|
-
'folly/ScopeGuard.cpp',
|
|
38
|
-
'folly/Unicode.cpp',
|
|
39
|
-
'folly/json/dynamic.cpp',
|
|
40
|
-
'folly/json/json.cpp',
|
|
41
|
-
'folly/json/json_pointer.cpp',
|
|
42
|
-
'folly/container/detail/F14Table.cpp',
|
|
43
|
-
'folly/detail/Demangle.cpp',
|
|
44
|
-
'folly/detail/FileUtilDetail.cpp',
|
|
45
|
-
'folly/detail/SplitStringSimd.cpp',
|
|
46
|
-
'folly/detail/StaticSingletonManager.cpp',
|
|
47
|
-
'folly/detail/UniqueInstance.cpp',
|
|
48
|
-
'folly/hash/SpookyHashV2.cpp',
|
|
49
|
-
'folly/lang/CString.cpp',
|
|
50
|
-
'folly/lang/Exception.cpp',
|
|
51
|
-
'folly/memory/ReentrantAllocator.cpp',
|
|
52
|
-
'folly/memory/detail/MallocImpl.cpp',
|
|
53
|
-
'folly/net/NetOps.cpp',
|
|
54
|
-
'folly/portability/SysUio.cpp',
|
|
55
|
-
'folly/synchronization/SanitizeThread.cpp',
|
|
56
|
-
'folly/system/AtFork.cpp',
|
|
57
|
-
'folly/system/ThreadId.cpp',
|
|
58
|
-
'folly/*.h',
|
|
59
|
-
'folly/algorithm/simd/*.h',
|
|
60
|
-
'folly/algorithm/simd/detail/*.h',
|
|
61
|
-
'folly/chrono/*.h',
|
|
62
|
-
'folly/container/*.h',
|
|
63
|
-
'folly/container/detail/*.h',
|
|
64
|
-
'folly/detail/*.h',
|
|
65
|
-
'folly/functional/*.h',
|
|
66
|
-
'folly/hash/*.h',
|
|
67
|
-
'folly/json/*.h',
|
|
68
|
-
'folly/lang/*.h',
|
|
69
|
-
'folly/memory/*.h',
|
|
70
|
-
'folly/memory/detail/*.h',
|
|
71
|
-
'folly/net/*.h',
|
|
72
|
-
'folly/net/detail/*.h',
|
|
73
|
-
'folly/portability/*.h',
|
|
74
|
-
'folly/system/*.h',
|
|
75
|
-
|
|
76
|
-
# workaround for https://github.com/facebook/react-native/issues/14326
|
|
77
|
-
spec.preserve_paths = 'folly/*.h',
|
|
78
|
-
'folly/algorithm/simd/*.h',
|
|
79
|
-
'folly/algorithm/simd/detail/*.h',
|
|
80
|
-
'folly/chrono/*.h',
|
|
81
|
-
'folly/container/*.h',
|
|
82
|
-
'folly/container/detail/*.h',
|
|
83
|
-
'folly/detail/*.h',
|
|
84
|
-
'folly/functional/*.h',
|
|
85
|
-
'folly/hash/*.h',
|
|
86
|
-
'folly/json/*.h',
|
|
87
|
-
'folly/lang/*.h',
|
|
88
|
-
'folly/memory/*.h',
|
|
89
|
-
'folly/memory/detail/*.h',
|
|
90
|
-
'folly/net/*.h',
|
|
91
|
-
'folly/net/detail/*.h',
|
|
92
|
-
'folly/portability/*.h',
|
|
93
|
-
'folly/system/*.h',
|
|
94
|
-
spec.libraries = "c++abi" # NOTE Apple-only: Keep c++abi here due to https://github.com/react-native-community/releases/issues/251
|
|
95
|
-
spec.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
|
96
|
-
"DEFINES_MODULE" => "YES",
|
|
97
|
-
"CLANG_CXX_LANGUAGE_STANDARD" => rct_cxx_language_standard(),
|
|
98
|
-
"HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)\" \"$(PODS_ROOT)/boost\" \"$(PODS_ROOT)/DoubleConversion\" \"$(PODS_ROOT)/fast_float/include\" \"$(PODS_ROOT)/fmt/include\"",
|
|
99
|
-
# In dynamic framework (use_frameworks!) mode, ignore the unused and undefined boost symbols when generating the library.
|
|
100
|
-
"OTHER_LDFLAGS" => "\"-Wl,-U,_jump_fcontext\" \"-Wl,-U,_make_fcontext\"",
|
|
101
|
-
"GCC_WARN_INHIBIT_ALL_WARNINGS" => "YES" # Disable warnings because we don't control this library
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
# TODO: The boost spec should really be selecting these files so that dependents of Folly can also access the required headers.
|
|
105
|
-
spec.user_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"" }
|
|
106
|
-
|
|
107
|
-
spec.default_subspec = 'Default'
|
|
108
|
-
|
|
109
|
-
spec.resource_bundles = {'RCT-Folly_privacy' => 'RCT-Folly/PrivacyInfo.xcprivacy'}
|
|
110
|
-
|
|
111
|
-
spec.subspec 'Default' do
|
|
112
|
-
# no-op
|
|
113
|
-
end
|
|
114
|
-
|
|
115
|
-
spec.subspec 'Fabric' do |fabric|
|
|
116
|
-
fabric.source_files = 'folly/SharedMutex.cpp',
|
|
117
|
-
'folly/concurrency/CacheLocality.cpp',
|
|
118
|
-
'folly/detail/Futex.cpp',
|
|
119
|
-
'folly/synchronization/ParkingLot.cpp',
|
|
120
|
-
'folly/concurrency/CacheLocality.h',
|
|
121
|
-
'folly/synchronization/*.h',
|
|
122
|
-
'folly/system/ThreadId.h'
|
|
123
|
-
|
|
124
|
-
fabric.preserve_paths = 'folly/concurrency/CacheLocality.h',
|
|
125
|
-
'folly/synchronization/*.h',
|
|
126
|
-
'folly/system/ThreadId.h'
|
|
127
|
-
end
|
|
128
|
-
|
|
129
|
-
# Folly has issues when compiled with iOS 10 set as deployment target
|
|
130
|
-
# See https://github.com/facebook/folly/issues/1470 for details
|
|
131
|
-
spec.platforms = min_supported_versions
|
|
132
|
-
end
|
package/example/node_modules/react-native/third-party-podspecs/ReactNativeDependencies.podspec
DELETED
|
@@ -1,99 +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
|
-
begin
|
|
9
|
-
react_native_path = File.dirname(Pod::Executable.execute_command('node', ['-p',
|
|
10
|
-
'require.resolve(
|
|
11
|
-
"react-native",
|
|
12
|
-
{paths: [process.argv[1]]},
|
|
13
|
-
)', __dir__]).strip
|
|
14
|
-
)
|
|
15
|
-
rescue => e
|
|
16
|
-
# Fallback to the parent directory if the above command fails (e.g when building locally in OOT Platform)
|
|
17
|
-
react_native_path = File.join(__dir__, "..", "..")
|
|
18
|
-
end
|
|
19
|
-
|
|
20
|
-
# package.json
|
|
21
|
-
package = JSON.parse(File.read(File.join(react_native_path, "package.json")))
|
|
22
|
-
version = package['version']
|
|
23
|
-
|
|
24
|
-
source = ReactNativeDependenciesUtils.resolve_podspec_source()
|
|
25
|
-
|
|
26
|
-
Pod::Spec.new do |spec|
|
|
27
|
-
spec.name = 'ReactNativeDependencies'
|
|
28
|
-
spec.version = version
|
|
29
|
-
spec.summary = 'React Native Dependencies'
|
|
30
|
-
spec.description = 'ReactNativeDependencies is a podspec that contains all the third-party dependencies of React Native.'
|
|
31
|
-
spec.homepage = 'https://github.com/facebook/react-native'
|
|
32
|
-
spec.license = package['license']
|
|
33
|
-
spec.authors = 'meta'
|
|
34
|
-
spec.platforms = min_supported_versions
|
|
35
|
-
spec.user_target_xcconfig = {
|
|
36
|
-
'WARNING_CFLAGS' => '-Wno-comma -Wno-shorten-64-to-32',
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
spec.source = source
|
|
40
|
-
spec.preserve_paths = '**/*.*'
|
|
41
|
-
spec.vendored_frameworks = 'framework/packages/react-native/ReactNativeDependencies.xcframework'
|
|
42
|
-
spec.header_mappings_dir = 'Headers'
|
|
43
|
-
spec.source_files = 'Headers/**/*.{h,hpp}'
|
|
44
|
-
|
|
45
|
-
# We need to make sure that the headers are copied to the right place - local tar.gz has a different structure
|
|
46
|
-
# than the one from the maven repo
|
|
47
|
-
spec.prepare_command = <<-CMD
|
|
48
|
-
CURRENT_PATH=$(pwd)
|
|
49
|
-
mkdir -p Headers
|
|
50
|
-
XCFRAMEWORK_PATH=$(find "$CURRENT_PATH" -type d -name "ReactNativeDependencies.xcframework")
|
|
51
|
-
HEADERS_PATH=$(find "$XCFRAMEWORK_PATH" -type d -name "Headers" | head -n 1)
|
|
52
|
-
|
|
53
|
-
# Check if XCFRAMEWORK_PATH is empty
|
|
54
|
-
if [ -z "$XCFRAMEWORK_PATH" ]; then
|
|
55
|
-
echo "ERROR: XCFRAMEWORK_PATH is empty."
|
|
56
|
-
exit 0
|
|
57
|
-
fi
|
|
58
|
-
|
|
59
|
-
# Check if HEADERS_PATH is empty
|
|
60
|
-
if [ -z "$HEADERS_PATH" ]; then
|
|
61
|
-
echo "ERROR: HEADERS_PATH is empty."
|
|
62
|
-
exit 0
|
|
63
|
-
fi
|
|
64
|
-
|
|
65
|
-
cp -R "$HEADERS_PATH/" Headers
|
|
66
|
-
mkdir -p framework/packages/react-native
|
|
67
|
-
cp -R "$XCFRAMEWORK_PATH/../." framework/packages/react-native/
|
|
68
|
-
find "$XCFRAMEWORK_PATH/.." -type f -exec rm {} +
|
|
69
|
-
find "$CURRENT_PATH" -type d -empty -delete
|
|
70
|
-
CMD
|
|
71
|
-
|
|
72
|
-
# If we are passing a local tarball, we don't want to switch between Debug and Release
|
|
73
|
-
if !ENV["RCT_USE_LOCAL_RN_DEP"]
|
|
74
|
-
script_phase = {
|
|
75
|
-
:name => "[RNDeps] Replace React Native Dependencies for the right configuration, if needed",
|
|
76
|
-
:execution_position => :before_compile,
|
|
77
|
-
:script => <<-EOS
|
|
78
|
-
. "$REACT_NATIVE_PATH/scripts/xcode/with-environment.sh"
|
|
79
|
-
|
|
80
|
-
CONFIG="Release"
|
|
81
|
-
if echo $GCC_PREPROCESSOR_DEFINITIONS | grep -q "DEBUG=1"; then
|
|
82
|
-
CONFIG="Debug"
|
|
83
|
-
fi
|
|
84
|
-
|
|
85
|
-
"$NODE_BINARY" "$REACT_NATIVE_PATH/third-party-podspecs/replace_dependencies_version.js" -c "$CONFIG" -r "#{version}" -p "$PODS_ROOT"
|
|
86
|
-
EOS
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
# :always_out_of_date is only available in CocoaPods 1.13.0 and later
|
|
91
|
-
if Gem::Version.new(Pod::VERSION) >= Gem::Version.new('1.13.0')
|
|
92
|
-
# always run the script without warning
|
|
93
|
-
script_phase[:always_out_of_date] = "1"
|
|
94
|
-
end
|
|
95
|
-
|
|
96
|
-
spec.script_phase = script_phase
|
|
97
|
-
end
|
|
98
|
-
|
|
99
|
-
end
|
|
@@ -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
|
-
boost_config = get_boost_config()
|
|
7
|
-
boost_git_url = boost_config[:git]
|
|
8
|
-
|
|
9
|
-
Pod::Spec.new do |spec|
|
|
10
|
-
spec.name = 'boost'
|
|
11
|
-
spec.version = '1.84.0'
|
|
12
|
-
spec.license = { :type => 'Boost Software License', :file => "LICENSE_1_0.txt" }
|
|
13
|
-
spec.homepage = 'http://www.boost.org'
|
|
14
|
-
spec.summary = 'Boost provides free peer-reviewed portable C++ source libraries.'
|
|
15
|
-
spec.authors = 'Rene Rivera'
|
|
16
|
-
spec.source = { :git => boost_git_url,
|
|
17
|
-
:tag => "v1.84.0" }
|
|
18
|
-
|
|
19
|
-
# Pinning to the same version as React.podspec.
|
|
20
|
-
spec.platforms = min_supported_versions
|
|
21
|
-
spec.requires_arc = false
|
|
22
|
-
spec.source_files = 'boost/**/*.{hpp,cpp}'
|
|
23
|
-
|
|
24
|
-
spec.module_name = 'boost'
|
|
25
|
-
spec.header_dir = 'boost'
|
|
26
|
-
spec.preserve_path = 'boost'
|
|
27
|
-
spec.header_mappings_dir = 'boost/boost'
|
|
28
|
-
|
|
29
|
-
spec.resource_bundles = {'boost_privacy' => 'boost/PrivacyInfo.xcprivacy'}
|
|
30
|
-
|
|
31
|
-
spec.pod_target_xcconfig = {
|
|
32
|
-
"GCC_WARN_INHIBIT_ALL_WARNINGS" => "YES" # Disable warnings because we don't control this library
|
|
33
|
-
}
|
|
34
|
-
end
|
|
@@ -1,29 +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
|
-
fast_float_config = get_fast_float_config()
|
|
7
|
-
fast_float_git_url = fast_float_config[:git]
|
|
8
|
-
|
|
9
|
-
Pod::Spec.new do |spec|
|
|
10
|
-
spec.name = "fast_float"
|
|
11
|
-
spec.version = "8.0.0"
|
|
12
|
-
spec.license = { :type => "MIT" }
|
|
13
|
-
spec.homepage = "https://github.com/fastfloat/fast_float"
|
|
14
|
-
spec.summary = "{fast_float} is an open-source number parsing library for C++. The library provides fast header-only implementations."
|
|
15
|
-
spec.authors = "The fast_float contributors"
|
|
16
|
-
spec.source = {
|
|
17
|
-
:git => fast_float_git_url,
|
|
18
|
-
:tag => "v8.0.0"
|
|
19
|
-
}
|
|
20
|
-
spec.pod_target_xcconfig = {
|
|
21
|
-
"CLANG_CXX_LANGUAGE_STANDARD" => rct_cxx_language_standard(),
|
|
22
|
-
"GCC_WARN_INHIBIT_ALL_WARNINGS" => "YES" # Disable warnings because we don't control this library
|
|
23
|
-
}
|
|
24
|
-
spec.platforms = min_supported_versions
|
|
25
|
-
spec.libraries = "c++"
|
|
26
|
-
spec.public_header_files = "include/fast_float/*.h"
|
|
27
|
-
spec.header_mappings_dir = "include"
|
|
28
|
-
spec.source_files = ["include/fast_float/*.h"]
|
|
29
|
-
end
|
|
@@ -1,29 +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
|
-
fmt_config = get_fmt_config()
|
|
7
|
-
fmt_git_url = fmt_config[:git]
|
|
8
|
-
|
|
9
|
-
Pod::Spec.new do |spec|
|
|
10
|
-
spec.name = "fmt"
|
|
11
|
-
spec.version = "11.0.2"
|
|
12
|
-
spec.license = { :type => "MIT" }
|
|
13
|
-
spec.homepage = "https://github.com/fmtlib/fmt"
|
|
14
|
-
spec.summary = "{fmt} is an open-source formatting library for C++. It can be used as a safe and fast alternative to (s)printf and iostreams."
|
|
15
|
-
spec.authors = "The fmt contributors"
|
|
16
|
-
spec.source = {
|
|
17
|
-
:git => fmt_git_url,
|
|
18
|
-
:tag => "11.0.2"
|
|
19
|
-
}
|
|
20
|
-
spec.pod_target_xcconfig = {
|
|
21
|
-
"CLANG_CXX_LANGUAGE_STANDARD" => rct_cxx_language_standard(),
|
|
22
|
-
"GCC_WARN_INHIBIT_ALL_WARNINGS" => "YES" # Disable warnings because we don't control this library
|
|
23
|
-
}
|
|
24
|
-
spec.platforms = min_supported_versions
|
|
25
|
-
spec.libraries = "c++"
|
|
26
|
-
spec.public_header_files = "include/fmt/*.h"
|
|
27
|
-
spec.header_mappings_dir = "include"
|
|
28
|
-
spec.source_files = ["include/fmt/*.h", "src/format.cc"]
|
|
29
|
-
end
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
-
#
|
|
3
|
-
# This source code is licensed under the MIT license found in the
|
|
4
|
-
# LICENSE file in the root directory of this source tree.
|
|
5
|
-
|
|
6
|
-
glog_config = get_glog_config()
|
|
7
|
-
glog_git_url = glog_config[:git]
|
|
8
|
-
|
|
9
|
-
Pod::Spec.new do |spec|
|
|
10
|
-
spec.name = 'glog'
|
|
11
|
-
spec.version = '0.3.5'
|
|
12
|
-
spec.license = { :type => 'Google', :file => 'COPYING' }
|
|
13
|
-
spec.homepage = 'https://github.com/google/glog'
|
|
14
|
-
spec.summary = 'Google logging module'
|
|
15
|
-
spec.authors = 'Google'
|
|
16
|
-
|
|
17
|
-
spec.prepare_command = File.read("../scripts/ios-configure-glog.sh")
|
|
18
|
-
spec.source = { :git => glog_git_url,
|
|
19
|
-
:tag => "v#{spec.version}" }
|
|
20
|
-
spec.module_name = 'glog'
|
|
21
|
-
spec.header_dir = 'glog'
|
|
22
|
-
spec.source_files = 'src/glog/*.h',
|
|
23
|
-
'src/demangle.cc',
|
|
24
|
-
'src/logging.cc',
|
|
25
|
-
'src/raw_logging.cc',
|
|
26
|
-
'src/signalhandler.cc',
|
|
27
|
-
'src/symbolize.cc',
|
|
28
|
-
'src/utilities.cc',
|
|
29
|
-
'src/vlog_is_on.cc'
|
|
30
|
-
# workaround for https://github.com/facebook/react-native/issues/14326
|
|
31
|
-
spec.preserve_paths = 'src/*.h',
|
|
32
|
-
'src/base/*.h'
|
|
33
|
-
spec.exclude_files = "src/windows/**/*"
|
|
34
|
-
spec.compiler_flags = '-Wno-shorten-64-to-32'
|
|
35
|
-
spec.resource_bundles = {'glog_privacy' => 'glog/PrivacyInfo.xcprivacy'}
|
|
36
|
-
|
|
37
|
-
spec.pod_target_xcconfig = {
|
|
38
|
-
"USE_HEADERMAP" => "NO",
|
|
39
|
-
"HEADER_SEARCH_PATHS" => "$(PODS_TARGET_SRCROOT)/src",
|
|
40
|
-
"DEFINES_MODULE" => "YES",
|
|
41
|
-
"GCC_WARN_INHIBIT_ALL_WARNINGS" => "YES" # Disable warnings because we don't control this library
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
# Pinning to the same version as React.podspec.
|
|
45
|
-
spec.platforms = min_supported_versions
|
|
46
|
-
|
|
47
|
-
end
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
require "json"
|
|
2
|
-
require "./nitro_pod_utils"
|
|
3
|
-
|
|
4
|
-
package = JSON.parse(File.read(File.join(__dir__, "package.json")))
|
|
5
|
-
|
|
6
|
-
Pod::UI.puts "[NitroModules] 🔥 Your app is boosted by nitro modules!"
|
|
7
|
-
|
|
8
|
-
Pod::Spec.new do |s|
|
|
9
|
-
s.name = "NitroModules"
|
|
10
|
-
s.version = package["version"]
|
|
11
|
-
s.summary = package["description"]
|
|
12
|
-
s.homepage = package["homepage"]
|
|
13
|
-
s.license = package["license"]
|
|
14
|
-
s.authors = package["author"]
|
|
15
|
-
s.source = { :git => "https://github.com/mrousavy/nitro.git", :tag => "#{s.version}" }
|
|
16
|
-
s.platforms = {
|
|
17
|
-
:ios => min_ios_version_supported,
|
|
18
|
-
:visionos => 1.0,
|
|
19
|
-
:macos => 10.13,
|
|
20
|
-
:tvos => 13.4,
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
s.source_files = [
|
|
24
|
-
# Shared C++ codebase
|
|
25
|
-
"cpp/**/*.{h,hpp}",
|
|
26
|
-
"cpp/**/*.{c,cpp}",
|
|
27
|
-
# iOS codebase
|
|
28
|
-
"ios/**/*.{h,hpp}",
|
|
29
|
-
"ios/**/*.{c,cpp}",
|
|
30
|
-
"ios/**/*.{m,mm}",
|
|
31
|
-
"ios/**/*.swift",
|
|
32
|
-
]
|
|
33
|
-
s.public_header_files = [
|
|
34
|
-
# Public C++ headers will be exposed in modulemap (for Swift)
|
|
35
|
-
"cpp/core/AnyMap.hpp",
|
|
36
|
-
"cpp/core/ArrayBuffer.hpp",
|
|
37
|
-
"cpp/core/HybridObject.hpp",
|
|
38
|
-
"cpp/core/Null.hpp",
|
|
39
|
-
"cpp/core/Promise.hpp",
|
|
40
|
-
"cpp/entrypoint/HybridNitroModulesProxy.hpp",
|
|
41
|
-
"cpp/entrypoint/InstallNitro.hpp",
|
|
42
|
-
"cpp/registry/HybridObjectRegistry.hpp",
|
|
43
|
-
"cpp/jsi/JSIConverter.hpp",
|
|
44
|
-
"cpp/jsi/JSIHelpers.hpp",
|
|
45
|
-
"cpp/platform/NitroLogger.hpp",
|
|
46
|
-
"cpp/threading/Dispatcher.hpp",
|
|
47
|
-
"cpp/utils/JSCallback.hpp",
|
|
48
|
-
"cpp/utils/FastVectorCopy.hpp",
|
|
49
|
-
"cpp/utils/NitroHash.hpp",
|
|
50
|
-
"cpp/utils/NitroDefines.hpp",
|
|
51
|
-
"cpp/views/CachedProp.hpp",
|
|
52
|
-
# Public iOS-specific headers that will be exposed in modulemap (for Swift)
|
|
53
|
-
"ios/core/ArrayBufferHolder.hpp",
|
|
54
|
-
"ios/core/PromiseHolder.hpp",
|
|
55
|
-
"ios/utils/AnyMapUtils.hpp",
|
|
56
|
-
"ios/utils/AnyMapHolder.hpp", # <-- deprecated, removed soon
|
|
57
|
-
"ios/utils/Result.hpp",
|
|
58
|
-
"ios/utils/DateToChronoDate.hpp",
|
|
59
|
-
"ios/utils/RuntimeError.hpp",
|
|
60
|
-
"ios/utils/SwiftClosure.hpp",
|
|
61
|
-
]
|
|
62
|
-
|
|
63
|
-
xcconfig = {
|
|
64
|
-
# Use C++ 20
|
|
65
|
-
"CLANG_CXX_LANGUAGE_STANDARD" => "c++20",
|
|
66
|
-
# Enables C++ <-> Swift interop (by default it's only C)
|
|
67
|
-
"SWIFT_OBJC_INTEROP_MODE" => "objcxx",
|
|
68
|
-
# Enables stricter modular headers
|
|
69
|
-
"DEFINES_MODULE" => "YES",
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
if has_react_native()
|
|
73
|
-
react_native_version = get_react_native_version()
|
|
74
|
-
if (react_native_version < 80)
|
|
75
|
-
# C++ compiler flags, for folly when building as static framework:
|
|
76
|
-
current_header_search_paths = Array(xcconfig["HEADER_SEARCH_PATHS"])
|
|
77
|
-
xcconfig["HEADER_SEARCH_PATHS"] = current_header_search_paths + ["${PODS_ROOT}/RCT-Folly"]
|
|
78
|
-
xcconfig["GCC_PREPROCESSOR_DEFINITIONS"] = "$(inherited) FOLLY_NO_CONFIG FOLLY_CFG_NO_COROUTINES"
|
|
79
|
-
xcconfig["OTHER_CPLUSPLUSFLAGS"] = "$(inherited) -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1"
|
|
80
|
-
end
|
|
81
|
-
end
|
|
82
|
-
|
|
83
|
-
s.pod_target_xcconfig = xcconfig
|
|
84
|
-
|
|
85
|
-
# Nitro depends on JSI.
|
|
86
|
-
s.dependency 'React-jsi'
|
|
87
|
-
# For React Native, we implement nitro::Dispatcher using react::CallInvoker
|
|
88
|
-
s.dependency 'React-callinvoker'
|
|
89
|
-
install_modules_dependencies(s)
|
|
90
|
-
end
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
// https://github.com/react-native-community/cli/blob/main/docs/dependencies.md
|
|
2
|
-
|
|
3
|
-
module.exports = {
|
|
4
|
-
dependency: {
|
|
5
|
-
platforms: {
|
|
6
|
-
/**
|
|
7
|
-
* @type {import('@react-native-community/cli-types').IOSDependencyParams}
|
|
8
|
-
*/
|
|
9
|
-
ios: {},
|
|
10
|
-
/**
|
|
11
|
-
* @type {import('@react-native-community/cli-types').AndroidDependencyParams}
|
|
12
|
-
*/
|
|
13
|
-
android: {},
|
|
14
|
-
},
|
|
15
|
-
},
|
|
16
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
const path = require('path');
|
|
2
|
-
const pkg = require('../package.json');
|
|
3
|
-
|
|
4
|
-
module.exports = {
|
|
5
|
-
project: {
|
|
6
|
-
ios: {
|
|
7
|
-
automaticPodsInstallation: true,
|
|
8
|
-
},
|
|
9
|
-
},
|
|
10
|
-
dependencies: {
|
|
11
|
-
[pkg.name]: {
|
|
12
|
-
root: path.join(__dirname, '..'),
|
|
13
|
-
platforms: {
|
|
14
|
-
// Codegen script incorrectly fails without this
|
|
15
|
-
// So we explicitly specify the platforms with empty object
|
|
16
|
-
ios: {},
|
|
17
|
-
android: {},
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
},
|
|
21
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"string.test.d.ts","sourceRoot":"","sources":["../../../../__tests__/utils/string.test.tsx"],"names":[],"mappings":""}
|
|
File without changes
|