flutter_launcher_icons icon indicating copy to clipboard operation
flutter_launcher_icons copied to clipboard

[BUG] flutter_launcher_icons.yaml is ignored if flutter_launcher_icons-<FLAVOR>.yaml is present

Open britannio opened this issue 4 years ago • 3 comments

:information_source: Info

Version: e.g. v0.8.0

:speech_balloon: Description

My Android app has two flavors: dev and prod. android/app/src looks like this:

.
├── debug
├── dev
├── main
└── profile

Icons for the dev flavor should go under the /dev and icons for the prod flavor should go under /main hence why I'm not using a flutter_launcher_icons-prod.yaml config.

Unfortunately, since adding flutter_launcher_icons-dev.yaml, my flutter_launcher_icons.yaml file is ignored so updates to it aren't reflected in /main

:scroll: flutter_launcher_icons.yaml

flutter_icons:
  android: true
  ios: true
  # IOS settings
  image_path_ios: "dev_assets/ios_launcher_icon.jpg"
  # Android settings
  image_path_android: "dev_assets/android_launcher_icon.png"
  adaptive_icon_background: "#ffffff"
  adaptive_icon_foreground: "dev_assets/android_adaptive_launcher_icon.png"

:scroll: flutter_launcher_icons-dev.yaml

flutter_icons:
  android: true
  ios: true
  # IOS settings
  image_path_ios: "dev_assets/ios_launcher_icon_dev.jpg"
  # Android settings
  image_path_android: "dev_assets/android_launcher_icon_dev.png"
  adaptive_icon_background: "#212121"
  adaptive_icon_foreground: "dev_assets/android_adaptive_launcher_icon.png"

britannio avatar Sep 16 '20 12:09 britannio

I'm having a similar problem, the last run flutter launcher icons overwrites everything on main/res and never touchs the flavors directories, flavoring is correctly configured on build.gradle and it's otherwise working (firebase google services etc).

Vasques1995 avatar Sep 23 '20 20:09 Vasques1995

same same. do you think they will fix it?

AlexanderThiele avatar Feb 21 '22 13:02 AlexanderThiele

Same problem here

25LucasAnselmo avatar Sep 22 '23 15:09 25LucasAnselmo