Skip to content

Commit

Permalink
minor update to sdks
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgefspereira committed Oct 9, 2024
1 parent 5f1700e commit 686cbe5
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 14 deletions.
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@ android {
}

dependencies {
implementation 'com.plaid.link:sdk-core:4.6.0'
implementation 'com.plaid.link:sdk-core:4.6.1'
}
}
10 changes: 4 additions & 6 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ class _MyAppState extends State<MyApp> {
_configuration = const LinkTokenConfiguration(
token: "link-sandbox-74cf082e-870b-461f-a37a-038cace0afee",
);

PlaidLink.create(configuration: _configuration!);
});
}

Expand Down Expand Up @@ -87,14 +89,10 @@ class _MyAppState extends State<MyApp> {
),
const SizedBox(height: 15),
ElevatedButton(
onPressed: _configuration != null
? () {
PlaidLink.create(configuration: _configuration!);
PlaidLink.open();
}
: null,
onPressed: _configuration != null ? () => PlaidLink.open() : null,
child: const Text("Open"),
),
const SizedBox(height: 10),
ElevatedButton(
onPressed: _configuration != null
? () {
Expand Down
2 changes: 1 addition & 1 deletion ios/plaid_flutter.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Enables Plaid in Flutter apps.
s.source_files = 'Classes/**/*'
s.public_header_files = 'Classes/**/*.h'
s.dependency 'Flutter'
s.dependency 'Plaid', '5.6.0'
s.dependency 'Plaid', '5.6.1'
s.static_framework = true
s.ios.deployment_target = '14.0'
end
Expand Down
8 changes: 2 additions & 6 deletions lib/src/core/link_configuration.dart
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,10 @@ class LinkTokenConfiguration {

@override
bool operator ==(Object other) =>
identical(this, other) ||
other is LinkTokenConfiguration &&
runtimeType == other.runtimeType &&
hashCode == other.hashCode;
identical(this, other) || other is LinkTokenConfiguration && runtimeType == other.runtimeType && hashCode == other.hashCode;

@override
int get hashCode => Object.hash(
token.hashCode, noLoadingState.hashCode, receivedRedirectUri.hashCode);
int get hashCode => Object.hash(token.hashCode, noLoadingState.hashCode, receivedRedirectUri.hashCode);
}

/// Data to submit during a Link session.
Expand Down

0 comments on commit 686cbe5

Please sign in to comment.