Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade expo version to latest & fix upgrade related issue #160

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

bhishaksanyal
Copy link

@bhishaksanyal bhishaksanyal commented Jun 30, 2023

Description

✅ The following packages were updated:
expo-analytics-amplitude, expo-asset, expo-av, expo-blur, expo-constants, expo-file-system, expo-font, expo-linking, expo-navigation-bar, expo-splash-screen, expo-status-bar, expo-system-ui, expo-tracking-transparency, @expo/vector-icons, expo-web-browser, react, react-dom, react-native, @react-native-async-storage/async-storage, react-native-gesture-handler, react-native-get-random-values, react-native-reanimated, react-native-safe-area-context, react-native-screens, react-native-web, jest-expo, jest, typescript, @babel/core, @types/react, expo

🚨 The following packages were not updated. You should check the READMEs for those repositories to determine what version is compatible with your new set of packages:
@react-native-community/masked-view, @react-navigation/bottom-tabs, @react-navigation/native, @react-navigation/stack, @reduxjs/toolkit, dayjs, expo-analytics, patch-package, postinstall-postinstall, react-native-calendars, react-native-paper, react-redux, redux-persist, uuid, @react-native-community/eslint-config, @testing-library/react-native, @types/jest, @types/react-native, @types/react-native-calendars, @types/uuid, cypress, cz-conventional-changelog, eslint, eslint-plugin-cypress, eslint-plugin-prettier, eslint-plugin-react, eslint-plugin-react-native, expo-cli, husky, lint-staged

Please refer to the release notes for information on any further required steps to update and information about breaking changes:
https://blog.expo.dev/expo-sdk-48-ccb8302e231

In addition to the most recent release notes, you should go over the breaking changes from skipped releases:

Ticket Link

#157

How has this been tested?

I have tested the app by running it in an Android simulator and Android 11 device. I am not sure of all the features offered by the app, so one sanity check required from the reviewer.

Screenshots

Verified in Android device -

23-07-02-19-57-11_ACFmuMeH.mp4

Verified in a simulator -

device-2023-07-02-190258_hLfudhtw.mp4

Checklist

  • Added a "Closes [issue number]" in the ticket link section
  • You have not changed whitespace unnecessarily (it makes diffs hard to read)
  • You have commented your code, particularly in hard-to-understand areas
  • You have performed a self-review of your own code
  • UI changes: include screenshots of all affected screens

@netlify
Copy link

netlify bot commented Jun 30, 2023

Deploy Preview for webheylinda ready!

Name Link
🔨 Latest commit d8b49ae
🔍 Latest deploy log https://app.netlify.com/sites/webheylinda/deploys/64aad81e86194d0008e47bf9
😎 Deploy Preview https://deploy-preview-160--webheylinda.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@bhishaksanyal bhishaksanyal marked this pull request as ready for review July 2, 2023 14:54
@bhishaksanyal
Copy link
Author

@watadarkstar Kindly review and let me know if you feel any changes required.

@watadarkstar watadarkstar self-requested a review July 3, 2023 17:13
Copy link
Collaborator

@watadarkstar watadarkstar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! However, we shouldn't commit the android/ folder can you please add these lines into the .gitignore and un-commit all the files that were committed to the android folder.

We should have this in the .gitignore:

# Android/IntelliJ
#
build/
.idea
.gradle
local.properties
*.iml
*.hprof
.cxx/
android/

@bhishaksanyal
Copy link
Author

Looks good! However, we shouldn't commit the android/ folder can you please add these lines into the .gitignore and un-commit all the files that were committed to the android folder.

We should have this in the .gitignore:

# Android/IntelliJ
#
build/
.idea
.gradle
local.properties
*.iml
*.hprof
.cxx/
android/

Updated

@watadarkstar watadarkstar self-requested a review July 4, 2023 16:10
Copy link
Collaborator

@watadarkstar watadarkstar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are a few issues:

  1. We need to fix the types. I tried to fix them myself but need to look into it more. See:
    https://reactnavigation.org/docs/typescript/

Run yarn typecheck to see the issues after running a yarn install

  1. Running yarn ios fails with the following error:
✔ Installed JavaScript dependencies 1059ms
✖ Config sync failed
Cannot read properties of undefined (reading 'withBitcode')
TypeError: Cannot read properties of undefined (reading 'withBitcode')
    at withIosExpoPlugins (/Users/adriancaroll/workspace/github/heylinda/heylinda-app/node_modules/expo-cli/node_modules/@expo/prebuild-config/src/plugins/withDefaultPlugins.ts:58:5)
    at getPrebuildConfig (/Users/adriancaroll/workspace/github/heylinda/heylinda-app/node_modules/expo-cli/node_modules/@expo/prebuild-config/src/getPrebuildConfig.ts:51:14)
    at configureManagedProjectAsync (/Users/adriancaroll/workspace/github/heylinda/heylinda-app/node_modules/expo-cli/src/commands/eject/configureProjectAsync.ts:54:25)
    at prebuildAsync (/Users/adriancaroll/workspace/github/heylinda/heylinda-app/node_modules/expo-cli/src/commands/eject/prebuildAsync.ts:90:21)
    at actionAsync (/Users/adriancaroll/workspace/github/heylinda/heylinda-app/node_modules/expo-cli/src/commands/run/ios/runIos.ts:45:5)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

There is something missing probably in this file:
https://docs.expo.dev/workflow/configuration/

@bhishaksanyal
Copy link
Author

bhishaksanyal commented Jul 9, 2023

There are a few issues:

  1. We need to fix the types. I tried to fix them myself but need to look into it more. See:
    https://reactnavigation.org/docs/typescript/

Run yarn typecheck to see the issues after running a yarn install

  1. Running yarn ios fails with the following error:
✔ Installed JavaScript dependencies 1059ms
✖ Config sync failed
Cannot read properties of undefined (reading 'withBitcode')
TypeError: Cannot read properties of undefined (reading 'withBitcode')
    at withIosExpoPlugins (/Users/adriancaroll/workspace/github/heylinda/heylinda-app/node_modules/expo-cli/node_modules/@expo/prebuild-config/src/plugins/withDefaultPlugins.ts:58:5)
    at getPrebuildConfig (/Users/adriancaroll/workspace/github/heylinda/heylinda-app/node_modules/expo-cli/node_modules/@expo/prebuild-config/src/getPrebuildConfig.ts:51:14)
    at configureManagedProjectAsync (/Users/adriancaroll/workspace/github/heylinda/heylinda-app/node_modules/expo-cli/src/commands/eject/configureProjectAsync.ts:54:25)
    at prebuildAsync (/Users/adriancaroll/workspace/github/heylinda/heylinda-app/node_modules/expo-cli/src/commands/eject/prebuildAsync.ts:90:21)
    at actionAsync (/Users/adriancaroll/workspace/github/heylinda/heylinda-app/node_modules/expo-cli/src/commands/run/ios/runIos.ts:45:5)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

There is something missing probably in this file: https://docs.expo.dev/workflow/configuration/

@watadarkstar Fixed and verified locally. Kindly let me know if there is anything else.

ios_build_check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants