fastlane/lib/fastlane/setup/setup.rb in fastlane-2.69.0.beta.20171212010004 vs fastlane/lib/fastlane/setup/setup.rb in fastlane-2.69.0

- old
+ new

@@ -1,9 +1,9 @@ module Fastlane class Setup # Start the setup process - def run(user: nil) + def run(user: nil, is_swift_fastfile: false) if FastlaneCore::FastlaneFolder.setup? and !Helper.is_test? UI.important("fastlane is already set up at path #{FastlaneCore::FastlaneFolder.path}") return end @@ -24,14 +24,19 @@ val = UI.confirm("Is this project an iOS project?") platform = (val ? :ios : :android) end if platform == :ios - SetupIos.new.run(user: user) + SetupIos.new.run(user: user, is_swift_fastfile: is_swift_fastfile) elsif platform == :android SetupAndroid.new.run else UI.user_error!("Couldn't find platform '#{platform}'") + end + + # Now that we've setup all the things, if we're using Swift, do the first time setup + if is_swift_fastfile + Fastlane::SwiftLaneManager.first_time_setup end end def is_ios? (Dir["*.xcodeproj"] + Dir["*.xcworkspace"]).count > 0