The all-in-one RPI transportation app
developed with Flutter and Firebase.
Our goal is to make transportation in and around RPI safer and more intuitive.
Interact with our mockups!
git clone https://github.com/sirmammingtonham/smartrider.git
.google-services.json
from the Firebase Android project and place it in the android/app
folder.env
, and choose Edit the system environment variables
.
User variables for ...
and clicking New...
Variable name
type MAPS_API_KEY
, and enter the google maps api key for the value. Click OK
.flutter pub get
inside the cloned repository folder.lib/main.dart
in your editor, or run flutter run
in the repo folder.git clone https://github.com/sirmammingtonham/smartrider.git
.google-services.json
from the Firebase Android project and place it in the android/app
folder.android/app/src/main/res/api-keys.template
to android/app/src/main/res/values/api-keys.xml
(Don’t delete the template file!)
android/app/src/main/res/values/api-keys.xml
.strings.dart
in the lib/util
folder.
const google_api_key = "KEY_HERE";
and replace KEY_HERE
with the same API key for Google Maps.flutter pub get
inside the cloned repository folder.lib/main.dart
in your editor, or run flutter run
in the repo folder.Create an Apple developer account at https://developer.apple.com.
Setup your preferred editor for Flutter/Dart development. (VS Code is recommended)
Install Xcode >=11 from the app store, and run it once to initialize.
Configure Xcode by running the following commands in a terminal window:
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
sudo xcodebuild -runFirstLaunch
Install the Flutter SDK and add it to your path.
Setup the iOS emulator.
sudo xcodebuild -runFirstLaunch
from terminal.Install and setup cocoapods by running the following commands from terminal.
sudo gem install cocoapods
(NOTE: If you are getting an error when running this command run: sudo xcode-select --switch /Library/Developer/CommandLineTools
)pod setup
Clone the smartrider repo with git clone https://github.com/sirmammingtonham/smartrider.git
.
Setup application signing by opening ios/Runner.xcworkspace
in Xcode and selecting the blue Runner file.
Signing and Capabilities
tab, add and select your developer account.Download the GoogleService-info.plist
from the Firebase iOS project and link it through Xcode by:
* Right clicking the `Runner` folder (not the blue one), and clicking `Add files to "Runner"`, then selecting the plist file.
ApiKeys.plist
in the ios/Runner/
folder (through Xcode). Add the following:```
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>GOOG_API_KEY</key>
<string>KEY_HERE</string>
</dict>
</plist>
```
* and replace `KEY_HERE` with the API key for the Google Maps SDK from your Google Developers Console project.
Run pod install
in the ios/
folder.
Open the iOS simulator by running open -a Simulator
in terminal, or by finding the app in Spotlight.
Debug the application through VS Code, or build it through Xcode.
* If one doesn't work, try the other, or open an [issue](https://github.com/sirmammingtonham/smartrider/issues)!
* NOTE: Due to a bug with iOS, you cannot test the app on physical iOS devices with software version 13.3.1 (see [here](https://github.com/flutter/flutter/issues/49504))
Author: sirmammingtonham
Source Code: https://github.com/sirmammingtonham/smartrider
#flutter #firebase #dart #mobile-apps