Skip to content

[Question] method is deleted when apply io.sentry.android.gradle in final class file #937

@joechan-cq

Description

@joechan-cq

Gradle Version

8.7

AGP Version

8.5.2

Code Minifier/Optimizer

R8

Version

4.11.0

Sentry SDK Version

7.0.0

Steps to Reproduce

Platform: Android
JDK Version: 18

build apk on debug mode, disable minifyEnabled。

It's so confusing that when I apply io.sentry.android.gradle plugin, the method which named getIdentifier in another class file would be deleted. I can't find it in the final output class file.

Image

If not apply plugin, the method won't be deleted.

Image

Maybe it's not the issue with sentry, but I have nowhere else to turn for help.

Expected Result

the method is kept in the final class file.

Actual Result

the method is deleted in the final class file.

Metadata

Metadata

Assignees

Labels

AndroidBugSomething isn't working

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions