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

Figure out matching sdk/agp/ndk for well stripped native libs #11

Open
nain-F49FF806 opened this issue Jul 14, 2024 · 0 comments
Open
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@nain-F49FF806
Copy link
Owner

nain-F49FF806 commented Jul 14, 2024

When building native libs, debug symbols are included by default.

Android Studio takes care of stripping these out safely before merging them into the apk. But not always.
When the ndk matches the one the SDK/AGP was tested against, this is done. Otherwise, it is not.

So it can happen that just because of changing AGP (Android Gradle Plugin) version / NDK version, apk size blows up.
That is what we are seeing in the CI builds.

We need to figure out the right NDK for the AGP version we are using and use that when building with CI.
Or some other way to force stripping of debug symbols.


This Issue is marked as good-first-issue. As a new contributor, you can follow some simple steps to be able to help

  • Look in our code to see which version of AGP we are using
  • Look through Android documentation about code shrinking related to use of NDK.
  • Go through release notes of AGP to find which version of NDK it is tested against (/default ndk).
  • Go through documentation of NDK to see if there's a way to force stripping of debug symbols for built libraries.
@nain-F49FF806 nain-F49FF806 added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers labels Jul 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant