This repository implements the Robinhood API to provide an options focused Android and iOS mobile app using the Flutter SDK.
See our docs for use cases and application requirements.
- Investing Mobile | Apple App Store: TestFlight only, production release coming soon.
- Investing Mobile | Google Play Store: Internal testing only, production release coming soon.
In order to build and debug locally, you must install the following dependencies:
- Android Studio (includes SDK Manager)
- VS Code
- Flutter SDK (includes Dart SDK)
- Dart & Flutter VS Code extensions
To ensure your installation was successful, run this command:
flutter doctor -v
Once you see a "No issues found!" message, you are ready to start running the application.
In VS Code, F5
key, the Run
icon, or from the Run
menu to start debugging.
If prompted choose the Flutter
configuration.
- Enable USB debugging on your Android device.
- Plug in your device.
- Open the command palette (
Ctrl+Shift+P
) and enterFlutter: Select Device
Or
Navigate to the project directory and run the flutter command.flutter run
- On device, open Settings > System > Developer options.
- Enable USB debugging & Wireless debugging.
- Connect device to computer over USB. Accept pairing notification on device.
- Open Android Studio > Tools > Device Manager and pair device.
- Run these commands to connect wirelessly:
$ ${HOME}/AppData/Local/Android/Sdk/platform-tools/adb tcpip 5555 restarting in TCP mode port: 5555 $ ${HOME}/AppData/Local/Android/Sdk/platform-tools/adb connect 192.168.86.36 connected to 192.168.86.36:5555
- Unplug device and start debugging.
- Enable developer on your iOS device.
- Open
Devices and Simulators
window in XCode and ensure that your device is paired and connected. - Open the command palette (
Ctrl+Shift+P
) and enterFlutter: Select Device
Or
Navigate to the project directory and run the flutter command.flutter run --release
Debugging Notes
- For error
Exception: Error running pod install
, run the following commands:rm -rf ./ios/Pods rm ./ios/Podfile.lock flutter clean flutter pub get flutter run
Select a browser from the device selector. Note that this is not working due to CORS.
Select a mobile emulator from the device selector. Note that this is not working due to ?
-
Connect your Android device to your computer with a USB cable.
-
Navigate to the project directory and run the flutter command.
flutter install
The response should contain the following status message.
Installing app.apk to Pixel 5... Uninstalling old version... Installing build\app\outputs\flutter-apk\app.apk... 5.2s
To ensure you are using the latest packages, run these commands to check and upgrade them:
flutter pub outdated
flutter pub upgrade --major-versions
flutter pub upgrade --tighten
- Replace src/robinhood_options_mobile/icon.png with latest icon PNG image at the maximum possible resolution (1024x1024?).
- Run
dart run flutter_launcher_icons
in the project directory to generate all icons for iOS and Android. - Run
dart run flutter_native_splash:create
in the project directoru to generate all splash screens for iOS, Android and Web.
flutter build appbundle --release
This command generates an .apk file used to publish an installation file.
flutter build apk --release
flutter build ipa --release
If you get an error, see Debugging Notes section above to clean the project.
- Install Transporter App
- Add ipa file from
./build/ios/ipa/
Verify
andDeliver
flutter test