Skip to content
This repository has been archived by the owner on Apr 12, 2023. It is now read-only.

Commit

Permalink
Merge pull request #210 from cocoa-mhlw/release_1_2_4
Browse files Browse the repository at this point in the history
Release v1.2.4
  • Loading branch information
keiji authored Jun 7, 2021
2 parents cb1b9cc + 8052045 commit 2a72949
Show file tree
Hide file tree
Showing 39 changed files with 290 additions and 171 deletions.
13 changes: 8 additions & 5 deletions Covid19Radar/Covid19Radar.Android/Covid19Radar.Android.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
<BundleAssemblies>true</BundleAssemblies>
<AndroidEnableMultiDex>true</AndroidEnableMultiDex>
<AndroidDexTool>d8</AndroidDexTool>
<LangVersion>default</LangVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugSymbols>false</DebugSymbols>
Expand All @@ -72,6 +73,8 @@
<AndroidDexTool>d8</AndroidDexTool>
<AndroidEnableSGenConcurrent>true</AndroidEnableSGenConcurrent>
<AndroidEnableMultiDex>true</AndroidEnableMultiDex>
<AndroidHttpClientHandlerType>Xamarin.Android.Net.AndroidClientHandler</AndroidHttpClientHandlerType>
<LangVersion>default</LangVersion>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Local|AnyCPU'">
<DebugSymbols>true</DebugSymbols>
Expand All @@ -80,7 +83,7 @@
<DebugType>full</DebugType>
<PlatformTarget>AnyCPU</PlatformTarget>
<GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies>
<LangVersion>8.0</LangVersion>
<LangVersion>default</LangVersion>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
<AndroidPackageFormat>apk</AndroidPackageFormat>
Expand All @@ -94,8 +97,7 @@
<EnableLLVM>false</EnableLLVM>
<AndroidEnableProfiledAot>false</AndroidEnableProfiledAot>
<MandroidI18n>CJK</MandroidI18n>
<AndroidHttpClientHandlerType>
</AndroidHttpClientHandlerType>
<AndroidHttpClientHandlerType>Xamarin.Android.Net.AndroidClientHandler</AndroidHttpClientHandlerType>
<AndroidDexTool>d8</AndroidDexTool>
<AndroidEnableMultiDex>true</AndroidEnableMultiDex>
</PropertyGroup>
Expand All @@ -106,7 +108,7 @@
<DebugType>full</DebugType>
<PlatformTarget>AnyCPU</PlatformTarget>
<GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies>
<LangVersion>8.0</LangVersion>
<LangVersion>default</LangVersion>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
<AndroidUseSharedRuntime>true</AndroidUseSharedRuntime>
Expand All @@ -115,6 +117,7 @@
<AndroidPackageFormat>apk</AndroidPackageFormat>
<AndroidEnableSGenConcurrent>true</AndroidEnableSGenConcurrent>
<MandroidI18n>CJK</MandroidI18n>
<AndroidHttpClientHandlerType>Xamarin.Android.Net.AndroidClientHandler</AndroidHttpClientHandlerType>
</PropertyGroup>
<ItemGroup>
<Reference Include="Mono.Android" />
Expand Down Expand Up @@ -176,7 +179,7 @@
<Version>4.6.0.967</Version>
</PackageReference>
<PackageReference Include="Xamarin.GooglePlayServices.Nearby.ExposureNotification">
<Version>18.0.2-eap.6</Version>
<Version>19.7.1-eap.1</Version>
</PackageReference>
<PackageReference Include="Xamarin.GooglePlayServices.SafetyNet">
<Version>117.0.0-preview03</Version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@

<full-backup-content>
<exclude domain="file" path="logs" />
</full-backup-content>
</full-backup-content>
6 changes: 0 additions & 6 deletions Covid19Radar/Covid19Radar.Android/appcenter-pre-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,3 @@ sed -i '' "s/LOG_STORAGE_ACCOUNT_NAME/$LOG_STORAGE_ACCOUNT_NAME/g" $APP_CONSTANT
cat $APP_CONSTANT_FILE

