Skip to content

Conversation

jonsimantov
Copy link
Contributor

@jonsimantov jonsimantov commented Oct 27, 2020

The most recent versions of the NDK don't support the "mips", "mips64", and "armeabi" ABIs, but we still do ship those with the binary C++ SDK to support older devices. This change adds a check to our Android gradle build, which determines whether a custom NDK is being used (as we do in our packaging step), and builds those additional ABIs if the NDK version is the one we expect.

Our custom Android build script supports building with NDK r16b to enable all 3 STL variants as well as the aforementioned older ABIs.

This change also includes an option to build the armeabi-v7a-hard ABI, which was removed a few years ago and subsumed into armeabi-v7a, and thus shouldn't normally be required. (But if you do need armeabi-v7a-hard for some reason, you can use NDK r11c.)

@jonsimantov jonsimantov requested a review from a-maurice October 27, 2020 17:14
@google-cla google-cla bot added the cla: yes label Oct 27, 2020
@jonsimantov jonsimantov changed the title Build all Android ABIs available in NDK r16c (and in r11c if we switch to that later). Build all Android ABIs available in NDK r16b. Oct 27, 2020
@jonsimantov jonsimantov merged commit 77d64e7 into dev Oct 27, 2020
@jonsimantov jonsimantov deleted the feature/js-android-abis branch October 27, 2020 17:59
@firebase firebase locked and limited conversation to collaborators Nov 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants