- Fixed NDK path resolution on Windows by using
USERPROFILEand normalizing path separators. Thanks @kekland and @AttalliAyoub for the PRs and Issue (#2). - Fixed
runProcessfailing with aFormatExceptionon non-English Windows by decoding process output with the system encoding. Thanks @wyq0918dev for the PR / Issue (#4). - The build hook now verifies that
libc++_shared.soexists and is an ELF shared object before emitting it: thanks to @chillbrodev for the Issue (#5). - An NDK that does not contain the library for the target architecture is now skipped in favour of the next installation, instead of failing the build.
- Added the legacy
sources/cxx-stl/llvm-libc++/libs/<abi>/location used by NDK r22 and older as a fallback. - The NDK the Flutter tool is building with is now used first, derived from the compiler in the build config.
- Added
sdk.dir/ndk.dirfrom the project'slocal.properties,flutter config --android-sdk,ndk-bundledirectories and more well known SDK locations to NDK discovery. - Fixed NDK installations in
PATHnever being detected, because the search directory forndk-buildwas incorrect. - Added the
libcpp_shared_pathuser define and theANDROID_LIBCPP_SHARED_PATHenvironment variable to override where the library comes from. - Failures report each NDK and file checked, and it is looged by the build hook.
- Added
ia32mapped tox86.
- Updated
native_toolchain_cto0.19.0. - Updated
hooksto2.0.2. - Updated
exampleKotlin version to2.3.20,com.android.applicationto9.0.1andgradleto9.1.0. - Added documentataion about adding
--enable-native-access=ALL-UNNAMEDtoorg.gradle.jvmargsingradle.properties. - Added
--enable-native-access=ALL-UNNAMEDtoorg.gradle.jvmargsinexample/android/gradle.properties.
- Updated
native_toolchain_cto0.18.0.
- Shared Android C++ runtime for Dart / Flutter apps.