echo "Updated id!"

# To avoid the following
# https://github.com/xamarin/xamarin-android/issues/5499
${ANDROID_HOME}/tools/bin/sdkmanager --uninstall "ndk-bundle"
${ANDROID_HOME}/tools/bin/sdkmanager --install "ndk;21.3.6528147"
ln -s ${ANDROID_HOME}/ndk/21.3.6528147 ${ANDROID_HOME}/ndk-bundle
14 changes: 11 additions & 3 deletions Covid19Radar/Covid19Radar.iOS/AppDelegate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,20 @@
* 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/. */

using Covid19Radar.Common;
using Covid19Radar.iOS.Services;
using Covid19Radar.iOS.Services.Logs;
using Covid19Radar.Services;
using Covid19Radar.Services.Logs;
using DryIoc;
using Foundation;
using UIKit;
using Xamarin.Forms;

namespace Covid19Radar.iOS
{
// The UIApplicationDelegate for the application. This class is responsible for launching the
// User Interface of the application, as well as listening (and optionally responding) to
// The UIApplicationDelegate for the application. This class is responsible for launching the
// User Interface of the application, as well as listening (and optionally responding) to
// application events from iOS.
[Register("AppDelegate")]
public partial class AppDelegate : global::Xamarin.Forms.Platform.iOS.FormsApplicationDelegate
Expand All @@ -24,7 +26,7 @@ public AppDelegate()
}

//
// This method is invoked when the application has loaded and is ready to run. In this
// This method is invoked when the application has loaded and is ready to run. In this
// method you should instantiate the window, load the UI into it and then make the window
// visible.
//
Expand Down Expand Up @@ -56,6 +58,12 @@ public override bool FinishedLaunching(UIApplication app, NSDictionary options)
return base.FinishedLaunching(app, options);
}

public override void OnActivated(UIApplication uiApplication)
{
base.OnActivated(uiApplication);
MessagingCenter.Send((object)this, AppConstants.IosOnActivatedMessage);
}

//public override void WillEnterForeground(UIApplication uiApplication)
//{
// Plugin.LocalNotification.NotificationCenter.ResetApplicationIconBadgeNumber(uiApplication);
Expand Down
2 changes: 0 additions & 2 deletions Covid19Radar/Covid19Radar.iOS/Covid19Radar.iOS.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -1175,8 +1175,6 @@
<EmbeddedResource Include="fa-brands-400.otf" />
<EmbeddedResource Include="fa-regular-400.otf" />
<EmbeddedResource Include="fa-solid-900.otf" />
<EmbeddedResource Include="NotoSansCJKjp-Medium.otf" />
<EmbeddedResource Include="NotoSansCJKjp-Regular.otf" />
<EmbeddedResource Include="Roboto-Regular.ttf" />
</ItemGroup>
<ItemGroup>
Expand Down
Binary file not shown.
Binary file not shown.
20 changes: 0 additions & 20 deletions Covid19Radar/Covid19Radar/App.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@
</Style>

<Style x:Key="DefaultEntry" TargetType="Entry">
<Setter Property="FontFamily" Value="NotoSansRegularFontFamily" />
<Setter Property="BackgroundColor" Value="Transparent" />
<Setter Property="TextColor" Value="{StaticResource PrimaryText}" />
<Setter Property="PlaceholderColor" Value="{StaticResource SecondaryText}" />
Expand All @@ -144,7 +143,6 @@
</Style>

<Style x:Key="DefaultDatePicker" TargetType="DatePicker">
<Setter Property="FontFamily" Value="NotoSansRegularFontFamily" />
<Setter Property="BackgroundColor" Value="Transparent" />
<Setter Property="TextColor" Value="{StaticResource PrimaryText}" />
<Setter Property="Opacity" Value="0.6" />
Expand All @@ -156,7 +154,6 @@
<Setter Property="FontAttributes" Value="Bold" />
<Setter Property="FontSize" Value="Title" />
<Setter Property="HorizontalOptions" Value="FillAndExpand" />
<Setter Property="FontFamily" Value="NotoSansMediumFontFamily" />
</Style>

<Style x:Key="DefaultTitleLabel" TargetType="Label">
Expand All @@ -165,55 +162,48 @@
<Setter Property="FontAttributes" Value="Bold" />
<Setter Property="FontSize" Value="Title" />
<Setter Property="HorizontalOptions" Value="FillAndExpand" />
<Setter Property="FontFamily" Value="NotoSansMediumFontFamily" />
</Style>

<Style x:Key="DefaultSubTitleLabelColor" TargetType="Label">
<Setter Property="HorizontalTextAlignment" Value="Center" />
<Setter Property="TextColor" Value="{StaticResource Primary}" />
<Setter Property="FontSize" Value="Subtitle" />
<Setter Property="HorizontalOptions" Value="FillAndExpand" />
<Setter Property="FontFamily" Value="NotoSansMediumFontFamily" />
</Style>

<Style x:Key="DefaultSubTitleLabel" TargetType="Label">
<Setter Property="HorizontalTextAlignment" Value="Center" />
<Setter Property="TextColor" Value="{StaticResource PrimaryText}" />
<Setter Property="FontSize" Value="{x:OnPlatform Android=18, iOS=20}" />
<Setter Property="HorizontalOptions" Value="FillAndExpand" />
<Setter Property="FontFamily" Value="NotoSansMediumFontFamily" />
</Style>

<Style x:Key="DefaultLabelLarge" TargetType="Label">
<Setter Property="HorizontalTextAlignment" Value="Start" />
<Setter Property="TextColor" Value="{StaticResource PrimaryText}" />
<Setter Property="FontSize" Value="Large" />
<Setter Property="HorizontalOptions" Value="FillAndExpand" />
<Setter Property="FontFamily" Value="NotoSansRegularFontFamily" />
</Style>

<Style x:Key="DefaultLabelLargeColor" TargetType="Label">
<Setter Property="HorizontalTextAlignment" Value="Start" />
<Setter Property="TextColor" Value="{StaticResource Primary}" />
<Setter Property="FontSize" Value="Large" />
<Setter Property="HorizontalOptions" Value="FillAndExpand" />
<Setter Property="FontFamily" Value="NotoSansRegularFontFamily" />
</Style>

<Style x:Key="DefaultLabelColor" TargetType="Label">
<Setter Property="HorizontalTextAlignment" Value="Start" />
<Setter Property="TextColor" Value="{StaticResource Primary}" />
<Setter Property="FontSize" Value="Medium" />
<Setter Property="HorizontalOptions" Value="FillAndExpand" />
<Setter Property="FontFamily" Value="NotoSansRegularFontFamily" />
</Style>

<Style x:Key="DefaultLabel" TargetType="Label">
<Setter Property="HorizontalTextAlignment" Value="Start" />
<Setter Property="TextColor" Value="{StaticResource PrimaryText}" />
<Setter Property="FontSize" Value="Medium" />
<Setter Property="HorizontalOptions" Value="FillAndExpand" />
<Setter Property="FontFamily" Value="NotoSansRegularFontFamily" />
</Style>


Expand All @@ -222,7 +212,6 @@
<Setter Property="TextColor" Value="{StaticResource Primary}" />
<Setter Property="FontSize" Value="Small" />
<Setter Property="HorizontalOptions" Value="FillAndExpand" />
<Setter Property="FontFamily" Value="NotoSansRegularFontFamily" />
</Style>


Expand All @@ -231,15 +220,13 @@
<Setter Property="TextColor" Value="{StaticResource PrimaryText}" />
<Setter Property="FontSize" Value="Small" />
<Setter Property="HorizontalOptions" Value="FillAndExpand" />
<Setter Property="FontFamily" Value="NotoSansRegularFontFamily" />
</Style>

<Style x:Key="DefaultLabelMicro" TargetType="Label">
<Setter Property="HorizontalTextAlignment" Value="Start" />
<Setter Property="TextColor" Value="{StaticResource PrimaryText}" />
<Setter Property="FontSize" Value="Micro" />
<Setter Property="HorizontalOptions" Value="FillAndExpand" />
<Setter Property="FontFamily" Value="NotoSansRegularFontFamily" />
</Style>

<Style x:Key="DefaultActivityIndicator" TargetType="ActivityIndicator">
Expand All @@ -252,7 +239,6 @@
<Setter Property="TextColor" Value="{StaticResource Primary}" />
<Setter Property="FontSize" Value="Medium" />
<Setter Property="HorizontalOptions" Value="FillAndExpand" />
<Setter Property="FontFamily" Value="NotoSansRegularFontFamily" />
</Style>

<Style x:Key="DefaultNumberLabel" TargetType="Label">
Expand Down Expand Up @@ -284,7 +270,6 @@
<Setter Property="HorizontalOptions" Value="FillAndExpand" />
<Setter Property="VerticalTextAlignment" Value="Center" />
<Setter Property="Margin" Value="0,0,0,0" />
<Setter Property="FontFamily" Value="NotoSansRegularFontFamily" />
</Style>

<Style x:Key="DefaultWebView" TargetType="WebView">
Expand All @@ -305,7 +290,6 @@

<Style x:Key="DefaultButton" TargetType="Button">
<Setter Property="Visual" Value="Default" />
<Setter Property="FontFamily" Value="NotoSansMediumFontFamily" />
<Setter Property="FontAttributes" Value="Bold" />
<Setter Property="BorderColor" Value="{StaticResource ButtonBorder}" />
<Setter Property="BorderWidth" Value="4" />
Expand All @@ -329,7 +313,6 @@

<Style x:Key="DefaultButtonGrayedOut" TargetType="Button">
<Setter Property="Visual" Value="Default" />
<Setter Property="FontFamily" Value="NotoSansMediumFontFamily" />
<Setter Property="FontAttributes" Value="Bold" />
<Setter Property="BorderColor" Value="{StaticResource ButtonGrayedOut}" />
<Setter Property="BorderWidth" Value="2" />
Expand All @@ -349,7 +332,6 @@
<Setter Property="TextColor" Value="{StaticResource PrimaryText}" />
<Setter Property="FontSize" Value="Medium" />
<Setter Property="HorizontalOptions" Value="FillAndExpand" />
<Setter Property="FontFamily" Value="NotoSansRegularFontFamily" />
<Setter Property="VerticalTextAlignment" Value="Center" />
</Style>

Expand All @@ -359,15 +341,13 @@
<Setter Property="HorizontalTextAlignment" Value="Start" />
<Setter Property="TextColor" Value="{StaticResource Primary}" />
<Setter Property="FontSize" Value="Small" />
<Setter Property="FontFamily" Value="NotoSansRegularFontFamily" />
</Style>


<Style x:Key="CardLabelSmall" TargetType="Label">
<Setter Property="HorizontalTextAlignment" Value="Start" />
<Setter Property="TextColor" Value="{StaticResource PrimaryText}" />
<Setter Property="FontSize" Value="Small" />
<Setter Property="FontFamily" Value="NotoSansRegularFontFamily" />
</Style>

<Style x:Key="ImageLableStackLayout" TargetType="StackLayout">
Expand Down
4 changes: 3 additions & 1 deletion Covid19Radar/Covid19Radar/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public partial class App : PrismApplication
private ILoggerService LoggerService;
private ILogFileService LogFileService;

