Skip to content

Conversation

@wisniewskij
Copy link
Contributor

@wisniewskij wisniewskij commented Nov 21, 2025

Summary

I noticed that in newer versions of reanimated, when building the release some binaries don't get stripped even though they are in folder called "stripReleaseDebugSymbols". This problem was absent in 3.16.7. After suggestion from @radoslawrolka I changed deprecated "doNotStrip" to "keepDebugSymbols":

                println("Generated clangd metadata.")
            }
    }
}

+ androidComponents {
+  onVariants(selector().withBuildType("debug")) {
+      packaging.jniLibs.keepDebugSymbols.add("**/**/*.so")
+    }
+}
buildTypes {
-        debug {
-            packagingOptions {
-                doNotStrip "**/**/*.so"
-            }
-        }

which seems to have fixed the problem.

Some links on the topic:
JniLibsPackaging
doNotStrip deprecated

Screenshots:

Before changes:
image
image

After changes:
image
image

Copy link
Member

@piaskowyk piaskowyk left a comment

Choose a reason for hiding this comment

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

Looks good 👍 but lets wait with merge after we release Reanimated 4.3.0 🙏

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.

3 participants