Skip to content

Commit d75a3d7

Browse files
authored
fix: install ios dependencies with install_modules_dependencies (#122)
1 parent 88ba617 commit d75a3d7

File tree

3 files changed

+32
-16
lines changed

3 files changed

+32
-16
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,17 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [4.2.4] - 2025-09-17
9+
10+
- iOS SDK version: 6.12.1
11+
- Android SDK version: 16.0.4
12+
13+
### React Native
14+
15+
#### Fixed
16+
17+
- iOS dependencies are now installed via `install_modules_dependencies` by default
18+
819
## [4.2.3] - 2025-09-03
920

1021
- iOS SDK version: 6.12.1

freerasp-react-native.podspec

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,25 @@ Pod::Spec.new do |s|
1818
s.xcconfig = { 'OTHER_LDFLAGS' => '-framework TalsecRuntime' }
1919
s.ios.vendored_frameworks = "ios/TalsecRuntime.xcframework"
2020

21-
s.dependency "React-Core"
22-
23-
# Don't install the dependencies when we run `pod install` in the old architecture.
24-
if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
25-
s.compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1"
26-
s.pod_target_xcconfig = {
27-
"HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"",
28-
"OTHER_CPLUSPLUSFLAGS" => "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1",
29-
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17"
30-
}
31-
s.dependency "React-Codegen"
32-
s.dependency "RCT-Folly"
33-
s.dependency "RCTRequired"
34-
s.dependency "RCTTypeSafety"
35-
s.dependency "ReactCommon/turbomodule/core"
21+
# Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.
22+
# See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79.
23+
if respond_to?(:install_modules_dependencies, true)
24+
install_modules_dependencies(s)
25+
else
26+
s.dependency "React-Core"
27+
# Don't install the dependencies when we run `pod install` in the old architecture.
28+
if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
29+
s.compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1"
30+
s.pod_target_xcconfig = {
31+
"HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"",
32+
"OTHER_CPLUSPLUSFLAGS" => "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1",
33+
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17"
34+
}
35+
s.dependency "React-Codegen"
36+
s.dependency "RCT-Folly"
37+
s.dependency "RCTRequired"
38+
s.dependency "RCTTypeSafety"
39+
s.dependency "ReactCommon/turbomodule/core"
40+
end
3641
end
3742
end

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "freerasp-react-native",
3-
"version": "4.2.3",
3+
"version": "4.2.4",
44
"description": "React Native plugin for improving app security and threat monitoring on Android and iOS mobile devices.",
55
"main": "lib/commonjs/index",
66
"module": "lib/module/index",

0 commit comments

Comments
 (0)