WalletConnect / WalletConnectFlutterV2

WalletConnect v2 client made in Dart for Flutter.
https://pub.dev/packages/walletconnect_flutter_v2
Apache License 2.0
105 stars 60 forks source link

WalletConnectFlutterV2 doubles the app size #181

Open mshahjahan-mufin opened 1 year ago

mshahjahan-mufin commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

@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 commented 1 year ago

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