Skip to content

Commit

Permalink
3.1.0 Introduced the setters, listener and listen.
Browse files Browse the repository at this point in the history
  • Loading branch information
Drawner committed Aug 9, 2019
1 parent fab7e97 commit 14dcd70
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 3.1.0
- void return type in some functions.
- Introduced the setters, listener and listen.

## 3.0.0
August 06, 2019
- Removed parameters onError, onDone(), and cancelOnError from the Constructor
Expand Down
8 changes: 6 additions & 2 deletions lib/auth.dart
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,11 @@ class Auth {
_firebaseRunning = false;
}

fireBaseListener(FireBaseListener f) => _fireBaseListeners.add(f);
void fireBaseListener(FireBaseListener f) => _fireBaseListeners.add(f);

removeListener(FireBaseListener f) => _fireBaseListeners.remove(f);
set listener(FireBaseListener f) => _fireBaseListeners.add(f);

void removeListener(FireBaseListener f) => _fireBaseListeners.remove(f);

Set<GoogleListener> _googleListeners = Set();
bool _googleRunning = false;
Expand Down Expand Up @@ -216,6 +218,8 @@ class Auth {

void googleListener(GoogleListener f) => _googleListeners.add(f);

set listen(FireBaseListener f) => _fireBaseListeners.add(f);

void removeListen(GoogleListener f) => _googleListeners.remove(f);

Future<bool> alreadyLoggedIn([GoogleSignInAccount googleUser]) async {
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: auth
description: Authorization Library Package to log into Google, Facebook, or by Username and Password.
version: 3.0.0
version: 3.1.0
author: Greg Perry <[email protected]>
homepage: https://github.com/AndriousSolutions/auth
repository: https://github.com/AndriousSolutions/auth
Expand Down

0 comments on commit 14dcd70

Please sign in to comment.