Skip to content

feat: android icon - #9

Merged
SmilingPixel merged 2 commits into
mainfrom
feat/android_dev
Jan 3, 2026
Merged

SmilingPixel merged 2 commits into
mainfrom
feat/android_dev

Conversation

@SmilingPixel

Copy link
Copy Markdown
Owner

This pull request adds essential resources and updates configuration for the Android app, focusing on app icon assets and minimum SDK requirements. The most important changes are grouped below:

App Icon Assets:

  • Added new vector drawable files for the launcher background (ic_launcher_background.xml) and foreground (ic_launcher_foreground.xml), providing custom icon graphics. [1] [2]
  • Introduced adaptive icon XML files (ic_launcher.xml and ic_launcher_round.xml) that combine the new background and foreground assets for proper icon rendering on Android devices.

App Metadata:

  • Added the app name "MarkDay" to strings.xml for display in the launcher and elsewhere.

Configuration Updates:

  • Increased the minimum supported Android SDK version from 24 to 33 in libs.versions.toml, ensuring the app only runs on newer devices.

Copilot AI review requested due to automatic review settings January 2, 2026 10:23

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR adds Android app icon resources using adaptive icons with vector drawables and updates the minimum SDK requirement. The changes introduce the app name "MarkDay" and custom icon graphics depicting a notebook with a bookmark ribbon.

Key changes:

  • Adds adaptive icon configuration with vector drawable assets for launcher background and foreground
  • Adds app name string resource ("MarkDay")
  • Raises minimum Android SDK from 24 to 33

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
gradle/libs.versions.toml Increases minimum SDK from 24 (Android 7.0) to 33 (Android 13)
composeApp/src/androidMain/res/values/strings.xml Adds app name string resource for launcher display
composeApp/src/androidMain/res/mipmap-anydpi/ic_launcher.xml Defines adaptive launcher icon configuration
composeApp/src/androidMain/res/mipmap-anydpi/ic_launcher_round.xml Defines adaptive round launcher icon configuration
composeApp/src/androidMain/res/drawable/ic_launcher_foreground.xml Provides vector drawable for icon foreground (notebook with bookmark design)
composeApp/src/androidMain/res/drawable/ic_launcher_background.xml Provides vector drawable for icon background (light mint color)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +11 to +14
android:pathData="M5.5,3 H18.5 A2.5,2.5 0 0 1 21,5.5 V19.5 A2.5,2.5 0 0 1 18.5,22 H5.5 A2.5,2.5 0 0 1 3,19.5 V5.5 A2.5,2.5 0 0 1 5.5,3 Z" />
<path
android:fillColor="#17B56A"
android:pathData="M14,3 H16 V12 L15,11 L14,12 Z" />

Copilot AI Jan 2, 2026

Copy link

Choose a reason for hiding this comment

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

The foreground icon paths extend beyond the safe zone for adaptive icons. According to Android's adaptive icon guidelines, content should stay within a centered 66dp diameter circle (or 16dp in a 24dp viewport). The path on line 10 extends to x=21, and line 8's path extends to x=20, both of which are outside the safe zone (should stay roughly within x=4 to x=20 for centered content with radius ~8). This may cause the icon to be clipped on devices with different icon shapes (circle, squircle, rounded square, etc.). Consider scaling down the icon design to fit within the safe zone to ensure it displays correctly on all devices.

Suggested change
android:pathData="M5.5,3 H18.5 A2.5,2.5 0 0 1 21,5.5 V19.5 A2.5,2.5 0 0 1 18.5,22 H5.5 A2.5,2.5 0 0 1 3,19.5 V5.5 A2.5,2.5 0 0 1 5.5,3 Z" />
<path
android:fillColor="#17B56A"
android:pathData="M14,3 H16 V12 L15,11 L14,12 Z" />
android:pathData="M6,4 H18 A2.5,2.5 0 0 1 20,6 V18 A2.5,2.5 0 0 1 18,20 H6 A2.5,2.5 0 0 1 4,18 V6 A2.5,2.5 0 0 1 6,4 Z" />
<path
android:fillColor="#17B56A"
android:pathData="M14,4 H16 V13 L15,12 L14,13 Z" />

Copilot uses AI. Check for mistakes.
Comment thread gradle/libs.versions.toml
agp = "8.11.2"
android-compileSdk = "36"
android-minSdk = "24"
android-minSdk = "33"

Copilot AI Jan 2, 2026

Copy link

Choose a reason for hiding this comment

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

Raising the minimum SDK from 24 (Android 7.0) to 33 (Android 13) is a significant change that excludes a large portion of potential users. Android SDK 24 covers devices from 2016 onwards, while SDK 33 only covers devices from 2022 onwards. This change could significantly reduce the app's addressable market. Unless there's a specific API or feature requirement that necessitates SDK 33, consider keeping the minSdk at 24 or choosing a more moderate increase (e.g., to SDK 26 or 28). Review the codebase to identify if any Android 13-specific APIs are being used that would justify this requirement.

Copilot uses AI. Check for mistakes.
Comment on lines +1 to +5
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@drawable/ic_launcher_background" />
<foreground android:drawable="@drawable/ic_launcher_foreground" />
</adaptive-icon> No newline at end of file

Copilot AI Jan 2, 2026

Copy link

Choose a reason for hiding this comment

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

The launcher icons are defined using only adaptive icons (mipmap-anydpi) with vector drawables, which requires Android 8.0 (API 26) or higher. If the minimum SDK is lowered from 33 to 24 (as recommended in another comment), you'll need to provide fallback PNG icon assets in density-specific folders (mipmap-mdpi, mipmap-hdpi, mipmap-xhdpi, mipmap-xxhdpi, mipmap-xxxhdpi) for devices running Android 7.0-7.1. These older devices don't support adaptive icons and will fail to display the app icon correctly without raster fallbacks.

Copilot uses AI. Check for mistakes.
@SmilingPixel
SmilingPixel merged commit 4ca7990 into main Jan 3, 2026
8 checks passed
@SmilingPixel
SmilingPixel deleted the feat/android_dev branch January 3, 2026 02:15
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