Skip to content

Commit

Permalink
feat(android): app icon
Browse files Browse the repository at this point in the history
  • Loading branch information
kirasok committed Apr 7, 2024
1 parent 5e5961f commit 6fe031e
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 1 deletion.
2 changes: 1 addition & 1 deletion android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<application
android:label="random_password_generator"
android:name="${applicationName}"
android:icon="@mipmap/ic_launcher">
android:icon="@drawable/ic_launcher">
<activity
android:name=".MainActivity"
android:exported="true"
Expand Down
18 changes: 18 additions & 0 deletions android/app/src/main/res/drawable/ic_launcher.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list
xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape android:shape="oval">
<solid android:color="#03a9f4" />
<size
android:width="48dp"
android:height="48dp"
/>
</shape>
</item>
<item
android:drawable="@drawable/key"
android:gravity="center"
/>

</layer-list>
8 changes: 8 additions & 0 deletions android/app/src/main/res/drawable/key.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<!-- drawable/key_variant.xml -->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:height="36dp"
android:width="36dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path android:fillColor="#fff" android:pathData="M22,18V22H18V19H15V16H12L9.74,13.74C9.19,13.91 8.61,14 8,14A6,6 0 0,1 2,8A6,6 0 0,1 8,2A6,6 0 0,1 14,8C14,8.61 13.91,9.19 13.74,9.74L22,18M7,5A2,2 0 0,0 5,7A2,2 0 0,0 7,9A2,2 0 0,0 9,7A2,2 0 0,0 7,5Z" />
</vector>
Binary file removed android/app/src/main/res/mipmap-hdpi/ic_launcher.png
Binary file not shown.
Binary file removed android/app/src/main/res/mipmap-mdpi/ic_launcher.png
Binary file not shown.
Binary file removed android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 6fe031e

Please sign in to comment.