view fastlane/Fastfile @ 105:5c7b675ede8f

Fixes fastlane issues with release and beta lanes
author Dennis Concepción Martín <dennisconcepcionmartin@gmail.com>
date Wed, 04 Aug 2021 21:33:34 +0100
parents 507ed393a72c
children bee9102c2e9c
line wrap: on
line source

# 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

default_platform(:ios)

platform :ios do

  desc "Push a new beta build to TestFlight"
  lane :beta do
    increment_build_number(
      build_number: latest_testflight_build_number + 1,
      xcodeproj: "Simoleon.xcodeproj"
    )
    
    build_app(scheme: "Simoleon")
    upload_to_testflight(
      beta_app_review_info: {
        contact_email: "dmartin@dennistech.io",
        contact_first_name: "Dennis",
        contact_last_name: "Concepcion Martin",
        contact_phone: "+34 639 465 931",
        notes: "Go and crash it. Thank you for reviewing <3"
      }
    )
  end

  desc "Release new version to App Store"
  lane :release do
    capture_screenshots
    build_app(scheme: "Simoleon")
    upload_to_app_store
  end
  
end