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

Commit

Permalink
Merge pull request #703 from Covid-19Radar/master
Browse files Browse the repository at this point in the history
RC6 Add Phone
  • Loading branch information
kazumihirose authored Jun 28, 2020
2 parents 5ad9768 + 581b63d commit 9c30f16
Show file tree
Hide file tree
Showing 190 changed files with 704 additions and 424 deletions.
1 change: 1 addition & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
- Kimihiro Shirase
- Tassana Thaveeteeratham (Thai Translation)
- Kotaro Sakamoto
- Koichi Yokota (Documentation)

# Original Covid19Radar Beta Testers
- Nagahata Kenji
Expand Down
61 changes: 49 additions & 12 deletions COPYRIGHT_THIRD_PARTY_SOFTWARE_NOTICES.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,9 @@ The original copyright notices and the licenses under which COVID-19Radar commun
---
Copyright (C) 2020 COVID-19Radar Contributors

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
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/.

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

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.

---
## (Font) Font Awesome Free
---

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.

Icons — CC BY 4.0 License
In the Font Awesome Free download, the CC BY 4.0 license applies to all icons packaged as .svg and .js files types.

Fonts — SIL OFL 1.1 License
In the Font Awesome Free download, the SIL OLF license applies to all icons packaged as web and desktop font files.

Code — MIT License
In the Font Awesome Free download, the MIT license applies to all non-font and non-icon files.

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.

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.

---
## (Font) Noto Sans CJK JP
---

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

---
## (Font) Roboto
---

Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/

---
## (Font) Material Design Icons
---

