mirror of
https://github.com/getpaseo/paseo.git
synced 2026-10-14 13:22:37 +00:00
Keep development tool versions consistent across version managers (#2390)
* chore(dev): centralize tool versions * docs(android): clarify SDK version source * fix(dev): keep mise setup installable
This commit is contained in:
+9
-9
@@ -1,10 +1,10 @@
|
|||||||
[env]
|
[vars]
|
||||||
ANDROID_HOME = "{{env.HOME}}/.local/share/mise/installs/android-sdk/21.0"
|
android_sdk_version = '{{ read_file(path=".tool-versions") | split(pat="android-sdk") | last | trim | split(pat="\n") | first | trim }}'
|
||||||
_.path = [
|
|
||||||
"{{env.HOME}}/.local/share/mise/installs/android-sdk/21.0/cmdline-tools/21.0/bin",
|
|
||||||
"{{env.HOME}}/.local/share/mise/installs/android-sdk/21.0/platform-tools",
|
|
||||||
"{{env.HOME}}/.local/share/mise/installs/android-sdk/21.0/emulator",
|
|
||||||
]
|
|
||||||
|
|
||||||
[tools]
|
[env]
|
||||||
java = "21"
|
ANDROID_HOME = "{{ env.HOME }}/.local/share/mise/installs/android-sdk/{{ vars.android_sdk_version }}"
|
||||||
|
_.path = [
|
||||||
|
"{{ env.HOME }}/.local/share/mise/installs/android-sdk/{{ vars.android_sdk_version }}/cmdline-tools/{{ vars.android_sdk_version }}/bin",
|
||||||
|
"{{ env.HOME }}/.local/share/mise/installs/android-sdk/{{ vars.android_sdk_version }}/platform-tools",
|
||||||
|
"{{ env.HOME }}/.local/share/mise/installs/android-sdk/{{ vars.android_sdk_version }}/emulator",
|
||||||
|
]
|
||||||
|
|||||||
+2
-2
@@ -27,13 +27,13 @@ The formula reserves three digits each for minor and patch. If either reaches `1
|
|||||||
|
|
||||||
## Prerequisites (local dev)
|
## Prerequisites (local dev)
|
||||||
|
|
||||||
Local Android builds run on macOS (or Linux) and need the Android toolchain, pinned in `.tool-versions` (`java 21`, `android-sdk 21.0`) and wired up by `.mise.toml` (which sets `ANDROID_HOME` and puts `cmdline-tools/21.0/bin`, `platform-tools`, and `emulator` on `PATH`). With [mise](https://mise.jdx.dev):
|
Local Android builds run on macOS (or Linux) and need the Android toolchain, pinned in `.tool-versions` (`java 21`, `android-sdk 21.0`) and wired up by `.mise.toml` (which derives `ANDROID_HOME` and the command-line tool paths from the `android-sdk` entry). With [mise](https://mise.jdx.dev):
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
mise install # java 21 + android-sdk 21.0 command-line tools
|
mise install # java 21 + android-sdk 21.0 command-line tools
|
||||||
```
|
```
|
||||||
|
|
||||||
> **Pin a real `android-sdk` version, not `latest`.** The mise `android-sdk` plugin's `latest` resolved to the ancient `1.0` bundle, whose `sdkmanager` (3.6.0) predates the `emulator` package and fails with `Failed to find package emulator`. `21.0` ships a current `sdkmanager`. If you bump it, update the version in `.tool-versions` and in all four paths in `.mise.toml`.
|
> **Pin a real `android-sdk` version, not `latest`.** The mise `android-sdk` plugin's `latest` resolved to the ancient `1.0` bundle, whose `sdkmanager` (3.6.0) predates the `emulator` package and fails with `Failed to find package emulator`. `21.0` ships a current `sdkmanager`. If you bump it, update only the version in `.tool-versions`; `.mise.toml` derives its paths from that tool entry.
|
||||||
|
|
||||||
`mise install` only lays down the command-line tools. Install the rest and create an emulator. On Apple Silicon:
|
`mise install` only lays down the command-line tools. Install the rest and create an emulator. On Apple Silicon:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user