-
Notifications
You must be signed in to change notification settings - Fork 248
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
migrate platform interface to null safety
- Loading branch information
Showing
15 changed files
with
89 additions
and
85 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
6 changes: 3 additions & 3 deletions
6
flutter_appauth_platform_interface/lib/src/authorization_parameters.dart
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 @@ | ||
mixin AuthorizationParameters { | ||
/// Hint to the Authorization Server about the login identifier the End-User might use to log in. | ||
String loginHint; | ||
String? loginHint; | ||
|
||
/// List of ASCII string values that specifies whether the Authorization Server prompts the End-User for reauthentication and consent. | ||
List<String> promptValues; | ||
List<String>? promptValues; | ||
|
||
/// Whether to use an ephemeral session that prevents cookies and other browser data being shared with the user's normal browser session. | ||
/// | ||
/// This property is only applicable to iOS versions 13 and above. | ||
bool preferEphemeralSession; | ||
bool? preferEphemeralSession; | ||
} |
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
8 changes: 4 additions & 4 deletions
8
flutter_appauth_platform_interface/lib/src/authorization_response.dart
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,17 +1,17 @@ | ||
/// Contains the response from making an authorization request. | ||
class AuthorizationResponse { | ||
AuthorizationResponse( | ||
const AuthorizationResponse( | ||
this.authorizationCode, | ||
this.codeVerifier, | ||
this.authorizationAdditionalParameters, | ||
); | ||
|
||
/// The authorization code. | ||
final String authorizationCode; | ||
final String? authorizationCode; | ||
|
||
/// The code verifier generated by AppAuth when issue the authorization request. Use this when exchanging the [authorizationCode] for a token. | ||
final String codeVerifier; | ||
final String? codeVerifier; | ||
|
||
/// Additional parameters included in the response. | ||
final Map<String, dynamic> authorizationAdditionalParameters; | ||
final Map<String, dynamic>? authorizationAdditionalParameters; | ||
} |
5 changes: 2 additions & 3 deletions
5
flutter_appauth_platform_interface/lib/src/authorization_service_configuration.dart
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
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
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
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
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 |
---|---|---|
@@ -1,18 +1,18 @@ | ||
name: flutter_appauth_platform_interface | ||
description: A common platform interface for the flutter_appauth plugin. | ||
version: 2.0.0 | ||
version: 3.0.0-nullsafety.0 | ||
homepage: https://github.com/MaikuB/flutter_appauth/tree/master/flutter_appauth_platform_interface | ||
|
||
environment: | ||
sdk: ">=2.6.0 <3.0.0" | ||
sdk: '>=2.12.0-0 <3.0.0' | ||
flutter: ">=1.10.0" | ||
|
||
dependencies: | ||
flutter: | ||
sdk: flutter | ||
plugin_platform_interface: ^1.0.2 | ||
plugin_platform_interface: ^2.0.0 | ||
|
||
dev_dependencies: | ||
flutter_test: | ||
sdk: flutter | ||
mockito: ^4.1.1 | ||
mockito: ^5.0.0-nullsafety.7 |
Oops, something went wrong.