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

Support Android 29 in cross-compilation #95309

Merged
merged 5 commits into from Aug 28, 2020

Conversation

matthewbauer
Copy link
Member

Some miscellaneous commits for getting Android 29 to work. Google Play requires Android 29 for new apps starting August 3, 2020 and updates starting November 2, 2020.

https://developer.android.com/distribute/play-policies#apps-must-target-api-level-29

@@ -63,7 +63,7 @@ let
DYNAMIC_GHC_PROGRAMS = ${if enableShared then "YES" else "NO"}
INTEGER_LIBRARY = ${if enableIntegerSimple then "integer-simple" else "integer-gmp"}
'' + stdenv.lib.optionalString (targetPlatform != hostPlatform) ''
Stage1Only = ${if targetPlatform.system == hostPlatform.system then "NO" else "YES"}
Stage1Only = ${if (targetPlatform.system == hostPlatform.system && !targetPlatform.isiOS) then "NO" else "YES"}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you be able to put a comment on this line (and in the other files)? It is not immediately obvious to me why we need this if statement here.

@matthewbauer matthewbauer changed the title Support Android 29 in cross-compilation [WIP] Support Android 29 in cross-compilation Aug 14, 2020
matthewbauer and others added 5 commits August 17, 2020 23:51
We want stage1Only here even if system == system, since we can’t run
the native arch simulator binaries locally.
This is referenced in all-packages.nix, so might as well leave it
heref or now.
@matthewbauer matthewbauer changed the title [WIP] Support Android 29 in cross-compilation Support Android 29 in cross-compilation Aug 18, 2020
@matthewbauer matthewbauer merged commit d0e52b6 into NixOS:master Aug 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants