kmcgill88 / admob_flutter

Admob Flutter plugin that shows banner ads using native platform views.
https://pub.dartlang.org/packages/admob_flutter
ISC License
435 stars 151 forks source link

Decrease Plugin size #230

Open 123dma opened 3 years ago

123dma commented 3 years ago

Hi, congratulations for the plugin I was looking for a plugin that would take up less space in the final APK. I have already followed all the procedures to decrease the final APK size suggested by the Flutter documentation.

Currently, the size occupied by this plug-in is similar to firebase_admob 0.10.0 + 2.

Here are some examples.

To generate the Apk I used image

The difference between APK´s is giving 1.3Mb.

I would like to ask if there is any way to decrease the size of this plugin in the final APK. Currently I only use banners and interstitials. I do not use Rewarded Video Ads or native ads.

Appreciate

edeuss commented 3 years ago

@123dma I don't think so.. admob_flutter depends on the amob sdk (same with firebase_admob), 194kb is not a lot of data these days anyway. (That is the diffrence from adding admob_flutter with firebase_admob)

123dma commented 3 years ago

Hi @EliasDeuss thanks for the reply.

It wouldn't be 194kb, but 1.3Mb that the library increases in the APK.

I believe that a library smaller than admob firebase would be a good upgrade.

Have you tried to use sdk lite? https://developers.google.com/admob/android/lite-sdk

edeuss commented 3 years ago

@123dma admob_flutter depends on firebase_admob so it's only adding on 194kb to the size of firebase_admob .