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

MOBILE-1264_part15: Introduce KevinSessionUnexpectedError #34

Merged
merged 14 commits into from
Oct 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
14 commits
Select commit Hold shift + click to select a range
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
Original file line number Diff line number Diff line change
@@ -1,11 +1,29 @@
## 1.0.3

* Expose KevinSessionUnexpectedError - wrapper of plugin's native part's unexpected errors (wrong
initialisation/result parsing errors)
* Make KevinCallbackUrl.single const constructor
* Upgrade:
- `kevin_flutter_core: 1.0.4`
- `kevin_flutter_accounts_android: 1.0.1`
- `kevin_flutter_accounts_ios: 1.0.1`

## 1.0.2

* Add kevin_flutter_accounts_android and kevin_flutter_accounts_ios 1.0.0 dependencies
* Upgrade kevin_flutter_core to 1.0.3 and kevin_flutter_accounts_platform_interface to 1.0.2
* **BREAKING**: rename disabledCountrySelection to disableCountrySelection in
KevinAccountSessionConfiguration
* **BREAKING**: use KevinCallbackUrl in KevinAccountsConfiguration instead of string
* Add:
- `kevin_flutter_accounts_android: 1.0.1`
- `kevin_flutter_accounts_ios: 1.0.0`
* Upgrade:
- `kevin_flutter_core: 1.0.3`
- `kevin_flutter_accounts_platform_interface: 1.0.2`

## 1.0.1

* Upgrade kevin_flutter_accounts_platform_interface from 1.0.0 to 1.0.1 version
* Upgrade:
- `kevin_flutter_accounts_platform_interface: 1.0.1`

## 1.0.0

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: kevin_flutter_accounts
description: Flutter plugin, used to easily communicate with kevin. account linking SDK.
repository: https://github.com/getkevin/kevin-flutter/tree/master/packages/kevin_flutter_accounts/kevin_flutter_accounts
homepage: https://developer.kevin.eu/mobile/
version: 1.0.2
version: 1.0.3

environment:
sdk: ">=2.17.6 <3.0.0"
Expand All @@ -11,9 +11,9 @@ environment:
dependencies:
flutter:
sdk: flutter
kevin_flutter_core: ^1.0.3
kevin_flutter_accounts_android: ^1.0.0
kevin_flutter_accounts_ios: ^1.0.0
kevin_flutter_core: ^1.0.4
kevin_flutter_accounts_android: ^1.0.1
kevin_flutter_accounts_ios: ^1.0.1
kevin_flutter_accounts_platform_interface: ^1.0.2

dev_dependencies:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 1.0.1

* Upgrade:
- `kevin_flutter_core: 1.0.4`
- `kevin_flutter_accounts_platform_interface: 1.0.3`

## 1.0.0

* Initial release.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: kevin_flutter_accounts_android
description: Android implementation of the kevin_flutter_accounts plugin.
repository: https://github.com/getkevin/kevin-flutter/tree/master/packages/kevin_flutter_accounts/kevin_flutter_accounts_android
homepage: https://developer.kevin.eu/mobile/
version: 1.0.0
version: 1.0.1

environment:
sdk: ">=2.17.6 <3.0.0"
Expand All @@ -11,8 +11,8 @@ environment:
dependencies:
flutter:
sdk: flutter
kevin_flutter_core: ^1.0.3
kevin_flutter_accounts_platform_interface: ^1.0.2
kevin_flutter_core: ^1.0.4
kevin_flutter_accounts_platform_interface: ^1.0.3

dev_dependencies:
flutter_test:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,12 +153,8 @@ void main() {
);

