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

App size is too large in Release mode with several native binded libraries #19019

Closed
espritm opened this issue Nov 24, 2023 · 2 comments
Closed

Comments

@espritm
Copy link

espritm commented Nov 24, 2023

Description

I am rewritting a native Android and iOS application into a single MAUI application.
This application uses 4 main native libraries, that I have binded successfully.

Those native libraries has many dependancies, like com.vonage:webrtc which is a 200MB aar for instance.

For iOS, the final Release ipa is 210Mb, versus 50MB with the one built in native with Swift and xCode.
For Android, the final Release apk is 400MB, versus 90MB with the one build in native with Java and Android Studio.

In Debug, apk size is 49MB... And the limit to publish an app to the Play Store is 200MB.

How can I reduce the size please ? Is it an issue with binded library ?
I really need to go under 200MB, else it is a show stopper :x After months of binding, I cannot believe it.

I've tried to follow those advices https://devblogs.microsoft.com/dotnet/dotnet-7-performance-improvements-in-dotnet-maui

Steps to Reproduce

No response

Link to public reproduction project repository

No response

Version with bug

7.0.101

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

iOS, Android

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

No response

@espritm espritm added the t/bug Something isn't working label Nov 24, 2023
@drasticactions
Copy link
Contributor

drasticactions commented Nov 25, 2023

If you have questions over binding, you may want to move them to xamarin-macios and xamarin-android, where the tooling lives. This repo is for the MAUI UI project.

@espritm
Copy link
Author

espritm commented Nov 25, 2023

Following @drasticactions recommandations I close the ticket.
I have created dotnet/android#8530 instead

@espritm espritm closed this as completed Nov 25, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Dec 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants