Canardoux / flutter_sound

Flutter plugin for sound. Audio recorder and player.
Mozilla Public License 2.0
878 stars 574 forks source link

[BUG]: apk increased size #633

Open NaarGes opened 3 years ago

NaarGes commented 3 years ago

Hello I was using flutter_sound version 2.1.1 and it my apk size was about 39.6 Mb, then by updating flutter_sound package to version 7.6.5+1 my apk size increased to 104 Mb It's not acceptable Is it just the new package size or can I decrease it?

kanekv commented 3 years ago

Size increase is a big problem. What causes it?

NaarGes commented 3 years ago

Size increase is a big problem. What causes it?

I don't know. what I do know for sure is when I remove flutter_sound dependency from pubspec.yaml and comment out related codes it decreased to 39 Mb, so I guess it's the flutter_sound package

deepbluev7 commented 3 years ago

Have you tried using the lite flavour? That one is a lot smaller iirc.

Nag112 commented 3 years ago

same issue , it was 33MB before adding the package and its 98MB now

MoacirSchmidt commented 3 years ago

I would really like to know if there is a solution for this! It seems to be a big problem

NaarGes commented 3 years ago

I couldn't find a solution, so I rollback to the old version

MoacirSchmidt commented 3 years ago

lite version solved this problema for me. Install It, import only packages you need and voilà! App size returned to normal

liemfs commented 3 years ago

I'm facing similar issues, APK size bump from 26MB to 110MB

Jemshi101 commented 3 years ago

When using the full plugin, my app shot from 37MB to around 120MB. Then we changed it to Lite Version. The Lite version is also bumping the Size. It now sits at around 82MB. Even the lite version is more than doubling the original Size.

image The earlier build was using the older Version of Flutter Sound

Also when aab file is generated, it sits around 38MB with the Lite Version. My Guess is the bundling of files targeting different architecture is causing the issue image

github-actions[bot] commented 11 months ago

This issue is stale because it has been open 90 days with no activity. Leave a comment or this will be closed in 7 days.

mehrdad1990 commented 3 weeks ago

is there anyway to solve the issue with increased apk size. mine was around 30MB but now it is around 75MB using flutter_sound. is there any configs we can use to reduce it using this library ?

Larpoux commented 3 weeks ago

There is no more LITE and FULL flavors. Nowadays, Flutter Sound does not link with FFMPEG. So if there is a size problem, someone should investigate why this size is so much.