Skip to content

Commit

Permalink
improve(mobile): build 1.0.0+16
Browse files Browse the repository at this point in the history
  • Loading branch information
thaidmfinnick committed Jan 2, 2025
1 parent 1a0edba commit 62933d9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ class AuthenticationBloc extends Bloc<AuthenticationEvent, AuthenticationState>
on<LogoutRequest>(_onLogoutRequest);
on<AutoLogin>(_onAutoLogin);
on<UpdateInfo>(_onUpdateInfo);
on<DeleteAccount>(_onDeleteAccount);
}

Future<void> _onAuthSubscription(AuthSubscription event, Emitter emit) async {
Expand Down Expand Up @@ -61,6 +62,10 @@ class AuthenticationBloc extends Bloc<AuthenticationEvent, AuthenticationState>
}
}

void _onDeleteAccount(DeleteAccount event, Emitter emit) {
AuthRepository.deleteAccount();
}

Future<void> _onUpdateInfo(UpdateInfo event, Emitter emit) async {
try {
emit(state.copyWith(status: AuthenticationStatus.authorized, user: event.user));
Expand Down
2 changes: 1 addition & 1 deletion mobile/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: "WazNet (Waste zero, Net zero) is a mobile app that helps users tra
# The following line prevents the package from being accidentally published to
# pub.dev using `flutter pub publish`. This is preferred for private packages.
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 1.0.0+1
version: 1.0.0+16

environment:
sdk: ^3.5.3
Expand Down

0 comments on commit 62933d9

Please sign in to comment.