# frozen_string_literal: true module GoNative module Commands module IOS class Publish < Base autoload :FileUtils, 'fileutils' desc 'Verify, build and release a new version' option :skip_build, type: :boolean, default: false option :debug, type: :boolean, default: false option :use_existing_build, type: :boolean, default: false option :archs, default: 'x86_64,arm64' def call(skip_build:, debug:, archs:, use_existing_build:, **) Plugins::IOS::Verify.call Plugins::IOS::BuildFramework.call(archs, debug, use_existing_build) unless skip_build Plugins::IOS::Release.call end end end end end