Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: repair the Android build #905

Merged
merged 2 commits into from
Aug 29, 2022
Merged

fix: repair the Android build #905

merged 2 commits into from
Aug 29, 2022

Conversation

bassosimone
Copy link
Contributor

@bassosimone bassosimone commented Aug 29, 2022

Rather than hardcoding the NDK version inside a script, encode it
as a file in the filesystem, which is easier to share.

Make sure we use the desired NDK by setting environment variables.

Use -androidabi 21, which:

  1. is what rclone did: rclone/rclone@8390ba4

  2. is the minimum ABI used by probe-android: https://github.com/ooni/probe-android/blob/994651be52ff75ee3a00dba499ec7c7b40ab25c1/app/build.gradle#L10

Part of ooni/probe#2130

Rather than hardcoding the NDK version inside a script, encode it
as a file in the filesystem, which is easier to share.

Call ./MOBILE/android/ensure in the github action so we fail if
we cannot install the desired Android NDK version.

Make sure we use the desired NDK by setting environment variables.

Use `-androidabi 21`, which:

1. is what rclone did: rclone/rclone@8390ba4

2. is the minimum ABI used by probe-android: https://github.com/ooni/probe-android/blob/994651be52ff75ee3a00dba499ec7c7b40ab25c1/app/build.gradle#L10

Part of ooni/probe#2130
@bassosimone bassosimone requested a review from hellais as a code owner August 29, 2022 16:26
@bassosimone bassosimone merged commit 42b547d into master Aug 29, 2022
@bassosimone bassosimone deleted the androidbuild branch August 29, 2022 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant