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

Replace use_apk_signer with signer_tool step input #88

Merged
merged 6 commits into from
Oct 2, 2024
Merged

Conversation

godrei
Copy link
Contributor

@godrei godrei commented Sep 30, 2024

Checklist

  • I've read and followed the Contribution Guidelines
  • step.yml and README.md is updated with the changes (if needed)

Version

Requires a MAJOR version update

Context

The Step currently uses jarsigner by default for signing APK files (use_apk_signer: "false"), this PR switches to apksigner as a default tool for signing APK files.

The change is done by introducing a new step input signer_tool which replaces the previous use_apk_signer input.
signer_tool indicates which tool should be used for signing the app, the available options:

  • automatic (default value): Uses the apksigner tool to sign an APK and jarsigner tool to sign an AAB file.
  • apksigner: Uses the apksigner tool to sign the app.
  • jarsigner: Uses the jarsigner tool to sign the app.

Changes

  • signer_tool replaces the previous use_apk_signer input
  • e2e test workflows has been renamed, to better reflect on what they are actually doing:
    • test_apk -> test_apk_signing
    • test_apk_debug -> test_debug_apk_signing
    • test_bundle -> test_app_bundle_signing
    • _run_collection -> _build_app_and_sign_with_keystore_combinations
    • utility_test_<test_name> -> _sign_with_<test_name>
    • _run -> _sign_app
  • _jarsigner_all_tests and _apksigner_all_tests workflows are removed and _sign_with_jarsigner_with_keystore_with_same_pass and _sign_with_apksigner_with_keystore_with_diff_pass workflows are testing the none default signer tool inputs

@godrei godrei marked this pull request as ready for review October 1, 2024 12:46
main.go Outdated
@@ -230,6 +238,11 @@ func validate(cfg configs) error {
} else if !exist {
return fmt.Errorf("BuildArtifactPath not exist at: %s", buildArtifactPath)
}

signAAB := strings.EqualFold(buildArtifactPath, ".aab")
Copy link
Contributor

Choose a reason for hiding this comment

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

I think you are comparing a full path with the .aab extension here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@godrei godrei merged commit d8baf61 into master Oct 2, 2024
1 check passed
@godrei godrei deleted the signer-tool branch October 2, 2024 07:07
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