Compare commits
No commits in common. "80135a611df7e47e239cf59baef6cef8e8bde815" and "cfcf9e75f8a227c8b2b72390cc6d670ec324ea70" have entirely different histories.
80135a611d
...
cfcf9e75f8
@ -584,6 +584,7 @@ new_version.sh
|
|||||||
.latest_version
|
.latest_version
|
||||||
.vscode/
|
.vscode/
|
||||||
example/
|
example/
|
||||||
|
models/
|
||||||
build/
|
build/
|
||||||
*.iml
|
*.iml
|
||||||
|
|
||||||
|
21
CHANGELOG.md
21
CHANGELOG.md
@ -3,27 +3,6 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
## 2023-05-06
|
|
||||||
|
|
||||||
### Changes
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
Packages with breaking changes:
|
|
||||||
|
|
||||||
- There are no breaking changes in this release.
|
|
||||||
|
|
||||||
Packages with other changes:
|
|
||||||
|
|
||||||
- [`wyatt_authentication_bloc` - `v0.5.0+1`](#wyatt_authentication_bloc---v0501)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
#### `wyatt_authentication_bloc` - `v0.5.0+1`
|
|
||||||
|
|
||||||
- **REFACTOR**(authentication): controle cache checking.
|
|
||||||
|
|
||||||
|
|
||||||
## 2023-05-04
|
## 2023-05-04
|
||||||
|
|
||||||
### Changes
|
### Changes
|
||||||
|
@ -1,7 +1,3 @@
|
|||||||
## 0.5.0+1
|
|
||||||
|
|
||||||
- **REFACTOR**(authentication): controle cache checking.
|
|
||||||
|
|
||||||
## 0.5.0
|
## 0.5.0
|
||||||
|
|
||||||
> Note: This release has breaking changes.
|
> Note: This release has breaking changes.
|
||||||
|
@ -40,7 +40,6 @@ abstract class AuthenticationCubit<Data>
|
|||||||
/// {@macro authentication_cubit}
|
/// {@macro authentication_cubit}
|
||||||
AuthenticationCubit({
|
AuthenticationCubit({
|
||||||
required this.authenticationRepository,
|
required this.authenticationRepository,
|
||||||
this.checkForCachedAccountOnInitialization = true,
|
|
||||||
}) : super(const AuthenticationState.unknown()) {
|
}) : super(const AuthenticationState.unknown()) {
|
||||||
_init();
|
_init();
|
||||||
}
|
}
|
||||||
@ -48,9 +47,6 @@ abstract class AuthenticationCubit<Data>
|
|||||||
/// The authentication repository.
|
/// The authentication repository.
|
||||||
final AuthenticationRepository<Data> authenticationRepository;
|
final AuthenticationRepository<Data> authenticationRepository;
|
||||||
|
|
||||||
/// Automatically check for cached account on initialization.
|
|
||||||
final bool checkForCachedAccountOnInitialization;
|
|
||||||
|
|
||||||
/// The latest session.
|
/// The latest session.
|
||||||
AuthenticationSession<Data>? _latestSession;
|
AuthenticationSession<Data>? _latestSession;
|
||||||
|
|
||||||
@ -60,9 +56,7 @@ abstract class AuthenticationCubit<Data>
|
|||||||
_listenForAuthenticationChanges();
|
_listenForAuthenticationChanges();
|
||||||
|
|
||||||
/// Check if there is a cached account.
|
/// Check if there is a cached account.
|
||||||
if (checkForCachedAccountOnInitialization) {
|
await authenticationRepository.checkForCachedAccount();
|
||||||
await checkForCachedAccount();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void _listenForAuthenticationChanges() {
|
void _listenForAuthenticationChanges() {
|
||||||
@ -154,10 +148,6 @@ abstract class AuthenticationCubit<Data>
|
|||||||
),
|
),
|
||||||
).call();
|
).call();
|
||||||
|
|
||||||
/// Checks for cached account.
|
|
||||||
FutureOr<void> checkForCachedAccount() async =>
|
|
||||||
authenticationRepository.checkForCachedAccount();
|
|
||||||
|
|
||||||
/// Returns latest session.
|
/// Returns latest session.
|
||||||
///
|
///
|
||||||
/// Contains latest event and latest session data (account + extra data)
|
/// Contains latest event and latest session data (account + extra data)
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
name: wyatt_authentication_bloc
|
name: wyatt_authentication_bloc
|
||||||
description: Authentication BLoC for Flutter
|
description: Authentication BLoC for Flutter
|
||||||
repository: https://git.wyatt-studio.fr/Wyatt-FOSS/wyatt-packages/src/branch/master/packages/wyatt_authentication_bloc
|
repository: https://git.wyatt-studio.fr/Wyatt-FOSS/wyatt-packages/src/branch/master/packages/wyatt_authentication_bloc
|
||||||
version: 0.5.0+1
|
version: 0.5.0
|
||||||
|
|
||||||
publish_to: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub
|
publish_to: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user