-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathstep.yml
executable file
·76 lines (59 loc) · 3.44 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
title: Install missing Android SDK components
summary: Install Android SDK components that are required for the app.
description: |-
This Step makes sure that required Android SDK components (platforms and build-tools) are installed. To do so, the Step runs the `gradlew dependencies` command.
If the Android Plugin for Gradle version is 2.2.0 or higher, the plugin will download and install the missing components during the Gradle command.
Otherwise the command fails and the Step parses the command's output to determine which SDK components are missing and installs them.
### Configuring the Step
1. Set the path of the `gradlew` file.
The default value is that of the $PROJECT_LOCATION Environment Variable.
1. If you use an Android NDK in your app, set its revision in the **NDK Revision** input.
### Troubleshooting
If the Step fails, check that your repo actually contains a `gradlew` file. Without the Gradle wrapper, this Step won't work.
### Useful links
[Installing an additional Android SDK package](https://devcenter.bitrise.io/tips-and-tricks/android-tips-and-tricks/#how-to-install-an-additional-android-sdk-package)
### Related Steps
* [Android SDK Update](https://www.bitrise.io/integrations/steps/android-sdk-update)
* [Install React Native](https://www.bitrise.io/integrations/steps/install-react-native)
website: https://github.com/bitrise-steplib/steps-install-missing-android-tools
source_code_url: https://github.com/bitrise-steplib/steps-install-missing-android-tools
support_url: https://github.com/bitrise-steplib/steps-install-missing-android-tools/issues
project_type_tags:
- android
- cordova
- ionic
- react-native
type_tags:
- installer
is_always_run: false
is_skippable: false
toolkit:
go:
package_name: github.com/bitrise-steplib/steps-install-missing-android-tools
inputs:
- gradlew_path: $GRADLEW_PATH
opts:
title: gradlew file path
description: |
Using a Gradle Wrapper (gradlew) is required, as the wrapper is what makes sure
that the right Gradle version is installed and used for the build.
__You can find more information about the Gradle Wrapper (gradlew),
and about how you can generate one (if you would not have one already)__
in the official guide at: [https://docs.gradle.org/current/userguide/gradle_wrapper.html](https://docs.gradle.org/current/userguide/gradle_wrapper.html).
**The path should be relative** to the repository root, for example: `./gradlew`,
or if it's in a sub directory: `./sub/dir/gradlew`.
is_required: true
- ndk_version:
opts:
title: NDK version
summary: NDK version to install. Leave this input empty if you are not using the Native Development Kit in your project.
description: NDK version to install, for example `23.0.7599858`. Run `sdkmanager --list` on your machine to see all available versions. Leave this input empty if you are not using the Native Development Kit in your project.
- gradlew_dependencies_options:
opts:
title: Additional options for the `gradlew dependencies` command
summary: Additional options to be added to the executed `gradlew dependencies` command.
description: |-
Additional options to be added to the executed `gradlew dependencies` command.
The step runs `gradlew dependencies --stacktrace` to list and install the missing project dependencies.
Additional options will be appended to the end of this command.
Example: `--configuration-cache-problems=warn`.