Skip to content

Conversation

@godrei
Copy link
Contributor

@godrei godrei commented Oct 8, 2024

This PR reorganizes the files in the exportoptionsgenerator package and adds support for the automatic signing style.

The exportoptionsgenerator package new organisation:

  • ExportOptionsGenerator dependencies are moved to their own files, to shorten the code in exportoptionsgenerator.go
  • Const, Types, and exported funcs are at the top of the files

Automatic signing style support:

  • the provisioningProfiles entry shouldn't be in the exportOptions.plist when the IPA export is Xcode managed

codeSigningStyle SigningStyle,
xcodeMajorVersion int64,
) (exportoptions.ExportOptions, error) {
mainTargetBundleID, entitlementsByBundleID, err := g.applicationTargetsAndEntitlements(exportMethod)
Copy link
Contributor Author

@godrei godrei Oct 8, 2024

Choose a reason for hiding this comment

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

Code from the previous g.generateExportOptions moved here and the first part of the code is moved into the new applicationTargetsAndEntitlements.

@godrei godrei marked this pull request as ready for review October 9, 2024 11:53
@@ -0,0 +1,21 @@
package exportoptionsgenerator
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Moved here from exportoptionsgenerator/exportoptionsgenerator.go without any change.

@@ -0,0 +1,73 @@
package exportoptionsgenerator
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Moved here from exportoptionsgenerator/exportoptionsgenerator.go, the single change is adding GetDefaultProvisioningProfile to ProvisioningProfileProvider, previously this functionality was assigned to ExportOptionsGenerator.

@@ -0,0 +1,75 @@
package exportoptionsgenerator
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Moved here from exportoptionsgenerator/exportoptionsgenerator.go without any change.

@godrei godrei merged commit 378b00a into master Oct 11, 2024
2 checks passed
@godrei godrei deleted the automatic-signing-export-options-generator branch October 11, 2024 08:03
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.

3 participants