Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(pwa) fix auto-generated TWA icons

Saúl Ibarra Corretgéad265d58152d
diff --git a/twa/app/src/main/ic_launcher-playstore.png b/twa/app/src/main/ic_launcher-playstore.png
new file mode 100644
index 0000000000..2090e74aa0
Binary files /dev/null and b/twa/app/src/main/ic_launcher-playstore.png differ
diff --git a/twa/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/twa/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
index 04807978fd..036d09bc5f 100644
--- a/twa/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
+++ b/twa/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
@@ -1,33 +1,5 @@
-<!--
- Copyright 2019 Google Inc. All Rights Reserved.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:aapt="http://schemas.android.com/aapt">
- <background>
- <layer-list>
- <item android:drawable="@android:color/white" />
- <!--
- The paddings below give the icons a similar proportion as the
- icon generated by WebAPKs.
- -->
- <item android:drawable="@mipmap/ic_maskable"
- android:top="8.5dp"
- android:right="8.5dp"
- android:left="8.5dp"
- android:bottom="8.5dp" />
- </layer-list>
- </background>
- <foreground android:drawable="@android:color/transparent" />
-</adaptive-icon>
+<?xml version="1.0" encoding="utf-8"?>
+<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
+ <background android:drawable="@color/ic_launcher_background"/>
+ <foreground android:drawable="@mipmap/ic_launcher_foreground"/>
+</adaptive-icon>
\ No newline at end of file
diff --git a/twa/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/twa/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
new file mode 100644
index 0000000000..036d09bc5f
--- /dev/null
+++ b/twa/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="utf-8"?>
+<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
+ <background android:drawable="@color/ic_launcher_background"/>
+ <foreground android:drawable="@mipmap/ic_launcher_foreground"/>
+</adaptive-icon>
\ No newline at end of file
diff --git a/twa/app/src/main/res/mipmap-hdpi/ic_launcher.png b/twa/app/src/main/res/mipmap-hdpi/ic_launcher.png
index a1213c5559..878db1a13e 100644
Binary files a/twa/app/src/main/res/mipmap-hdpi/ic_launcher.png and b/twa/app/src/main/res/mipmap-hdpi/ic_launcher.png differ
diff --git a/twa/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png b/twa/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png
new file mode 100644
index 0000000000..3299de6f90
Binary files /dev/null and b/twa/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png differ
diff --git a/twa/app/src/main/res/mipmap-hdpi/ic_launcher_round.png b/twa/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
new file mode 100644
index 0000000000..8562a3e676
Binary files /dev/null and b/twa/app/src/main/res/mipmap-hdpi/ic_launcher_round.png differ
diff --git a/twa/app/src/main/res/mipmap-hdpi/ic_maskable.png b/twa/app/src/main/res/mipmap-hdpi/ic_maskable.png
deleted file mode 100644
index b63d8c9aa6..0000000000
Binary files a/twa/app/src/main/res/mipmap-hdpi/ic_maskable.png and /dev/null differ
diff --git a/twa/app/src/main/res/mipmap-mdpi/ic_launcher.png b/twa/app/src/main/res/mipmap-mdpi/ic_launcher.png
index 7068ba5d7e..76cc1d8709 100644
Binary files a/twa/app/src/main/res/mipmap-mdpi/ic_launcher.png and b/twa/app/src/main/res/mipmap-mdpi/ic_launcher.png differ
diff --git a/twa/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png b/twa/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png
new file mode 100644
index 0000000000..9af115d9f9
Binary files /dev/null and b/twa/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png differ
diff --git a/twa/app/src/main/res/mipmap-mdpi/ic_launcher_round.png b/twa/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
new file mode 100644
index 0000000000..60ffcfb453
Binary files /dev/null and b/twa/app/src/main/res/mipmap-mdpi/ic_launcher_round.png differ
diff --git a/twa/app/src/main/res/mipmap-mdpi/ic_maskable.png b/twa/app/src/main/res/mipmap-mdpi/ic_maskable.png
deleted file mode 100644
index d5f16a2c52..0000000000
Binary files a/twa/app/src/main/res/mipmap-mdpi/ic_maskable.png and /dev/null differ
diff --git a/twa/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/twa/app/src/main/res/mipmap-xhdpi/ic_launcher.png
index 564b6b31ea..fbeac87db7 100644
Binary files a/twa/app/src/main/res/mipmap-xhdpi/ic_launcher.png and b/twa/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ
diff --git a/twa/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png b/twa/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png
new file mode 100644
index 0000000000..649807480f
Binary files /dev/null and b/twa/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png differ
diff --git a/twa/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png b/twa/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
new file mode 100644
index 0000000000..137a91a0d4
Binary files /dev/null and b/twa/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png differ
diff --git a/twa/app/src/main/res/mipmap-xhdpi/ic_maskable.png b/twa/app/src/main/res/mipmap-xhdpi/ic_maskable.png
deleted file mode 100644
index 22d7698b9c..0000000000
Binary files a/twa/app/src/main/res/mipmap-xhdpi/ic_maskable.png and /dev/null differ
diff --git a/twa/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/twa/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
index 6837e1fd78..8e1a312ff7 100644
Binary files a/twa/app/src/main/res/mipmap-xxhdpi/ic_launcher.png and b/twa/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ
diff --git a/twa/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png b/twa/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png
new file mode 100644
index 0000000000..fd0ad523a9
Binary files /dev/null and b/twa/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png differ
diff --git a/twa/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png b/twa/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
new file mode 100644
index 0000000000..9bb2be6e29
Binary files /dev/null and b/twa/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png differ
diff --git a/twa/app/src/main/res/mipmap-xxhdpi/ic_maskable.png b/twa/app/src/main/res/mipmap-xxhdpi/ic_maskable.png
deleted file mode 100644
index db86055854..0000000000
Binary files a/twa/app/src/main/res/mipmap-xxhdpi/ic_maskable.png and /dev/null differ
diff --git a/twa/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/twa/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
index 4f21fc177d..02e0a1ea67 100644
Binary files a/twa/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png and b/twa/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ
diff --git a/twa/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png b/twa/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png
new file mode 100644
index 0000000000..d823652751
Binary files /dev/null and b/twa/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png differ
diff --git a/twa/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/twa/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
new file mode 100644
index 0000000000..40a00cef76
Binary files /dev/null and b/twa/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png differ
diff --git a/twa/app/src/main/res/mipmap-xxxhdpi/ic_maskable.png b/twa/app/src/main/res/mipmap-xxxhdpi/ic_maskable.png
deleted file mode 100644
index 1804d84b05..0000000000
Binary files a/twa/app/src/main/res/mipmap-xxxhdpi/ic_maskable.png and /dev/null differ
diff --git a/twa/app/src/main/res/values/ic_launcher_background.xml b/twa/app/src/main/res/values/ic_launcher_background.xml
new file mode 100644
index 0000000000..55c23776a6
--- /dev/null
+++ b/twa/app/src/main/res/values/ic_launcher_background.xml
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <color name="ic_launcher_background">#66A8DD</color>
+</resources>
\ No newline at end of file