Fakultas Ilmu Komputer UI

Skip to content

Add get env helper

Ahmad Izzudin Alifyandra requested to merge add-get-env-helper into master

Background:

Add helper to differentiate firestore fetches between dev, staging, and prod environment.

Example: If in env var env="dev" then firestore().collection('ecosystems_'+getEnv()).get() will fetch from ecosystems_dev firestore collection.

Tested on:

  • iOS
  • Android
Edited by Ahmad Izzudin Alifyandra

Merge request reports