Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[bare-expo] Add GoogleService-Info.plist to bare-expo (#6934)
* [secrets][template-files] Add GoogleService-Info.plist secrets & templates for bare-expo * [bare-expo] Add optional GoogleService-Info.plist file linking
- Loading branch information
1 parent
f9f841f
commit 83d491c
Showing
9 changed files
with
116 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
11 changes: 11 additions & 0 deletions
11
apps/bare-expo/ios/Build-Phases/cp-bundle-resources-conditionally.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -exo pipefail | ||
|
||
SRC_FILE="${PROJECT_DIR}/BareExpo/GoogleService-Info.plist" | ||
DST_FILE="${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.app/GoogleService-Info.plist" | ||
if [ -f $SRC_FILE ]; then | ||
if [[ $(grep -L "NO_CLIENT_ID" "$SRC_FILE") ]]; then | ||
cp -r "$SRC_FILE" "$DST_FILE" | ||
fi | ||
fi |
12 changes: 12 additions & 0 deletions
12
apps/bare-expo/ios/Build-Phases/generate-dynamic-macros.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -exo pipefail | ||
|
||
if [ -z "$EXPO_TOOLS_DIR" ]; then | ||
EXPO_TOOLS_DIR="${SRCROOT}/../../../tools" | ||
fi | ||
|
||
source ${EXPO_TOOLS_DIR}/source-login-scripts.sh | ||
export PATH="${SRCROOT}/../../../bin:$PATH" | ||
|
||
et ios-generate-dynamic-macros --configuration ${CONFIGURATION} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
{ | ||
"GoogleService-Info.plist": "ios/Exponent/Supporting/" | ||
"GoogleService-Info.plist": "ios/Exponent/Supporting/", | ||
"bare-expo/ios/BareExpo/GoogleService-Info.plist": "apps/" | ||
} |
36 changes: 36 additions & 0 deletions
36
template-files/ios/bare-expo/ios/BareExpo/GoogleService-Info.plist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>CLIENT_ID</key> | ||
<string>${BARE_EXPO_FIREBASE_IOS_CLIENT_ID}</string> | ||
<key>REVERSED_CLIENT_ID</key> | ||
<string>${BARE_EXPO_FIREBASE_IOS_REVERSED_CLIENT_ID}</string> | ||
<key>API_KEY</key> | ||
<string>${BARE_EXPO_FIREBASE_IOS_API_KEY}</string> | ||
<key>GCM_SENDER_ID</key> | ||
<string>${BARE_EXPO_FIREBASE_GCM_SENDER_ID}</string> | ||
<key>PLIST_VERSION</key> | ||
<string>1</string> | ||
<key>BUNDLE_ID</key> | ||
<string>${BARE_EXPO_FIREBASE_IOS_BUNDLE_ID}</string> | ||
<key>PROJECT_ID</key> | ||
<string>${BARE_EXPO_FIREBASE_PROJECT_ID}</string> | ||
<key>STORAGE_BUCKET</key> | ||
<string>${BARE_EXPO_FIREBASE_STORAGE_BUCKET}</string> | ||
<key>IS_ADS_ENABLED</key> | ||
<false></false> | ||
<key>IS_ANALYTICS_ENABLED</key> | ||
<false></false> | ||
<key>IS_APPINVITE_ENABLED</key> | ||
<true></true> | ||
<key>IS_GCM_ENABLED</key> | ||
<true></true> | ||
<key>IS_SIGNIN_ENABLED</key> | ||
<true></true> | ||
<key>GOOGLE_APP_ID</key> | ||
<string>${BARE_EXPO_FIREBASE_IOS_GOOGLE_APP_ID}</string> | ||
<key>FIREBASE_DATABASE_URL</key> | ||
<string>${BARE_EXPO_FIREBASE_DATABASE_URL}</string> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters