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

fix(Android,Fabric): add missing DoNotStrip annotation to JNI-accessed methods #2290

Merged
merged 2 commits into from
Aug 9, 2024

Conversation

kkafar
Copy link
Member

@kkafar kkafar commented Aug 8, 2024

Description

Due to missing DoNotStrip annotations proguard could treat the class & methods as unused (as reported in #2286)
and remove them completely.

Possibly fixes #2286.

Changes

Annotate ScreenDummyLayoutHelper class & all method accessed via JNI.

Test code and steps to reproduce

Haven't triggerred the error localy, relying on report in #2286

Checklist

  • Ensured that CI passes

@janicduplessis
Copy link
Contributor

I can confirm this fixes it, once deployed I stopped seeing the crash in #2286

@kkafar kkafar merged commit 40a5422 into main Aug 9, 2024
4 checks passed
@kkafar kkafar deleted the @kkafar/donotstrip-symbols-accessed-from-jni branch August 9, 2024 07:03
ja1ns pushed a commit to WiseOwlTech/react-native-screens that referenced this pull request Oct 9, 2024
…sed methods (software-mansion#2290)

## Description

Due to missing `DoNotStrip` annotations proguard could treat the class &
methods as unused (as reported in software-mansion#2286)
and remove them completely. 

Possibly fixes software-mansion#2286.

## Changes

Annotate `ScreenDummyLayoutHelper` class & all method accessed via JNI.

## Test code and steps to reproduce

Haven't triggerred the error localy, relying on report in software-mansion#2286

## Checklist

- [ ] Ensured that CI passes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Crash: SIGABRT in findHeaderHeight
3 participants