rive-flutter icon indicating copy to clipboard operation
rive-flutter copied to clipboard

Large .pub-cache size for android builds

Open mjtalbot opened this issue 1 year ago • 1 comments

Description

When building apps using rive 0.10.x the ~/.pub-cache/hosted/pub.dev/rive_common-0.0.x folder gets quite large

Steps To Reproduce

  1. clone https://github.com/mjtalbot/rive-demo
  2. build for android flutter build apk --debug or flutter build apk
  3. check ~/.pub-cache

Expected behavior

Ideally the .pub-cache can be smaller, so it plays nicer with CI

Screenshots

After building for macos & android the file sizes in .pub-cache look something like this

du -d1 -h ~/.pub-cache/hosted/pub.dev/rive_common-0.0.5
 25M	/Users/maxwelltalbot/.pub-cache/hosted/pub.dev/rive_common-0.0.5/macos
4.0K	/Users/maxwelltalbot/.pub-cache/hosted/pub.dev/rive_common-0.0.5/shared_lib
1.6M	/Users/maxwelltalbot/.pub-cache/hosted/pub.dev/rive_common-0.0.5/test
332K	/Users/maxwelltalbot/.pub-cache/hosted/pub.dev/rive_common-0.0.5/wasm
 25M	/Users/maxwelltalbot/.pub-cache/hosted/pub.dev/rive_common-0.0.5/ios
506M	/Users/maxwelltalbot/.pub-cache/hosted/pub.dev/rive_common-0.0.5/android
156K	/Users/maxwelltalbot/.pub-cache/hosted/pub.dev/rive_common-0.0.5/lib
 16K	/Users/maxwelltalbot/.pub-cache/hosted/pub.dev/rive_common-0.0.5/windows
558M	/Users/maxwelltalbot/.pub-cache/hosted/pub.dev/rive_common-0.0.5

mjtalbot avatar May 05 '23 11:05 mjtalbot

any news?

test0terter0n avatar Nov 16 '23 13:11 test0terter0n