Skip to content

Commit

Permalink
Merge pull request #414 from SwissCovid/develop
Browse files Browse the repository at this point in the history
Version 2.3.1
  • Loading branch information
simonroesch committed Feb 11, 2022
2 parents 537a521 + 935b3df commit 482b981
Show file tree
Hide file tree
Showing 19 changed files with 266 additions and 142 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ android {
applicationId "ch.admin.bag.dp3t"
minSdkVersion 23
targetSdkVersion 30
versionCode 23000
versionName "2.3.0"
versionCode 23010
versionName "2.3.1"
resConfigs "en", "fr", "de", "it", "pt", "es", "sq", "bs", "hr", "sr", "rm", "tr", "ti"

buildConfigField "long", "BUILD_TIME", readPropertyWithDefault('buildTimestamp', System.currentTimeMillis()) + 'L'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import org.junit.Test;
import org.junit.runner.RunWith;

import ch.admin.bag.dp3t.networking.CertificatePinning;
import ch.admin.bag.dp3t.networking.FakeWorker;
import ch.admin.bag.dp3t.storage.SecureStorage;
import okhttp3.mockwebserver.Dispatcher;
Expand All @@ -52,6 +53,8 @@ public void setup() throws IOException {
context = InstrumentationRegistry.getInstrumentation().getTargetContext();
Logger.init(context, LogLevel.DEBUG);

CertificatePinning.setEnabled(false, context);

//cancel all work that was scheduled on normal WorkManager on Application creation
WorkManager.getInstance(context).cancelAllWork();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import android.content.res.Resources
import android.graphics.Paint
import android.graphics.Rect
import android.os.Bundle
import android.text.Html
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
Expand Down Expand Up @@ -197,6 +198,7 @@ class ReportsFragment : Fragment() {
State.POSSIBLE_INFECTION_TRACING_REPORTS -> {
binding.reportsLeitfaden.apply {
reportFurtherInformation.itemCallHotlineLayout.setOnClickListener { callHotline() }
reportFurtherInformation.reportDetailTestInfo.setText(Html.fromHtml(getString(R.string.checkin_report_subtitle3)));
reportFurtherInformation.testsExternalLink.setOnClickListener { showTestInformation() }
faqButton.setOnClickListener { showFaq() }
val isOpenLeitfadenPending = secureStorage.isOpenLeitfadenPending
Expand Down Expand Up @@ -239,6 +241,7 @@ class ReportsFragment : Fragment() {

}
faqButton.setOnClickListener { showFaq() }
reportFurtherInformation.reportDetailTestInfo.setText(Html.fromHtml(getString(R.string.checkin_report_subtitle3)));
reportFurtherInformation.testsExternalLink.setOnClickListener { showTestInformation() }
reportFurtherInformation.phoneSection.isVisible = false
}
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/layout/view_report_details.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
android:text="@string/checkin_report_title3" />

<TextView
android:id="@+id/report_detail_test_info"
style="@style/NextStep.Text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
Expand Down
26 changes: 26 additions & 0 deletions common/src/main/res/font/inter.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8"?><!--
~ Copyright (c) 2022 Ubique Innovation AG <https://www.ubique.ch>
~
~ This Source Code Form is subject to the terms of the Mozilla Public
~ License, v. 2.0. If a copy of the MPL was not distributed with this
~ file, You can obtain one at https://mozilla.org/MPL/2.0/.
~
~ SPDX-License-Identifier: MPL-2.0
-->

<font-family xmlns:app="http://schemas.android.com/apk/res-auto">

<font
app:font="@font/inter_light"
app:fontStyle="normal"
app:fontWeight="300" />
<font
app:font="@font/inter_regular"
app:fontStyle="normal"
app:fontWeight="400" />
<font
app:font="@font/inter_bold"
app:fontStyle="normal"
app:fontWeight="700" />

</font-family>
31 changes: 19 additions & 12 deletions common/src/main/res/values-bs/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -649,23 +649,22 @@ Time drugi korisnici aplikacije SwissCovid mogu da saznaju da postoji mogućnost
<string name="symptom_faq1_title">"Koji su simptomi COVID-19?"</string>

<!-- Symptome: FAQ Text -->
<string name="symptom_faq1_text">"Ovi simptomi se često javljaju:
<string name="symptom_faq1_text">"Novi virus korone često može pokazati različite simptome bolesti. Najčešći simptomi su:

– temperatura, osećaj groznice
– bolovi u grlu
– kašalj (najčešće suv)
– bol u grlu
– kašalj (uglavnom suv)
– kratak dah
– bolovi u grudima
– bol u grudima
– temperatura
– iznenadni gubitak čula mirisa i/ili ukusa

Osim toga, mogući su sledeći simptomi:

– glavobolja
– opšta slabost, malaksalost
– bolovi u mišićima
– kijavica
– simptomi gastrointestinalnog trakta (mučnina, povraćanje, proliv, bolovi u stomaku)
– osipi na koži"</string>
– osipi na koži

Imajte na umu sledeće: Simptomi bolesti su različite jačine i mogu varati u zavisnost od varijante virusa. Mogu biti i blagi. I samo kijavica može značiti da ste zaraženi."</string>

<!-- Meldungen: Positiv getestet FAQ Titel -->
<string name="meldungen_positive_tested_faq1_title">"Zbog čega je praćenje deaktivirano?"</string>
Expand Down Expand Up @@ -1705,9 +1704,17 @@ U tom slučaju kontaktirajte nas ovde:"</string>
<string name="checkin_report_title1">"Zaštititi kontakte"</string>
<string name="checkin_report_title2">"Obratiti pažnju na simptome"</string>
<string name="checkin_report_title3">"Vršiti testiranje"</string>
<string name="checkin_report_subtitle1">"Mogli biste biti zarazni, a da to ne primetite. Pridržavajte se važećih higijenskih i zaštitnih mera i zaštitite svoju porodicu, prijatelje i okolinu."</string>
<string name="checkin_report_subtitle1">"Mogli ste da se zarazite, a da ne primetite. Obratite pažnju na sledeće mere opreza:

- nositi masku do 7 dana posle kontakta)

- ograničiti kontakte

- držati razmak (najmanje 1,5 metar)

- izbegavati javne zatvorene prostore"</string>
<string name="checkin_report_subtitle2">"Proveravajte svoje zdravsveno stanje."</string>
<string name="checkin_report_subtitle3">"Odmah se testirajte ako imate simptome. Čak i ako nema simptoma i niste u potpunosti vakcinisani, test korone je važan i preporučuje se."</string>
<string name="checkin_report_subtitle3">"U slučaju pojave &lt;b&gt;simptoma odmah se testirati&lt;/b&gt; – i ako ste vakcinisati (uključ. dopunske vakcine) ili ste preležali koronu. Čak i ako imate samo blage simptome, testiranje je korisno i preporučljivo.&lt;br/&gt;&lt;br/&gt;&lt;b&gt;Testirajte se&lt;/b&gt;, i ako &lt;b&gt;nemate simptome&lt;/b&gt;. Možete biti zaraženi i kada nemate simptome. Test u tom slučaju treba uraditi nekoliko dana (4–7) posle rizičnog kontakta. U tom vremenu se najčešće može otkriti zaraza."</string>

<!-- Titel von CheckIn Meldungen Screen. -->
<string name="meldung_detail_checkin_title">"Prijava"</string>
Expand Down Expand Up @@ -1868,7 +1875,7 @@ U tom slučaju kontaktirajte nas ovde:"</string>
Mnoga mesta nude i vakcinaciju bez zakazanog termina"</string>

<!-- vaccination booking info screen info box at bottom -->
<string name="vaccination_booking_info_info">"Vakcina za Covid-19 preporučena je osobama starijim od 12 godina. Vakcinacija je besplatna."</string>
<string name="vaccination_booking_info_info">"Vakcina za Covid-19 preporučena je osobama starijim od 5 godina."</string>

<!-- url for booking an appointment for vaccination for canton ag -->
<string name="vaccination_booking_ag_url">"https://www.ag.ch/coronavirus-impfung"</string>
Expand Down
26 changes: 17 additions & 9 deletions common/src/main/res/values-de/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -662,23 +662,23 @@ Damit erfahren andere Nutzerinnen und Nutzer der SwissCovid-App, dass die Mögli
<string name="symptom_faq1_title">"Was sind COVID-19-Symptome?"</string>

<!-- Symptome: FAQ Text -->
<string name="symptom_faq1_text">"Diese Symptome treten häufig auf:
<string name="symptom_faq1_text">"Das neue Coronavirus kann sehr unterschiedliche Krankheitssymptome zeigen.
Die häufigsten Symptome sind:

– Fieber, Fiebergefühl
– Halsschmerzen
– Husten (meist trocken)
– Kurzatmigkeit
– Brustschmerzen
– Fieber
– Plötzlicher Verlust des Geruchs- und/oder Geschmackssinns

Zudem sind folgende Symptome möglich:

– Kopfschmerzen
– Allgemeine Schwäche, Unwohlsein
– Muskelschmerzen
– Schnupfen
– Magen-Darm-Symptome (Übelkeit, Erbrechen, Durchfall, Bauchschmerzen)
– Hautausschläge"</string>
– Hautausschläge

Beachten Sie: Die Krankheitssymptome sind unterschiedlich stark und können je nach Virusvariante variieren. Sie können auch leicht sein. Bereits ein Schnupfen kann eine Infektion bedeuten."</string>

<!-- Meldungen: Positiv getestet FAQ Titel -->
<string name="meldungen_positive_tested_faq1_title">"Warum ist das Tracing deaktiviert?"</string>
Expand Down Expand Up @@ -1783,9 +1783,17 @@ Dieser Titel wird beim Check-in angezeigt."</string>
<string name="checkin_report_title1">"Kontakte schützen"</string>
<string name="checkin_report_title2">"Auf Symptome achten"</string>
<string name="checkin_report_title3">"Testen lassen"</string>
<string name="checkin_report_subtitle1">"Sie könnten bereits ansteckend sein, ohne es zu merken. Beachten Sie die geltenden Hygiene- und Schutzmassnahmen und schützen Sie Ihre Familie, Ihre Freunde und Ihr Umfeld."</string>
<string name="checkin_report_subtitle1">"Sie könnten sich angesteckt haben, ohne es zu merken. Beachten Sie folgende Vorsichtsmassnahmen:

- Maske tragen (bis 7 Tagen nach Kontakt)

- Kontakte einschränken

- Abstand halten (mind. 1,5 Meter)

- öffentliche Räume meiden"</string>
<string name="checkin_report_subtitle2">"Überwachen Sie Ihren Gesundheitszustand."</string>
<string name="checkin_report_subtitle3">"Lassen Sie sich beim Auftreten von Symptomen sofort testen. Wenn keine Symptome auftreten und Sie noch nicht vollständig geimpft sind, ist ein Corona-Test ebenfalls sinnvoll und empfohlen."</string>
<string name="checkin_report_subtitle3">"Lassen Sie sich beim Auftreten von &lt;b&gt;Symptomen sofort testen&lt;/b&gt; – auch wenn Sie geimpft (inkl. Auffrischimpfungen) oder genesen sind. Selbst wenn Sie nur leichte Symptome haben, ist ein Test sinnvoll und empfohlen.&lt;br/&gt;&lt;br/&gt;Lassen Sie sich &lt;b&gt;auch testen&lt;/b&gt;, wenn Sie &lt;b&gt;keine Symptome&lt;/b&gt; haben. Sie könnten sich angesteckt haben, aber symptomlos sein. Ein Test sollte in diesem Fall erst einige Tage (4–7) nach dem Risiko-Kontakt stattfinden. Dann kann eine symptomlose Ansteckung am ehesten entdeckt werden."</string>

<!-- Titel von CheckIn Meldungen Screen. -->
<!-- Fuzzy -->
Expand Down Expand Up @@ -1953,7 +1961,7 @@ Dieser Titel wird beim Check-in angezeigt."</string>
Viele Orte bieten auch Walk-in-Impfungen ohne Termine an."</string>

<!-- vaccination booking info screen info box at bottom -->
<string name="vaccination_booking_info_info">"Die Covid-19-Impfung ist für Personen ab 12 Jahren empfohlen. Die Impfung ist gratis."</string>
<string name="vaccination_booking_info_info">"Die Covid-19-Impfung ist für Personen ab 5 Jahren empfohlen."</string>

<!-- url for booking an appointment for vaccination for canton ag -->
<string name="vaccination_booking_ag_url">"https://www.ag.ch/coronavirus-impfung"</string>
Expand Down
24 changes: 16 additions & 8 deletions common/src/main/res/values-es/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -642,22 +642,22 @@ De esta forma, se informa a otros usuarios de la aplicación SwissCovid de que e
<string name="symptom_faq1_title">"¿Cuáles son los síntomas de COVID-19?"</string>

<!-- Symptome: FAQ Text -->
<string name="symptom_faq1_text">"Los síntomas siguientes aparecen con frecuencia:
<string name="symptom_faq1_text">"El nuevo coronavirus puede causar síntomas de enfermedad muy diversos. Los síntomas mas frecuentes son:

– fiebre, sensación febril
– dolor de garganta
– tos (casi siempre seca)
– dificultad respiratoria
– dolor en el pecho
– fiebre
– pérdida repentina del sentido del gusto y/o del olfato
Pueden aparecer también los síntomas siguientes:

– dolor de cabeza
– debilidad general, malestar
– dolores musculares
– catarro
– síntomas gastrointestinales (nauseas, vómitos, diarrea, dolor de estómago)
– erupciones cutáneas"</string>
– erupciones cutáneas

Tenga en cuenta: Los síntomas pueden ser más o menos graves y variar en función de la variante del virus. Es posible que sean muy leves. Incluso un catarro puede significar un contagio."</string>

<!-- Meldungen: Positiv getestet FAQ Titel -->
<string name="meldungen_positive_tested_faq1_title">"¿Por qué está desactivado el rastreo?"</string>
Expand Down Expand Up @@ -1697,9 +1697,17 @@ Posibles utilizaciones:
<string name="checkin_report_title1">"Proteger a sus contactos"</string>
<string name="checkin_report_title2">"Estar atento a los síntomas"</string>
<string name="checkin_report_title3">"Hacer el test"</string>
<string name="checkin_report_subtitle1">"Es posible que sea usted contagioso sin darse cuenta. Observe las reglas de higiene y comportamiento y proteja a su familia, sus amigos y su entorno."</string>
<string name="checkin_report_subtitle1">"Es posible que se haya contagiado sin darse cuenta. Observe las siguientes medidas de precaución:

- llevar mascarilla (hasta 7 días tras el contacto)

- limitar los contactos

- mantener la distancia ( 1,5 metros como mín.)

- evitar los espacios públicos"</string>
<string name="checkin_report_subtitle2">"Vigile su estado de salud."</string>
<string name="checkin_report_subtitle3">"Ante la aparición de síntomas haga el test inmediatamente. Incluso si no tiene síntomas y aún no está vacunado por completo, es conveniente y recomendable hacer el test del coronavirus."</string>
<string name="checkin_report_subtitle3">"Haga inmediatamente el test si aparecen &lt;b&gt;síntomas&lt;/b&gt; – también si está vacunado (incl. vacunas de refuerzo) o si se ha recuperado. Hacer el test es apropiado y recomendable incluso si los síntomas son leves.&lt;br/&gt;&lt;br/&gt;Haga también &lt;b&gt;el test&lt;/b&gt; si no tiene&lt;b&gt;síntomas&lt;/b&gt;. Puede usted haberse contagiado pero ser asintomático. En este caso, el test debería realizarse trascurridos algunos días (4-7) tras el contacto de riesgo. A partir de ese momento, la probabilidad de detectar un contagio asintomático es mayor."</string>

<!-- Titel von CheckIn Meldungen Screen. -->
<string name="meldung_detail_checkin_title">"Check-in"</string>
Expand Down Expand Up @@ -1860,7 +1868,7 @@ Posibles utilizaciones:
Muchos centros ofrecen la posibllidad de vacunarse sin cita previa."</string>

<!-- vaccination booking info screen info box at bottom -->
<string name="vaccination_booking_info_info">"Se recomienda la vacuna contra la Covid-19 a las personas mayores de 12 años. La vacuna es gratuita."</string>
<string name="vaccination_booking_info_info">"Se recomienda la vacuna contra la Covid-19 a las personas mayores de 5 años."</string>

<!-- url for booking an appointment for vaccination for canton ag -->
<string name="vaccination_booking_ag_url">"https://www.ag.ch/coronavirus-impfung"</string>
Expand Down
25 changes: 16 additions & 9 deletions common/src/main/res/values-fr/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -648,23 +648,22 @@ Ainsi, d’autres utilisateurs de l’application SwissCovid apprennent qu’il
<string name="symptom_faq1_title">"Quels sont les symptômes du COVID-19 ?"</string>

<!-- Symptome: FAQ Text -->
<string name="symptom_faq1_text">"Ces symptômes sont fréquents :
<string name="symptom_faq1_text">"Le coronavirus peut présenter des symptômes très variés. Symptômes les plus fréquents :

– Fièvre, sensation de fièvre
– Mal de gorge
– Toux (généralement sèche)
– Difficultés respiratoires
– Douleurs dans la poitrine
– Fièvre
– Perte soudaine de l’odorat et/ou du goût

Les symptômes suivants peuvent aussi apparaître :

– Maux de tête
– Faiblesse générale, sensation de malaise
– Douleurs musculaires
– Rhume
– Symptômes gastro-intestinaux (nausées, vomissements, diarrhée, maux de ventre)
– Éruptions cutanées"</string>
– Éruptions cutanées

Attention : les symptômes varient fortement et peuvent être différents selon le variant. Ils peuvent également être légers. Un rhume peut déjà indiquer une infection."</string>

<!-- Meldungen: Positiv getestet FAQ Titel -->
<string name="meldungen_positive_tested_faq1_title">"Pourquoi le traçage est-il désactivé ?"</string>
Expand Down Expand Up @@ -1729,9 +1728,17 @@ Ce titre s’affichera lors du check-in."</string>
<string name="checkin_report_title1">"Protéger les contacts"</string>
<string name="checkin_report_title2">"Observer les symptômes"</string>
<string name="checkin_report_title3">"Se faire tester"</string>
<string name="checkin_report_subtitle1">"Il est possible d’être contagieux sans le savoir. Respectez les règles d’hygiène et de conduite pour protéger votre famille, vos amis et tout votre entourage."</string>
<string name="checkin_report_subtitle1">"Vous pourriez avoir été infecté sans le remarquer. Veuillez suivre les mesures de précaution suivantes :

- Porter le masque (jusqu'à 7 jours après le contact)

- Limiter les contacts

- Garder ses distances (au moins 1,5 m)

- Éviter les espaces publics"</string>
<string name="checkin_report_subtitle2">"Surveillez votre état de santé."</string>
<string name="checkin_report_subtitle3">"Faites-vous immédiatement tester si vous présentez des symptômes. Même en l’absence de symptômes, il peut être utile et recommandé de se faire tester pour le coronavirus si vous n'êtes pas encore complètement vacciné."</string>
<string name="checkin_report_subtitle3">"En cas de symptômes, &lt;b&gt;faites-vous tester immédiatement&lt;/b&gt; même si vous êtes vacciné (rappel compris) ou guéri. Même si vous ressentez seulement des symptômes légers, il est recommandé de procéder à un test.&lt;br/&gt;&lt;br/&gt;Faites-vous &lt;b&gt;aussi tester&lt;/b&gt; si vous n'avez &lt;b&gt;aucun symptôme&lt;/b&gt;. Vous pourriez avoir été infecté et ne présenter aucun symptôme. Dans ce cas, le dépistage devrait avoir lieu seulement quelques jours (4 à 7) après le contact à risque. C'est le meilleur moment pour détecter une infection asymptomatique."</string>

<!-- Titel von CheckIn Meldungen Screen. -->
<string name="meldung_detail_checkin_title">"Check-in"</string>
Expand Down Expand Up @@ -1892,7 +1899,7 @@ Ce titre s’affichera lors du check-in."</string>
Il est aussi possible de se faire vacciner sans rendez-vous dans de nombreux endroits."</string>

<!-- vaccination booking info screen info box at bottom -->
<string name="vaccination_booking_info_info">"Gratuite, la vaccination contre le COVID-19 est recommandée pour les personnes dès 12 ans."</string>
<string name="vaccination_booking_info_info">"La vaccination contre le COVID-19 est recommandée pour les personnes dès 5 ans."</string>

<!-- url for booking an appointment for vaccination for canton ag -->
<string name="vaccination_booking_ag_url">"https://www.ag.ch/coronavirus-impfung"</string>
Expand Down
Loading

0 comments on commit 482b981

Please sign in to comment.