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

WalletConnectFlutterV2 doubles the app size #181

Open
mshahjahan-mufin opened this issue Aug 28, 2023 · 3 comments
Open

WalletConnectFlutterV2 doubles the app size #181

mshahjahan-mufin opened this issue Aug 28, 2023 · 3 comments

Comments

@mshahjahan-mufin
Copy link

After integration and successful testing, while creating the release we noticed that WalletConnectFlutterV2 increased the app size significantly. Prior to the addition of this, our app size was 50MB now it is around 120MB. Can you share any thing that will help us to reduce the app size?

@Luzzotica
Copy link
Contributor

There are many libraries I rely on to make the library function.

At this time, I am not sure what I can do to reduce the app size, beyond perhaps rebuilding some of those other libraries, which I am unwilling to do.

I'll take some time to determine if there are any libraries that are not necessary and remove them.
Materials icons for example, I might be able to remove.

What platform are you building for? Is this iOS or Android?

@mshahjahan-mufin
Copy link
Author

@Luzzotica Thanks for the reply. I am building for both iOS and Android. I am also trying to figure out which libraries are both in WalletConnect SDK and my app so that I can remove them. By doing this, I am able to reduce around 10MB.

@mshahjahan-mufin
Copy link
Author

@Luzzotica What if here replace SharedPreferences with FlutterSecureStorage, I have used this one in an app and achieved 12% reduction in app size.

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

No branches or pull requests

2 participants