No issue: Add is Test Lab helper
This commit is contained in:
parent
38eec4f5c4
commit
a719d3f764
|
@ -15,6 +15,7 @@ import android.graphics.Canvas
|
|||
import android.graphics.Color
|
||||
import android.net.Uri
|
||||
import android.os.Build
|
||||
import android.provider.Settings
|
||||
import android.view.View
|
||||
import androidx.browser.customtabs.CustomTabsIntent
|
||||
import androidx.test.espresso.Espresso
|
||||
|
@ -318,6 +319,10 @@ object TestHelper {
|
|||
}
|
||||
}
|
||||
|
||||
fun isTestLab(): Boolean {
|
||||
return Settings.System.getString(appContext.contentResolver, "firebase.test.lab").toBoolean()
|
||||
}
|
||||
|
||||
private val charPool: List<Char> = ('a'..'z') + ('A'..'Z') + ('0'..'9')
|
||||
fun generateRandomString(stringLength: Int) =
|
||||
(1..stringLength)
|
||||
|
|
Loading…
Reference in New Issue