-
Notifications
You must be signed in to change notification settings - Fork 2
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 #24 from onero/development
Release 5
- Loading branch information
Showing
114 changed files
with
1,058 additions
and
481 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file not shown.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
43 changes: 43 additions & 0 deletions
43
app/src/main/java/dk/adamino/rehabilitation/BLL/FirebaseFacade.java
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,43 @@ | ||
package dk.adamino.rehabilitation.BLL; | ||
|
||
import dk.adamino.rehabilitation.DAL.FirebaseAuthenticate; | ||
import dk.adamino.rehabilitation.DAL.FirestoreDAO; | ||
|
||
/** | ||
* Created by Adamino. | ||
*/ | ||
public class FirebaseFacade { | ||
|
||
private static FirebaseFacade sInstance; | ||
|
||
public static FirebaseFacade getInstance() { | ||
if (sInstance == null) { | ||
sInstance = new FirebaseFacade(); | ||
} | ||
return sInstance; | ||
} | ||
|
||
/** | ||
* Return the FirestoreDAO | ||
* @return | ||
*/ | ||
public FirestoreDAO getFirestoreDAO() { | ||
return FirestoreDAO.getInstance(); | ||
} | ||
|
||
/** | ||
* Return the FirebaseAuthenticate | ||
* @return | ||
*/ | ||
public FirebaseAuthenticate getFirebaseAuthenticate() { | ||
return FirebaseAuthenticate.getInstance(); | ||
} | ||
|
||
/** | ||
* Remove subscriptions from Firestore! | ||
*/ | ||
public void unsubscribeFromFirestore() { | ||
FirestoreDAO.getInstance().removeAllListeners(); | ||
} | ||
|
||
} |
27 changes: 27 additions & 0 deletions
27
app/src/main/java/dk/adamino/rehabilitation/BLL/LoginManager.java
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,27 @@ | ||
package dk.adamino.rehabilitation.BLL; | ||
|
||
/** | ||
* Created by Adamino. | ||
*/ | ||
public class LoginManager { | ||
|
||
/** | ||
* Check provided email validity | ||
* | ||
* @param email | ||
* @return | ||
*/ | ||
public boolean isEmailValid(String email) { | ||
return email.matches("^\\w+([\\.-]?\\w+)*@\\w+([\\.-]?\\w+)*(\\.\\w{2,63})+$"); | ||
} | ||
|
||
/** | ||
* Check password validity | ||
* | ||
* @param password | ||
* @return | ||
*/ | ||
public boolean isPasswordValid(String password) { | ||
return password.length() >= 5; | ||
} | ||
} |
Oops, something went wrong.