Skip to content

Commit effe7d7

Browse files
committed
Update iOS podspec and xcframework to avoid force load
1 parent 05abdf2 commit effe7d7

File tree

24 files changed

+96
-33
lines changed

24 files changed

+96
-33
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.3
2+
- Update iOS podspec and xcframework to avoid force load
3+
14
## 3.8.2
25
- Update iOS podspec to use xcconfig for shared objects
36

128 Bytes
Binary file not shown.
Binary file not shown.
160 Bytes
Binary file not shown.
96 Bytes
Binary file not shown.

example/ios/Podfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
PODS:
2-
- fast_rsa (0.6.0):
2+
- fast_rsa (0.7.0):
33
- Flutter
44
- Flutter (1.0.0)
55
- integration_test (0.0.1):
@@ -19,7 +19,7 @@ EXTERNAL SOURCES:
1919
:path: ".symlinks/plugins/integration_test/ios"
2020

2121
SPEC CHECKSUMS:
22-
fast_rsa: f8430fbf47ba59e7ef2fd84a12f5f391d1086727
22+
fast_rsa: ddcc7ba1b9b9a1748c2506841269e6a2036492bc
2323
Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7
2424
integration_test: 4a889634ef21a45d28d50d622cf412dc6d9f586e
2525

ios/Classes/FastRsaPlugin.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import Flutter
22
import UIKit
3+
import RSABridge
34

