- What is git and it's application
- Git bash installation for windows
- A brief on open source
- Basic git commands
- Git init
- Git push and pull
- Git clone
- Git status
- Git remote add origin
This file contains hidden or 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
| mAuth.signInWithEmailAndPassword(email, password) | |
| .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() { | |
| @Override | |
| public void onComplete(@NonNull Task<AuthResult> task) { | |
| if (task.isSuccessful()) { | |
| // Sign in success, update UI with the signed-in user's information | |
| Log.d(TAG, "signInWithEmail:success"); | |
| FirebaseUser user = mAuth.getCurrentUser(); | |
| updateUI(user); | |
| } else { |
This file contains hidden or 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
| @Override | |
| public void onStart() { | |
| super.onStart(); | |
| // Check if user is signed in (non-null) and update UI accordingly. | |
| FirebaseUser currentUser = mAuth.getCurrentUser(); | |
| updateUI(currentUser); | |
| } |
This file contains hidden or 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
| mAuth.createUserWithEmailAndPassword(email, password) | |
| .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() { | |
| @Override | |
| public void onComplete(@NonNull Task<AuthResult> task) { | |
| if (task.isSuccessful()) { | |
| // Sign in success, update UI with the signed-in user's information | |
| Log.d(TAG, "createUserWithEmail:success"); | |
| FirebaseUser user = mAuth.getCurrentUser(); | |
| updateUI(user); | |
| } else { |
This file contains hidden or 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
| private FirebaseAuth mAuth; | |
| // ... | |
| // Initialize Firebase Auth | |
| mAuth = FirebaseAuth.getInstance(); |
This file contains hidden or 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
| dependencies { | |
| implementation 'com.google.firebase:firebase-auth:19.1.0' | |
| implementation 'com.google.firebase:firebase-firestore:21.1.1' | |
| } | |
| apply plugin: 'com.google.gms.google-services' |
This file contains hidden or 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
| buildscript { | |
| repositories { | |
| // Check that you have the following line (if not, add it): | |
| google() // Google's Maven repository | |
| } | |
| dependencies { |
NewerOlder