Skip to content

Commit

Permalink
Upgrade to Expo48 (#413)
Browse files Browse the repository at this point in the history
  • Loading branch information
keith-kurak authored Mar 20, 2023
1 parent 569ba96 commit bd68019
Show file tree
Hide file tree
Showing 100 changed files with 916 additions and 1,588 deletions.
8 changes: 4 additions & 4 deletions blank/package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"dependencies": {
"expo": "^47.0.0",
"react": "18.1.0",
"react-dom": "18.1.0",
"react-native": "0.70.5",
"expo": "^48.0.7",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-native": "0.71.3",
"react-native-web": "~0.18.7"
},
"devDependencies": {
Expand Down
28 changes: 14 additions & 14 deletions navigation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,21 @@
"@react-navigation/bottom-tabs": "^6.4.0",
"@react-navigation/native": "^6.0.13",
"@react-navigation/stack": "^6.3.4",
"expo": "^47.0.0",
"expo-asset": "~8.6.2",
"expo-constants": "~14.0.2",
"expo-font": "~11.0.1",
"expo-linking": "~3.2.3",
"expo-splash-screen": "~0.17.4",
"expo": "^48.0.7",
"expo-asset": "~8.9.1",
"expo-constants": "~14.2.1",
"expo-font": "~11.1.1",
"expo-linking": "~4.0.1",
"expo-splash-screen": "~0.18.1",
"expo-status-bar": "~1.4.2",
"expo-web-browser": "~12.0.0",
"react": "18.1.0",
"react-dom": "18.1.0",
"react-native": "0.70.5",
"react-native-gesture-handler": "~2.8.0",
"react-native-reanimated": "~2.12.0",
"react-native-safe-area-context": "4.4.1",
"react-native-screens": "~3.18.0",
"expo-web-browser": "~12.1.1",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-native": "0.71.3",
"react-native-gesture-handler": "~2.9.0",
"react-native-reanimated": "~2.14.4",
"react-native-safe-area-context": "4.5.0",
"react-native-screens": "~3.20.0",
"react-native-web": "~0.18.7"
},
"devDependencies": {
Expand Down
8 changes: 4 additions & 4 deletions upgrade-dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
if [ "$1" == "" ] || [ "$1" == "--help" ]; then
echo "Available flags:"
echo "--help"
echo "--run-expo-upgrade - run yarn and expo-cli upgrade to update to latest SDK on all examples"
echo "--run-expo-upgrade - run yarn to add latest Expo and npx expo install --fix upgrade to update to latest SDK on all examples"
echo "--run-fix-dependencies - run npx expo install --fix on all repos"
exit 0
fi

if [ "$1" == "--run-expo-upgrade" ]; then
echo "Upgrading all projects to the latest SDK..."
echo "For each example, this will run `yarn` and then run `expo-cli upgrade`, accepting all defaults."
echo "For each example, this will run `yarn` to add latest Expo and then run `npx expo install --fix`, accepting all defaults."
echo "Upgrade logs will be written to .sdk-upgrade-logs."

mkdir ./.sdk-upgrade-logs
Expand All @@ -20,14 +20,14 @@ if [ "$1" == "--run-expo-upgrade" ]; then
echo "• Run yarn"
(cd $DIRNAME && yarn --silent) # If yarn fails spectacularly, we'll see evidence in the logs for expo upgrade
echo "• Run expo upgrade"
(cd $DIRNAME && echo y | expo-cli upgrade > ../.sdk-upgrade-logs/$DIRNAME.txt)
(cd $DIRNAME && yarn add expo@latest && npx expo install --fix > ../.sdk-upgrade-logs/$DIRNAME.txt)
done

# yarn workspaces has example(s) inside of app folder
echo "• Run expo upgrade on apps inside with-yarn-workspaces"
mkdir ./.sdk-upgrade-logs/with-yarn-workspaces
for d in with-yarn-workspaces/apps/*/ ; do
(cd $DIRNAME && echo y | expo-cli upgrade > ../.sdk-upgrade-logs/$DIRNAME.txt)
(cd $DIRNAME && yarn add expo@latest && npx expo install --fix > ../.sdk-upgrade-logs/with-yarn-workspaces/$DIRNAME.txt)
done

echo "Upgrades complete! Check .sdk-upgrade-logs for results. Be sure to correct any errors or warnings."
Expand Down
8 changes: 4 additions & 4 deletions with-apollo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
"@apollo/client": "^3.4.16",
"@apollo/link-context": "^2.0.0-beta.3",
"@react-native-picker/picker": "2.4.8",
"expo": "^47.0.0",
"expo": "^48.0.7",
"graphql": "^15.0.0",
"react": "18.1.0",
"react-dom": "18.1.0",
"react-native": "0.70.5",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-native": "0.71.3",
"react-native-web": "~0.18.7"
},
"devDependencies": {
Expand Down
12 changes: 6 additions & 6 deletions with-auth0/package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"dependencies": {
"expo": "^47.0.0",
"expo-auth-session": "~3.7.2",
"expo-random": "~13.0.0",
"expo": "^48.0.7",
"expo-auth-session": "~4.0.3",
"expo-random": "~13.1.1",
"jwt-decode": "2.2.0",
"react": "18.1.0",
"react-dom": "18.1.0",
"react-native": "0.70.5",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-native": "0.71.3",
"react-native-web": "~0.18.7"
},
"devDependencies": {
Expand Down
18 changes: 9 additions & 9 deletions with-aws-storage-upload/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
"@aws-amplify/auth": "^4.3.11",
"@aws-amplify/core": "^4.3.3",
"@aws-amplify/storage": "^4.4.4",
"@react-native-async-storage/async-storage": "~1.17.3",
"@react-native-community/netinfo": "9.3.5",
"@react-native-async-storage/async-storage": "1.17.11",
"@react-native-community/netinfo": "9.3.7",
"aws-amplify": "^4.3.3",
"expo": "^47.0.0",
"expo-clipboard": "~4.0.1",
"expo-constants": "~14.0.2",
"expo-image-picker": "~14.0.1",
"react": "18.1.0",
"react-dom": "18.1.0",
"react-native": "0.70.5",
"expo": "^48.0.7",
"expo-clipboard": "~4.1.2",
"expo-constants": "~14.2.1",
"expo-image-picker": "~14.1.1",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-native": "0.71.3",
"react-native-web": "~0.18.7"
},
"devDependencies": {
Expand Down
10 changes: 5 additions & 5 deletions with-camera/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"dependencies": {
"expo": "^47.0.0",
"expo-camera": "~13.0.0",
"react": "18.1.0",
"react-dom": "18.1.0",
"react-native": "0.70.5",
"expo": "^48.0.7",
"expo-camera": "~13.2.1",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-native": "0.71.3",
"react-native-web": "~0.18.7"
},
"devDependencies": {
Expand Down
12 changes: 6 additions & 6 deletions with-custom-font/package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"dependencies": {
"expo": "^47.0.0",
"expo-font": "~11.0.1",
"expo-splash-screen": "~0.17.4",
"react": "18.1.0",
"react-dom": "18.1.0",
"react-native": "0.70.5",
"expo": "^48.0.7",
"expo-font": "~11.1.1",
"expo-splash-screen": "~0.18.1",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-native": "0.71.3",
"react-native-web": "~0.18.7"
},
"devDependencies": {
Expand Down
6 changes: 0 additions & 6 deletions with-dev-client/android/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,5 @@ local.properties
*.iml
*.hprof

# BUCK
buck-out/
\.buckd/
*.keystore
!debug.keystore

# Bundle artifacts
*.jsbundle
55 changes: 0 additions & 55 deletions with-dev-client/android/app/BUCK

This file was deleted.

Loading

0 comments on commit bd68019

Please sign in to comment.