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

Support generating android adaptive icons #206

Closed vigorox closed 10 months ago

vigorox commented 1 year ago

Support generating android adaptive icons:

flavorizr:
  flavors:
    flavor_1:
      app:
        name: "myApp"
      android:
        applicationId: "com.xxx.myApp"
        icon: "assets/icon.png"
        iconForeground: "assets/foreground.png"
        iconBackground: "assets/background.png"

The instruction to generate adaptive icons is "android:adaptiveIcons"

AngeloAvv commented 11 months ago

Hey @vigorox , thanks for supporting this project. I have a few questions for you:

flavorizr:
  flavors:
    flavor_1:
      app:
        name: "myApp"
      android:
        applicationId: "com.xxx.myApp"
        icon: "assets/icon.png"
        adaptiveIcon:
          foreground: "assets/foreground.png"
          background: "assets/background.png"

What do you think? Thank you!

vigorox commented 11 months ago

Hi AngeloAvv,

I modified based on your suggestions. Please take a look.

Thanks,

AngeloAvv commented 11 months ago

@vigorox please don't squash/force-push your commits, I'll squash them once everything is ready

vigorox commented 10 months ago

Hi AngeloAvv,

I refactored the code based on your review.

If any further change is required, please tell me.

Thanks,

kbudulski commented 8 months ago

@AngeloAvv That's a cool feature and I see few PRs referencing it, where can we expect a new release with adaptive icons included? 🙂

AngeloAvv commented 8 months ago

Hey @kbudulski , I was waiting for feedback from this before releasing a new version of flutter_flavorizr