spotify / ruler

Gradle plugin which helps you analyze the size of your Android apps.
Apache License 2.0
1.14k stars 58 forks source link

Native files breakdown #135

Closed ViktorPetrovski closed 1 year ago

ViktorPetrovski commented 1 year ago

What has changed

Add Bloaty to parse native libraries to their respective files by providing unstripped debug files.

Before:

image

After:

image

Why was it changed

Break down big .so files into their respective files.

How to use:

Provide your .unstripped.so file through grade or Ruler CLI:

unstrippedNativeFiles.set(listOf(
    project.layout.projectDirectory.file("native-library.unstripped.so")
))

The name of the native library must match with the unstripped file.

Related issues

Obfuscated native library file names on projects with DexGuard