mirror of
https://github.com/hmalik144/Driver.git
synced 2026-03-17 23:16:00 +00:00
- update FirebaseTest.kt local host
Took 9 minutes
This commit is contained in:
@@ -53,7 +53,6 @@ jobs:
|
||||
post-emulator-launch-assemble-command: ./gradlew assembleDriverDebugAndroidTest
|
||||
test-command: ./gradlew connectedDriverDebugAndroidTest
|
||||
system-image: system-images;android-25;google_apis;x86
|
||||
run-logcat: true
|
||||
no-snapshot: false
|
||||
# And finally run the release build
|
||||
# - run:
|
||||
|
||||
@@ -61,11 +61,16 @@ open class FirebaseTest<T : BaseActivity<*>>(
|
||||
|
||||
// remove the user we created for testing
|
||||
suspend fun removeUser() {
|
||||
getEmail()?.let {
|
||||
if (firebaseAuthSource.getUser() == null) firebaseAuthSource.signIn(email = it, password = USER_PASSWORD).await()
|
||||
firebaseAuthSource.reauthenticate(it, USER_PASSWORD).await()
|
||||
firebaseAuthSource.deleteProfile().await()
|
||||
try {
|
||||
getEmail()?.let {
|
||||
if (firebaseAuthSource.getUser() == null) firebaseAuthSource.signIn(email = it, password = USER_PASSWORD).await()
|
||||
firebaseAuthSource.reauthenticate(it, USER_PASSWORD).await()
|
||||
firebaseAuthSource.deleteProfile().await()
|
||||
}
|
||||
} catch (e: Exception) {
|
||||
e.printStackTrace()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
fun generateEmailAddress(): String {
|
||||
|
||||
Reference in New Issue
Block a user