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

Improve Splash Screen and Launcher Icon for Android #840

Merged
merged 1 commit into from
Sep 15, 2024
Merged

Conversation

mdmohsin7
Copy link
Collaborator

@mdmohsin7 mdmohsin7 commented Sep 14, 2024

Splash Screen on Android 12+

Screenshot_20240914-144745

Summary by Entelligence.AI

  • New Feature: Updated the app's launcher icon with a new adaptive icon configuration, providing a more modern and visually appealing look across different Android devices.
  • New Feature: Introduced an animated splash screen for Android 12+ users, enhancing the initial loading experience in both day and night modes.
  • Style: Improved code readability in the web index.html file by adding empty lines for better separation of the splash screen style section.

Copy link

github-actions bot commented Sep 14, 2024

Image description Entelligence.AI

Walkthrough

This update primarily focuses on enhancing the visual aspects of the Android application, introducing changes to the adaptive icon configuration and splash screen styles for both regular and night modes. Additionally, minor formatting adjustments have been made to the web app's HTML code.

Changes

Files Summary
app/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml,
app/android/app/src/main/res/values-night-v31/styles.xml,
app/android/app/src/main/res/values-v31/styles.xml
The adaptive icon configuration XML file for Android has been updated, specifying different drawables for the background, foreground, and monochrome layers of the launcher icon. New animated icon resources for the splash screen on Android 12+ have been added in both the night and regular styles.
app/web/index.html Added empty lines in the HTML section of the code for the splash screen style, improving readability and maintainability.

🎉🤖

With colors that dance and icons that gleam,

Our app now sports a brand new theme.

Night or day, it's quite a sight,

A digital delight, shining bright! 🌟


Uplevel your code reviews with Entelligence.AI Pro

Entelligence.AI Pro

If you like this project, please support us by purchasing the Pro version. The Pro version has advanced context, superior noise reduction and several proprietary improvements compared to the open source version. Moreover, Entelligence.AI Pro is free for open source projects.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Image description Entelligence.AI

Commits Files that changed from the base of the PR and between fd21041 and 79fa8df commits.
Files selected (5)
  • app/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml (1)
  • app/android/app/src/main/res/values-night-v31/styles.xml (1)
  • app/android/app/src/main/res/values-v31/styles.xml (1)
  • app/ios/Runner/Info.plist (1)
  • app/web/index.html (1)
Files ignored due to filter (32)
  • app/android/app/src/main/res/drawable-hdpi/android12splash.png
  • app/android/app/src/main/res/drawable-mdpi/android12splash.png
  • app/android/app/src/main/res/drawable-night-hdpi/android12splash.png
  • app/android/app/src/main/res/drawable-night-mdpi/android12splash.png
  • app/android/app/src/main/res/drawable-night-xhdpi/android12splash.png
  • app/android/app/src/main/res/drawable-night-xxhdpi/android12splash.png
  • app/android/app/src/main/res/drawable-night-xxxhdpi/android12splash.png
  • app/android/app/src/main/res/drawable-xhdpi/android12splash.png
  • app/android/app/src/main/res/drawable-xxhdpi/android12splash.png
  • app/android/app/src/main/res/drawable-xxxhdpi/android12splash.png
  • app/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
  • app/android/app/src/main/res/mipmap-hdpi/ic_launcher_background.png
  • app/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png
  • app/android/app/src/main/res/mipmap-hdpi/ic_launcher_monochrome.png
  • app/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
  • app/android/app/src/main/res/mipmap-mdpi/ic_launcher_background.png
  • app/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png
  • app/android/app/src/main/res/mipmap-mdpi/ic_launcher_monochrome.png
  • app/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
  • app/android/app/src/main/res/mipmap-xhdpi/ic_launcher_background.png
  • app/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png
  • app/android/app/src/main/res/mipmap-xhdpi/ic_launcher_monochrome.png
  • app/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
  • app/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_background.png
  • app/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png
  • app/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_monochrome.png
  • app/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
  • app/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_background.png
  • app/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png
  • app/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_monochrome.png
  • app/assets/images/splash_icon.png
  • app/pubspec.yaml
Files not summarized due to errors (1)
  • app/ios/Runner/Info.plist (diff tokens exceeds limit)
Files skipped from review due to trivial changes (1)
  • app/web/index.html
Review comments generated (4)
  • Review: 2
  • LGTM: 2

Tips

Chat with Image description Entelligence.AI Bot (@Entelligence.AI)

  • Reply on review comments left by this bot to ask follow-up questions. A review comment is a comment on a diff or a file.
  • Invite the bot into a review comment chain by tagging @Entelligence.AI in a reply.

Code suggestions

  • The bot may make code suggestions, but please review them carefully before committing since the line number ranges may be misaligned.
  • You can edit the comment made by the bot and manually tweak the suggestion if it is slightly off.

Pausing incremental reviews

  • Add @Entelligence.AI: ignore anywhere in the PR description to pause further reviews from the bot.

@@ -10,6 +10,7 @@
<item name="android:windowDrawsSystemBarBackgrounds">false</item>
<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
<item name="android:windowSplashScreenBackground">#000000</item>
<item name="android:windowSplashScreenAnimatedIcon">@drawable/android12splash</item>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Image description Entelligence.AI

The new splash screen animated icon is targeting Android 12+ devices. However, it's important to ensure that the @drawable/android12splash resource exists and is compatible with the devices you're targeting. If the drawable resource is not found or incompatible, it could cause a crash on app startup.

-         <item name="android:windowSplashScreenAnimatedIcon">@drawable/android12splash</item>
+         <item name="android:windowSplashScreenAnimatedIcon">@drawable/compatible_splash_icon</item>

In the above fix, replace compatible_splash_icon with an existing and compatible drawable resource for your application.

@@ -10,6 +10,7 @@
<item name="android:windowDrawsSystemBarBackgrounds">false</item>
<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
<item name="android:windowSplashScreenBackground">#000000</item>
<item name="android:windowSplashScreenAnimatedIcon">@drawable/android12splash</item>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Image description Entelligence.AI

The new splash screen animation is targeting Android 12+ devices. However, it's important to ensure that the @drawable/android12splash resource exists and is compatible with the devices you're targeting. If this drawable isn't available or isn't properly formatted, it could cause crashes on startup. It would be beneficial to add error handling around this to prevent potential issues.

- <item name="android:windowSplashScreenAnimatedIcon">@drawable/android12splash</item>
+ <!-- Ensure the drawable resource exists and is compatible with the targeted devices -->
+ <item name="android:windowSplashScreenAnimatedIcon" tools:ignore="MissingResource">@drawable/android12splash</item>

Please note that tools:ignore="MissingResource" is used to suppress lint warnings about missing resources in the XML file. This doesn't provide a runtime safety net. You should still ensure that the resource is available at runtime.

@beastoin beastoin merged commit 1ffc982 into main Sep 15, 2024
1 check passed
@beastoin beastoin deleted the splash-and-icon branch September 15, 2024 07:21
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

Successfully merging this pull request may close these issues.

2 participants