Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 1.57 KB

File metadata and controls

21 lines (16 loc) · 1.57 KB

smart-home-insurance-discounts-app

smart-home-insurance-discounts-app is a demo app using google-nest public APIs to enable home insurance providers give discounts to home owners if they have certain smart devices at home.

This is not an officially supported Google product.

To setup flutter app on android studio:

  1. Run flutter doctor to check if flutter is installed in your laptop. If not, please refer to https://flutter.dev/docs/get-started/install for installation instructions.
  2. Go to Find Action -> plugins -> installed. if installed shows dart and flutter then continue to next step, else go to Find Action -> plugins -> marketplace and search for flutter and add the plugin. If prompted to install dart plugin as well, accept. Otherwise search for dart plugin and install that as well.
  3. Clone the repository and open the 'home_insurance_app'/'sdk' directory from android studio not the root directory
  4. Go to settings -> flutter and add the path to flutter SDK if not already present.
  5. If prompted to run 'flutter pub get' accept, else go to terminal in the IDE and run flutter pub get.
  6. Connect device device to your laptop via USB. It should show up in the top bar.
  7. Download google-services.json (firebase access credentials) from the firebase console project page and add it to home_insurance_app/android/app.
  8. Once connected to a devices go to run tab and select run.

Common issues faced:

  1. Flutter plugin and installing flutter SDK are different and both need to be setup.
  2. Run flutter pub get after editing pubspec.yaml file to load the changes.