One app takes up 526MB which is rather a lot. Keeping ten copies is 5GB, we keep a lot more versions than that as well :)
macpro:Jambuster rwillett$ du -s -h *
4.0K Makefile
4.0K bower.json
4.0K build.json
8.0K config.xml
4.0K gulpfile.js
44K hooks
4.0K ionic.project
22M jambuster.apk
4.0K jambuster.london.keystore
100K jamcams.json
2.0M node_modules
4.0K package.json
8.0K paw
393M platforms
61M plugins
4.0K plusgins_list
14M res
1.1M resources
4.0K scss
33M www
33MB for our code, OK, we can prune that down a bit, but 393MB in the platforms directory!
Drilling down to platforms
macpro:Jambuster rwillett$ cd platforms/
macpro:platforms rwillett$ du -s -h *
242M android
150M ios
4.0K platforms.json
242MB vs 150MB Android vs IOS. Quite a big difference. Our app is around 40MB in production.
Heading down to android
du -s -h *
8.0K AndroidManifest.xml
1.8M CordovaLib
28K android.json
24M assets
196M build
12K build.gradle
4.0K com.transistorsoft.cordova.background-geolocation
5.3M cordova
4.0K cordova-plugin-badge
56K gradle
8.0K gradlew
3.3M libs
296K platform_www
4.0K project.properties
4.0K pushwoosh-cordova-plugin
3.5M res
4.0K settings.gradle
500K src
So its the build directory, mmm... lets take a look there
macpro:build rwillett$ du -s -h *
96K generated
127M intermediates
68M outputs
1.8M tmp
Lets check intermediates
macpro:intermediates rwillett$ du -s -h *
48M assets
4.5M blame
0B bundles
1.6M classes
0B dependency-cache
16K dex-cache
4.5M exploded-aar
812K incremental
8.0K incremental-safeguard
8.0K instant-run-support
6.5M jniLibs
24K manifests
3.1M pre-dexed
44M res
0B rs
0B shaders
280K sourceFolderJavaResources
16K symbols
13M transforms
So the assets directory is the big one
macpro:assets rwillett$ du -s -h *
24M debug
24M release
heading down to debug we find the www folder from waaaay up above.
So is there anything to trim these directories down at all?
The reason we ask is that we often transfer stuff from our main machines to laptops, we tend to transfer the whole directory so we have everything to work with and moving 500MB around is a lot. As we move to multiple applications we will start to double and triple that.
Any suggestions welcomed.
Thanks
Rob