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: lib crashing when proguard is enabled #93

Merged
merged 2 commits into from
May 16, 2024
Merged

fix: lib crashing when proguard is enabled #93

merged 2 commits into from
May 16, 2024

Conversation

matinzd
Copy link
Owner

@matinzd matinzd commented May 16, 2024

Rationale

Given that we dynamically assign record classes during runtime based on activity types, proguard will strip down all those classes during compile time and it will lead the apps that have proguard enabled to crash.

https://github.com/matinzd/react-native-health-connect/blob/main/android/src/main/java/dev/matinzd/healthconnect/records/ReactHealthRecord.kt#L22-L37

Fixes #89

@matinzd matinzd requested a review from TheRogue76 May 16, 2024 19:10
TheRogue76
TheRogue76 previously approved these changes May 16, 2024
Copy link
Collaborator

@TheRogue76 TheRogue76 left a comment

Choose a reason for hiding this comment

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

Oooooooh. Ouch

@matinzd matinzd merged commit b296bd5 into main May 16, 2024
3 checks passed
@matinzd matinzd deleted the fix/proguard branch May 16, 2024 21:05
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.

UNKNOWN_ERROR: java.lang.Class<oh.k0> cannot be instantiated
2 participants