Skip to content

Commit

Permalink
Merge pull request #654 from plaid/dt-fix-issue-653
Browse files Browse the repository at this point in the history
  • Loading branch information
dtroupe-plaid authored Apr 22, 2024
2 parents 6cb21d5 + 1ca0b70 commit 9e7a35d
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 4 deletions.
43 changes: 43 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down
2 changes: 1 addition & 1 deletion android/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<application>
<meta-data
android:name="com.plaid.link.react_native"
android:value="11.8.0" />
android:value="11.8.1" />
</application>

</manifest>
16 changes: 14 additions & 2 deletions ios/RNLinksdk.m
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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;
}
}
}
};

Expand Down Expand Up @@ -168,7 +177,6 @@ - (void)stopObserving {
[self.presentingViewController dismissViewControllerAnimated:YES
completion:nil];
self.presentingViewController = nil;
self.linkHandler = nil;
}

#pragma mark - Bridging
Expand Down Expand Up @@ -461,6 +469,8 @@ + (NSString *)stringForEventName:(PLKEventName *)eventName {
return @"VERIFY_PHONE";
case PLKEventNameValueConnectNewInstitution:
return @"CONNECT_NEW_INSTITUTION";
case PLKEventNameValueSubmitOTP:
return @"SUBMIT_OTP";
}
return @"unknown";
}
Expand Down Expand Up @@ -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";
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 9e7a35d

Please sign in to comment.