/*
/*
* The Xamarin Forms XAML Previewer in Visual Studio uses System.Activator.CreateInstance.
* This imposes a limitation in which the App class must have a default constructor.
* App(IPlatformInitializer initializer = null) cannot be handled by the Activator.
Expand Down Expand Up @@ -192,6 +192,7 @@ protected override void OnStart()

protected override void OnResume()
{
base.OnResume();
LogFileService.Rotate();
}

Expand All @@ -204,6 +205,7 @@ public async Task InitializeBackgroundTasks()
*/
protected override void OnSleep()
{
base.OnSleep();
}

private void LogUnobservedTaskExceptions()
Expand Down
2 changes: 0 additions & 2 deletions Covid19Radar/Covid19Radar/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,4 @@
[assembly: ExportFont("fa-solid-900.otf", Alias = "FA-S")]
[assembly: ExportFont("fa-brands-400.otf", Alias = "FA-B")]
[assembly: ExportFont("materialdesignicons-webfont.ttf", Alias = "MaterialFontFamily")]
[assembly: ExportFont("NotoSansCJKjp-Medium.otf", Alias = "NotoSansMediumFontFamily")]
[assembly: ExportFont("NotoSansCJKjp-Regular.otf", Alias = "NotoSansRegularFontFamily")]
[assembly: ExportFont("Roboto-Regular.ttf", Alias = "RobotoRegularFontFamily")]
9 changes: 9 additions & 0 deletions Covid19Radar/Covid19Radar/Common/AppConstants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,14 @@ public static class AppConstants

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

/// <summary>
/// Number of days of exposure information to display
/// </summary>
public const int DaysOfExposureInformationToDisplay = -15;

/// <summary>
/// Message when `AppDelagate.OnActivated()` occurs on iOS.
/// </summary>
public const string IosOnActivatedMessage = "IosOnActivatedMessage";
}
}
18 changes: 18 additions & 0 deletions Covid19Radar/Covid19Radar/Common/DateTimeUtility.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
using System;
namespace Covid19Radar.Common
{
public interface IDateTimeUtility
{
DateTime UtcNow { get; }
}
public class DateTimeUtility : IDateTimeUtility
{
public static IDateTimeUtility Instance = new DateTimeUtility();

public DateTimeUtility()
{
}

public DateTime UtcNow => DateTime.UtcNow;
}
}
4 changes: 0 additions & 4 deletions Covid19Radar/Covid19Radar/Covid19Radar.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,6 @@
<None Remove="Resources\Fonts\fa-regular-400.otf" />
<None Remove="Resources\Fonts\fa-solid-900.otf" />
<None Remove="Resources\Fonts\materialdesignicons-webfont.ttf" />
<None Remove="Resources\Fonts\NotoSansCJKjp-Medium.otf" />
<None Remove="Resources\Fonts\NotoSansCJKjp-Regular.otf" />
<None Remove="Resources\Fonts\Roboto-Regular.ttf" />
<None Remove="Services\ExposureNotificationHandler.cs.txt" />
<None Remove="settings.json" />
Expand All @@ -99,8 +97,6 @@
<EmbeddedResource Include="Resources\Fonts\fa-regular-400.otf" />
<EmbeddedResource Include="Resources\Fonts\fa-solid-900.otf" />
<EmbeddedResource Include="Resources\Fonts\materialdesignicons-webfont.ttf" />
<EmbeddedResource Include="Resources\Fonts\NotoSansCJKjp-Medium.otf" />
<EmbeddedResource Include="Resources\Fonts\NotoSansCJKjp-Regular.otf" />
<EmbeddedResource Include="Resources\Fonts\Roboto-Regular.ttf" />
</ItemGroup>
<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,7 @@
</trans-unit>
<trans-unit id="SettingsPageTitle" translate="yes" xml:space="preserve">
<source>Settings</source>
<target state="needs-review-translation">设置</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>
<target state="translated">设置</target>
<note from="MultilingualBuild" annotates="source" priority="2">アプリの設定</note>
</trans-unit>
<trans-unit id="ButtonCancel" translate="yes" xml:space="preserve">
Expand Down
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit 2a72949

Please sign in to comment.