Skip to content

Instantly share code, notes, and snippets.

@dac09
Created January 30, 2018 12:39
Show Gist options
  • Save dac09/d81795085b3b26b949304e9344974c58 to your computer and use it in GitHub Desktop.
Save dac09/d81795085b3b26b949304e9344974c58 to your computer and use it in GitHub Desktop.
Bash Case statement for Firebase config
case $CONFIGURATION in
*"Debug"*)
cp -f $SRCROOT/Firebase/staging/GoogleService-Info.plist ${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.app;;
*"Release-Staging"*)
cp -f $SRCROOT/Firebase/staging/GoogleService-Info.plist ${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.app;;
*"Release-Production"*)
cp -f $SRCROOT/Firebase/prod/GoogleService-Info.plist ${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.app;;
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment