Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Flavors not being detected #279

Open
Zazo032 opened this issue Aug 19, 2021 · 1 comment
Open

[BUG] Flavors not being detected #279

Zazo032 opened this issue Aug 19, 2021 · 1 comment

Comments

@Zazo032
Copy link

Zazo032 commented Aug 19, 2021

ℹ️ Info

Version: 0.9.1

💬 Description

We're using flavors for our app, so instead of adding the flutter_icons to pubspec.yaml, following the flavor's section on README.md, we created 2 files: flutter_launcher_icons-development.yaml and flutter_launcher_icons-production.yaml, at the same project level as pubspec.yaml.

Error log

flutter pub run flutter_launcher_icons:main
  ════════════════════════════════════════════
     FLUTTER LAUNCHER ICONS (v0.9.1)
  ════════════════════════════════════════════


✗ ERROR: NoConfigFoundException
Check that your config file `flutter_launcher_icons.yaml` has a `flutter_icons` section
pub finished with exit code 1

📜 pubspec.yaml

name: <elided>
description: <elided>
publish_to: none
version: 0.0.3+6

environment:
  sdk: ">=2.13.0 <3.0.0"

dependencies:
  <elided>

dev_dependencies:
  bloc_test: ^8.1.0
  flutter_launcher_icons: ^0.9.1
  flutter_native_splash: ^1.2.1
  flutter_test:
    sdk: flutter
  very_good_analysis: ^2.2.0

flutter:
  assets:
    - assets/auth/
  generate: true
  uses-material-design: true

📜 flutter_launcher_icons-development.yaml

flutter_icons:
  android: true
  image_path: "assets/native/icon-development.png"

📜 flutter_launcher_icons-production.yamll

flutter_icons:
  android: true
  image_path: "assets/native/icon-development.png"
@MarkOSullivan94
Copy link
Collaborator

Hi @Zazo032 in the current version you need to specify the config file to use when using flavors

E.g. flutter pub run flutter_launcher_icons:main -f flutter_launcher_icons-development.yaml

@RatakondalaArun RatakondalaArun mentioned this issue Aug 1, 2022
18 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants