This is the page for the entire mobile team, including mobile frontend and mobile backend.
First take a look at the onboarding subpage.
Getting Started
In order to run the mobile app locally, follow the steps below:
- Install Xcode from App Store
- Install Flutter
- Use the response from ``flutter doctor`` to guide you through any other necessary installations (e.g., Android Studio, Chrome, CocoaPods, etc.)
- If you encounter the "Bad CPU type in executable" error with ``flutter doctor``, maybe this would help
- If you have trouble installing Cocoapods with ruby, try installing with ```brew install cocoapods```
- Pull the repo
Once ``flutter doctor`` yields no error, proceed with the following steps in https://flutter.dev/docs/get-started/editor to build and run the app
- You need to be in the ``dev-mobile`` directory in order to run ``flutter run``
- If you get a BUILD FAILED error of "No file or variants found for asset: assets/mobile_secrets.json", you need to create such json file. The contents of this json file can be found in the DIAPER Confidential box (ask Liz for access) under "mobile secrets".
Uploading to TestFlight
You will first need to open the workspace (frontend-mobile/dev-mobile/ios/Runner.xcworkspace) in Xcode.
Here are two very helpful and detailed guides.
- From flutter
- This Medium post has some more screenshots that you may find useful to refer to
You may find them confusing, and indeed not all sections in the tutorials are relevant. The only necessary steps are:
- Modify the project settings
- Execute each step under the section "Submit App to TestFlight for the First time" in the Medium post.
Once the app has been uploaded, go to App Store Connect and log in, you can find the new build (may take a while after uploading from Xcode) as in the screenshot.