---
version: '3'

tasks:
  beta:
    desc: Publishes Android app to Firebase beta channel
    log:
      error: Encountered error while publishing Android app to Firebase beta channel
      start: Publishing Android app to Firebase beta channel
      success: Published Android app to Firebase beta channel
    cmds:
      - fastlane add_plugin firebase_app_distribution
      - fastlane run firebase_app_distribution_login
      - fastlane beta

  release:
    desc: Publishes Android app to Google Play
    log:
      error: Encountered error while publishing Android app to Google Play
      start: Publishing Android app to Google Play
      success: Successfully published Android app to Google Play
    cmds:
      - fastlane add_plugin ionic
      - fastlane deploy
