Skip to content

Latest commit

 

History

History
76 lines (41 loc) · 4.18 KB

android.md

File metadata and controls

76 lines (41 loc) · 4.18 KB

Steps for configuring Android deployment

To deploy to the Play Store, follow the steps below.

A Google Service Account is required to upload your binary to Google Play Store. This JSON key must be added to your account to publish apps to Google Play.

  1. Please go to Google Cloud Platform and create a Google Cloud Project if you don't already have one.
  2. Enable the Google Play Android Developer API for your Google Cloud Project.
  3. Login with your account, then go to Credentials -> Create Credentials, and click Service account.
  4. This screen will forward you to the Create service account page. Fill in the details of your service account. Based on the service name, an automatic Service account ID will be created. Make a note of the email address created here as it will be required later on in the process.
  5. Select Editor in the Role dropdown
  6. Click Done to save this account.
  7. Click Manage service accounts to open the management page.
  8. Find the account you just created. Click the three dots in the Actions column, then click Manage keys.
  9. Click ADD KEY and then click Create new key.
  10. Download your key as JSON and save it.
  11. Go to Google Play Console and login with your account. Go to User and permissions and click Invite new users.
  12. Add the email generated in step 7 in the Email address field.
  13. Check your user's permissions.

    Make sure this account has access to Releases, Store presence, and App access.

    Then click Invite User. Your account key is ready. 🎉

  14. Your account is now ready. Save the .json file created into a secure location on your build machine. Don’t check it into a public version control system.
  15. Configure your deploy.yaml file's credentialsFile property to point at the downloaded file's path from the step above.
  16. Set your packageName to match the package name declared in your \android\app\build.gradle
  17. Specify what’s new in this build.

If you are having problems
Ensure that flutter build appbundle is working correctly as a command at the root of your project and resolve any errors associated with that.