Copyright (c) 2014, Austin Andrews (http://materialdesignicons.com/), with Reserved Font Name Material Design Icons.

Copyright (c) 2014, Google (http://www.google.com/design/) uses the license at https://github.com/google/material-design-icons/blob/master/LICENSE

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
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
<BundleAssemblies>true</BundleAssemblies>
<AndroidEnableMultiDex>true</AndroidEnableMultiDex>
<AndroidDexTool>d8</AndroidDexTool>
<AndroidLinkTool>r8</AndroidLinkTool>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugSymbols>false</DebugSymbols>
Expand Down Expand Up @@ -97,6 +96,8 @@
<MandroidI18n>CJK</MandroidI18n>
<AndroidHttpClientHandlerType>
</AndroidHttpClientHandlerType>
<AndroidDexTool>d8</AndroidDexTool>
<AndroidEnableMultiDex>true</AndroidEnableMultiDex>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug_Mock|AnyCPU'">
<DebugSymbols>true</DebugSymbols>
Expand Down
4 changes: 2 additions & 2 deletions Covid19Radar/Covid19Radar/App.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:Covid19Radar"
xmlns:prism="http://prismlibrary.com">
xmlns:prism="clr-namespace:Prism.DryIoc;assembly=Prism.DryIoc.Forms">
<Application.Resources>
<ResourceDictionary>

Expand Down Expand Up @@ -129,7 +129,7 @@
<Setter Property="TextColor" Value="{StaticResource PrimaryText}" />
<Setter Property="PlaceholderColor" Value="{StaticResource SecondaryText}" />
<Setter Property="HorizontalOptions" Value="FillAndExpand" />
<Setter Property="FontSize" Value="Small" />
<Setter Property="FontSize" Value="Default" />
<Setter Property="HeightRequest" Value="40" />
<Setter Property="Opacity" Value="0.6" />
<Style.Triggers>
Expand Down
4 changes: 4 additions & 0 deletions Covid19Radar/Covid19Radar/Common/AppConstants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ public static class AppConstants
/// Max Error Count
/// </summary>
public const int MaxErrorCount = 3;
/// <summary>
/// Max diagnosis UID Count
/// </summary>
public const int MaxDiagnosisUidCount = 8;

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

Expand Down
46 changes: 44 additions & 2 deletions Covid19Radar/Covid19Radar/Model/MainMenuModel.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,51 @@
namespace Covid19Radar.Model
using System.ComponentModel;
using Xamarin.Forms;

namespace Covid19Radar.Model
{
public class MainMenuModel
public class MainMenuModel : INotifyPropertyChanged
{
private string iconColor;
private string textColor;
public event PropertyChangedEventHandler PropertyChanged;

public string Title { get; set; }
public string Icon { get; set; }
public string PageName { get; set; }
public string IconColor
{
set
{
if (iconColor != value)
{
iconColor = value;
OnPropertyChanged("IconColor");
}
}
get
{
return iconColor;
}
}
public string TextColor
{
set
{
if (textColor != value)
{
textColor = value;
OnPropertyChanged("TextColor");
}
}
get
{
return textColor;
}
}

protected virtual void OnPropertyChanged(string propertyName)
{
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -737,8 +737,9 @@
<target state="needs-review-translation" state-qualifier="mt-suggestion">https://covid19radarjpnprod.z11.web.core.windows.net/en/index.html</target>
</trans-unit>
<trans-unit id="UrlContactedPhone" translate="yes" xml:space="preserve">
<source>https://covid19radarjpnprod.z11.web.core.windows.net/en/chatbot4.html</source>
<target state="needs-review-translation" state-qualifier="mt-suggestion">https://covid19radarjpnprod.z11.web.core.windows.net/en/chatbot4.html</target>
<source>https://covid19radarjpnprod.z11.web.core.windows.net/phone.json</source>
<target state="needs-review-translation" state-qualifier="mt-suggestion">https://covid19radarjpnprod.z11.web.core.windows.net/phone.json</target>
<note from="MultilingualUpdate" annotates="source" priority="2">Please verify the translation’s accuracy as the source string was updated after it was translated.</note>
</trans-unit>
<trans-unit id="LocalNotificationDescription" translate="yes" xml:space="preserve">
<source>It is possible you have been in close proximity to a user who tested positive for COVID-19. Tap for more details.</source>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -717,8 +717,8 @@
<target state="new">https://covid19radarjpnprod.z11.web.core.windows.net/en/index.html</target>
</trans-unit>
<trans-unit id="UrlContactedPhone" translate="yes" xml:space="preserve">
<source>https://covid19radarjpnprod.z11.web.core.windows.net/en/chatbot4.html</source>
<target state="new">https://covid19radarjpnprod.z11.web.core.windows.net/en/chatbot4.html</target>
<source>https://covid19radarjpnprod.z11.web.core.windows.net/phone.json</source>
<target state="new">https://covid19radarjpnprod.z11.web.core.windows.net/phone.json</target>
</trans-unit>
<trans-unit id="LocalNotificationDescription" translate="yes" xml:space="preserve">
<source>It is possible you have been in close proximity to a user who tested positive for COVID-19. Tap for more details.</source>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -737,8 +737,9 @@
<target state="needs-review-translation" state-qualifier="mt-suggestion">https://covid19radarjpnprod.z11.web.core.windows.net/en/index.html</target>
</trans-unit>
<trans-unit id="UrlContactedPhone" translate="yes" xml:space="preserve">
<source>https://covid19radarjpnprod.z11.web.core.windows.net/en/chatbot4.html</source>
<target state="needs-review-translation" state-qualifier="mt-suggestion">https://covid19radarjpnprod.z11.web.core.windows.net/en/chatbot4.html</target>
<source>https://covid19radarjpnprod.z11.web.core.windows.net/phone.json</source>
<target state="needs-review-translation" state-qualifier="mt-suggestion">https://covid19radarjpnprod.z11.web.core.windows.net/phone.json</target>
<note from="MultilingualUpdate" annotates="source" priority="2">Please verify the translation’s accuracy as the source string was updated after it was translated.</note>
</trans-unit>
<trans-unit id="LocalNotificationDescription" translate="yes" xml:space="preserve">
<source>It is possible you have been in close proximity to a user who tested positive for COVID-19. Tap for more details.</source>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -717,8 +717,8 @@
<target state="new">https://covid19radarjpnprod.z11.web.core.windows.net/en/index.html</target>
</trans-unit>
<trans-unit id="UrlContactedPhone" translate="yes" xml:space="preserve">
<source>https://covid19radarjpnprod.z11.web.core.windows.net/en/chatbot4.html</source>
<target state="new">https://covid19radarjpnprod.z11.web.core.windows.net/en/chatbot4.html</target>
<source>https://covid19radarjpnprod.z11.web.core.windows.net/phone.json</source>
<target state="new">https://covid19radarjpnprod.z11.web.core.windows.net/phone.json</target>
</trans-unit>
<trans-unit id="LocalNotificationDescription" translate="yes" xml:space="preserve">
<source>It is possible you have been in close proximity to a user who tested positive for COVID-19. Tap for more details.</source>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -717,8 +717,8 @@
<target state="new">https://covid19radarjpnprod.z11.web.core.windows.net/en/index.html</target>
</trans-unit>
<trans-unit id="UrlContactedPhone" translate="yes" xml:space="preserve">
<source>https://covid19radarjpnprod.z11.web.core.windows.net/en/chatbot4.html</source>
<target state="new">https://covid19radarjpnprod.z11.web.core.windows.net/en/chatbot4.html</target>
<source>https://covid19radarjpnprod.z11.web.core.windows.net/phone.json</source>
<target state="new">https://covid19radarjpnprod.z11.web.core.windows.net/phone.json</target>
</trans-unit>
<trans-unit id="LocalNotificationDescription" translate="yes" xml:space="preserve">
<source>It is possible you have been in close proximity to a user who tested positive for COVID-19. Tap for more details.</source>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -717,8 +717,8 @@
<target state="new">https://covid19radarjpnprod.z11.web.core.windows.net/en/index.html</target>
</trans-unit>
<trans-unit id="UrlContactedPhone" translate="yes" xml:space="preserve">
<source>https://covid19radarjpnprod.z11.web.core.windows.net/en/chatbot4.html</source>
<target state="new">https://covid19radarjpnprod.z11.web.core.windows.net/en/chatbot4.html</target>
<source>https://covid19radarjpnprod.z11.web.core.windows.net/phone.json</source>
<target state="new">https://covid19radarjpnprod.z11.web.core.windows.net/phone.json</target>
</trans-unit>
<trans-unit id="LocalNotificationDescription" translate="yes" xml:space="preserve">
<source>It is possible you have been in close proximity to a user who tested positive for COVID-19. Tap for more details.</source>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -737,8 +737,9 @@
<target state="needs-review-translation" state-qualifier="mt-suggestion">https://covid19radarjpnprod.z11.web.core.windows.net/en/index.html</target>
</trans-unit>
<trans-unit id="UrlContactedPhone" translate="yes" xml:space="preserve">
<source>https://covid19radarjpnprod.z11.web.core.windows.net/en/chatbot4.html</source>
<target state="needs-review-translation" state-qualifier="mt-suggestion">https://covid19radarjpnprod.z11.web.core.windows.net/en/chatbot4.html</target>
<source>https://covid19radarjpnprod.z11.web.core.windows.net/phone.json</source>
<target state="needs-review-translation" state-qualifier="mt-suggestion">https://covid19radarjpnprod.z11.web.core.windows.net/phone.json</target>
<note from="MultilingualUpdate" annotates="source" priority="2">Please verify the translation’s accuracy as the source string was updated after it was translated.</note>
</trans-unit>
<trans-unit id="LocalNotificationDescription" translate="yes" xml:space="preserve">
<source>It is possible you have been in close proximity to a user who tested positive for COVID-19. Tap for more details.</source>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -737,8 +737,9 @@
<target state="needs-review-translation" state-qualifier="mt-suggestion">https://covid19radarjpnprod.z11.web.core.windows.net/en/index.html</target>
</trans-unit>
<trans-unit id="UrlContactedPhone" translate="yes" xml:space="preserve">
<source>https://covid19radarjpnprod.z11.web.core.windows.net/en/chatbot4.html</source>
<target state="needs-review-translation" state-qualifier="mt-suggestion">https://covid19radarjpnprod.z11.web.core.windows.net/en/chatbot4.html</target>
<source>https://covid19radarjpnprod.z11.web.core.windows.net/phone.json</source>
<target state="needs-review-translation" state-qualifier="mt-suggestion">https://covid19radarjpnprod.z11.web.core.windows.net/phone.json</target>
<note from="MultilingualUpdate" annotates="source" priority="2">Please verify the translation’s accuracy as the source string was updated after it was translated.</note>
</trans-unit>
<trans-unit id="LocalNotificationDescription" translate="yes" xml:space="preserve">
<source>It is possible you have been in close proximity to a user who tested positive for COVID-19. Tap for more details.</source>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -737,8 +737,9 @@
<target state-qualifier="mt-suggestion" state="needs-review-translation">https://covid19radarjpnprod.z11.web.core.windows.net/hr/index.html</target>
</trans-unit>
<trans-unit xml:space="preserve" translate="yes" id="UrlContactedPhone">
<source>https://covid19radarjpnprod.z11.web.core.windows.net/en/chatbot4.html</source>
<target state-qualifier="mt-suggestion" state="needs-review-translation">https://covid19radarjpnprod.z11.web.core.windows.net/hr/chatbot4.html</target>
<source>https://covid19radarjpnprod.z11.web.core.windows.net/phone.json</source>
<target state-qualifier="mt-suggestion" state="needs-review-translation">https://covid19radarjpnprod.z11.web.core.windows.net/phone.json</target>
<note from="MultilingualUpdate" annotates="source" priority="2">Please verify the translation’s accuracy as the source string was updated after it was translated.</note>
</trans-unit>
<trans-unit xml:space="preserve" translate="yes" id="LocalNotificationDescription">
<source>It is possible you have been in close proximity to a user who tested positive for COVID-19. Tap for more details.</source>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -737,8 +737,9 @@
<target state="needs-review-translation" state-qualifier="mt-suggestion">https://covid19radarjpnprod.z11.web.core.windows.net/en/index.html</target>
</trans-unit>
<trans-unit id="UrlContactedPhone" translate="yes" xml:space="preserve">
<source>https://covid19radarjpnprod.z11.web.core.windows.net/en/chatbot4.html</source>
<target state="needs-review-translation" state-qualifier="mt-suggestion">https://covid19radarjpnprod.z11.web.core.windows.net/en/chatbot4.html</target>
<source>https://covid19radarjpnprod.z11.web.core.windows.net/phone.json</source>
<target state="needs-review-translation" state-qualifier="mt-suggestion">https://covid19radarjpnprod.z11.web.core.windows.net/phone.json</target>
<note from="MultilingualUpdate" annotates="source" priority="2">Please verify the translation’s accuracy as the source string was updated after it was translated.</note>
</trans-unit>
<trans-unit id="LocalNotificationDescription" translate="yes" xml:space="preserve">
<source>It is possible you have been in close proximity to a user who tested positive for COVID-19. Tap for more details.</source>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -736,8 +736,8 @@
<target state-qualifier="mt-suggestion" state="needs-review-translation">https://covid19radarjpnprod.z11.web.core.windows.net/en/index.html</target>
</trans-unit>
<trans-unit xml:space="preserve" translate="yes" id="UrlContactedPhone">
<source>https://covid19radarjpnprod.z11.web.core.windows.net/en/chatbot4.html</source>
<target state-qualifier="mt-suggestion" state="needs-review-translation">https://covid19radarjpnprod.z11.web.core.windows.net/en/chatbot4.html</target>
<source>https://covid19radarjpnprod.z11.web.core.windows.net/phone.json</source>
<target state-qualifier="mt-suggestion" state="needs-review-translation">https://covid19radarjpnprod.z11.web.core.windows.net/phone.json</target>
</trans-unit>
<trans-unit xml:space="preserve" translate="yes" id="LocalNotificationDescription">
<source>It is possible you have been in close proximity to a user who tested positive for COVID-19. Tap for more details.</source>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -717,8 +717,8 @@
<target state="new">https://covid19radarjpnprod.z11.web.core.windows.net/en/index.html</target>
</trans-unit>
<trans-unit id="UrlContactedPhone" translate="yes" xml:space="preserve">
<source>https://covid19radarjpnprod.z11.web.core.windows.net/en/chatbot4.html</source>
<target state="new">https://covid19radarjpnprod.z11.web.core.windows.net/en/chatbot4.html</target>
<source>https://covid19radarjpnprod.z11.web.core.windows.net/phone.json</source>
<target state="new">https://covid19radarjpnprod.z11.web.core.windows.net/phone.json</target>
</trans-unit>
<trans-unit id="LocalNotificationDescription" translate="yes" xml:space="preserve">
<source>It is possible you have been in close proximity to a user who tested positive for COVID-19. Tap for more details.</source>
Expand Down
Loading

0 comments on commit 9c30f16

Please sign in to comment.