AngeloAvv / flutter_flavorizr

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

Misleading error message: `The following fields were missing: [ios]` #212

Closed dJani97 closed 8 months ago

dJani97 commented 1 year ago

When I tried to run the latest version of Flavorizr with an older config, I got this error:

The following fields were missing: [ios]. Read the docs for further details

Contrary to what the error says, the solution was to REMOVE the ios field from the beginning of the config.

So instead of this:

app:
  android:
    flavorDimensions: "flavor-type"
  ios:

I had to use this:

app:
  android:
    flavorDimensions: "flavor-type"

Or alternatively, I did get rid of the entire app: section anf Flavorizr still works fine. I like this solution the most.

I think this error message should be improved.

Also, the 2.2.0 changelog of "Android and iOS definitions are no longer required" should contain something like:

"BREAKING: must remove ios if it's unused."

mhmzdev commented 1 year ago

Same error with latest flutter version

AngeloAvv commented 1 year ago

Hey @dJani97 can you please take a look here to see if everything works fine now?

brenomenosso commented 11 months ago

Alguma correção para esse erro ?

AngeloAvv commented 11 months ago

@brenomenosso there's an open PR for a fix but I'm waiting for feedback

aktumut commented 9 months ago

Do you know, if it is okay to delete ios? I mean making it like this:

app:
  android:
    flavorDimensions: "flavor-type"