Android fixes - #154895
Conversation
|
Can you have a better title? it does not really say what it does |
|
Sorry, description updated. There isn't really a better title, since the only thing these bugs have in common is Android, but since they're all very small, I thought it was better to put them all in the same PR to avoid multiplying the backports. |
Documentation build overview
|
freakboy3742
left a comment
There was a problem hiding this comment.
All makes sense to me. 👍
|
Thanks @mhsmith for the PR, and @freakboy3742 for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14, 3.15. |
|
GH-154905 is a backport of this pull request to the 3.15 branch. |
|
GH-154906 is a backport of this pull request to the 3.14 branch. |
|
GH-154907 is a backport of this pull request to the 3.13 branch. |
A collection of small cleanups for Android support: * Clarifies the documentation around version number handling for iOS and Android in os.uname and platform.release * Ensures that automated NDK installs surface messages written to stderr * Makes the Android NDK check more robust for incomplete downloads * Corrects some linting errors in Android build scripts (cherry picked from commit f4b1d3e) Co-authored-by: Malcolm Smith <smith@chaquo.com>
A collection of small cleanups for Android support: * Clarifies the documentation around version number handling for iOS and Android in os.uname and platform.release * Ensures that automated NDK installs surface messages written to stderr * Makes the Android NDK check more robust for incomplete downloads * Corrects some linting errors in Android build scripts (cherry picked from commit f4b1d3e) Co-authored-by: Malcolm Smith <smith@chaquo.com>
A collection of small cleanups for Android support: * Clarifies the documentation around version number handling for iOS and Android in os.uname and platform.release * Ensures that automated NDK installs surface messages written to stderr * Makes the Android NDK check more robust for incomplete downloads * Corrects some linting errors in Android build scripts (cherry picked from commit f4b1d3e) Co-authored-by: Malcolm Smith <smith@chaquo.com>
Clarify that the user-facing Android and iOS versions can be found in
platform.release, notplatform.version, which is a kernel build number that's much less likely to be useful.Don't capture stderr from android-env.py. This allows it to display the message "Installing NDK - this may take several minutes", which is quite important, otherwise the user will probably think the script has hung.
Previously the NDK was detected only by checking for the existence of its directory, which will be left in an unusable state by interrupted installations. Fixed by checking for the package.xml file, which sdkmanager creates after installation is complete.
Fix a couple of warnings found by linters: use of an undefined
payloadvariable inAndroid/__main__.py, and defining an unuseditvariable inMainActivity.kt.