Skip to content
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

Merged
merged 45 commits into from
Jan 9, 2018
Merged

Conversation

KrauseFx
Copy link
Member

@KrauseFx KrauseFx commented Jan 1, 2018

screenshot 2017-12-31 05 59 50

image

screenshot 2018-01-01 05 49 10

image

@fastlane fastlane deleted a comment from fastlane-bot-helper Jan 1, 2018
@fastlane-bot-helper
Copy link
Contributor

fastlane-bot-helper commented Jan 1, 2018

1 Warning
⚠️ Big PR

Generated by 🚫 Danger

@KrauseFx KrauseFx changed the title [WIP] Complete rewrite of the fastlane init onboarding flow Complete rewrite of the fastlane init onboarding flow Jan 3, 2018
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(
Copy link
Collaborator

@lacostej lacostej Jan 5, 2018

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?

Copy link
Member Author

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.')
Copy link
Collaborator

@lacostej lacostej Jan 5, 2018

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" ?

@KrauseFx KrauseFx requested a review from taquitos January 8, 2018 16:07
@@ -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]]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not valid swift

Copy link
Member Author

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

Copy link
Member Author

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!
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so declarative, best 🎈

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
Copy link
Collaborator

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

Joshua Liebowitz and others added 5 commits January 8, 2018 18:30
# 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
@KrauseFx KrauseFx merged commit a8ff509 into master Jan 9, 2018
@KrauseFx KrauseFx deleted the new-init branch January 9, 2018 13:24
@fastlane-bot
Copy link

Congratulations! 🎉 This was released as part of fastlane 2.75.0 🚀

@fastlane fastlane locked and limited conversation to collaborators Mar 11, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants