-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8871 from Expensify/OSBotify-cherry-pick-staging-…
…8827 🍒 Cherry pick PR #8827 to staging 🍒
- Loading branch information
Showing
153 changed files
with
3,305 additions
and
1,777 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
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,6 +1,19 @@ | ||
export default { | ||
const defaultState = { | ||
type: 'cellular', | ||
isConnected: true, | ||
isInternetReachable: true, | ||
details: { | ||
isConnectionExpensive: true, | ||
cellularGeneration: '3g', | ||
}, | ||
}; | ||
|
||
const RNCNetInfoMock = { | ||
configure: () => {}, | ||
fetch: () => {}, | ||
addEventListener: () => {}, | ||
fetch: () => Promise.resolve(defaultState), | ||
refresh: () => Promise.resolve(defaultState), | ||
addEventListener: () => (() => {}), | ||
useNetInfo: () => {}, | ||
}; | ||
|
||
export default RNCNetInfoMock; |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/bash | ||
# a script that sets Pusher room suffix (for internal usage) | ||
|
||
# config file to be parsed for the suffix (relative to current project root) | ||
CONFIG_FILE="../Web-Expensify/_config.local.php" | ||
|
||
# use the suffix only when the config file can be found | ||
if [ -f "$CONFIG_FILE" ]; then | ||
echo "Using PUSHER_DEV_SUFFIX from $CONFIG_FILE" | ||
|
||
PATTERN="PUSHER_DEV_SUFFIX.*'(.+)'" | ||
while read -r line; do | ||
if [[ $line =~ $PATTERN ]]; then | ||
PUSHER_DEV_SUFFIX=${BASH_REMATCH[1]} | ||
echo "Found suffix: $PUSHER_DEV_SUFFIX" | ||
echo "Updating .env" | ||
|
||
# delete any old suffix value and append the new one | ||
sed -i '' '/^PUSHER_DEV_SUFFIX/d' '.env' || true | ||
# a dash '-' is prepended to separate the suffix from trailing channel IDs (accountID, reportID, etc). | ||
echo "PUSHER_DEV_SUFFIX=-${PUSHER_DEV_SUFFIX}" >> .env | ||
fi | ||
done < "$CONFIG_FILE" | ||
fi |
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
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
Oops, something went wrong.