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>

0 commit comments

Comments
 (0)