Skip to content

Template Flutter project to immediately start experimenting with kits from Huawei Mobile Services

Notifications You must be signed in to change notification settings

abusuioc/hms-start-hacking-flutter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Huawei Mobile Services starter project for Flutter

This project takes care of all the needed configuration so that you can start coding right away using the Huawei Mobile Services (HMS) SDKs. We mostly use this project during hackathons.

Basically, the starter project is a Flutter skeleton app (Android only), that:

  • has the main featured HMS Kits plugins added as dependencies (just comment out those you need)

  • streamlines the connection to an App Gallery account which is needed by the HMS SDKs

  • when started, does a self test to check if everything is properly configured

I'm in!

  1. fork/clone this project

  2. ask for the file with secrets 🕵

  3. unzip the file into the project's android directory

  4. start coding!

What's this file with secrets about?

It streamlines the connection to a shared App Gallery account so that you don't have to create and configure one yourself. It's basically a zip containing 3 files:

  • theagconnect-services.json configuration file needed by any HMS SDK

  • the signing configuration needed to authenticate the project to App Gallery, for the cloud related functions:

    • a Java keystore (.jks file) containing the signing key

    • the keystore.properties file that unlocks the keystore and it's referenced from within app/build.gradle

If you're participating in a hackathon, simply ask the Huawei devrel team at the event for the zip file and extract it in the root of the project. Alternatively, you could generate the 3 needed files yourself and thus link the project to your own App Gallery account.

What if I don't have a Huawei HMS test device?

There are solutions:

  1. If you're participating on-site, ask for a test device from the Huawei devrel team at the event
  2. Download and temporary install HMS Core on your own generic Android device from here
  3. Cloud Debugging : this requires you to actually own/create a Huawei ID, but once that's done, you can just download the HMS Toolkit Android Studio plugin and access physical devices in the cloud

Starter projects for other platforms

Various HMS code samples and demos

Happy hacking! 👨🏻‍💻

About

Template Flutter project to immediately start experimenting with kits from Huawei Mobile Services

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published