react-native-plaid-link-sdk 11.7.1 → 11.8.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 CHANGED
@@ -179,7 +179,10 @@ While these older versions are expected to continue to work without disruption,
179
179
 
180
180
  | Plaid SDK Version | Min React Native Version | Android SDK | Android Min Version | Android Compile Version| iOS SDK | iOS Min Version | Status |
181
181
  |-------------------|--------------------------|-------------|---------------------|------------------------|---------|-----------------|-------------------------------|
182
+ | 11.8.1 | * | [4.3.1+] | 21 | 34 | >=5.4.2 | 14.0 | Active, supports Xcode 15.0.1 |
183
+ | 11.8.0 | * | [4.3.1+] | 21 | 34 | >=5.4.2 | 14.0 | Active, supports Xcode 15.0.1 |
182
184
  | 11.7.1 | * | [4.3.0+] | 21 | 34 | >=5.4.1 | 14.0 | Active, supports Xcode 15.0.1 |
185
+ | 11.7.0 | * | [4.3.0+] | 21 | 34 | >=5.4.0 | 14.0 | Active, supports Xcode 15.0.1 |
183
186
  | 11.6.0 | * | [4.2.0+] | 21 | 34 | >=5.3.1 | 14.0 | Active, supports Xcode 15.0.1 |
184
187
  | 11.5.2 | * | [4.1.1+] | 21 | 34 | >=5.2.1 | 14.0 | Active, supports Xcode 15.0.1 |
185
188
  | 11.5.1 | * | [4.1.1+] | 21 | 34 | >=5.2.0 | 14.0 | Active, supports Xcode 15.0.1 |
@@ -70,7 +70,7 @@ repositories {
70
70
 
71
71
  dependencies {
72
72
  implementation "com.facebook.react:react-native:+"
73
- implementation "com.plaid.link:sdk-core:4.3.0"
73
+ implementation "com.plaid.link:sdk-core:4.3.1"
74
74
  implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
75
75
  implementation "com.jakewharton.rxrelay2:rxrelay:2.1.1"
76
76
  }
@@ -4,7 +4,7 @@
4
4
  <application>
5
5
  <meta-data
6
6
  android:name="com.plaid.link.react_native"
7
- android:value="11.7.1" />
7
+ android:value="11.8.1" />
8
8
  </application>
9
9
 
10
10
  </manifest>
package/ios/RNLinksdk.m CHANGED
@@ -27,7 +27,7 @@ static NSString* const kRNLinkKitVersionConstant = @"version";
27
27
  RCT_EXPORT_MODULE();
28
28
 
29
29
  + (NSString*)sdkVersion {
30
- return @"11.7.1"; // SDK_VERSION
30
+ return @"11.8.1"; // SDK_VERSION
31
31
  }
32
32
 
33
33
  + (NSString*)objCBridgeVersion {
@@ -99,6 +99,15 @@ RCT_EXPORT_METHOD(create:(NSString*)token :(BOOL)noLoadingState) {
99
99
  NSDictionary *eventDictionary = [RNLinksdk dictionaryFromEvent:event];
100
100
  [strongSelf sendEventWithName:kRNLinkKitOnEventEvent
101
101
  body:eventDictionary];
102
+
103
+ // If this is the HANDOFF event.
104
+ if (event.eventName.value == PLKEventNameValueHandoff) {
105
+ // If we have dismissed Link.
106
+ if (strongSelf.presentingViewController == nil) {
107
+ // Deallocate the handler it's no longer needed.
108
+ self.linkHandler = nil;
109
+ }
110
+ }
102
111
  }
103
112
  };
104
113
 
@@ -168,7 +177,6 @@ RCT_EXPORT_METHOD(dismiss) {
168
177
  [self.presentingViewController dismissViewControllerAnimated:YES
169
178
  completion:nil];
170
179
  self.presentingViewController = nil;
171
- self.linkHandler = nil;
172
180
  }
173
181
 
174
182
  #pragma mark - Bridging
@@ -461,6 +469,8 @@ RCT_EXPORT_METHOD(dismiss) {
461
469
  return @"VERIFY_PHONE";
462
470
  case PLKEventNameValueConnectNewInstitution:
463
471
  return @"CONNECT_NEW_INSTITUTION";
472
+ case PLKEventNameValueSubmitOTP:
473
+ return @"SUBMIT_OTP";
464
474
  }
465
475
  return @"unknown";
466
476
  }
@@ -501,6 +511,8 @@ RCT_EXPORT_METHOD(dismiss) {
501
511
  return @"institution_not_found";
502
512
  case PLKExitStatusValueRequiresAccountSelection:
503
513
  return @"requires_account_selection";
514
+ case PLKExitStatusValueContinueToThridParty:
515
+ return @"continue_to_third_party";
504
516
  }
505
517
  return @"unknown";
506
518
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-plaid-link-sdk",
3
- "version": "11.7.1",
3
+ "version": "11.8.1",
4
4
  "description": "React Native Plaid Link SDK",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -16,5 +16,5 @@ Pod::Spec.new do |s|
16
16
  s.source_files = "ios/*.{h,m,swift}"
17
17
 
18
18
  s.dependency 'React-Core'
19
- s.dependency 'Plaid', '~> 5.4.1'
19
+ s.dependency 'Plaid', '~> 5.4.2'
20
20
  end