fix: address Lint warnings in icon resources

This commit is contained in:
Harsh Shandilya 2023-03-08 02:25:26 +05:30
parent 55cc397333
commit 3c62dd9542
No known key found for this signature in database
7 changed files with 1 additions and 53 deletions

View file

@ -1,56 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<issues format="6" by="lint 7.4.2" type="baseline" client="gradle" dependencies="false" name="AGP (7.4.2)" variant="all" version="7.4.2"> <issues format="6" by="lint 7.4.2" type="baseline" client="gradle" dependencies="false" name="AGP (7.4.2)" variant="all" version="7.4.2">
<issue
id="ObsoleteSdkInt"
message="This folder configuration (`v26`) is unnecessary; `minSdkVersion` is 26. Merge all the resources in this folder into `mipmap-anydpi`.">
<location
file="src/main/res/mipmap-anydpi-v26"/>
</issue>
<issue
id="IconDuplicates"
message="The following unrelated icon files have identical contents: ic_launcher_foreground.png, ic_launcher_monochrome.png">
<location
file="src/main/res/mipmap-hdpi/ic_launcher_monochrome.png"/>
<location
file="src/main/res/mipmap-hdpi/ic_launcher_foreground.png"/>
</issue>
<issue
id="IconDuplicates"
message="The following unrelated icon files have identical contents: ic_launcher_foreground.png, ic_launcher_monochrome.png">
<location
file="src/main/res/mipmap-mdpi/ic_launcher_monochrome.png"/>
<location
file="src/main/res/mipmap-mdpi/ic_launcher_foreground.png"/>
</issue>
<issue
id="IconDuplicates"
message="The following unrelated icon files have identical contents: ic_launcher_foreground.png, ic_launcher_monochrome.png">
<location
file="src/main/res/mipmap-xhdpi/ic_launcher_monochrome.png"/>
<location
file="src/main/res/mipmap-xhdpi/ic_launcher_foreground.png"/>
</issue>
<issue
id="IconDuplicates"
message="The following unrelated icon files have identical contents: ic_launcher_foreground.png, ic_launcher_monochrome.png">
<location
file="src/main/res/mipmap-xxhdpi/ic_launcher_monochrome.png"/>
<location
file="src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png"/>
</issue>
<issue
id="IconDuplicates"
message="The following unrelated icon files have identical contents: ic_launcher_foreground.png, ic_launcher_monochrome.png">
<location
file="src/main/res/mipmap-xxxhdpi/ic_launcher_monochrome.png"/>
<location
file="src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png"/>
</issue>
</issues> </issues>

View file

@ -2,5 +2,5 @@
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> <adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@mipmap/ic_launcher_background"/> <background android:drawable="@mipmap/ic_launcher_background"/>
<foreground android:drawable="@mipmap/ic_launcher_foreground"/> <foreground android:drawable="@mipmap/ic_launcher_foreground"/>
<monochrome android:drawable="@mipmap/ic_launcher_monochrome"/> <monochrome android:drawable="@mipmap/ic_launcher_foreground"/>
</adaptive-icon> </adaptive-icon>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB