AngeloAvv / flutter_flavorizr

A flutter utility to easily create flavors in your flutter application
https://pub.dev/packages/flutter_flavorizr
MIT License
456 stars 81 forks source link

Very long build time #185

Closed holland-hng closed 1 year ago

holland-hng commented 1 year ago

Hi @AngeloAvv

Application build time is pushed up very high. Initially, my app took less than 20s to build the first time and only 15s for the second. However, after using flavor it took 150s the first time and 60s the second time.

I know that your flavor library already generates scripts to copy the config files before runtime. However, I don't think that makes the build time so long.

There may be some problems in my project but hope to get your answer to this question.

holland-hng commented 1 year ago

I remembered that while creating the flavor I added firebase to the app. maybe that makes my app slow to build

AngeloAvv commented 1 year ago

Hello @holland-hng , I don't think flutter_flavorizr has anything to do with the building time. Of course the more you add dependencies, the longer the app will take to build

holland-hng commented 1 year ago

@AngeloAvv

Thanks for your respond This problem occurs when I integrate firebase ios sdk into the project, it's really too heavy.