Skip to content

Dev ‐ Mobile Updates

Spencer Spenst edited this page Jan 7, 2024 · 16 revisions

Here is a reference PR: https://github.com/sspenst/pathology/pull/1014

    <key>EXDefaultScreenOrientationMask</key>
    <string>UIInterfaceOrientationMaskAllButUpsideDown</string>
  • npx expo run:ios to test iOS changes locally
    • If there are issues building, try removing build/* and Pods/* from /ios, and run pod install in /ios
  • npx expo run:android to test Android changes locally
    • Make sure java -version matches Gradle build version
      • Check gradle-wrapper.properties for Gradle version and find the applicable Java version
      • Then set the correct version with export JAVA_HOME=`/usr/libexec/java_home -v 18.0`
    • To fix Could not read /Users/sspenst/Documents/pathology/pathology-react-native/node_modules/expo-modules-core/android/build/downloads/boost_1_76_0.tar.gz:
  • If all is working, create builds with EAS (https://docs.expo.dev/build/setup/)
    • NOTE: comment out google-services.json and GoogleService-Info.plist from .gitignore as these files are required during the build
    • For Android, download the .aab file and submit manually on the Google Play Console
    • For iOS, submit with eas submit -p ios
      • Verify with TestFlight and submit