fluttercommunity / fluttercommunity/flutter_launcher_icons
Different icons and splash images are being used
- Dominant language
- Dart
- Stars
- 2.1k
- Forks
- 426
- PR merge metrics
- No merged PRs in 30d
Description
### :information_source: Info
Flutter Launcher Icons version:
- Previously: 0.13.1
- Updated to: 0.14.4
Flutter version:
- Previously: 3.24.5
- Updated to: 3.32.8
### :speech_balloon: Description
In our app, we use different icons and splash images for the staging and production environments.
The icon files are named as follows:
android-dynamic-icon-nobg_stg.png
android-icon-nobg.png
We also maintain separate YAML configuration files for flutter_launcher_icons:
flutter_launcher_icons-stg.yaml
flutter_launcher_icons-prd.yaml
App builds are separated in the Makefile using:
build-stg:
build-prd:
After upgrading flutter_launcher_icons to version 0.14.4, we encountered an issue where building the production app using `build-prd:` and uploading it to the Google Play Console results in the production app showing the icon from `build-stg:`.
However, the App ID, Base URL, and API settings are correctly using the `build-prd:` configuration.
This issue does not occur 100% of the time. Rebuilding the production app after the issue occurs usually resolves it.
Also, there were no changes to the icon images or the flutter_launcher_icons YAML files in this release.
Due to this instability, we would appreciate any investigation, fixes, or recommended workarounds to prevent this from happening again.
### :scroll: Pubspec.yaml
- flutter_launcher_icons-stg.yaml
```yaml
flutter_launcher_icons:
image_path_ios: "assets/icon/icon-ios-stg.png"
android: true
min_sdk_android: 31
image_path_android: "assets/icon/android-dynamic-icon-nobg_stg.png"
adaptive_icon_foreground: "assets/icon/android-dynamic-icon-nobg_stg.png"
adaptive_icon_background: "#ffffff"
ios: true
remove_alpha_ios: true
background_color_ios: "#ffffff"
```
- flutter_launcher_icons-prd.yaml
```yaml
flutter_launcher_icons:
image_path_ios: "assets/icon/icon-ios-prd.png"
android: true
min_sdk_android: 31
image_path_android: "assets/icon/android-icon-nobg.png"
adaptive_icon_foreground: "assets/icon/android-icon-nobg.png"
adaptive_icon_background: "#ffffff"
ios: true
remove_alpha_ios: true
background_color_ios: "#ffffff"
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.