-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Complete rewrite of the fastlane init
onboarding flow
#11386
Conversation
KrauseFx
commented
Jan 1, 2018
•
edited
edited
Generated by 🚫 Danger |
…ion of various CocoaPods features
…dd information about how to use it
…dd information about how to use it
…re app doesn't exist, fix order of parameters, skip metadata question when app isn't available
fastlane init
onboarding flowfastlane init
onboarding flow
fastlane/lib/fastlane/setup/setup.rb
Outdated
UI.error("No iOS or Android projects found in current directory '#{Dir.pwd}'") | ||
UI.error("Make sure to `cd` into a directory containing your iOS or Android app") | ||
if UI.confirm("Do you still want to setup a manual fastlane config in the current directory?") | ||
SetupIos.new( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you could ask whether the user wants to setup ios or android by default. Right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah nice catch, will update. Just waiting for the language checks by @taquitos 👍
UI.success('To not re-enter your packagename and issuer every time you run one of the fastlane tools or fastlane, these will be stored in a so-called Appfile.') | ||
def fetch_information_for_appfile | ||
UI.message('') | ||
UI.message('To not re-enter your packagename and issuer every time you run one of fastlane, these will be stored in a so-called Appfile.') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"every time you run one of fastlane"
->
"everytime you run fastlane" ?
@@ -1,8 +1,7 @@ | |||
var appIdentifier: String { return "[[APP_IDENTIFIER]]" } // The bundle identifier of your app | |||
var appleID: String { return "[[APPLE_ID]]" } // Your Apple email address | |||
|
|||
var teamID: String { return "[[DEV_PORTAL_TEAM_ID]]" } // Developer Portal Team ID | |||
var itcTeam: String? { return [[ITC_TEAM]] } // iTunes Connect Team ID (may be nil if no team) | |||
[[TEAMS]] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not valid swift
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This gets replaced during onboarding, as [[TEAMS]]
is the placeholder
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PlaceHODLer
end | ||
|
||
def finish_up | ||
write_fastfile! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so declarative, best 🎈
fastlane/lib/fastlane/setup/setup.rb
Outdated
platform = :ios | ||
elsif is_android? | ||
# this is used by e.g. configuration.rb to not show warnings when running produce | ||
ENV["FASTLANE_ONBOARDING_IN_PROCESS"] = 1.to_s |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
global variables are the best
# Conflicts: # credentials_manager/lib/credentials_manager/account_manager.rb # fastlane/lib/fastlane/commands_generator.rb # fastlane/lib/fastlane/setup/setup_android.rb # fastlane/lib/fastlane/setup/setup_ios.rb # fastlane/spec/setup_spec.rb # snapshot/lib/snapshot/setup.rb # spaceship/lib/spaceship/portal/ui/select_team.rb # spaceship/lib/spaceship/tunes/tunes_client.rb
Congratulations! 🎉 This was released as part of fastlane 2.75.0 🚀 |