diff --git a/CHANGELOG.md b/CHANGELOG.md index ab947165..dce91743 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,48 @@ # RELEASES +## LinkKit V11.8.1 — 2024-04-22 + +### React Native + +#### Requirements + +This SDK now works with any supported version of React Native. + +#### Changes + +- Add submit OTP event name +- Add continue_to_third_party exit status +- Resolve issue [653](https://github.com/plaid/react-native-plaid-link-sdk/issues/653) where the `HANDOFF` event is not properly emitted on iOS. + +### Android + +Android SDK [4.3.1](https://github.com/plaid/plaid-link-android/releases/tag/v4.3.1) + +#### Changes +- Change WebView background to a transparent gradient. + +#### Requirements + +| Name | Version | +|------|---------| +| Android Studio | 4.0+ | +| Kotlin | 1.8+ | + +### iOS + +iOS SDK [5.4.2](https://github.com/plaid/plaid-link-ios/releases/tag/5.4.2) + +#### Changes + +- Make Link background a transparent gradient. + +#### Requirements + +| Name | Version | +|------|---------| +| Xcode | >= 15.0.1 | +| iOS | >= 14.0 | + ## LinkKit V11.8.0 — 2024-04-16 ### React Native diff --git a/README.md b/README.md index 96ef2eff..1d83822f 100644 --- a/README.md +++ b/README.md @@ -179,6 +179,7 @@ While these older versions are expected to continue to work without disruption, | Plaid SDK Version | Min React Native Version | Android SDK | Android Min Version | Android Compile Version| iOS SDK | iOS Min Version | Status | |-------------------|--------------------------|-------------|---------------------|------------------------|---------|-----------------|-------------------------------| +| 11.8.1 | * | [4.3.1+] | 21 | 34 | >=5.4.2 | 14.0 | Active, supports Xcode 15.0.1 | | 11.8.0 | * | [4.3.1+] | 21 | 34 | >=5.4.2 | 14.0 | Active, supports Xcode 15.0.1 | | 11.7.1 | * | [4.3.0+] | 21 | 34 | >=5.4.1 | 14.0 | Active, supports Xcode 15.0.1 | | 11.7.0 | * | [4.3.0+] | 21 | 34 | >=5.4.0 | 14.0 | Active, supports Xcode 15.0.1 | diff --git a/android/src/main/AndroidManifest.xml b/android/src/main/AndroidManifest.xml index 37bdb983..92954623 100644 --- a/android/src/main/AndroidManifest.xml +++ b/android/src/main/AndroidManifest.xml @@ -4,7 +4,7 @@ + android:value="11.8.1" /> diff --git a/ios/RNLinksdk.m b/ios/RNLinksdk.m index cd5216cf..24dc7269 100644 --- a/ios/RNLinksdk.m +++ b/ios/RNLinksdk.m @@ -27,7 +27,7 @@ @implementation RNLinksdk RCT_EXPORT_MODULE(); + (NSString*)sdkVersion { - return @"11.8.0"; // SDK_VERSION + return @"11.8.1"; // SDK_VERSION } + (NSString*)objCBridgeVersion { @@ -99,6 +99,15 @@ - (void)stopObserving { NSDictionary *eventDictionary = [RNLinksdk dictionaryFromEvent:event]; [strongSelf sendEventWithName:kRNLinkKitOnEventEvent body:eventDictionary]; + + // If this is the HANDOFF event. + if (event.eventName.value == PLKEventNameValueHandoff) { + // If we have dismissed Link. + if (strongSelf.presentingViewController == nil) { + // Deallocate the handler it's no longer needed. + self.linkHandler = nil; + } + } } }; @@ -168,7 +177,6 @@ - (void)stopObserving { [self.presentingViewController dismissViewControllerAnimated:YES completion:nil]; self.presentingViewController = nil; - self.linkHandler = nil; } #pragma mark - Bridging @@ -461,6 +469,8 @@ + (NSString *)stringForEventName:(PLKEventName *)eventName { return @"VERIFY_PHONE"; case PLKEventNameValueConnectNewInstitution: return @"CONNECT_NEW_INSTITUTION"; + case PLKEventNameValueSubmitOTP: + return @"SUBMIT_OTP"; } return @"unknown"; } @@ -501,6 +511,8 @@ + (NSString *)stringForExitStatus:(PLKExitStatus *)exitStatus { return @"institution_not_found"; case PLKExitStatusValueRequiresAccountSelection: return @"requires_account_selection"; + case PLKExitStatusValueContinueToThridParty: + return @"continue_to_third_party"; } return @"unknown"; } diff --git a/package.json b/package.json index 9b9a8e2d..4352b072 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-plaid-link-sdk", - "version": "11.8.0", + "version": "11.8.1", "description": "React Native Plaid Link SDK", "main": "dist/index.js", "types": "dist/index.d.ts",