# This file contains the fastlane.tools configuration
# You can find the documentation at https://docs.fastlane.tools
#
# For a list of all available actions, check out
#
#     https://docs.fastlane.tools/actions
#
# For a list of all available plugins, check out
#
#     https://docs.fastlane.tools/plugins/available-plugins
#

# Uncomment the line if you want fastlane to automatically update itself
# update_fastlane

import "../libcommon/fastlane/Fastfile"

gitlab_project_id = "68759155"

default_platform(:android)

platform :android do

  desc "Build signed APK"
  lane :build_apk do
    build_flavor(flavor: "")
  end

  desc "Update metadata in Google Play Store"
  lane :update_metadata do
    update_metadata_flavor(flavor: "")
  end

  desc "Deploy to the Google Play Store (APK)"
  lane :deploy do
    deploy_flavor(flavor: "")
  end

  desc "Build Android App Bundle (AAB)"
  lane :bundle do
    bundle_flavor(flavor: "")
  end

  desc "Deploy to the Google Play Store (AAB)"
  lane :deploy_bundle do
    deploy_bundle_flavor(flavor: "")
  end

  lane :gitlab_release do |values|# only release standard release for now
    gitlab_release_for_project_id(project_id: gitlab_project_id, check_version: values[:check_version])
  end

end