const configuration = KevinAccountSessionConfiguration(state: 'state');
expect(
() async {
await platform.startAccountLinking(configuration);
},
throwsA(isA<PlatformException>()),
);
final result = await platform.startAccountLinking(configuration);
expect(result, isInstanceOf<KevinSessionUnexpectedError>());
expect(log, <Matcher>[
isMethodCall(
'startAccountLinking',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 1.0.1

* Upgrade:
- `kevin_flutter_core: 1.0.4`
- `kevin_flutter_accounts_platform_interface: 1.0.3`

## 1.0.0

* Initial release.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: kevin_flutter_accounts_ios
description: iOS implementation of the kevin_flutter_accounts plugin.
repository: https://github.com/getkevin/kevin-flutter/tree/master/packages/kevin_flutter_accounts/kevin_flutter_accounts_ios
homepage: https://developer.kevin.eu/mobile/
version: 1.0.0
version: 1.0.1

environment:
sdk: ">=2.17.6 <3.0.0"
Expand All @@ -11,8 +11,8 @@ environment:
dependencies:
flutter:
sdk: flutter
kevin_flutter_core: ^1.0.3
kevin_flutter_accounts_platform_interface: ^1.0.2
kevin_flutter_core: ^1.0.4
kevin_flutter_accounts_platform_interface: ^1.0.3

dev_dependencies:
flutter_test:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,12 +153,8 @@ void main() {
);

const configuration = KevinAccountSessionConfiguration(state: 'state');
expect(
() async {
await platform.startAccountLinking(configuration);
},
throwsA(isA<PlatformException>()),
);
final result = await platform.startAccountLinking(configuration);
expect(result, isInstanceOf<KevinSessionUnexpectedError>());
expect(log, <Matcher>[
isMethodCall(
'startAccountLinking',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
## 1.0.3

* Expose KevinSessionUnexpectedError - wrapper of plugin's native part's unexpected errors (wrong
initialisation/result parsing errors)
* Make KevinCallbackUrl.single const constructor
* Upgrade:
- `kevin_flutter_core: 1.0.4`

## 1.0.2

* **BREAKING**: rename disabledCountrySelection to disableCountrySelection in
KevinAccountSessionConfiguration
* **BREAKING**: use KevinCallbackUrl in KevinAccountsConfiguration instead of string
* Upgrade kevin_flutter_core to 1.0.3
* Add toMap/fromMap() methods to models where needed
* Introduce KevinFlutterAccountsMethods for internal usage
* Remove entity classes
* Upgrade:
- `kevin_flutter_core: 1.0.3`

## 1.0.1

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: kevin_flutter_accounts_platform_interface
description: A common platform interface for the kevin_flutter_accounts plugin.
repository: https://github.com/getkevin/kevin-flutter/tree/master/packages/kevin_flutter_accounts/kevin_flutter_accounts_platform_interface
homepage: https://developer.kevin.eu/mobile/
version: 1.0.2
version: 1.0.3

environment:
sdk: ">=2.17.6 <3.0.0"
Expand All @@ -12,7 +12,7 @@ dependencies:
flutter:
sdk: flutter
plugin_platform_interface: ^2.1.3
kevin_flutter_core: ^1.0.3
kevin_flutter_core: ^1.0.4

dev_dependencies:
flutter_test:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,12 +177,8 @@ void main() {
);

const configuration = KevinAccountSessionConfiguration(state: 'state');
expect(
() async {
await platform.startAccountLinking(configuration);
},
throwsA(isA<PlatformException>()),
);
final result = await platform.startAccountLinking(configuration);
expect(result, isInstanceOf<KevinSessionUnexpectedError>());
expect(log, <Matcher>[
isMethodCall(
'startAccountLinking',
Expand Down
24 changes: 20 additions & 4 deletions packages/kevin_flutter_core/kevin_flutter_core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,22 @@
## 1.0.4

* Expose KevinSessionUnexpectedError - wrapper of plugin's native part's unexpected errors (wrong
initialisation/result parsing errors)
* Make KevinCallbackUrl.single const constructor
* Upgrade:
- `kevin_flutter_core_platform_interface: 1.0.5`
- `kevin_flutter_core_android: 1.0.4`
- `kevin_flutter_core_ios: 1.0.4`

## 1.0.3

* Upgrade kevin_flutter_core_platform_interface to 1.0.4, kevin_flutter_core_android,
kevin_flutter_core_ios to 1.0.3
* **BREAKING**: expose KevinSize to be used in KevinButtonStyle instead of Size
* Expose KevinCallbackUrl class to be used to pass specific android/ios callback urls
* Expose KevinErrorHelper meant for internal usage
* Upgrade:
- `kevin_flutter_core_platform_interface: 1.0.4`
- `kevin_flutter_core_android: 1.0.3`
- `kevin_flutter_core_ios: 1.0.3`

## 1.0.2

Expand All @@ -11,9 +25,11 @@
## 1.0.1

* Lower Dart version min version to 2.17.6
* Upgrade kevin_flutter_core_android, kevin_flutter_core_ios, kevin_flutter_core_platform_interface
to 1.0.1
* Adjust pubspec.yaml description
* Upgrade:
- `kevin_flutter_core_android: 1.0.1`
- `kevin_flutter_core_ios: 1.0.1`
- `kevin_flutter_core_platform_interface: 1.0.1`

## 1.0.0

Expand Down
8 changes: 4 additions & 4 deletions packages/kevin_flutter_core/kevin_flutter_core/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: kevin_flutter_core
description: Flutter plugin for kevin. SDK core, required by payments and account linking plugins.
repository: https://github.com/getkevin/kevin-flutter/tree/master/packages/kevin_flutter_core/kevin_flutter_core
homepage: https://developer.kevin.eu/mobile/
version: 1.0.3
version: 1.0.4

environment:
sdk: ">=2.17.6 <3.0.0"
Expand All @@ -11,9 +11,9 @@ environment:
dependencies:
flutter:
sdk: flutter
kevin_flutter_core_android: ^1.0.3
kevin_flutter_core_ios: ^1.0.3
kevin_flutter_core_platform_interface: ^1.0.4
kevin_flutter_core_android: ^1.0.4
kevin_flutter_core_ios: ^1.0.4
kevin_flutter_core_platform_interface: ^1.0.5

dev_dependencies:
flutter_test:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
## 1.0.4

* Upgrade:
- `kevin_flutter_core_platform_interface: 1.0.5`

## 1.0.3

* Upgrade compile and target SDK to 33
* Upgrade kevin. SDK to 2.5.0
* Upgrade kevin_flutter_core_platform_interface to 1.0.4
* Add proguard file
* Upgrade:
- `kevin_flutter_core_platform_interface: 1.0.4`
- `eu.kevin.android:core:2.5.0`
- `compileSdk 33`
- `targetSdk 33`

## 1.0.2

Expand All @@ -12,7 +19,8 @@
## 1.0.1

* Lower Dart version min version to 2.17.6
* Upgrade kevin_flutter_core_platform_interface to v1.0.1
* Upgrade:
- `kevin_flutter_core_platform_interface: 1.0.1`

## 1.0.0

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: kevin_flutter_core_android
description: Android implementation of the kevin_flutter_core plugin.
repository: https://github.com/getkevin/kevin-flutter/tree/master/packages/kevin_flutter_core/kevin_flutter_core_android
homepage: https://developer.kevin.eu/mobile/
version: 1.0.3
version: 1.0.4

environment:
sdk: ">=2.17.6 <3.0.0"
Expand All @@ -11,7 +11,7 @@ environment:
dependencies:
flutter:
sdk: flutter
kevin_flutter_core_platform_interface: ^1.0.4
kevin_flutter_core_platform_interface: ^1.0.5

dev_dependencies:
flutter_test:
Expand Down
15 changes: 11 additions & 4 deletions packages/kevin_flutter_core/kevin_flutter_core_ios/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
## 1.0.4

* Upgrade:
- `kevin_flutter_core_platform_interface: 1.0.5`

## 1.0.3

* **FIX**: ios theme color parsing
* Upgrade kevin_ios to 2.2.3
* Upgrade kevin_flutter_core_platform_interface to 1.0.4
* **FIX**: iOS theme color parsing
* Remove entity classes
* Upgrade:
- `kevin_flutter_core_platform_interface: 1.0.4`
- `kevin_ios: 2.2.3`

## 1.0.2

Expand All @@ -12,7 +18,8 @@
## 1.0.1

* Lower Dart version min version to 2.17.6
* Upgrade kevin_flutter_core_platform_interface to v1.0.1
* Upgrade:
- `kevin_flutter_core_platform_interface: 1.0.1`

## 1.0.0

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: kevin_flutter_core_ios
description: iOS implementation of the kevin_flutter_core plugin.
repository: https://github.com/getkevin/kevin-flutter/tree/master/packages/kevin_flutter_core/kevin_flutter_core_ios
homepage: https://developer.kevin.eu/mobile/
version: 1.0.3
version: 1.0.4

environment:
sdk: ">=2.17.6 <3.0.0"
Expand All @@ -11,7 +11,7 @@ environment:
dependencies:
flutter:
sdk: flutter
kevin_flutter_core_platform_interface: ^1.0.4
kevin_flutter_core_platform_interface: ^1.0.5

dev_dependencies:
flutter_test:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 1.0.5

* Introduce KevinSessionUnexpectedError - wrapper of plugin's native part's unexpected errors (wrong
initialisation/result parsing errors)
* Make KevinCallbackUrl.single const constructor

## 1.0.4

* Fix kevin_size.dart formatting
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ class KevinErrorHelper {
return KevinSessionResultGeneralError(
message: error.message,
);
case _Errors.unexpected:
return KevinSessionUnexpectedError(message: error.message);
default:
return null;
}
Expand All @@ -20,4 +22,5 @@ class KevinErrorHelper {
class _Errors {
static const general = 'general';
static const cancelled = 'cancelled';
static const unexpected = 'unexpected';
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class KevinCallbackUrl {
required this.ios,
});

KevinCallbackUrl.single({required String callbackUrl})
const KevinCallbackUrl.single({required String callbackUrl})
: android = callbackUrl,
ios = callbackUrl;
}
Loading