45
public class FastRsaPlugin: NSObject, FlutterPlugin {
56
public static func register(with registrar: FlutterPluginRegistrar) {
@@ -12,6 +13,9 @@ public class FastRsaPlugin: NSObject, FlutterPlugin {
1213
switch call.method {
1314
case "getPlatformVersion":
1415
result("iOS " + UIDevice.current.systemVersion)
16+
case "init":
17+
_ = RSABridge.RSAEncodeText(nil, nil)
18+
result("success")
1519
default:
1620
result(FlutterMethodNotImplemented)
1721
}

ios/Rsa.xcframework/Info.plist renamed to ios/RSABridge.xcframework/Info.plist

Lines changed: 13 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,48 +6,42 @@
66
<array>
77
<dict>
88
<key>BinaryPath</key>
9-
<string>librsa_bridge.a</string>
10-
<key>HeadersPath</key>
11-
<string>Headers</string>
9+
<string>RSABridge.framework/RSABridge</string>
1210
<key>LibraryIdentifier</key>
13-
<string>ios-arm64</string>
11+
<string>ios-arm64_x86_64-simulator</string>
1412
<key>LibraryPath</key>
15-
<string>librsa_bridge.a</string>
13+
<string>RSABridge.framework</string>
1614
<key>SupportedArchitectures</key>
1715
<array>
1816
<string>arm64</string>
17+
<string>x86_64</string>
1918
</array>
2019
<key>SupportedPlatform</key>
2120
<string>ios</string>
21+
<key>SupportedPlatformVariant</key>
22+
<string>simulator</string>
2223
</dict>
2324
<dict>
2425
<key>BinaryPath</key>
25-
<string>librsa_bridge.a</string>
26-
<key>HeadersPath</key>
27-
<string>Headers</string>
26+
<string>RSABridge.framework/RSABridge</string>
2827
<key>LibraryIdentifier</key>
29-
<string>ios-arm64_x86_64-maccatalyst</string>
28+
<string>ios-arm64</string>
3029
<key>LibraryPath</key>
31-
<string>librsa_bridge.a</string>
30+
<string>RSABridge.framework</string>
3231
<key>SupportedArchitectures</key>
3332
<array>
3433
<string>arm64</string>
35-
<string>x86_64</string>
3634
</array>
3735
<key>SupportedPlatform</key>
3836
<string>ios</string>
39-
<key>SupportedPlatformVariant</key>
40-
<string>maccatalyst</string>
4137
</dict>
4238
<dict>
4339
<key>BinaryPath</key>
44-
<string>librsa_bridge.a</string>
45-
<key>HeadersPath</key>
46-
<string>Headers</string>
40+
<string>RSABridge.framework/RSABridge</string>
4741
<key>LibraryIdentifier</key>
48-
<string>ios-arm64_x86_64-simulator</string>
42+
<string>ios-arm64_x86_64-maccatalyst</string>
4943
<key>LibraryPath</key>
50-
<string>librsa_bridge.a</string>
44+
<string>RSABridge.framework</string>
5145
<key>SupportedArchitectures</key>
5246
<array>
5347
<string>arm64</string>
@@ -56,7 +50,7 @@
5650
<key>SupportedPlatform</key>
5751
<string>ios</string>
5852
<key>SupportedPlatformVariant</key>
59-
<string>simulator</string>
53+
<string>maccatalyst</string>
6054
</dict>
6155
</array>
6256
<key>CFBundlePackageType</key>
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>CFBundleExecutable</key>
6+
<string>RSABridge</string>
7+
<key>CFBundleIdentifier</key>
8+
<string>RSABridge</string>
9+
<key>MinimumOSVersion</key>
10+
<string>100.0</string>
11+
<key>CFBundleShortVersionString</key>
12+
<string>1.7.0</string>
13+
<key>CFBundleVersion</key>
14+
<string>1.7.0.1745445032</string>
15+
<key>CFBundlePackageType</key>
16+
<string>FMWK</string>
17+
</dict>
18+
</plist>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
framework module "RSABridge" {
2+
header "librsa_bridge.h"
3+
export *
4+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>CFBundleExecutable</key>
6+
<string>RSABridge</string>
7+
<key>CFBundleIdentifier</key>
8+
<string>RSABridge</string>
9+
<key>MinimumOSVersion</key>
10+
<string>100.0</string>
11+
<key>CFBundleShortVersionString</key>
12+
<string>1.7.0</string>
13+
<key>CFBundleVersion</key>
14+
<string>1.7.0.1745445032</string>
15+
<key>CFBundlePackageType</key>
16+
<string>FMWK</string>
17+
</dict>
18+
</plist>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
framework module "RSABridge" {
2+
header "librsa_bridge.h"
3+
export *
4+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>CFBundleExecutable</key>
6+
<string>RSABridge</string>
7+
<key>CFBundleIdentifier</key>
8+
<string>RSABridge</string>
9+
<key>MinimumOSVersion</key>
10+
<string>100.0</string>
11+
<key>CFBundleShortVersionString</key>
12+
<string>1.7.0</string>
13+
<key>CFBundleVersion</key>
14+
<string>1.7.0.1745445032</string>
15+
<key>CFBundlePackageType</key>
16+
<string>FMWK</string>
17+
</dict>
18+
</plist>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
framework module "RSABridge" {
2+
header "librsa_bridge.h"
3+
export *
4+
}

ios/fast_rsa.podspec

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
22
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html.
33
# Run `pod lib lint fast_rsa.podspec' to validate before publishing.
44
#
5-
framework_path = File.join(__dir__, "Rsa.xcframework").gsub(/ /, '\ ')
65

76
Pod::Spec.new do |s|
87
s.name = 'fast_rsa'
9-
s.version = '0.6.0'
8+
s.version = '0.7.0'
109
s.summary = 'library for use RSA.'
1110
s.description = <<-DESC
1211
library for use RSA.
@@ -19,17 +18,14 @@ library for use RSA.
1918

2019
s.dependency 'Flutter'
2120
s.platform = :ios, '12.0'
22-
s.vendored_frameworks = 'Rsa.xcframework'
21+
s.vendored_frameworks = 'RSABridge.xcframework'
22+
s.static_framework = true
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-
}
29-
s.pod_target_xcconfig = {
30-
'DEFINES_MODULE' => 'YES',
31-
'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386',
24+
s.pod_target_xcconfig = {
25+
'DEFINES_MODULE' => 'YES',
26+
'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386'
3227
}
28+
3329
s.swift_version = '5.0'
3430

3531
end

lib/web/assets/rsa.wasm

0 Bytes
Binary file not shown.

macos/librsa_bridge.dylib

0 Bytes
Binary file not shown.

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.2
3+
version: 3.8.3
44
homepage: https://github.com/jerson/flutter-rsa
55

66
environment:

0 commit comments

Comments
 (0)