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

cargo-apk: Use min_sdk_version to select compiler target #197

Merged
merged 1 commit into from
Nov 24, 2021

Commits on Nov 22, 2021

  1. cargo-apk: Use min_sdk_version to select compiler target

    According to [1] minSdkVersion is used to determine the compiler target
    and ultimately limit what API is available at compile-time.  This is
    for the most part because using/linking newer API will result in runtime
    linker errors on these older platforms.
    
    In other words, using the target sdk version which (as of writing, but
    that will change in the near future too) defaults to the highest version
    supported by the detected SDK makes it impossible to detect
    compatibility issues (symbols that are unavailable) with your app on
    older Android APIs despite setting min_sdk_version.
    
    [1]: https://developer.android.com/ndk/guides/sdk-versions#minsdkversion
    MarijnS95 committed Nov 22, 2021
    Configuration menu
    Copy the full SHA
    c29dc86 View commit details
    Browse the repository at this point in the history