Skip to content
This repository was archived by the owner on Feb 19, 2021. It is now read-only.

Commit 9c30f16

Browse files
authored
Merge pull request #703 from Covid-19Radar/master
RC6 Add Phone
2 parents 5ad9768 + 581b63d commit 9c30f16

190 files changed

Lines changed: 704 additions & 424 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CONTRIBUTORS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474
- Kimihiro Shirase
7575
- Tassana Thaveeteeratham (Thai Translation)
7676
- Kotaro Sakamoto
77+
- Koichi Yokota (Documentation)
7778

7879
# Original Covid19Radar Beta Testers
7980
- Nagahata Kenji

COPYRIGHT_THIRD_PARTY_SOFTWARE_NOTICES.md

Lines changed: 49 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,9 @@ The original copyright notices and the licenses under which COVID-19Radar commun
99
---
1010
Copyright (C) 2020 COVID-19Radar Contributors
1111

12-
This program is free software: you can redistribute it and/or modify
13-
it under the terms of the GNU Affero General Public License as published by
14-
the Free Software Foundation, either version 3 of the License, or
15-
(at your option) any later version.
16-
17-
This program is distributed in the hope that it will be useful,
18-
but WITHOUT ANY WARRANTY; without even the implied warranty of
19-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20-
GNU Affero General Public License for more details.
21-
22-
You should have received a copy of the GNU Affero General Public License
23-
along with this program. If not, see <http://www.gnu.org/licenses/>.
12+
This Source Code Form is subject to the terms of the Mozilla Public
13+
License, v. 2.0. If a copy of the MPL was not distributed with this
14+
file, You can obtain one at https://mozilla.org/MPL/2.0/.
2415

2516
---
2617
## Visual Studio App Center SDK for .NET
@@ -394,3 +385,49 @@ The above copyright notice and this permission notice shall be included in all c
394385

395386
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
396387

