Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Release] 11.1.0 #616

Merged
merged 2 commits into from
Jan 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
81 changes: 81 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,86 @@
# RELEASES

## LinkKit V11.1.0 — 2024-01-10

### React Native

#### Requirements

This SDK now works with any supported version of React Native.

#### Changes

- Updates iOS SDK to `5.1.0`.
- Updates `LinkTokenConfiguration.noLoadingState` from required to optional.

```
<PlaidLink
tokenConfig={{
token: "#GENERATED_LINK_TOKEN#",
// OPTIONAL - log level.
logLevel: LinkLogLevel.ERROR,
// No longer required.
noLoadingState: false,
}}
onSuccess={(success: LinkSuccess) => { console.log(success) }}
onExit={(exit: LinkExit) => { console.log(exit) }}
// OPTIONAL - MODAL or FULL_SCREEEN presentation on iOS. Defaults to MODAL.
// UI is always presented in full screen on Android.
iOSPresentationStyle={LinkIOSPresentationStyle.MODAL}
>
```

The update to the next major version of our mobile SDKs **includes breaking changes**. Please see our [migration guide]
(https://github.com/plaid/react-native-plaid-link-sdk/blob/master/v11-migration-guide.md) for full details.


### Android

Android SDK [4.0.0](https://github.com/plaid/plaid-link-android/releases/tag/v4.0.0)

#### Requirements

| Name | Version |
|------|---------|
| Android Studio | 4.0+ |
| Kotlin | 1.8+ |

#### Additions

- Flutter usage tracking.

#### Changes

- Upgrade to Kotlin 1.8.22
- Change LinkActivity to SingleInstance to fix issue with OAuth Redirects on Android 14.

#### Removals

- Remove deprecated support for public key authentication.
- Remove extraParams Map field from API.

[Android migration guide](https://github.com/plaid/plaid-link-android#migration-guide)

### iOS

iOS SDK [5.1.0](https://github.com/plaid/plaid-link-ios/releases/tag/5.1.0)

#### Requirements

| Name | Version |
|------|---------|
| Xcode | >= 15.0.1 |
| iOS | >= 14.0 |


#### Changes

- Resolve issue where PrivacyInfo.xcprivacy was missing NSPrivacyCollectedDataTypes.
- Improved Remember Me experience.
- Improved OAuth out-of-process webview open options.



## LinkKit V11.0.3 — 2023-11-13

### React Native
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const MyPlaidComponent = () => {
token: "#GENERATED_LINK_TOKEN#",
// OPTIONAL - log level.
logLevel: LinkLogLevel.ERROR,
// A `Bool` indicating that Link should skip displaying a loading animation until the Link UI is fully loaded.
// OPTIONAL - A `Bool` indicating that Link should skip displaying a loading animation until the Link UI is fully loaded.
// See Types.ts for more information.
noLoadingState: false,
}}
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.0.3" />
android:value="11.1.0" />
</application>

</manifest>
2 changes: 1 addition & 1 deletion 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.0.3"; // SDK_VERSION
return @"11.1.0"; // SDK_VERSION
}

+ (NSString*)objCBridgeVersion {
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.0.3",
"version": "11.1.0",
"description": "React Native Plaid Link SDK",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions react-native-plaid-link-sdk.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ Pod::Spec.new do |s|

s.authors = package['author']
s.homepage = "https://plaid.com/docs/link/ios/"
s.platform = :ios, "11.0"
s.platform = :ios, "14.0"

s.source = { :git => "https://github.com/plaid/react-native-plaid-link-sdk.git", :tag => "v#{s.version}" }
s.source_files = "ios/*.{h,m,swift}"

s.dependency 'React-Core'
s.dependency 'Plaid', '~> 5.0.0'
s.dependency 'Plaid', '~> 5.1.0'
end
5 changes: 3 additions & 2 deletions src/PlaidLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,12 @@ export const usePlaidEmitter = (LinkEventListener: LinkEventListener) => {

export const openLink = async (props: PlaidLinkProps) => {
let config = props.tokenConfig;
let noLoadingState = config.noLoadingState ?? false;

if (Platform.OS === 'android') {
NativeModules.PlaidAndroid.startLinkActivityForResult(
config.token,
config.noLoadingState,
noLoadingState,
config.logLevel ?? LinkLogLevel.ERROR,
(result: LinkSuccess) => {
if (props.onSuccess != null) {
Expand All @@ -63,7 +64,7 @@ export const openLink = async (props: PlaidLinkProps) => {
},
);
} else {
NativeModules.RNLinksdk.create(config.token, config.noLoadingState);
NativeModules.RNLinksdk.create(config.token, noLoadingState);

let presentFullScreen = props.iOSPresentationStyle == LinkIOSPresentationStyle.FULL_SCREEN

Expand Down
2 changes: 1 addition & 1 deletion src/Types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export type LinkTokenConfiguration = (CommonPlaidLinkOptions & {
//
// Note: This should be set to `true` when setting the `eu_config.headless` field in /link/token/create requests to `true`.
// For reference, see https://plaid.com/docs/api/tokens/#link-token-create-request-eu-config-headless
noLoadingState: boolean;
noLoadingState?: boolean;
});

export enum LinkLogLevel {
Expand Down
Loading