-
Notifications
You must be signed in to change notification settings - Fork 112
Mobile Development Setup
Amlan Kumar Nandy edited this page Jul 10, 2021
·
1 revision
The application needs google-services.json
issued from Firebase for Google Authentication. To obtain the file,
- Sign in to Firebase Console
- Click Add Project and the necessary information about the project
- Agree to the terms and conditions and click Create Project
- After creating the project, click Add Firebase to your Android App
- Go to the project location and open
android/app/src/main/AndroidManifest.xml
. Copy the package name(org.scorelab.labellab_mobile) and paste in the package name field - Get the SHA1 fingerprint by following the instructions and paste it into the SHA1 fingerprint field
- Click next and download the
google-services.json
- Paste the file in the
android/app/
folder
To use Google Maps for the object path tracking feature, the application needs a Google Maps API key. To obtain it, go through the following steps-
- Visit Google Maps Platform
- Sign in with the same Google account used to create the firebase project
- Open the
AndroidManifest.xml
file present inandroid/app/src/main/
location - Replace
API_KEY_HERE
with the new key
If you haven't enabled Google Map SDK,
- Visit Google Developers Console
- Choose the same Firebase project
- On the navigation menu, select Google Maps and select APIs under the Google Maps menu
- To enable Google Maps for Android, select
Maps SDK for Android
, then ENABLE - To enable Google Maps for iOS, select
Maps SDK for iOS
, then ENABLE
NOTE: A device with USB debugging enabled or virtual device is required
- Setup and run the Flask server (If not already done)
flask run --host=0.0.0.0
- Fetch all dependencies listed in the
pubspec.yaml
file
flutter pub get
- Run the application
flutter run
For building the app for Android, run the following command -
flutter build apk
For iOS use this instead -
flutter build ios
- Home
- Backend Documentation
- Frontend Documentation
- Mobile Documentation
- GSoC Project Reports
- Other