ndk icon indicating copy to clipboard operation
ndk copied to clipboard

Please provide maintainable list of NDK codename-revision pairs

Open basilgello opened this issue 1 year ago • 3 comments

In certain situations like F-Droid builds it is necessary to have a mapping of NDK codename (r26d) to revision (26.3.xxxxx), since sdkmanager from Android SDK does not know MDK codenames.

I made a quick one-liner to retrieve NDK revision from released tags in this repo:

wget \
  -qO- \
  -H "Accept: application/vnd.github+json" \
  -H "X-GitHub-Api-Version: 2022-11-28" \
  'https://api.github.com/repos/android/ndk/releases' |
  jq \
   -r \
   '.[] | select(.tag_name == "r27-beta1") | .body | match("ndkVersion \"(.*)\"").captures[0].string'

but tagged releases start from r26.

To provide single source of truth on this matter, it would be best to have releases tagged for older NDKs up to r11 but I am not sure if it possible to back-date Github releases so they dont become the 'latest' one. Another option is to have automatically generated JSON/YAML/TOML file with mappings like:

r26=26.0.11112

@DanAlbert What do you think?

basilgello avatar Jul 12 '24 08:07 basilgello