-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathstep.yml
94 lines (85 loc) · 4.38 KB
/
step.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
title: |-
Export Universal APK
summary: |
Exports a universal APK from an Android App Bundle.
description: |
This Step generates a universal APK from an Android App Bundle, and exports it to the `$BITRISE_APK_PATH` Environment Variable so that the next Step or [Ship add-on](https://devcenter.bitrise.io/deploy/ship/) can pick it up. The Step also signs the generated APK with the keystore file you uploaded to the [Code Signing](https://devcenter.bitrise.io/code-signing/android-code-signing/android-code-signing-index/) tab or, if there was no keystore available, it signs the APK with a debug keystore file.
### Configuring the Step
1. Insert the Step after a build Step in your Workflow.
2. The **Android App Bundle path** input field is automatically filled out by the output of the previous build Step.
3. The **Keystore URL** is automatically filled out based on the uploaded keystore file on the **Code Signing** tab.
4. If the keystore file is uploaded to the **Code Signing** tab, the **Keystore alias**, **Keystore password**, and **Private key password** inputs are automatically populated.
5. The latest Bundletool version is set in the respective input. If, for any reason, you wish to use an older version, you can add it here, but make sure you use the [correct version](https://github.com/google/bundletool/releases).
### Troubleshooting
This Step works with Bundletool's latest version which is automatically set in the respective Step input. If you wish to switch to an older version, you have to add it manually. Make sure you add the [correct version](https://github.com/google/bundletool/releases), otherwise the Step will fail.
### Useful links
- [Android code signing](https://devcenter.bitrise.io/code-signing/android-code-signing/android-code-signing-index/)
- [Deploying and Android app](https://devcenter.bitrise.io/deploy/android-deploy/android-deployment-index/)
### Related Steps
- [Android Sign](https://www.bitrise.io/integrations/steps/sign-apk)
- [Android Build](https://www.bitrise.io/integrations/steps/android-build)
website: https://github.com/bitrise-steplib/bitrise-step-export-universal-apk
source_code_url: https://github.com/bitrise-steplib/bitrise-step-export-universal-apk
support_url: https://github.com/bitrise-steplib/bitrise-step-export-universal-apk/issues
host_os_tags:
- osx-10.10
- ubuntu-16.04
project_type_tags:
- android
type_tags:
- test
is_requires_admin_user: true
is_always_run: false
is_skippable: false
run_if: ""
toolkit:
go:
package_name: github.com/bitrise-steplib/bitrise-step-export-universal-apk
inputs:
- aab_path: $BITRISE_AAB_PATH
opts:
title: "Android App Bundle path"
summary: "Android App Bundle file (`.aab`) path"
description: |
The **Android App Bundle path** input field is automatically filled out by the output of the previous build Step
is_expand: true
is_required: true
- keystore_url: $BITRISEIO_ANDROID_KEYSTORE_URL
opts:
title: "Keystore URL"
summary: "The keystore file's URL which is generated when you upload the file to the Code Signing tab."
description: ""
is_required: true
is_sensitive: true
- keystore_password: $BITRISEIO_ANDROID_KEYSTORE_PASSWORD
opts:
title: "Keystore password"
summary: "The password you added to the keystore."
description: ""
is_required: true
is_sensitive: true
- keystore_alias: $BITRISEIO_ANDROID_KEYSTORE_ALIAS
opts:
title: "Keystore alias"
summary: "Identifier name you added to the keystore."
description: ""
is_required: true
is_sensitive: true
- private_key_password: $BITRISEIO_ANDROID_KEYSTORE_PRIVATE_KEY_PASSWORD
opts:
title: "Private key password"
summary: "Password you added to the private key."
description:
is_sensitive: true
- bundletool_version: "1.8.1"
opts:
title: "Bundletool version"
summary: "You can override this Bundletool version if you need a specific one."
description: "If you wish to set a specific version, add it here based on [Bundletool's official release](https://github.com/google/bundletool/releases) page."
is_expand: true
outputs:
- BITRISE_APK_PATH:
opts:
title: "The exported APK's path"
summary: "The APK is exported to this output Environment Variable and can be picked up by the next Step or Ship."
description: ""