-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #107 from onewelcome/release_3.0.0
Release 3.0.0
- Loading branch information
Showing
233 changed files
with
11,718 additions
and
9,228 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: Main workflow | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
lint_and_format: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: subosito/flutter-action@v2 | ||
with: | ||
channel: "stable" | ||
architecture: x64 | ||
- run: flutter --version | ||
- name: Install dependencies | ||
run: flutter pub get | ||
- name: Verify formatting | ||
run: dart format --output=none --set-exit-if-changed . | ||
- name: Analyze project source | ||
run: flutter analyze --fatal-infos |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ in pubspec.yaml add this: | |
|
||
dependencies: | ||
|
||
onegini: 2.0.1 | ||
onegini: 3.0.0 | ||
|
||
`flutter clean` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# This file configures the analyzer, which statically analyzes Dart code to | ||
# check for errors, warnings, and lints. | ||
# | ||
# The issues identified by the analyzer are surfaced in the UI of Dart-enabled | ||
# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be | ||
# invoked from the command line by running `flutter analyze`. | ||
|
||
# The following line activates a set of recommended lints for Flutter apps, | ||
# packages, and plugins designed to encourage good coding practices. | ||
include: package:flutter_lints/flutter.yaml | ||
|
||
analyzer: | ||
exclude: | ||
- lib/auto_generated_pigeon.dart | ||
|
||
linter: | ||
# The lint rules applied to this project can be customized in the | ||
# section below to disable rules from the `package:flutter_lints/flutter.yaml` | ||
# included above or to enable additional rules. A list of all available lints | ||
# and their documentation is published at | ||
# https://dart-lang.github.io/linter/lints/index.html. | ||
# | ||
# Instead of disabling a lint rule for the entire project in the | ||
# section below, it can also be suppressed for a single line of code | ||
# or a specific dart file by using the `// ignore: name_of_lint` and | ||
# `// ignore_for_file: name_of_lint` syntax on the line or in the file | ||
# producing the lint. | ||
rules: | ||
# avoid_print: false # Uncomment to disable the `avoid_print` rule | ||
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule | ||
|
||
# Additional information about this file can be found at | ||
# https://dart.dev/guides/language/analysis-options |
4 changes: 2 additions & 2 deletions
4
android/src/main/kotlin/com/onegini/mobile/sdk/flutter/FlutterOneWelcomeSdkComponent.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
package com.onegini.mobile.sdk.flutter | ||
|
||
import com.onegini.mobile.sdk.flutter.module.FacadeModule | ||
import com.onegini.mobile.sdk.flutter.module.FlutterOneWelcomeSdkModule | ||
import dagger.Component | ||
import javax.inject.Singleton | ||
|
||
@Component(modules = [FlutterOneWelcomeSdkModule::class]) | ||
@Component(modules = [FlutterOneWelcomeSdkModule::class, FacadeModule::class]) | ||
@Singleton | ||
interface FlutterOneWelcomeSdkComponent { | ||
|
||
fun inject(oneginiPlugin: OneginiPlugin) | ||
} |
161 changes: 0 additions & 161 deletions
161
android/src/main/kotlin/com/onegini/mobile/sdk/flutter/OnMethodCallMapper.kt
This file was deleted.
Oops, something went wrong.
51 changes: 31 additions & 20 deletions
51
android/src/main/kotlin/com/onegini/mobile/sdk/flutter/OneWelcomeWrapperErrors.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,36 @@ | ||
package com.onegini.mobile.sdk.flutter | ||
|
||
// When editing these errors, make sure to also update the errors in lib/errors/error_codes.dart | ||
enum class OneWelcomeWrapperErrors(val code: Int, val message: String) { | ||
GENERIC_ERROR(8000, "Something went wrong"), | ||
USER_PROFILE_DOES_NOT_EXIST(8001, "The requested User profile does not exist"), | ||
NO_USER_PROFILE_IS_AUTHENTICATED(8002, "There is currently no User Profile authenticated"), | ||
AUTHENTICATOR_NOT_FOUND(8004, "The requested authenticator is not found"), | ||
HTTP_REQUEST_ERROR(8011, "OneWelcome: HTTP Request failed internally"), | ||
ERROR_CODE_HTTP_REQUEST(8013, "OneWelcome: HTTP Request returned an error code. Check Response for more info"), | ||
USER_NOT_AUTHENTICATED_IMPLICITLY(8035, "The requested action requires you to be authenticated implicitly"), | ||
METHOD_ARGUMENT_NOT_FOUND(8036, "The passed argument from Flutter could not be found"), | ||
ARGUMENT_NOT_CORRECT(8036, "The passed argument is not correct"), | ||
GENERIC_ERROR(8000, "Something went wrong"), | ||
NOT_AUTHENTICATED_USER(8040, "There is currently no User Profile authenticated"), | ||
NOT_AUTHENTICATED_IMPLICIT(8041, "The requested action requires you to be authenticated implicitly"), | ||
NOT_FOUND_USER_PROFILE(8042, "The requested User profile is not found"), | ||
NOT_FOUND_AUTHENTICATOR(8043, "The requested authenticator is not found"), | ||
NOT_FOUND_IDENTITY_PROVIDER(8044, "The requested identity provider is not found"), | ||
NOT_FOUND_SECURITY_CONTROLLER(8045, "The requested Security controller class is not found"), // Android only | ||
HTTP_REQUEST_ERROR_INTERNAL(8046, "The resource Request failed internally"), | ||
HTTP_REQUEST_ERROR_CODE(8047, "The resource Request returned an HTTP error code. Check Response for more info"), | ||
ONEWELCOME_SDK_NOT_INITIALIZED(8049, "OneWelcomeSDK is not initialized"), // Android only | ||
INVALID_URL(8050, "The provided url is invalid or incorrect"), | ||
NOT_IN_PROGRESS_CUSTOM_REGISTRATION(8051, "Custom Registration is currently not in progress"), | ||
NOT_IN_PROGRESS_AUTHENTICATION(8052, "Authentication is currently not in progress"), | ||
NOT_IN_PROGRESS_OTP_AUTHENTICATION(8053, "OTP Authentication is currently not in progress"), | ||
NOT_IN_PROGRESS_PIN_CREATION(8054, "Pin Creation is currently not in progress"), | ||
NOT_IN_PROGRESS_FINGERPRINT_AUTHENTICATION(8055, "Fingerprint Authentication is currently not in progress"), | ||
ACTION_NOT_ALLOWED_CUSTOM_REGISTRATION_CANCEL( | ||
8057, | ||
"Canceling the Custom registration right now is not allowed." + | ||
" Registration is not in progress or pin creation has already started" | ||
), | ||
ACTION_NOT_ALLOWED_BROWSER_REGISTRATION_CANCEL( | ||
8058, | ||
"Canceling the Browser registration right now is not allowed." + | ||
" Registration is not in progress or pin creation has already started" | ||
), | ||
CONFIG_ERROR(8059, "Something went wrong while setting the configuration"), // Android only | ||
BIOMETRIC_AUTHENTICATION_NOT_AVAILABLE(8060, "Biometric authentication is not supported on this device"), | ||
|
||
// Errors that only occur on Android | ||
IDENTITY_PROVIDER_NOT_FOUND(8005, "The requested identity provider is not found"), | ||
QR_CODE_HAS_NO_DATA(8006, "QR-code does not have data"), | ||
METHOD_TO_CALL_NOT_FOUND(8007, "Method to call not found"), | ||
URL_CANT_BE_NULL(8008, "Url can not be null"), | ||
MALFORMED_URL(8009, "Incorrect url format"), | ||
PREFERRED_AUTHENTICATOR_ERROR(8010, "Something went wrong when setting the preferred authenticator"), | ||
ONEWELCOME_SDK_NOT_INITIALIZED(8012, "OneWelcomeSDK is not initialized"), | ||
CONFIG_ERROR(8032, "Something went wrong while setting the configuration"), | ||
SECURITY_CONTROLLER_NOT_FOUND(8033, "Security controller class not found"), | ||
REGISTRATION_NOT_IN_PROGRESS(8034, "No registration in progress for the given Identity Provider"), | ||
// Only used for internal testing | ||
UNEXPECTED_ERROR_TYPE(8999, "An unexpected error type was returned"), // Android only | ||
} |
Oops, something went wrong.