Files
iNaturalistReactNative/env.example
Ryan Stelly e6f56bb644 MOB-1723 runtime environment switcher (#3987)
* spike: runtime environment swap

* rename env to override, remove signout chagnes, introduce banner instead of alert

* move environment switcher to new file

* add test mocks

* align mmkv key

* admin guard

* add env override to e2e mock

* remove google auth from env switcher concerns
2026-09-03 10:07:25 -05:00

55 lines
2.3 KiB
Plaintext

# Base URL for the iNat API
API_URL=https://api.inaturalist.org/v2
# Base URL for the iNat API used for OAUTH
OAUTH_API_URL=https://www.inaturalist.org
# Javascript Web Token for anonymous access to protected iNat API endpoints
JWT_ANONYMOUS_API_SECRET=some-secret
# iNaturalist OAuth client credentials (https://www.inaturalist.org/oauth/applications)
OAUTH_CLIENT_ID=your-client-id
OAUTH_CLIENT_SECRET=your-client-secret
# Additional environments can be baked into the same build by prefixing the
# vars above with the environment's name, e.g. for STAGING:
# STAGING_API_URL=https://staging-api.inaturalist.org/v2
# STAGING_OAUTH_API_URL=https://staging.inaturalist.org
# STAGING_JWT_ANONYMOUS_API_SECRET=some-staging-secret
# STAGING_OAUTH_CLIENT_ID=your-staging-client-id
# STAGING_OAUTH_CLIENT_SECRET=your-staging-client-secret
# The prefix must also be added to `ENVIRONMENTS` in
# src/sharedHelpers/envConfig.ts to be selectable from the Developer screen.
# Only vars read via JS `Config.*` can be switched this way -- GMAPS_API_KEY
# and Firebase's GoogleService-Info.plist/google-services.json are baked
# into native config and can't be switched without a rebuild.
# Credentials to log in a user for e2e testing
E2E_TEST_USERNAME=test-username
E2E_TEST_PASSWORD=test-password
GMAPS_API_KEY=some-key
# Model file names for Android and iOS. See the README for instructions on
# where to put these files. Note that in iOS, we have an additional build
# phase in xcode to hard link these files using file names xcode knows about,
# so we don't have to add these files to xcode in addition to declaring them
# here.
ANDROID_MODEL_FILE_NAME=INatVision_Small_2_fact256_8bit.tflite
ANDROID_TAXONOMY_FILE_NAME=taxonomy.csv
ANDROID_GEOMODEL_FILE_NAME=INatGeomodel_Small_2_8bit.tflite
IOS_MODEL_FILE_NAME=INatVision_Small_2_fact256_8bit.mlmodel
IOS_TAXONOMY_FILE_NAME=taxonomy.json
IOS_GEOMODEL_FILE_NAME=INatGeomodel_Small_2_8bit.mlmodel
CV_MODEL_VERSION=small_2
# Fastlane
IOS_PROVISIONING_PROFILE_NAME="provisioning profile name"
IOS_SHARE_BUNDLE_ID="share bundle ID"
IOS_SHARE_PROVISIONING_PROFILE_NAME="share provisioning profile name"
SLACK_URL="Slack webhook URL"
# Third-party Sign in
GOOGLE_WEB_CLIENT_ID=your-google-web-client-id
GOOGLE_IOS_CLIENT_ID=your-google-ios-client-id