Managing multiple copies of the same Flutter app

Hi everyone,

I was wondering if any of you have a good idea on how to deal with the same Flutter app being copied across multiple folders, along with the build cache being duplicated in each of them - things like the Android build, native symbols, iOS cache, and all the other stuff that needs to be stored.

It’s getting pretty painful to have 50 or 70 gigs of data that is essentially just copies of itself. I’m curious if there’s any good way to share that build metadata or otherwise avoid all this duplication.

Any suggestions appreciated

1 Like

A fairly popular pattern, particularly for “white label” multiple instances, is to use top-level app folders in a monorepo for each variant, alongside the majority of the code in a “common” package that all apps pull in.

I don’t think these will work. Imagine having worktrees of the same mobile flutter app. There’s no way to share native build files per package, these files are always going to be created in the ./build directory.
I think @Fabio is a bot.

1 Like