Skip to content

Conversation

@lpusok
Copy link
Contributor

@lpusok lpusok commented May 23, 2019

No description provided.

cmd/xcode.go Outdated
xcodeCmd.Flags().StringVar(&paramXcodeScheme, "scheme", "", "Xcode Scheme")
xcodeCmd.Flags().StringVar(&paramXcodebuildSDK, "xcodebuild-sdk", "", "xcodebuild -sdk param. If a value is specified for this flag it'll be passed to xcodebuild as the value of the -sdk flag. For more info about the values please see xcodebuild's -sdk flag docs. Example value: iphoneos")
// Flags used to automatically upload artifacts
xcodeCmd.Flags().BoolVar(&isWriteFiles, "write-files", true, "Set wether to export artifacts to a local directory.")
Copy link
Contributor

Choose a reason for hiding this comment

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

pls also add this to the xamarin and uitest scanner, may these could be root level flags

cmd/xcode.go Outdated
xcodeCmd.Flags().StringVar(&paramXcodebuildSDK, "xcodebuild-sdk", "", "xcodebuild -sdk param. If a value is specified for this flag it'll be passed to xcodebuild as the value of the -sdk flag. For more info about the values please see xcodebuild's -sdk flag docs. Example value: iphoneos")
// Flags used to automatically upload artifacts
xcodeCmd.Flags().BoolVar(&isWriteFiles, "write-files", true, "Set wether to export artifacts to a local directory.")
xcodeCmd.Flags().StringVar(&personalAccessToken, "auth-token", "", "Personal access token. In case app-slug parameter is also provided, will automatically upload artifacts to bitrise.io.")
Copy link
Contributor

@godrei godrei May 29, 2019

Choose a reason for hiding this comment

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

i would mention that these flags are working only together:

Personal access token. Requires app-slug flag to be defined as well and will cause the codesigning file to be uploaded automatically

cmd/xcode.go Outdated
absExportOutputDirPath, err := initExportOutputDir()
if err != nil {
return fmt.Errorf("failed to prepare Export directory: %s", err)
absExportOutputDirPath := ""
Copy link
Contributor

Choose a reason for hiding this comment

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

NOTE: var absExportOutputDirPath string, would explicitly show that we do not care / use the default value of the var

cmd/xcode.go Outdated
if err != nil {
return err
}
certsUploaded, provProfilesUploaded, err := codesign.UploadAndWriteCodesignFiles(certificatesToExport,
Copy link
Contributor

Choose a reason for hiding this comment

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

pls leave a comment that certificatesOnly will lead to 0 elements certsUploaded, that's why no need to pass it further

gows.yml Outdated
@@ -1 +1 @@
package_name: github.com/bitrise-tools/codesigndoc
package_name: github.com/bitrise-io/codesigndoc
Copy link
Contributor

Choose a reason for hiding this comment

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

could be removed as we do not use gows this days

Copy link
Contributor

@godrei godrei left a comment

Choose a reason for hiding this comment

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

pls have a look at my notes

Copy link
Contributor

@lszucs lszucs left a comment

Choose a reason for hiding this comment

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

Minor comments, looks good otherwise.

// UploadProvisioningProfile ...
func (client *Client) UploadProvisioningProfile(uploadURL string, uploadFileName string, outputDirPath string, exportFileName string) error {
log.Printf("Upload %s to Bitrise...", exportFileName)
func (client *Client) UploadProvisioningProfile(uploadURL string, uploadFileName string, content io.Reader) error {
Copy link
Contributor

Choose a reason for hiding this comment

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

Same comment and previously: uploadFileName is used only in the logging statement.

// UploadIdentity ...
func (client *Client) UploadIdentity(uploadURL string, uploadFileName string, outputDirPath string, exportFileName string) error {
func (client *Client) UploadIdentity(uploadURL string, uploadFileName string, exportFileName string, content io.Reader) error {
log.Printf("Upload %s to Bitrise...", exportFileName)
Copy link
Contributor

Choose a reason for hiding this comment

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

exportFileName is used only in the log statement, however, the logging could be done on the caller side.

In that case, the parameter is not needed and the function is cleaner in terms of the log output it produces

lszucs
lszucs previously approved these changes May 29, 2019
Copy link
Contributor

@lszucs lszucs left a comment

Choose a reason for hiding this comment

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

Seems good to me, although I am not a subject matter expert.

Copy link
Contributor

@godrei godrei left a comment

Choose a reason for hiding this comment

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

pls have a look at my notes

@lpusok lpusok merged commit d0d7a94 into master Jun 3, 2019
@lpusok lpusok deleted the feature/automation-upload branch June 3, 2019 13:48
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.

4 participants