Commit graph

37 commits

Author SHA1 Message Date
Vilius Sutkus '89
eb7920b260 Implement action input parameter 'packages' 2023-11-25 17:41:26 +02:00
Vilius Sutkus '89
ade8112388 Change "Licence" to "License" 2023-11-21 22:35:25 +02:00
Vilius Sutkus '89
aeaba18a12 [Issue #384] Implement silent licence agreement. 2023-11-21 22:11:35 +02:00
Vilius Sutkus '89
449627e76b Format file to match correct "desired" width. Remove leftover debug printout 2023-11-21 21:22:57 +02:00
Vilius Sutkus '89
8023252681 [Issue #192] Accept cmdline-tools-version input parameter 2023-11-21 21:18:33 +02:00
Vilius Sutkus '89
bee5ac3f90 Update cmdline-tools to 11.0 (latest) 2023-09-25 03:04:50 +03:00
Simon Marquis
899d70efad Update commandlinetools version to 9.0 (latest)
https://developer.android.com/studio#command-line-tools-only
2023-09-25 02:57:03 +03:00
Vilius Sutkus '89
882b1d3cd5 Update cmdline-tools version to 7.0 2022-08-03 15:03:16 +03:00
Vilius Sutkus '89
00dbb341f0 [2/2] Read version of cmdline-tools/latest, if version is correct - use it 2022-08-03 15:02:48 +03:00
Mike Hardy
fc91ea75c1 build(deps): bump tools version to v6 / 8092744 2022-04-22 05:22:01 +03:00
Vilius Sutkus '89
da1ab05e31 Comments about mkdir/rmdir 2021-03-03 00:43:22 +02:00
Laura
7506bcd002
[Issue #108] Overwrite CLI Tools (#115)
* Trying this

* Revert "Trying this"

This reverts commit 46eab8f218.

* Put exists check around tools move

* Remove directory before copying over it

* Reverted indent

* Revert additional two spaces
2021-03-03 00:02:20 +02:00
Vilius Sutkus '89
0bdb2caf82
[issue #108] Remove zip extraction leftovers 2021-03-02 03:05:42 +02:00
Vilius Sutkus '89
cc38275357 Un-whitespace ANDROID_SDK_ROOT
sdkmanager doesn't like spaces in it's path.
Move the whole SDK to a place without spaces.
2021-02-20 23:03:41 +01:00
Vilius Sutkus '89
999dabf39c Use fs-extra.moveSync instead of fs.renameSync to move cmdline-tools
fs.renameSync can't rename across drives.
2021-02-20 23:03:41 +01:00
Vilius Sutkus '89
6bde8445cd Call sdkmanager, not .bat on windows too, it just works 2021-02-20 23:03:41 +01:00
Vilius Sutkus '89
87280a34d4 Check if sdkManager is actually available
GitHub Actions have Android-SDK preinstalled, but there's no sdkmanager.
Missing sdkmanager means no additional packages can be easily installed by dowsntream users.
2021-02-20 23:03:41 +01:00
Max Romanyuta
27f88822ed Fix lint problems 2020-12-21 09:16:42 +01:00
Max Romanyuta
a9018e09bb Remove unnecessary changes 2020-12-21 09:16:42 +01:00
Max Romanyuta
6bb81b1f40 Fix path to sdkmanager for all platforms 2020-12-21 09:16:42 +01:00
Max Romanyuta
7b2dad077d Fix path to sdkmanager
In the commandlinetools-${OS}-${TOOLS_VERSION}_latest.zip file, the name of the zipped folder has been changed.
2020-12-21 09:16:42 +01:00
Brian Ballsun-Stanton
9ee0d8a034 bumped package lock for 1.2.6 and made sure to output hardcoded commandline tools version 2020-11-06 16:50:43 +01:00
Brian Ballsun-Stanton
d7b9d01c78 recompile, update android version 2020-11-06 16:50:43 +01:00
Dave Olsthoorn
331008df41 Fix test for download, only test if licenseDir exists 2020-08-26 18:51:04 +02:00
Dave Olsthoorn
24b7e80ade Changeup: consilidate code, drop cache, change download
This changes up way too much:
- Moving most (all) of the code to main.ts instead of the numerous
  files
- Dropping the caching functionality, since it should be optional
- now we will only download the android sdk tools if they are not
  already present, including if ANDROID_SDK_ROOT is already set
2020-08-26 17:51:32 +02:00
Dave Olsthoorn
01efde8e60 fix linting 2020-08-11 19:59:48 +02:00
Dave Olsthoorn
469d66c201 Run prettier, to pass format-check 2020-08-11 19:25:29 +02:00
Dave Olsthoorn
035deb0e29 only setup for caching if things are changed 2020-07-25 20:51:01 +02:00
Dave Olsthoorn
22d4a3f682 Breaks cache version on purpouse 2020-07-25 20:38:52 +02:00
Dave Olsthoorn
2381fc9bef Set --sdk_root for accepting licenses 2020-07-25 19:37:43 +02:00
Dave Olsthoorn
c9080c4243 also cache repository info 2020-07-25 19:24:48 +02:00
Dave Olsthoorn
4de319a2e2 correct bin path for sdkmanager 2020-07-25 18:37:02 +02:00
Dave Olsthoorn
90244e0383 Debug installing android sdk tools 2020-07-25 18:34:51 +02:00
Dave Olsthoorn
64495f005b Attempt at first version 2020-07-25 18:07:39 +02:00
Dave Olsthoorn
668f98f7ee run build 2020-07-14 22:11:04 +02:00
Dave Olsthoorn
9e58d95cb5 Several fixes
These include
- register ANDROID_SDK_ROOT
- add some license hash handling
2020-07-14 22:07:34 +02:00
Dave Olsthoorn
47171f7d89 Initial changes for setup-android 2020-07-14 17:41:00 +02:00