388+
---
389+
## (Font) Font Awesome Free
390+
---
391+
392+
Font Awesome Free is free, open source, and GPL friendly. You can use it for commercial projects, open source projects, or really almost whatever you want.
393+
394+
Icons — CC BY 4.0 License
395+
In the Font Awesome Free download, the CC BY 4.0 license applies to all icons packaged as .svg and .js files types.
396+
397+
Fonts — SIL OFL 1.1 License
398+
In the Font Awesome Free download, the SIL OLF license applies to all icons packaged as web and desktop font files.
399+
400+
Code — MIT License
401+
In the Font Awesome Free download, the MIT license applies to all non-font and non-icon files.
402+
403+
Attribution is required by MIT, SIL OLF, and CC BY licenses. Downloaded Font Awesome Free files already contain embedded comments with sufficient attribution, so you shouldn't need to do anything additional when using these files normally.
404+
405+
We've kept attribution comments terse, so we ask that you do not actively work to remove them from files, especially code. They're a great way for folks to learn about Font Awesome.
406+
407+
---
408+
## (Font) Noto Sans CJK JP
409+
---
410+
411+
This Font Software is licensed under the SIL Open Font License,
412+
Version 1.1.
413+
414+
This license is copied below, and is also available with a FAQ at:
415+
http://scripts.sil.org/OFL
416+
417+
---
418+
## (Font) Roboto
419+
---
420+
421+
Apache License
422+
Version 2.0, January 2004
423+
http://www.apache.org/licenses/
424+
425+
---
426+
## (Font) Material Design Icons
427+
---
428+
429+
Copyright (c) 2014, Austin Andrews (http://materialdesignicons.com/), with Reserved Font Name Material Design Icons.
430+
431+
Copyright (c) 2014, Google (http://www.google.com/design/) uses the license at https://github.com/google/material-design-icons/blob/master/LICENSE
432+
433+
This Font Software is licensed under the SIL Open Font License, Version 1.1. This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL

Covid19Radar/Covid19Radar.Android/Covid19Radar.Android.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@
4949
<BundleAssemblies>true</BundleAssemblies>
5050
<AndroidEnableMultiDex>true</AndroidEnableMultiDex>
5151
<AndroidDexTool>d8</AndroidDexTool>
52-
<AndroidLinkTool>r8</AndroidLinkTool>
5352
</PropertyGroup>
5453
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
5554
<DebugSymbols>false</DebugSymbols>
@@ -97,6 +96,8 @@
9796
<MandroidI18n>CJK</MandroidI18n>
9897
<AndroidHttpClientHandlerType>
9998
</AndroidHttpClientHandlerType>
99+
<AndroidDexTool>d8</AndroidDexTool>
100+
<AndroidEnableMultiDex>true</AndroidEnableMultiDex>
100101
</PropertyGroup>
101102
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug_Mock|AnyCPU'">
102103
<DebugSymbols>true</DebugSymbols>

Covid19Radar/Covid19Radar/App.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
xmlns="http://xamarin.com/schemas/2014/forms"
55
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
66
xmlns:local="clr-namespace:Covid19Radar"
7-
xmlns:prism="http://prismlibrary.com">
7+
xmlns:prism="clr-namespace:Prism.DryIoc;assembly=Prism.DryIoc.Forms">
88
<Application.Resources>
99
<ResourceDictionary>
1010

@@ -129,7 +129,7 @@
129129
<Setter Property="TextColor" Value="{StaticResource PrimaryText}" />
130130
<Setter Property="PlaceholderColor" Value="{StaticResource SecondaryText}" />
131131
<Setter Property="HorizontalOptions" Value="FillAndExpand" />
132-
<Setter Property="FontSize" Value="Small" />
132+
<Setter Property="FontSize" Value="Default" />
133133
<Setter Property="HeightRequest" Value="40" />
134134
<Setter Property="Opacity" Value="0.6" />
135135
<Style.Triggers>

Covid19Radar/Covid19Radar/Common/AppConstants.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ public static class AppConstants
1919
/// Max Error Count
2020
/// </summary>
2121
public const int MaxErrorCount = 3;
22+
/// <summary>
23+
/// Max diagnosis UID Count
24+
/// </summary>
25+
public const int MaxDiagnosisUidCount = 8;
2226

2327
public const string positiveRegex = @"\b[0-9]{8}\b";
2428

Lines changed: 44 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,51 @@
1-
namespace Covid19Radar.Model
1+
using System.ComponentModel;
2+
using Xamarin.Forms;
3+
4+
namespace Covid19Radar.Model
25
{
3-
public class MainMenuModel
6+
public class MainMenuModel : INotifyPropertyChanged
47
{
8+
private string iconColor;
9+
private string textColor;
10+
public event PropertyChangedEventHandler PropertyChanged;
11+
512
public string Title { get; set; }
613
public string Icon { get; set; }
714
public string PageName { get; set; }
15+
public string IconColor
16+
{
17+
set
18+
{
19+
if (iconColor != value)
20+
{
21+
iconColor = value;
22+
OnPropertyChanged("IconColor");
23+
}
24+
}
25+
get
26+
{
27+
return iconColor;
28+
}
29+
}
30+
public string TextColor
31+
{
32+
set
33+
{
34+
if (textColor != value)
35+
{
36+
textColor = value;
37+
OnPropertyChanged("TextColor");
38+
}
39+
}
40+
get
41+
{
42+
return textColor;
43+
}
44+
}
45+
46+
protected virtual void OnPropertyChanged(string propertyName)
47+
{
48+
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
49+
}
850
}
951
}

Covid19Radar/Covid19Radar/MultilingualResources/Covid19Radar.af.xlf

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -737,8 +737,9 @@
737737
<target state="needs-review-translation" state-qualifier="mt-suggestion">https://covid19radarjpnprod.z11.web.core.windows.net/en/index.html</target>
738738
</trans-unit>
739739
<trans-unit id="UrlContactedPhone" translate="yes" xml:space="preserve">
740-
<source>https://covid19radarjpnprod.z11.web.core.windows.net/en/chatbot4.html</source>
741-
<target state="needs-review-translation" state-qualifier="mt-suggestion">https://covid19radarjpnprod.z11.web.core.windows.net/en/chatbot4.html</target>
740+
<source>https://covid19radarjpnprod.z11.web.core.windows.net/phone.json</source>
741+
<target state="needs-review-translation" state-qualifier="mt-suggestion">https://covid19radarjpnprod.z11.web.core.windows.net/phone.json</target>
742+
<note from="MultilingualUpdate" annotates="source" priority="2">Please verify the translation’s accuracy as the source string was updated after it was translated.</note>
742743
</trans-unit>
743744
<trans-unit id="LocalNotificationDescription" translate="yes" xml:space="preserve">
744745
<source>It is possible you have been in close proximity to a user who tested positive for COVID-19. Tap for more details.</source>

Covid19Radar/Covid19Radar/MultilingualResources/Covid19Radar.am.xlf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -717,8 +717,8 @@
717717
<target state="new">https://covid19radarjpnprod.z11.web.core.windows.net/en/index.html</target>
718718
</trans-unit>
719719
<trans-unit id="UrlContactedPhone" translate="yes" xml:space="preserve">
720-
<source>https://covid19radarjpnprod.z11.web.core.windows.net/en/chatbot4.html</source>
721-
<target state="new">https://covid19radarjpnprod.z11.web.core.windows.net/en/chatbot4.html</target>
720+
<source>https://covid19radarjpnprod.z11.web.core.windows.net/phone.json</source>
721+
<target state="new">https://covid19radarjpnprod.z11.web.core.windows.net/phone.json</target>
722722
</trans-unit>
723723
<trans-unit id="LocalNotificationDescription" translate="yes" xml:space="preserve">
724724
<source>It is possible you have been in close proximity to a user who tested positive for COVID-19. Tap for more details.</source>

Covid19Radar/Covid19Radar/MultilingualResources/Covid19Radar.ar.xlf

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -737,8 +737,9 @@
737737
<target state="needs-review-translation" state-qualifier="mt-suggestion">https://covid19radarjpnprod.z11.web.core.windows.net/en/index.html</target>
738738
</trans-unit>
739739
<trans-unit id="UrlContactedPhone" translate="yes" xml:space="preserve">
740-
<source>https://covid19radarjpnprod.z11.web.core.windows.net/en/chatbot4.html</source>
741-
<target state="needs-review-translation" state-qualifier="mt-suggestion">https://covid19radarjpnprod.z11.web.core.windows.net/en/chatbot4.html</target>
740+
<source>https://covid19radarjpnprod.z11.web.core.windows.net/phone.json</source>
741+
<target state="needs-review-translation" state-qualifier="mt-suggestion">https://covid19radarjpnprod.z11.web.core.windows.net/phone.json</target>
742+
<note from="MultilingualUpdate" annotates="source" priority="2">Please verify the translation’s accuracy as the source string was updated after it was translated.</note>
742743
</trans-unit>
743744
<trans-unit id="LocalNotificationDescription" translate="yes" xml:space="preserve">
744745
<source>It is possible you have been in close proximity to a user who tested positive for COVID-19. Tap for more details.</source>

Covid19Radar/Covid19Radar/MultilingualResources/Covid19Radar.az-Cyrl.xlf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -717,8 +717,8 @@
717717
<target state="new">https://covid19radarjpnprod.z11.web.core.windows.net/en/index.html</target>
718718
</trans-unit>
719719
<trans-unit id="UrlContactedPhone" translate="yes" xml:space="preserve">
720-
<source>https://covid19radarjpnprod.z11.web.core.windows.net/en/chatbot4.html</source>
721-
<target state="new">https://covid19radarjpnprod.z11.web.core.windows.net/en/chatbot4.html</target>
720+
<source>https://covid19radarjpnprod.z11.web.core.windows.net/phone.json</source>
721+
<target state="new">https://covid19radarjpnprod.z11.web.core.windows.net/phone.json</target>
722722
</trans-unit>
723723
<trans-unit id="LocalNotificationDescription" translate="yes" xml:space="preserve">
724724
<source>It is possible you have been in close proximity to a user who tested positive for COVID-19. Tap for more details.</source>

0 commit comments

Comments
 (0)