Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

Update Android to use adaptive icon with gradient bg (#922)

Leendert de Borst0b127a4a3ee7
diff --git a/apps/mobile-app/android/app/src/main/AndroidManifest.xml b/apps/mobile-app/android/app/src/main/AndroidManifest.xml
index 4ec648698..80b69f229 100644
--- a/apps/mobile-app/android/app/src/main/AndroidManifest.xml
+++ b/apps/mobile-app/android/app/src/main/AndroidManifest.xml
@@ -10,7 +10,7 @@
<data android:scheme="https"/>
</intent>
</queries>
- <application android:name=".MainApplication" android:label="@string/app_name" android:icon="@drawable/ic_launcher" android:roundIcon="@mipmap/ic_launcher_round" android:allowBackup="true" android:theme="@style/AppTheme" android:supportsRtl="true" android:usesCleartextTraffic="true">
+ <application android:name=".MainApplication" android:label="@string/app_name" android:icon="@mipmap/ic_launcher" android:roundIcon="@mipmap/ic_launcher_round" android:allowBackup="true" android:theme="@style/AppTheme" android:supportsRtl="true" android:usesCleartextTraffic="true">
<meta-data android:name="expo.modules.updates.ENABLED" android:value="false"/>
<meta-data android:name="expo.modules.updates.EXPO_UPDATES_CHECK_ON_LAUNCH" android:value="ALWAYS"/>
<meta-data android:name="expo.modules.updates.EXPO_UPDATES_LAUNCH_WAIT_MS" android:value="0"/>
diff --git a/apps/mobile-app/android/app/src/main/res/drawable-hdpi/ic_launcher.png b/apps/mobile-app/android/app/src/main/res/drawable-hdpi/ic_launcher.png
deleted file mode 100644
index d86563259..000000000
Binary files a/apps/mobile-app/android/app/src/main/res/drawable-hdpi/ic_launcher.png and /dev/null differ
diff --git a/apps/mobile-app/android/app/src/main/res/drawable-mdpi/ic_launcher.png b/apps/mobile-app/android/app/src/main/res/drawable-mdpi/ic_launcher.png
deleted file mode 100644
index 9b16a00b1..000000000
Binary files a/apps/mobile-app/android/app/src/main/res/drawable-mdpi/ic_launcher.png and /dev/null differ
diff --git a/apps/mobile-app/android/app/src/main/res/drawable-xhdpi/ic_launcher.png b/apps/mobile-app/android/app/src/main/res/drawable-xhdpi/ic_launcher.png
deleted file mode 100644
index c7d22d54b..000000000
Binary files a/apps/mobile-app/android/app/src/main/res/drawable-xhdpi/ic_launcher.png and /dev/null differ
diff --git a/apps/mobile-app/android/app/src/main/res/drawable-xxhdpi/ic_launcher.png b/apps/mobile-app/android/app/src/main/res/drawable-xxhdpi/ic_launcher.png
deleted file mode 100644
index 121a8b050..000000000
Binary files a/apps/mobile-app/android/app/src/main/res/drawable-xxhdpi/ic_launcher.png and /dev/null differ
diff --git a/apps/mobile-app/android/app/src/main/res/drawable-xxxhdpi/ic_launcher.png b/apps/mobile-app/android/app/src/main/res/drawable-xxxhdpi/ic_launcher.png
deleted file mode 100644
index b8a0a3eaf..000000000
Binary files a/apps/mobile-app/android/app/src/main/res/drawable-xxxhdpi/ic_launcher.png and /dev/null differ
diff --git a/apps/mobile-app/android/app/src/main/res/drawable/ic_launcher_background.xml b/apps/mobile-app/android/app/src/main/res/drawable/ic_launcher_background.xml
index 883b2a080..14ae53090 100644
--- a/apps/mobile-app/android/app/src/main/res/drawable/ic_launcher_background.xml
+++ b/apps/mobile-app/android/app/src/main/res/drawable/ic_launcher_background.xml
@@ -1,6 +1,10 @@
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
- <item android:drawable="@color/splashscreen_background"/>
- <item>
- <bitmap android:gravity="center" android:src="@drawable/splashscreen_logo"/>
- </item>
-</layer-list>
\ No newline at end of file
+ <item>
+ <shape android:shape="rectangle">
+ <gradient
+ android:startColor="#444444"
+ android:endColor="#000000"
+ android:angle="315" />
+ </shape>
+ </item>
+</layer-list>
diff --git a/apps/mobile-app/android/app/src/main/res/drawable/ic_launcher_foreground.xml b/apps/mobile-app/android/app/src/main/res/drawable/ic_launcher_foreground.xml
index 7c75cac19..4946f28cb 100644
--- a/apps/mobile-app/android/app/src/main/res/drawable/ic_launcher_foreground.xml
+++ b/apps/mobile-app/android/app/src/main/res/drawable/ic_launcher_foreground.xml
@@ -3,19 +3,25 @@
android:height="108dp"
android:viewportWidth="500"
android:viewportHeight="500">
- <path
- android:fillColor="#EEC170"
- android:pathData="m459.87,294.95c0.016,5.4 0.032,10.801 -0.35,16.873c-1.111,6.339 -1.194,12.173 -2.635,17.649c-10.922,41.508 -36.731,69.481 -77.351,83.408c-7.216,2.474 -14.972,3.37 -22.479,4.995c-23.629,0.042 -47.257,0.115 -70.886,0.12c-46.762,0.011 -93.523,-0.014 -140.95,-0.434c-8.59,-2.002 -16.766,-2.835 -24.398,-5.333c-21.595,-7.067 -39.523,-19.656 -53.708,-37.552c-10.227,-12.903 -17.579,-27.17 -21.28,-43.221c-1.475,-6.397 -2.471,-12.904 -3.685,-19.361c-0.052,-5.747 -0.104,-11.494 0.269,-17.886c4.159,-42.973 27.68,-71.638 63.562,-92.153c0,-0.708 -0.002,-1.699 0,-2.69c0.022,-9.829 -1.307,-19.894 0.357,-29.438c3.239,-18.579 11.08,-35.272 23.763,-49.773c12.098,-13.832 26.457,-23.989 43.609,-30.029c7.813,-2.751 16.14,-4.042 24.234,-5.995c7.392,-0.026 14.784,-0.051 22.835,0.323c4.196,0.954 7.795,1.254 11.258,2.105c17.16,4.219 32.287,12.176 45.469,24.104c2.256,2.041 4.372,6.624 9.621,3.868c16.839,-8.842 34.718,-11.597 53.603,-8.594c16.791,2.67 31.602,9.431 44.236,20.636c11.531,10.227 19.84,22.841 25.393,37.236c6.344,16.445 10.389,33.163 6.08,49.389c7.959,8.932 15.807,16.704 22.421,25.414c9.162,12.065 15.33,25.746 18.144,40.776c0.97,5.185 1.911,10.375 2.865,15.563m-71.597,71.012c5.562,-5.228 12.002,-9.799 16.508,-15.817c10.474,-13.992 14.333,-29.916 11.288,-47.446c-2.25,-12.95 -8.197,-24.076 -17.243,-33.063c-12.746,-12.663 -28.865,-18.614 -46.786,-18.569c-69.912,0.177 -139.82,0.568 -209.74,0.962c-15.922,0.09 -29.168,7.421 -39.685,18.296c-14.45,14.944 -20.408,33.343 -16.655,54.368c2.276,12.754 8.217,23.748 17.158,32.66c13.299,13.255 30.097,18.653 48.728,18.651c59.321,-0.005 118.64,0.042 177.96,-0.047c9.591,-0.014 19.181,-0.866 28.773,-0.889c10.649,-0.025 19.978,-3.825 29.687,-9.107z" />
- <path
- android:fillColor="#EEC170"
- android:pathData="m162.77,293c15.654,4.388 20.627,22.967 10.304,34.98c-5.31,6.18 -14.817,8.321 -24.278,5.047c-7.072,-2.447 -12.332,-10.362 -12.876,-17.933c-1.045,-14.542 11.089,-23.176 21.705,-23.046c1.579,0.019 3.152,0.616 5.146,0.952z" />
- <path
- android:fillColor="#EEC170"
- android:pathData="m227.18,293.64c7.85,2.397 11.938,8.214 13.524,15.077c1.859,8.044 -0.448,15.706 -7.159,21.121c-6.763,5.457 -14.417,6.879 -22.578,3.148c-8.297,-3.793 -12.836,-10.849 -12.736,-19.438c0.169,-14.497 14.13,-25.368 28.948,-19.908z" />
- <path
- android:fillColor="#EEC170"
- android:pathData="m261.57,319.07c-2.495,-14.418 4.685,-22.603 14.596,-26.108c9.895,-3.5 23.181,3.43 26.267,13.779c4.65,15.591 -7.165,29.064 -21.665,28.161c-8.525,-0.531 -17.202,-6.509 -19.198,-15.831z" />
- <path
- android:fillColor="#EEC170"
- android:pathData="m336.91,333.41c-9.018,-4.249 -15.337,-14.349 -13.829,-21.682c3.083,-14.989 13.341,-20.304 23.018,-19.585c10.653,0.791 17.93,7.407 19.765,17.547c1.959,10.824 -4.117,19.939 -13.494,23.703c-5.272,2.116 -10.091,1.509 -15.46,0.018z" />
+ <group
+ android:scaleX="0.6"
+ android:scaleY="0.6"
+ android:translateX="100"
+ android:translateY="100">
+ <path
+ android:fillColor="#EEC170"
+ android:pathData="m459.87,294.95c0.016,5.4 0.032,10.801 -0.35,16.873c-1.111,6.339 -1.194,12.173 -2.635,17.649c-10.922,41.508 -36.731,69.481 -77.351,83.408c-7.216,2.474 -14.972,3.37 -22.479,4.995c-23.629,0.042 -47.257,0.115 -70.886,0.12c-46.762,0.011 -93.523,-0.014 -140.95,-0.434c-8.59,-2.002 -16.766,-2.835 -24.398,-5.333c-21.595,-7.067 -39.523,-19.656 -53.708,-37.552c-10.227,-12.903 -17.579,-27.17 -21.28,-43.221c-1.475,-6.397 -2.471,-12.904 -3.685,-19.361c-0.052,-5.747 -0.104,-11.494 0.269,-17.886c4.159,-42.973 27.68,-71.638 63.562,-92.153c0,-0.708 -0.002,-1.699 0,-2.69c0.022,-9.829 -1.307,-19.894 0.357,-29.438c3.239,-18.579 11.08,-35.272 23.763,-49.773c12.098,-13.832 26.457,-23.989 43.609,-30.029c7.813,-2.751 16.14,-4.042 24.234,-5.995c7.392,-0.026 14.784,-0.051 22.835,0.323c4.196,0.954 7.795,1.254 11.258,2.105c17.16,4.219 32.287,12.176 45.469,24.104c2.256,2.041 4.372,6.624 9.621,3.868c16.839,-8.842 34.718,-11.597 53.603,-8.594c16.791,2.67 31.602,9.431 44.236,20.636c11.531,10.227 19.84,22.841 25.393,37.236c6.344,16.445 10.389,33.163 6.08,49.389c7.959,8.932 15.807,16.704 22.421,25.414c9.162,12.065 15.33,25.746 18.144,40.776c0.97,5.185 1.911,10.375 2.865,15.563m-71.597,71.012c5.562,-5.228 12.002,-9.799 16.508,-15.817c10.474,-13.992 14.333,-29.916 11.288,-47.446c-2.25,-12.95 -8.197,-24.076 -17.243,-33.063c-12.746,-12.663 -28.865,-18.614 -46.786,-18.569c-69.912,0.177 -139.82,0.568 -209.74,0.962c-15.922,0.09 -29.168,7.421 -39.685,18.296c-14.45,14.944 -20.408,33.343 -16.655,54.368c2.276,12.754 8.217,23.748 17.158,32.66c13.299,13.255 30.097,18.653 48.728,18.651c59.321,-0.005 118.64,0.042 177.96,-0.047c9.591,-0.014 19.181,-0.866 28.773,-0.889c10.649,-0.025 19.978,-3.825 29.687,-9.107z" />
+ <path
+ android:fillColor="#EEC170"
+ android:pathData="m162.77,293c15.654,4.388 20.627,22.967 10.304,34.98c-5.31,6.18 -14.817,8.321 -24.278,5.047c-7.072,-2.447 -12.332,-10.362 -12.876,-17.933c-1.045,-14.542 11.089,-23.176 21.705,-23.046c1.579,0.019 3.152,0.616 5.146,0.952z" />
+ <path
+ android:fillColor="#EEC170"
+ android:pathData="m227.18,293.64c7.85,2.397 11.938,8.214 13.524,15.077c1.859,8.044 -0.448,15.706 -7.159,21.121c-6.763,5.457 -14.417,6.879 -22.578,3.148c-8.297,-3.793 -12.836,-10.849 -12.736,-19.438c0.169,-14.497 14.13,-25.368 28.948,-19.908z" />
+ <path
+ android:fillColor="#EEC170"
+ android:pathData="m261.57,319.07c-2.495,-14.418 4.685,-22.603 14.596,-26.108c9.895,-3.5 23.181,3.43 26.267,13.779c4.65,15.591 -7.165,29.064 -21.665,28.161c-8.525,-0.531 -17.202,-6.509 -19.198,-15.831z" />
+ <path
+ android:fillColor="#EEC170"
+ android:pathData="m336.91,333.41c-9.018,-4.249 -15.337,-14.349 -13.829,-21.682c3.083,-14.989 13.341,-20.304 23.018,-19.585c10.653,0.791 17.93,7.407 19.765,17.547c1.959,10.824 -4.117,19.939 -13.494,23.703c-5.272,2.116 -10.091,1.509 -15.46,0.018z" />
+ </group>
</vector>
\ No newline at end of file
diff --git a/apps/mobile-app/android/app/src/main/res/layout/autofill_dataset_item_icon.xml b/apps/mobile-app/android/app/src/main/res/layout/autofill_dataset_item_icon.xml
index e5aac88e1..3962c3cb2 100644
--- a/apps/mobile-app/android/app/src/main/res/layout/autofill_dataset_item_icon.xml
+++ b/apps/mobile-app/android/app/src/main/res/layout/autofill_dataset_item_icon.xml
@@ -11,8 +11,7 @@
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_marginEnd="8dp"
- android:scaleType="fitCenter"
- android:background="@drawable/rounded_corner_background" />
+ android:scaleType="fitCenter" />
<TextView
android:id="@+id/text"
diff --git a/apps/mobile-app/android/app/src/main/res/layout/autofill_dataset_item_logo.xml b/apps/mobile-app/android/app/src/main/res/layout/autofill_dataset_item_logo.xml
index 73ab08548..66f781f4d 100644
--- a/apps/mobile-app/android/app/src/main/res/layout/autofill_dataset_item_logo.xml
+++ b/apps/mobile-app/android/app/src/main/res/layout/autofill_dataset_item_logo.xml
@@ -11,7 +11,7 @@
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_marginEnd="8dp"
- android:src="@drawable/ic_launcher_foreground"
+ android:src="@mipmap/ic_launcher_foreground"
android:contentDescription="@string/aliasvault_icon" />
<TextView
diff --git a/apps/mobile-app/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/apps/mobile-app/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
new file mode 100644
index 000000000..6641db64c
--- /dev/null
+++ b/apps/mobile-app/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
@@ -0,0 +1,5 @@
+<!-- mipmap-anydpi-v26/ic_launcher.xml -->
+<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>
diff --git a/apps/mobile-app/android/app/src/main/res/values/colors.xml b/apps/mobile-app/android/app/src/main/res/values/colors.xml
index c0ed1675d..8b72b92d7 100644
--- a/apps/mobile-app/android/app/src/main/res/values/colors.xml
+++ b/apps/mobile-app/android/app/src/main/res/values/colors.xml
@@ -1,4 +1,4 @@
<resources>
<color name="splashscreen_background">#ffffff</color>
<color name="colorPrimary">#023c69</color>
-</resources>
\ No newline at end of file
+</resources>