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

Step 1840 remove xamarin support #155

Merged
merged 8 commits into from
Feb 28, 2022
Merged

Conversation

godrei
Copy link
Contributor

@godrei godrei commented Feb 25, 2022

Version

Requires a MAJOR version update

Context

This PR removes Xamarin support from codesigndoc.
Supports: bitrise-io/bitrise-add-new-project#64

Changes

  • Remove all Xamarin related code
  • Typo fixes
  • Stratiforward lint issue fixes
  • Pull latest go-xcode to resolve Xcode version parsing on M1
  • Pull latest bitrise-init

@godrei godrei marked this pull request as ready for review February 25, 2022 13:55
tothszabi
tothszabi previously approved these changes Feb 25, 2022
Copy link

@tothszabi tothszabi left a comment

Choose a reason for hiding this comment

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

I do not have much of knowledge of the codesign tool itself so I mainly validated the code changes only. It looks good to me because they were mainly typo fixes, removal of xamarin logic and minor leave the codebase in a better place than you have found it type of changes.

@@ -21,8 +21,7 @@ import (

var xcodeUITestsCmd = &cobra.Command{
Use: "xcodeuitests",
Short: "Xcode project scanner for UI tests",
Long: `Scan an Xcode project for UI test targets`,

Choose a reason for hiding this comment

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

The Long value has some meaningful information of what this command does. I like the Short value update but do not we want to keep the Long one somehow?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Short is the command description when the command is listed as a subcommand. Long is the main description (Short gets used as the main description if Long is not provided).

Updated the Short and Long descriptions, now it looks like:

$ codesigndoc scan -h

Scans the project's code signing settings,
and exports the required code signing files.

Usage:
  codesigndoc scan [command]

Available Commands:
  xcode        Scans the project's code signing settings for Xcode Archive and IPA export actions
  xcodeuitests Scans the project's code signing settings for Xcode Build For Testing action

Flags:
...

and

$ codesigndoc scan xcode -h

Scans the project's code signing settings for Xcode Archive and IPA export actions
and exports the required code signing files.

Usage:
  codesigndoc scan xcode [flags]

Flags:
...

and

$ codesigndoc scan xcodeuitests -h

Scans the project's code signing settings for Xcode Build For Testing action
and exports the required code signing files.

Usage:
  codesigndoc scan xcodeuitests [flags]

Flags:
...

func FindCertificate(nameOrSHA1Fingerprint string, certificates []certificateutil.CertificateInfoModel) (certificateutil.CertificateInfoModel, error) {
for _, certificate := range certificates {
if certificate.CommonName == nameOrSHA1Fingerprint {
return certificate, nil
}
if strings.ToLower(certificate.SHA1Fingerprint) == strings.ToLower(nameOrSHA1Fingerprint) {
if strings.EqualFold(certificate.SHA1Fingerprint, nameOrSHA1Fingerprint) {

Choose a reason for hiding this comment

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

TIL about strings.EqualFold

@godrei godrei merged commit f6a0429 into master Feb 28, 2022
@godrei godrei deleted the STEP-1840-remove-xamarin-support branch February 28, 2022 10:43
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.

2 participants