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

Add additional params to archive action #367

Merged
merged 1 commit into from
Aug 2, 2018

Conversation

sxua
Copy link
Contributor

@sxua sxua commented Aug 2, 2018

This change adds an ability to customize archive name and whether it should be revealed in organizer or not. Basically, one can set options displayed on an image below via project.yml

screen shot 2018-08-02 at 3 24 53 pm

@@ -150,14 +150,20 @@ public struct Scheme: Equatable {

public struct Archive: BuildAction {
public var config: String?
public var revealArchiveInOrganizer: Bool
public var customArchiveName: String?
Copy link
Collaborator

Choose a reason for hiding this comment

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

The archive name is shown before revealArchiveInOrganizer in the dialog. Can you swap these (here and below) to match that?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@brentleyjones This is the order of an xcproj's ArchiveAction initializer, but I can change it here for sure.

@@ -133,7 +133,8 @@ public class ProjectGenerator {

let archiveAction = XCScheme.ArchiveAction(
buildConfiguration: scheme.archive?.config ?? defaultReleaseConfig.name,
revealArchiveInOrganizer: true,
revealArchiveInOrganizer: scheme.archive?.revealArchiveInOrganizer ?? true,
customArchiveName: scheme.archive?.customArchiveName ?? nil,
Copy link
Owner

Choose a reason for hiding this comment

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

Nitpick - the ?? nil here is redundant

@yonaskolb
Copy link
Owner

Nice, thanks @sxua!

@yonaskolb
Copy link
Owner

Could you add the new options in https://github.com/yonaskolb/XcodeGen/blob/master/Docs/ProjectSpec.md#scheme under a new Archive section, and also add a changelog entry?

@sxua
Copy link
Contributor Author

sxua commented Aug 2, 2018

@yonaskolb Good catch, thanks!

@sxua
Copy link
Contributor Author

sxua commented Aug 2, 2018

@yonaskolb Should be fine now

Copy link
Owner

@yonaskolb yonaskolb left a comment

Choose a reason for hiding this comment

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

Great! 😄

@yonaskolb yonaskolb merged commit 1d3d8af into yonaskolb:master Aug 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants