Sha256: c3e4d74ab4b0ab5d862c49482d316c264aefe6c38bc1742d124e0af1ec6f8dab
Contents?: true
Size: 1.28 KB
Versions: 2
Compression:
Stored size: 1.28 KB
Contents
module Fastlane class Setup # Start the setup process def run 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 raise "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") UI.message("You can disable this by adding `opt_out_usage` to your Fastfile") end end end require 'fastlane/setup/setup_ios' require 'fastlane/setup/setup_android'
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fastlane-1.68.0 | lib/fastlane/setup/setup.rb |
fastlane-1.67.0 | lib/fastlane/setup/setup.rb |