diff --git a/android/build.gradle b/android/build.gradle index 46fb6e7..fb5ec83 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -43,6 +43,6 @@ android { } dependencies { - implementation 'com.plaid.link:sdk-core:4.6.0' + implementation 'com.plaid.link:sdk-core:4.6.1' } } diff --git a/example/lib/main.dart b/example/lib/main.dart index 6433ca0..30c0021 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -41,6 +41,8 @@ class _MyAppState extends State { _configuration = const LinkTokenConfiguration( token: "link-sandbox-74cf082e-870b-461f-a37a-038cace0afee", ); + + PlaidLink.create(configuration: _configuration!); }); } @@ -87,14 +89,10 @@ class _MyAppState extends State { ), 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 ? () { diff --git a/ios/plaid_flutter.podspec b/ios/plaid_flutter.podspec index 011123b..d79649b 100644 --- a/ios/plaid_flutter.podspec +++ b/ios/plaid_flutter.podspec @@ -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 diff --git a/lib/src/core/link_configuration.dart b/lib/src/core/link_configuration.dart index 55898fb..ff3ad19 100644 --- a/lib/src/core/link_configuration.dart +++ b/lib/src/core/link_configuration.dart @@ -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.