Skip to content

Instantly share code, notes, and snippets.

@heberth2788
Last active April 3, 2025 17:22
Show Gist options
  • Save heberth2788/8a438b2622384ba555d9772114d30e39 to your computer and use it in GitHub Desktop.
Save heberth2788/8a438b2622384ba555d9772114d30e39 to your computer and use it in GitHub Desktop.
Example of Kotlin class with configuration for Firebase emulators
/**
* Static constants to give support to emulator connection
* */
class FirebaseEmulatorConfig {
companion object {
/**
* Local IP(WLAN connection) of the dev computer
* This computer have to run the firebase emulators.
* */
const val HOST_FB_EMULATOR = "192.168.1.38"
const val PORT_FB_DATABASE_EMULATOR = 9000
const val PORT_FB_STORAGE_EMULATOR = 9199
const val PORT_FB_AUTH_EMULATOR = 9099
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment