mirror of
https://github.com/hmalik144/Driver.git
synced 2026-03-18 07:26:03 +00:00
- Local host update
Took 37 minutes
This commit is contained in:
@@ -27,6 +27,9 @@ android {
|
||||
versionCode 6
|
||||
versionName "1.6"
|
||||
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
|
||||
|
||||
boolean state = project.rootProject.file('local.properties').canRead()
|
||||
buildConfigField "boolean", "LocalState", "$state"
|
||||
}
|
||||
|
||||
android {
|
||||
|
||||
@@ -27,9 +27,11 @@ open class FirebaseTest<T : BaseActivity<*>>(
|
||||
@JvmStatic
|
||||
@BeforeClass
|
||||
fun setupFirebase() {
|
||||
FirebaseAuth.getInstance().useEmulator("10.0.2.2", 9099)
|
||||
FirebaseDatabase.getInstance().useEmulator("10.0.2.2", 9000)
|
||||
FirebaseStorage.getInstance().useEmulator("10.0.2.2", 9199)
|
||||
val localHost = if (BuildConfig.LocalState) "10.0.2.2" else "127.0.0.1"
|
||||
|
||||
FirebaseAuth.getInstance().useEmulator(localHost, 9099)
|
||||
FirebaseDatabase.getInstance().useEmulator(localHost, 9000)
|
||||
FirebaseStorage.getInstance().useEmulator(localHost, 9199)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user