Skip to content

Unused MAUI .java not being trimmed #9943

@RobersonGazolli

Description

@RobersonGazolli

Android framework version

net8.0-android

Affected platform version

VS 2022 17.11.2

Description

Image

As shown in the image, the unusable codes are not being removed in the apk compilation.
A project was created in maui for the android platform, but when I generate the apk and decompile the apk in JADX, I see that the WebView codes that were not used at any time are in the apk

Steps to Reproduce

1 Create a new project.
2 Generate the apk file.
3 Open JADX and locate the apk.
4 In the Navigation tab > Search by text
5 In the search box type > Webview

Did you find any workaround?

No response

Relevant log output

Metadata

Metadata

Labels

Area: App+Library BuildIssues when building Library projects or Application projects.Area: LinkerIssues when linking assemblies.need-attentionA xamarin-android contributor needs to review

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions