fluttercommunity / flutter_launcher_icons

Flutter Launcher Icons - A package which simplifies the task of updating your Flutter app's launcher icon. Fully flexible, allowing you to choose what platform you wish to update the launcher icon for and if you want, the option to keep your old launcher icon in case you want to revert back sometime in the future. Maintainer: @MarkOSullivan94
https://pub.dev/packages/flutter_launcher_icons
MIT License
1.99k stars 396 forks source link

Version 0.12.0 ignores remove_alpha_ios setting #462

Open dvorapa opened 1 year ago

dvorapa commented 1 year ago

:information_source: Info

Version: v0.12.0

:speech_balloon: Description

I upgraded to 0.12.0, but it broke all my icons suddenly, because remove_alpha_ios option in pubspec.yaml gets ignored now. It worked before with 0.11.0. You can see that in this response:

$ flutter pub run flutter_launcher_icons
  ════════════════════════════════════════════
     FLUTTER LAUNCHER ICONS (v0.12.0)                               
  ════════════════════════════════════════════

• Creating default icons Android
• Overwriting the default Android launcher icon with a new icon

WARNING: Icons with alpha channel are not allowed in the Apple App Store.
Set "remove_alpha_ios: true" to remove it.

• Overwriting default iOS launcher icon with new icon
Creating Icons for Web...
⚠️Requirements failed for platform Web. Skipped
Creating Icons for Windows...
⚠️Windows config is not provided or windows.generate is false. Skipped...
⚠️Requirements failed for platform Windows. Skipped
Creating Icons for MacOS...
⚠️Requirements failed for platform MacOS. Skipped

✓ Successfully generated launcher icons

:scroll: Pubspec.yaml

name: stepslow
description: Simple Music Player for Dancers
# The following line prevents the package from being accidentally published to
# pub.dev using `flutter pub publish`. This is preferred for private packages.
publish_to: 'none' # Remove this line if you wish to publish to pub.dev

# The following defines the version and build number for your application.
# A version number is three numbers separated by dots, like 1.2.43
# followed by an optional build number separated by a +.
# Both the version and the builder number may be overridden in flutter
# build by specifying --build-name and --build-number, respectively.
# In Android, build-name is used as versionName while build-number used as versionCode.
# Read more about Android versioning at https://developer.android.com/studio/publish/versioning
# In iOS, build-name is used as CFBundleShortVersionString while build-number is used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
# In Windows, build-name is used as the major, minor, and patch parts
# of the product and file versions while build-number is used as the build suffix.
version: 0.2.5+7
homepage: https://www.dvorapa.cz

environment:
  sdk: '>=2.12.0 <3.0.0'
  flutter: ^3.0.0

# Dependencies specify other packages that your package needs in order to work.
# To automatically upgrade your package dependencies to the latest versions
# consider running `flutter pub upgrade --major-versions`. Alternatively,
# dependencies can be manually updated by changing the version numbers below to
# the latest version available on pub.dev. To see which dependencies have newer
# versions available, run `flutter pub outdated`.
dependencies:
  flutter:
    sdk: flutter

  audioplayers: ^3.0.1
  on_audio_query: ^2.6.1
  flutter_beep: ^1.0.0
  wakelock: '>=0.6.2 <1.0.0'
  collection: ^1.17.0
  volume_regulator: ^2.1.0
  easy_dialogs: ^2.0.0
  typicons_flutter: '>=0.5.0 <1.0.0'
  shared_preferences: ^2.0.18
  yaml: ^3.1.1
  ffmpeg_kit_flutter: 5.1.0-LTS
  permission_handler: ^10.2.0
  path_provider: ^2.0.13
  about: ^2.1.1
  url_launcher: ^6.1.10
  cupertino_icons: ^1.0.5

dev_dependencies:
  flutter_launcher_icons: '>=0.12.0 <1.0.0'
  pubspec_extract: ^2.0.5
  flutter_test:
    sdk: flutter
  flutter_lints: ^2.0.1

flutter_icons:
  image_path: 'assets/icon.png'
  android: true
  ios: true
  remove_alpha_ios: true

flutter:
  uses-material-design: true

  assets:
    - CHANGELOG.md

  # An image asset can refer to one or more resolution-specific "variants", see
  # https://flutter.dev/assets-and-images/#resolution-aware

  # For details regarding adding assets from package dependencies, see
  # https://flutter.dev/assets-and-images/#from-packages

  # To add custom fonts to your application, add a fonts section here,
  # in this "flutter" section. Each entry in this list should have a
  # "family" key with the font family name, and a "fonts" key with a
  # list giving the asset and other descriptors for the font. For
  # example:
  # fonts:
  #   - family: Schyler
  #     fonts:
  #       - asset: fonts/Schyler-Regular.ttf
  #       - asset: fonts/Schyler-Italic.ttf
  #         style: italic
  #   - family: Trajan Pro
  #     fonts:
  #       - asset: fonts/TrajanPro.ttf
  #       - asset: fonts/TrajanPro_Bold.ttf
  #         weight: 700
  #
  # For details regarding fonts from package dependencies,
  # see https://flutter.dev/custom-fonts/#from-packages
AntonLT commented 1 year ago

Same issue

tnaseem commented 1 year ago

I'm also experiencing the same issue. App Store Connect is complaining that the alpha channel is still there.

My pubspec.yaml snippet:

flutter_icons:
  android: true
  ios: true
  remove_alpha_ios: true
  image_path: 'assets/images/app/app_icon.png'
mike-500 commented 1 year ago

I submitted PR #464 to fix this. If you want to test it, use it in your pubspec.yaml like so:

dev_dependencies:
  flutter_launcher_icons:
    git:
      url: https://github.com/fluttercommunity/flutter_launcher_icons.git
      ref: 26fedcee4b0e6f7a85f65f1fb48834a21f57e970
itwondersteam commented 1 year ago

I submitted PR #464 to fix this. If you want to test it, use it in your pubspec.yaml like so:

dev_dependencies:
  flutter_launcher_icons:
    git:
      url: https://github.com/fluttercommunity/flutter_launcher_icons.git
      ref: 26fedcee4b0e6f7a85f65f1fb48834a21f57e970

Have tested this and the warning get cleared.

OutdatedGuy commented 1 year ago

@MarkOSullivan94, this issue has been resolved. Can you close it?

iatndiag commented 9 months ago

ver. 0.13.1 and (latest vers. of A.S., latest SDK). (After update in terminal (Alt+F12) it still writes version number v0.12.0) With all "... config.g" files (underlined with a red wavy line):

The imported library 'package:flutter_launcher_icons/config/macos_config.g.dart' can't have a part-of directive. (Documentation) Try importing the library that the part is a part of.

And Alt+F12: flutter pub run flutter_launcher_icons

Result is: Deprecated. Use dart run instead. ___ (But, nevertheless, everything works)

the error "Fix remove alpha" has been resolved

inamhwebelight commented 8 months ago

it is working fine with this code

flutter_launcher_icons:
  android: true
  ios: true
  image_path: "assets/launcher_icon/logo-admin.png"
  remove_alpha_ios: true

flutter_launcher_icons: ^0.13.1