Sha256: 56b55fc32f0a2e58188075a1bf16109895b183b67eed48ea5489a2b5941a8ab1

Contents?: true

Size: 1.75 KB

Versions: 76

Compression:

Stored size: 1.75 KB

Contents

module Fastlane
  class Setup
    # Start the setup process
    def run
      if FastlaneCore::FastlaneFolder.setup? and !Helper.is_test?
        UI.important("fastlane is already set up at path #{FastlaneCore::FastlaneFolder.path}")
        return
      end

      platform = nil
      if is_ios?
        UI.message("Detected iOS/Mac project in current directory...")
        platform = :ios
      elsif is_android?
        UI.message("Detected Android project in current directory...")
        platform = :android
      else
        UI.message("Couldn't automatically detect the platform")
        val = agree("Is this project an iOS project? (y/n) ".yellow, true)
        platform = (val ? :ios : :android)
      end

      if platform == :ios
        SetupIos.new.run
      elsif platform == :android
        SetupAndroid.new.run
      else
        UI.user_error!("Couldn't find platform '#{platform}'")
      end
    end

    def is_ios?
      (Dir["*.xcodeproj"] + Dir["*.xcworkspace"]).count > 0
    end

    def is_android?
      Dir["*.gradle"].count > 0
    end

    def show_analytics
      UI.message("fastlane will send the number of errors for each action to")
      UI.message("https://github.com/fastlane/enhancer to detect integration issues")
      UI.message("No sensitive/private information will be uploaded")
    end
  end
end

require 'fastlane/setup/setup_ios'
require 'fastlane/setup/setup_android'
require 'fastlane/setup/crashlytics_beta_ui'
require 'fastlane/setup/crashlytics_beta'
require 'fastlane/setup/crashlytics_project_parser'
require 'fastlane/setup/crashlytics_beta_info'
require 'fastlane/setup/crashlytics_beta_info_collector'
require 'fastlane/setup/crashlytics_beta_command_line_handler'
require 'fastlane/setup/crashlytics_beta_user_email_fetcher'

Version data entries

76 entries across 76 versions & 1 rubygems

Version Path
fastlane-2.22.0.beta.20170321010023 fastlane/lib/fastlane/setup/setup.rb
fastlane-2.21.0 fastlane/lib/fastlane/setup/setup.rb
fastlane-2.21.0.beta.20170320010043 fastlane/lib/fastlane/setup/setup.rb
fastlane-2.21.0.beta.20170319010027 fastlane/lib/fastlane/setup/setup.rb
fastlane-2.21.0.beta.20170318010107 fastlane/lib/fastlane/setup/setup.rb
fastlane-2.21.0.beta.20170317010039 fastlane/lib/fastlane/setup/setup.rb
fastlane-2.21.0.beta.20170316010039 fastlane/lib/fastlane/setup/setup.rb
fastlane-2.20.0 fastlane/lib/fastlane/setup/setup.rb
fastlane-2.20.0.beta.20170315010053 fastlane/lib/fastlane/setup/setup.rb
fastlane-2.20.0.beta.20170314010029 fastlane/lib/fastlane/setup/setup.rb
fastlane-2.20.0.beta.20170313010048 fastlane/lib/fastlane/setup/setup.rb
fastlane-2.20.0.beta.20170312010035 fastlane/lib/fastlane/setup/setup.rb
fastlane-2.20.0.beta.20170311010030 fastlane/lib/fastlane/setup/setup.rb
fastlane-2.20.0.beta.20170310010058 fastlane/lib/fastlane/setup/setup.rb
fastlane-2.20.0.beta.20170309010049 fastlane/lib/fastlane/setup/setup.rb
fastlane-2.20.0.beta.20170308010036 fastlane/lib/fastlane/setup/setup.rb
fastlane-2.19.3 fastlane/lib/fastlane/setup/setup.rb
fastlane-2.20.0.beta.20170307010029 fastlane/lib/fastlane/setup/setup.rb
fastlane-2.19.2 fastlane/lib/fastlane/setup/setup.rb
fastlane-2.20.0.beta.20170306010752 fastlane/lib/fastlane/setup/setup.rb