react-native-plaid-link-sdk 12.3.0 → 12.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/android/src/main/AndroidManifest.xml +1 -1
- package/dist/PlaidLink.d.ts +1 -1
- package/dist/PlaidLink.js +2 -2
- package/dist/fabric/NativePlaidLinkModuleiOS.d.ts +1 -1
- package/ios/RNLinksdk.mm +3 -2
- package/ios/RNPlaidHelper.h +6 -3
- package/ios/RNPlaidHelper.m +15 -5
- package/package.json +1 -1
- package/react-native-plaid-link-sdk.podspec +1 -1
- package/src/PlaidLink.tsx +3 -1
- package/src/fabric/NativePlaidLinkModuleiOS.ts +1 -0
package/README.md
CHANGED
|
@@ -206,6 +206,7 @@ While these older versions are expected to continue to work without disruption,
|
|
|
206
206
|
|
|
207
207
|
| Plaid SDK Version | Min React Native Version | Android SDK | Android Min Version | Android Compile Version| iOS SDK | iOS Min Version | Status |
|
|
208
208
|
|-------------------|--------------------------|-------------|---------------------|------------------------|---------|-----------------|-------------------------------|
|
|
209
|
+
| 12.3.1 | * | [5.2.0+] | 21 | 34 | >=6.3.1 | 14.0 | Active, supports Xcode 16.1.0 |
|
|
209
210
|
| 12.3.0 | * | [5.2.0+] | 21 | 34 | >=6.3.0 | 14.0 | Active, supports Xcode 16.1.0 |
|
|
210
211
|
| 12.2.1 | * | [5.1.1+] | 21 | 34 | >=6.2.1 | 14.0 | Active, supports Xcode 16.1.0 |
|
|
211
212
|
| 12.2.0 | * | [5.1.1+] | 21 | 34 | >=6.2.1 | 14.0 | Active, supports Xcode 16.1.0 |
|
package/dist/PlaidLink.d.ts
CHANGED
|
@@ -31,4 +31,4 @@ export declare const submit: (data: SubmissionData) => void;
|
|
|
31
31
|
* @warning This method can only be used once the user has granted access to their Apple card via a standard Link Session.
|
|
32
32
|
* @warning This method requires that your app has been granted FinanceKit access from Apple.
|
|
33
33
|
*/
|
|
34
|
-
export declare const syncFinanceKit: (token: string, requestAuthorizationIfNeeded: boolean, completion: (error?: FinanceKitError) => void) => void;
|
|
34
|
+
export declare const syncFinanceKit: (token: string, requestAuthorizationIfNeeded: boolean, simulatedBehavior: boolean, completion: (error?: FinanceKitError) => void) => void;
|
package/dist/PlaidLink.js
CHANGED
|
@@ -115,7 +115,7 @@ export const submit = (data) => {
|
|
|
115
115
|
* @warning This method can only be used once the user has granted access to their Apple card via a standard Link Session.
|
|
116
116
|
* @warning This method requires that your app has been granted FinanceKit access from Apple.
|
|
117
117
|
*/
|
|
118
|
-
export const syncFinanceKit = (token, requestAuthorizationIfNeeded, completion) => {
|
|
118
|
+
export const syncFinanceKit = (token, requestAuthorizationIfNeeded, simulatedBehavior, completion) => {
|
|
119
119
|
if (Platform.OS === 'android') {
|
|
120
120
|
completion({
|
|
121
121
|
type: FinanceKitErrorType.Unknown,
|
|
@@ -123,7 +123,7 @@ export const syncFinanceKit = (token, requestAuthorizationIfNeeded, completion)
|
|
|
123
123
|
});
|
|
124
124
|
}
|
|
125
125
|
else {
|
|
126
|
-
RNLinksdkiOS === null || RNLinksdkiOS === void 0 ? void 0 : RNLinksdkiOS.syncFinanceKit(token, requestAuthorizationIfNeeded, () => {
|
|
126
|
+
RNLinksdkiOS === null || RNLinksdkiOS === void 0 ? void 0 : RNLinksdkiOS.syncFinanceKit(token, requestAuthorizationIfNeeded, simulatedBehavior, () => {
|
|
127
127
|
completion();
|
|
128
128
|
}, (error) => {
|
|
129
129
|
completion({
|
|
@@ -9,7 +9,7 @@ export interface Spec extends TurboModule {
|
|
|
9
9
|
submit(phoneNumber: string | undefined): void;
|
|
10
10
|
addListener(eventName: string): void;
|
|
11
11
|
removeListeners(count: Int32): void;
|
|
12
|
-
syncFinanceKit(token: string, requestAuthorizationIfNeeded: boolean, onSuccess: (success: boolean) => void, onError: (error: UnsafeObject<FinanceKitError>) => void): void;
|
|
12
|
+
syncFinanceKit(token: string, requestAuthorizationIfNeeded: boolean, simulatedBehavior: boolean, onSuccess: (success: boolean) => void, onError: (error: UnsafeObject<FinanceKitError>) => void): void;
|
|
13
13
|
}
|
|
14
14
|
declare const _default: Spec | null;
|
|
15
15
|
export default _default;
|
package/ios/RNLinksdk.mm
CHANGED
|
@@ -28,7 +28,7 @@ static NSString* const kRNLinkKitVersionConstant = @"version";
|
|
|
28
28
|
RCT_EXPORT_MODULE();
|
|
29
29
|
|
|
30
30
|
+ (NSString*)sdkVersion {
|
|
31
|
-
return @"12.3.
|
|
31
|
+
return @"12.3.1"; // SDK_VERSION
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
+ (NSString*)objCBridgeVersion {
|
|
@@ -183,11 +183,13 @@ RCT_EXPORT_METHOD(dismiss) {
|
|
|
183
183
|
|
|
184
184
|
RCT_EXPORT_METHOD(syncFinanceKit:(NSString *)token
|
|
185
185
|
requestAuthorizationIfNeeded:(BOOL)requestAuthorizationIfNeeded
|
|
186
|
+
simulatedBehavior:(BOOL)simulatedBehavior
|
|
186
187
|
onSuccess:(RCTResponseSenderBlock)onSuccess
|
|
187
188
|
onError:(RCTResponseSenderBlock)onError) {
|
|
188
189
|
|
|
189
190
|
[RNPlaidHelper syncFinanceKit:token
|
|
190
191
|
requestAuthorizationIfNeeded:requestAuthorizationIfNeeded
|
|
192
|
+
simulatedBehavior: simulatedBehavior
|
|
191
193
|
onSuccess:^{
|
|
192
194
|
onSuccess(@[]);
|
|
193
195
|
}
|
|
@@ -202,7 +204,6 @@ RCT_EXPORT_METHOD(syncFinanceKit:(NSString *)token
|
|
|
202
204
|
}
|
|
203
205
|
];
|
|
204
206
|
}
|
|
205
|
-
|
|
206
207
|
|
|
207
208
|
RCT_EXPORT_METHOD(submit:(NSString * _Nullable)phoneNumber) {
|
|
208
209
|
if (self.linkHandler) {
|
package/ios/RNPlaidHelper.h
CHANGED
|
@@ -2,10 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
@interface RNPlaidHelper : NSObject
|
|
4
4
|
|
|
5
|
-
+ (id
|
|
5
|
+
+ (id<PLKHandler> _Nullable)createWithLinkTokenConfiguration:(PLKLinkTokenConfiguration * _Nonnull)linkTokenConfiguration
|
|
6
|
+
error:(NSError * _Nullable * _Nullable)error;
|
|
6
7
|
|
|
7
|
-
+ (void)
|
|
8
|
-
|
|
8
|
+
+ (void)syncFinanceKit:(NSString * _Nonnull)token
|
|
9
|
+
requestAuthorizationIfNeeded:(BOOL)requestAuthorizationIfNeeded
|
|
10
|
+
simulatedBehavior:(BOOL)simulatedBehavior
|
|
9
11
|
onSuccess:(void (^_Nonnull)(void))onSuccess
|
|
10
12
|
onError:(void (^_Nonnull)(NSError * _Nonnull error))onError;
|
|
13
|
+
|
|
11
14
|
@end
|
package/ios/RNPlaidHelper.m
CHANGED
|
@@ -2,18 +2,28 @@
|
|
|
2
2
|
|
|
3
3
|
@implementation RNPlaidHelper
|
|
4
4
|
|
|
5
|
-
+ (id
|
|
5
|
+
+ (id<PLKHandler> _Nullable)createWithLinkTokenConfiguration:(PLKLinkTokenConfiguration * _Nonnull)linkTokenConfiguration
|
|
6
|
+
error:(NSError * _Nullable * _Nullable)error
|
|
6
7
|
{
|
|
7
8
|
return [PLKPlaid createWithLinkTokenConfiguration:linkTokenConfiguration error:error];
|
|
8
9
|
}
|
|
9
10
|
|
|
10
|
-
+ (void)syncFinanceKit:(NSString *
|
|
11
|
+
+ (void)syncFinanceKit:(NSString * _Nonnull)token
|
|
12
|
+
requestAuthorizationIfNeeded:(BOOL)requestAuthorizationIfNeeded
|
|
13
|
+
simulatedBehavior:(BOOL)simulatedBehavior
|
|
14
|
+
onSuccess:(void (^_Nonnull)(void))onSuccess
|
|
15
|
+
onError:(void (^_Nonnull)(NSError * _Nonnull error))onError
|
|
16
|
+
{
|
|
11
17
|
if (@available(iOS 17.4, *)) {
|
|
12
|
-
[PLKPlaid syncFinanceKitWithToken:token
|
|
18
|
+
[PLKPlaid syncFinanceKitWithToken:token
|
|
19
|
+
requestAuthorizationIfNeeded:requestAuthorizationIfNeeded
|
|
20
|
+
simulatedBehavior:simulatedBehavior
|
|
21
|
+
onSuccess:onSuccess
|
|
22
|
+
onError:onError];
|
|
13
23
|
} else {
|
|
14
24
|
NSError *error = [NSError errorWithDomain:@"com.plaid.financeKit"
|
|
15
|
-
|
|
16
|
-
|
|
25
|
+
code:1001
|
|
26
|
+
userInfo:@{ NSLocalizedDescriptionKey: @"FinanceKit Requires iOS >= 17.4" }];
|
|
17
27
|
onError(error);
|
|
18
28
|
}
|
|
19
29
|
}
|
package/package.json
CHANGED
package/src/PlaidLink.tsx
CHANGED
|
@@ -138,6 +138,7 @@ export const submit = (data: SubmissionData): void => {
|
|
|
138
138
|
export const syncFinanceKit = (
|
|
139
139
|
token: string,
|
|
140
140
|
requestAuthorizationIfNeeded: boolean,
|
|
141
|
+
simulatedBehavior: boolean,
|
|
141
142
|
completion: (error?: FinanceKitError) => void
|
|
142
143
|
): void => {
|
|
143
144
|
if (Platform.OS === 'android') {
|
|
@@ -148,7 +149,8 @@ export const syncFinanceKit = (
|
|
|
148
149
|
} else {
|
|
149
150
|
RNLinksdkiOS?.syncFinanceKit(
|
|
150
151
|
token,
|
|
151
|
-
requestAuthorizationIfNeeded,
|
|
152
|
+
requestAuthorizationIfNeeded,
|
|
153
|
+
simulatedBehavior,
|
|
152
154
|
() => {
|
|
153
155
|
completion()
|
|
154
156
|
},
|
|
@@ -20,6 +20,7 @@ export interface Spec extends TurboModule {
|
|
|
20
20
|
syncFinanceKit(
|
|
21
21
|
token: string,
|
|
22
22
|
requestAuthorizationIfNeeded: boolean,
|
|
23
|
+
simulatedBehavior: boolean,
|
|
23
24
|
onSuccess: (success: boolean) => void,
|
|
24
25
|
onError: (error: UnsafeObject<FinanceKitError>) => void
|
|
25
26
|
): void
|