Skip to content

Commit a7c341b

Browse files
authored
update ios podspe (#88)
1 parent 3c188e1 commit a7c341b

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 3.8.2
2+
- Update iOS podspec to use xcconfig for shared objects
3+
14
## 3.8.1
25
- Updates binaries + Updated Android SDK to r28 for 16KB support
36

example/pubspec.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ packages:
116116
path: ".."
117117
relative: true
118118
source: path
119-
version: "3.8.0"
119+
version: "3.8.2"
120120
ffi:
121121
dependency: transitive
122122
description:

ios/fast_rsa.podspec

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,14 @@ library for use RSA.
2121
s.platform = :ios, '12.0'
2222
s.vendored_frameworks = 'Rsa.xcframework'
2323
# Flutter.framework does not contain a i386 slice. Only x86_64 simulators are supported.
24+
s.xcconfig = {
25+
'OTHER_LDFLAGS[sdk=iphoneos*]' => "-force_load '#{framework_path}/ios-arm64/librsa_bridge.a'",
26+
'OTHER_LDFLAGS[sdk=iphonesimulator*]' => "-force_load '#{framework_path}/ios-arm64_x86_64-simulator/librsa_bridge.a'",
27+
'OTHER_LDFLAGS[sdk=maccatalyst*]' => "-force_load '#{framework_path}/ios-arm64_x86_64-maccatalyst/librsa_bridge.a'"
28+
}
2429
s.pod_target_xcconfig = {
2530
'DEFINES_MODULE' => 'YES',
2631
'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386',
27-
'OTHER_LDFLAGS[sdk=iphoneos*]' => "-force_load #{framework_path}/ios-arm64/librsa_bridge.a",
28-
'OTHER_LDFLAGS[sdk=iphonesimulator*]' => "-force_load #{framework_path}/ios-arm64_x86_64-simulator/librsa_bridge.a",
29-
'OTHER_LDFLAGS[sdk=maccatalyst*]' => "-force_load #{framework_path}/ios-arm64_x86_64-maccatalyst/librsa_bridge.a"
3032
}
3133
s.swift_version = '5.0'
3234

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: fast_rsa
22
description: library for use RSA with support for android and ios, macOS, linux, windows and web
3-
version: 3.8.1
3+
version: 3.8.2
44
homepage: https://github.com/jerson/flutter-rsa
55

66
environment:

0 commit comments

Comments
 (0)