mozilla / rust-android-gradle

Apache License 2.0
1.03k stars 67 forks source link

Always use the NDK version from `source.properties`. #142

Closed linabutler closed 2 months ago

linabutler commented 2 months ago

Previously, RustAndroidPlugin would read the NDK version from source.properties in the NDK path, while CargoBuildTask would try to infer the NDK version from the pathname.

Inferring the NDK version from the pathname would fail if the pathname didn't contain the version (e.g., Mach currently installs the NDK used to build Firefox for Android into ~/.mozbuild/android-ndk-r26c), causing Toolchain to return the wrong path to ar for new NDK versions.

linabutler commented 2 months ago

Superseded by #145.