Skip to content

Commit 1c7cd1c

Browse files
fix: lower ios deployment target to min supported version
1 parent 65a9c99 commit 1c7cd1c

File tree

4 files changed

+13
-34
lines changed

4 files changed

+13
-34
lines changed

SecureEnclaveOperations.podspec

Lines changed: 8 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -11,34 +11,19 @@ Pod::Spec.new do |s|
1111
s.license = package["license"]
1212
s.authors = package["author"]
1313

14-
s.platforms = { :ios => "16.6" }
14+
s.platforms = { :ios => min_ios_version_supported }
1515
s.source = { :git => "https://github.com/niteshbalusu11/react-native-secure-enclave-operations.git", :tag => "#{s.version}" }
1616

1717
s.source_files = "ios/**/*.{h,m,mm,swift}"
1818

1919
load 'nitrogen/generated/ios/SecureEnclaveOperations+autolinking.rb'
2020
add_nitrogen_files(s)
2121

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

example/ios/Podfile

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,11 @@ target 'SecureEnclaveOperationsExample' do
2727
)
2828

2929
post_install do |installer|
30-
installer.pods_project.targets.each do |target|
31-
target.build_configurations.each do |config|
32-
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '16.6'
33-
end
34-
end
35-
3630
# https://github.com/facebook/react-native/blob/main/packages/react-native/scripts/react_native_pods.rb#L197-L202
3731
react_native_post_install(
3832
installer,
3933
config[:reactNativePath],
40-
:mac_catalyst_enabled => false
34+
:mac_catalyst_enabled => false,
4135
# :ccache_enabled => true
4236
)
4337
end

example/ios/Podfile.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1679,7 +1679,7 @@ PODS:
16791679
- React-logger (= 0.79.4)
16801680
- React-perflogger (= 0.79.4)
16811681
- React-utils (= 0.79.4)
1682-
- SecureEnclaveOperations (0.0.6):
1682+
- SecureEnclaveOperations (0.0.7):
16831683
- DoubleConversion
16841684
- glog
16851685
- hermes-engine
@@ -2005,10 +2005,10 @@ SPEC CHECKSUMS:
20052005
ReactAppDependencyProvider: bf62814e0fde923f73fc64b7e82d76c63c284da9
20062006
ReactCodegen: f891084749d03b8af8a244cefaa492e491b763fd
20072007
ReactCommon: c7d636ec1b9801ff4ee83cce8e0bf74a1610fc3f
2008-
SecureEnclaveOperations: c940af12630c20e31dbc757982b4cc14edaa031f
2008+
SecureEnclaveOperations: 28b96dbda4d43acd66aec41e15fd8c5eddbdd919
20092009
SocketRocket: d4aabe649be1e368d1318fdf28a022d714d65748
20102010
Yoga: a6cb833e04fb8c59a012b49fb1d040fcb0cbb633
20112011

2012-
PODFILE CHECKSUM: a54314116b4ef507aac8134986364ae27fe12fcf
2012+
PODFILE CHECKSUM: ea227aada71d87360737ed68a3a07ad0eaa3445e
20132013

20142014
COCOAPODS: 1.15.2

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-secure-enclave-operations",
3-
"version": "0.0.6",
3+
"version": "0.0.7",
44
"description": "Perform cryptographic operations inside secure hardware for Android and iOS.",
55
"source": "./src/index.tsx",
66
"main": "./lib/module/index.js",

0 commit comments

Comments
 (0)