-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Android App Bundle (.aab) signing. (#35)
Fix the bug, which overrode the exported signed build artifact's ($BITRISE_SIGNED_APK_PATH) extension to `.apk` even if it was a `.abb`.
- Loading branch information
1 parent
f743683
commit 80363a9
Showing
5 changed files
with
155 additions
and
142 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
format_version: 5 | ||
format_version: 6 | ||
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git | ||
|
||
app: | ||
|
@@ -9,7 +9,6 @@ app: | |
|
||
- SAMPLE_APP_REPOSITORY_URL: https://github.com/bitrise-samples/sample-apps-android-abi-split.git | ||
- BRANCH: master | ||
- GRADLE_TASK: assembleRelease | ||
- GRADLEW_PATH: "./gradlew" | ||
|
||
# define these in your .bitrise.secrets.yml | ||
|
@@ -24,63 +23,32 @@ workflows: | |
ci: | ||
before_run: | ||
- audit-this-step | ||
- _go_tests | ||
- create_test_apk | ||
steps: | ||
- path::./: | ||
is_skippable: true | ||
title: Step Test - keystore pass == key pass | ||
inputs: | ||
- keystore_url: $BITRISEIO_ANDROID_KEYSTORE_1_URL | ||
- keystore_password: $BITRISEIO_ANDROID_KEYSTORE_PASSWORD_1 | ||
- keystore_alias: $BITRISEIO_ANDROID_KEYSTORE_ALIAS_1 | ||
- private_key_password: $BITRISEIO_ANDROID_KEYSTORE_PRIVATE_KEY_PASSWORD_1 | ||
- path::./: | ||
is_skippable: true | ||
title: Step Test - keystore pass != key pass | ||
inputs: | ||
- keystore_url: $BITRISEIO_ANDROID_KEYSTORE_2_URL | ||
- keystore_password: $BITRISEIO_ANDROID_KEYSTORE_PASSWORD_2 | ||
- keystore_alias: $BITRISEIO_ANDROID_KEYSTORE_ALIAS_2 | ||
- private_key_password: $BITRISEIO_ANDROID_KEYSTORE_PRIVATE_KEY_PASSWORD_2 | ||
- path::./: | ||
is_skippable: true | ||
title: Step Test - default alias | ||
inputs: | ||
- keystore_url: $BITRISEIO_ANDROID_KEYSTORE_3_URL | ||
- keystore_password: $BITRISEIO_ANDROID_KEYSTORE_PASSWORD_3 | ||
- keystore_alias: $BITRISEIO_ANDROID_KEYSTORE_ALIAS_3 | ||
- private_key_password: $BITRISEIO_ANDROID_KEYSTORE_PRIVATE_KEY_PASSWORD_3 | ||
- path::./: | ||
is_skippable: true | ||
title: Step Test - android studio generated keystore (jks) | ||
inputs: | ||
- keystore_url: $BITRISEIO_ANDROID_KEYSTORE_4_URL | ||
- keystore_password: $BITRISEIO_ANDROID_KEYSTORE_PASSWORD_4 | ||
- keystore_alias: $BITRISEIO_ANDROID_KEYSTORE_ALIAS_4 | ||
- private_key_password: $BITRISEIO_ANDROID_KEYSTORE_PRIVATE_KEY_PASSWORD_4 | ||
- go-list: | ||
- golint: | ||
- errcheck: | ||
- go-test: | ||
after_run: | ||
- test_apk | ||
- test_bundle | ||
|
||
test: | ||
before_run: | ||
- audit-this-step | ||
- _go_tests | ||
- create_test_apk | ||
steps: | ||
- script: | ||
inputs: | ||
- content: |- | ||
echo "BITRISE_APK_PATH: $BITRISE_APK_PATH" | ||
- path::./: | ||
title: Step Test | ||
inputs: | ||
- apk_path: $BITRISE_APK_PATH_LIST | ||
- script: | ||
inputs: | ||
- content: |- | ||
echo "BITRISE_SIGNED_APK_PATH: $BITRISE_SIGNED_APK_PATH" | ||
echo "BITRISE_APK_PATH: $BITRISE_APK_PATH" | ||
test_apk: | ||
envs: | ||
- GRADLE_TASK: assembleRelease | ||
- APK_FILE_INCLUDE_FILTER: "*.apk" | ||
after_run: | ||
- create_build_artifact | ||
- test | ||
|
||
test_bundle: | ||
envs: | ||
- GRADLE_TASK: bundleRelease | ||
- APK_FILE_INCLUDE_FILTER: "*.aab" | ||
after_run: | ||
- create_build_artifact | ||
- test | ||
|
||
create_test_apk: | ||
create_build_artifact: | ||
steps: | ||
- script: | ||
inputs: | ||
|
@@ -112,10 +80,50 @@ workflows: | |
git remote add origin "${SAMPLE_APP_REPOSITORY_URL}" | ||
git fetch || exit 1 | ||
[[ -n "${COMMIT}" ]] && git checkout "${COMMIT}" || git checkout "${BRANCH}" | ||
- [email protected]: | ||
inputs: | ||
- ndk_revision: '16' | ||
run_if: ".IsCI" | ||
- gradle-runner: | ||
inputs: | ||
- gradle_task: "$GRADLE_TASK" | ||
- gradlew_path: "$GRADLEW_PATH" | ||
- apk_file_include_filter: $APK_FILE_INCLUDE_FILTER | ||
|
||
test: | ||
steps: | ||
- path::./: | ||
is_skippable: true | ||
title: Step Test - keystore pass == key pass | ||
inputs: | ||
- keystore_url: $BITRISEIO_ANDROID_KEYSTORE_1_URL | ||
- keystore_password: $BITRISEIO_ANDROID_KEYSTORE_PASSWORD_1 | ||
- keystore_alias: $BITRISEIO_ANDROID_KEYSTORE_ALIAS_1 | ||
- private_key_password: $BITRISEIO_ANDROID_KEYSTORE_PRIVATE_KEY_PASSWORD_1 | ||
- path::./: | ||
is_skippable: true | ||
title: Step Test - keystore pass != key pass | ||
inputs: | ||
- keystore_url: $BITRISEIO_ANDROID_KEYSTORE_2_URL | ||
- keystore_password: $BITRISEIO_ANDROID_KEYSTORE_PASSWORD_2 | ||
- keystore_alias: $BITRISEIO_ANDROID_KEYSTORE_ALIAS_2 | ||
- private_key_password: $BITRISEIO_ANDROID_KEYSTORE_PRIVATE_KEY_PASSWORD_2 | ||
- path::./: | ||
is_skippable: true | ||
title: Step Test - default alias | ||
inputs: | ||
- keystore_url: $BITRISEIO_ANDROID_KEYSTORE_3_URL | ||
- keystore_password: $BITRISEIO_ANDROID_KEYSTORE_PASSWORD_3 | ||
- keystore_alias: $BITRISEIO_ANDROID_KEYSTORE_ALIAS_3 | ||
- private_key_password: $BITRISEIO_ANDROID_KEYSTORE_PRIVATE_KEY_PASSWORD_3 | ||
- path::./: | ||
is_skippable: true | ||
title: Step Test - android studio generated keystore (jks) | ||
inputs: | ||
- keystore_url: $BITRISEIO_ANDROID_KEYSTORE_4_URL | ||
- keystore_password: $BITRISEIO_ANDROID_KEYSTORE_PASSWORD_4 | ||
- keystore_alias: $BITRISEIO_ANDROID_KEYSTORE_ALIAS_4 | ||
- private_key_password: $BITRISEIO_ANDROID_KEYSTORE_PRIVATE_KEY_PASSWORD_4 | ||
|
||
_go_tests: | ||
steps: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.