Skip to content

Add missing entry to Android proguard #333

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

Merged
merged 3 commits into from
Apr 30, 2025

Conversation

aurimasc
Copy link
Collaborator

https://jira.unity3d.com/browse/MNB-90
Proguard entry for NotificationChannelWrapper was not present, hence this class is not prevented from being minified/obfuscated, even though it is being used from C# and obfuscation should be disabled for it. There were no issues in the past, but likely with Android tools updated, being non-public, the class got obfuscated and C# code is no longer able to retrieve channel details.

The issue happens with Release builds. The exception shows that class gets renamed to a single-letter and it's fields are not found either due to renames to single letter names too.

Only tested trunk on a single device, as this bug is build-time (hence Android version or device are irrelevant). Unity version is only relevant with regard that in the past the class was preserved even without explicit rule present (Android tools). The added rule is correct regardless.

@aurimasc aurimasc requested review from todi1856 and a team April 28, 2025 14:32
@IGuscin IGuscin requested review from IGuscin and removed request for a team April 30, 2025 09:17
Copy link

@IGuscin IGuscin left a comment

Choose a reason for hiding this comment

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

Small safe change, no additional testing needed.

@aurimasc aurimasc merged commit 943c501 into master Apr 30, 2025
16 checks passed
@aurimasc aurimasc deleted the android-proguard-channelwrapper branch April 30, 2025 09:43
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.

3 participants