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

Commit

Permalink
Fixed terms of use url and privacy policy url
Browse files Browse the repository at this point in the history
  • Loading branch information
cocoa-dev committed Dec 15, 2020
1 parent cffe8ba commit 3eac4f4
Show file tree
Hide file tree
Showing 217 changed files with 13,683 additions and 9,402 deletions.
25 changes: 25 additions & 0 deletions Covid19Radar/Covid19Radar.Android/Covid19Radar.Android.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@
<Compile Include="Services\Logs\LogFileServiceAndroid.cs" />
<Compile Include="Services\Logs\LogPathServiceAndroid.cs" />
<Compile Include="Services\Logs\LogPeriodicDeleteServiceAndroid.cs" />
<Compile Include="Renderers\CustomDatePickerRenderer.cs" />
</ItemGroup>
<ItemGroup>
<None Include="appcenter-pre-build.sh" />
Expand Down Expand Up @@ -242,6 +243,30 @@
<SubType></SubType>
<Generator></Generator>
</AndroidResource>
<AndroidResource Include="Resources\drawable-en-xxhdpi\arrow_icon.png">
<SubType></SubType>
<Generator></Generator>
</AndroidResource>
<AndroidResource Include="Resources\drawable-en-xhdpi\arrow_icon.png">
<SubType></SubType>
<Generator></Generator>
</AndroidResource>
<AndroidResource Include="Resources\drawable-ja-xhdpi\arrow_icon.png">
<SubType></SubType>
<Generator></Generator>
</AndroidResource>
<AndroidResource Include="Resources\drawable-ja-xxhdpi\arrow_icon.png">
<SubType></SubType>
<Generator></Generator>
</AndroidResource>
<AndroidResource Include="Resources\drawable-xhdpi\arrow_icon.png">
<SubType></SubType>
<Generator></Generator>
</AndroidResource>
<AndroidResource Include="Resources\drawable-xxhdpi\arrow_icon.png">
<SubType></SubType>
<Generator></Generator>
</AndroidResource>
</ItemGroup>
<ItemGroup>
<None Include="Properties\AndroidManifest.xml" />
Expand Down
1 change: 1 addition & 0 deletions Covid19Radar/Covid19Radar.Android/MainActivity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ protected override void OnCreate(Bundle savedInstanceState)
base.SetTheme(Resource.Style.MainTheme);
base.OnCreate(savedInstanceState);

Xamarin.Forms.Forms.SetFlags("RadioButton_Experimental");
Xamarin.Essentials.Platform.Init(this, savedInstanceState);
Xamarin.Forms.Forms.Init(this, savedInstanceState);
Xamarin.Forms.FormsMaterial.Init(this, savedInstanceState);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="5" android:versionName="APP_VERSION" package="APP_PACKAGE_NAME" android:installLocation="auto">
<uses-sdk android:minSdkVersion="23" android:targetSdkVersion="29" />
<application android:debuggable="true" android:label="@string/app_name" android:icon="@mipmap/ic_launcher" android:fullBackupContent="@xml/backup_settings"></application>
<application android:label="@string/app_name" android:icon="@mipmap/ic_launcher" android:fullBackupContent="@xml/backup_settings"></application>
<uses-feature android:name="android.hardware.bluetooth_le" android:required="true" />
<uses-feature android:name="android.hardware.bluetooth" />
<uses-permission android:name="android.permission.BLUETOOTH" />
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
using Android.Content;
using Covid19Radar.Droid.Renderers;
using Xamarin.Forms;
using Xamarin.Forms.Platform.Android;

[assembly: ExportRenderer(typeof(DatePicker), typeof(CustomDatePickerRendererAndroid))]
namespace Covid19Radar.Droid.Renderers
{
public class CustomDatePickerRendererAndroid : DatePickerRenderer
{
public CustomDatePickerRendererAndroid(Context context) : base(context)
{
}
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions Covid19Radar/Covid19Radar.iOS/AppDelegate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ public override bool FinishedLaunching(UIApplication app, NSDictionary options)
{
NSUrlCache.SharedCache.RemoveAllCachedResponses();

Xamarin.Forms.Forms.SetFlags("RadioButton_Experimental");

global::Xamarin.Forms.Forms.Init();
global::Xamarin.Forms.FormsMaterial.Init();

Expand Down
17 changes: 17 additions & 0 deletions Covid19Radar/Covid19Radar.iOS/Covid19Radar.iOS.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@
<Compile Include="Services\Logs\LogFileServiceIos.cs" />
<Compile Include="Services\Logs\LogPathServiceIos.cs" />
<Compile Include="Services\Logs\LogPeriodicDeleteServiceIos.cs" />
<Compile Include="Renderers\CustomDatePickerRenderer.cs" />
</ItemGroup>
<ItemGroup>
<ImageAsset Include="Assets.xcassets\Contents.json">
Expand Down Expand Up @@ -478,6 +479,21 @@
<BundleResource Include="Resources\zh.lproj\privacypolicy_img01%403x.png" />
<BundleResource Include="Resources\zh.lproj\privacypolicy_img01%402x.png" />
<BundleResource Include="Resources\zh.lproj\privacypolicy_img01.png" />
<BundleResource Include="Resources\arrow_icon%403x.png" />
<BundleResource Include="Resources\arrow_icon%402x.png" />
<BundleResource Include="Resources\arrow_icon.png" />
<BundleResource Include="Resources\Base.lproj\arrow_icon%403x.png" />
<BundleResource Include="Resources\Base.lproj\arrow_icon%402x.png" />
<BundleResource Include="Resources\Base.lproj\arrow_icon.png" />
<BundleResource Include="Resources\en.lproj\arrow_icon%403x.png" />
<BundleResource Include="Resources\en.lproj\arrow_icon%402x.png" />
<BundleResource Include="Resources\en.lproj\arrow_icon.png" />
<BundleResource Include="Resources\ja.lproj\arrow_icon%403x.png" />
<BundleResource Include="Resources\ja.lproj\arrow_icon%402x.png" />
<BundleResource Include="Resources\ja.lproj\arrow_icon.png" />
<BundleResource Include="Resources\zh.lproj\arrow_icon%403x.png" />
<BundleResource Include="Resources\zh.lproj\arrow_icon%402x.png" />
<BundleResource Include="Resources\zh.lproj\arrow_icon.png" />
</ItemGroup>
<ItemGroup>
<Reference Include="System" />
Expand Down Expand Up @@ -1331,6 +1347,7 @@
</ItemGroup>
<ItemGroup>
<Folder Include="Services\Logs\" />
<Folder Include="Renderers\" />
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Xamarin\iOS\Xamarin.iOS.CSharp.targets" />
<ProjectExtensions>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
using Covid19Radar.Controls;
using Covid19Radar.iOS.Renderers;
using UIKit;
using Xamarin.Forms;
using Xamarin.Forms.Platform.iOS;

[assembly: ExportRenderer(typeof(CustomDatePicker), typeof(CustomDatePickerRendererIos))]
namespace Covid19Radar.iOS.Renderers
{
public class CustomDatePickerRendererIos : DatePickerRenderer
{
protected override void OnElementChanged(ElementChangedEventArgs<DatePicker> e)
{
base.OnElementChanged(e);
if (e.NewElement != null && Control != null)
{
var datePicker = Control.InputView as UIDatePicker;
datePicker.PreferredDatePickerStyle = UIDatePickerStyle.Wheels;
}
}
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 3 additions & 2 deletions Covid19Radar/Covid19Radar/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ protected override async void OnInitialized()

INavigationResult result;
// Check user data and skip tutorial
UserDataService userDataService = Container.Resolve<UserDataService>();
IUserDataService userDataService = Container.Resolve<IUserDataService>();

if (userDataService.IsExistUserData)
{
Expand Down Expand Up @@ -155,10 +155,11 @@ protected override void RegisterTypes(IContainerRegistry containerRegistry)
containerRegistry.RegisterSingleton<ILogPeriodicDeleteService, LogPeriodicDeleteService>();
containerRegistry.RegisterSingleton<ILogUploadService, LogUploadService>();
containerRegistry.RegisterSingleton<IEssentialsService, EssentialsService>();
containerRegistry.RegisterSingleton<UserDataService>();
containerRegistry.RegisterSingleton<IUserDataService, UserDataService>();
containerRegistry.RegisterSingleton<ExposureNotificationService>();
containerRegistry.RegisterSingleton<ITermsUpdateService, TermsUpdateService>();
containerRegistry.RegisterSingleton<IApplicationPropertyService, ApplicationPropertyService>();
containerRegistry.RegisterSingleton<IHttpClientService, HttpClientService>();
#if USE_MOCK
containerRegistry.RegisterSingleton<IHttpDataService, HttpDataServiceMock>();
containerRegistry.RegisterSingleton<IStorageService, StorageServiceMock>();
Expand Down
4 changes: 2 additions & 2 deletions Covid19Radar/Covid19Radar/Common/AppConstants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ public static class AppConstants
{
public static readonly int NumberOfGroup = 86400;
/// <summary>
/// Number of days not processed or deleted
/// Number of days covered from the date of diagnosis or onset
/// </summary>
public const int OutOfDateDays = -14;
public const int DaysToSendTek = -3;
/// <summary>
/// Cache Timeout
/// </summary>
Expand Down
11 changes: 11 additions & 0 deletions Covid19Radar/Covid19Radar/Controls/CustomDatePicker.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
using Xamarin.Forms;

namespace Covid19Radar.Controls
{
public class CustomDatePicker : DatePicker
{
public CustomDatePicker()
{
}
}
}
4 changes: 4 additions & 0 deletions Covid19Radar/Covid19Radar/Covid19Radar.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@
<PackageReference Include="Xamarin.Forms.Visual.Material" Version="4.6.0.967" />
<PackageReference Include="Azure.Storage.Blobs" Version="12.6.0" />
</ItemGroup>
<ItemGroup>
<Compile Include="Controls\CustomDatePicker.cs" />
</ItemGroup>
<ItemGroup>
<Compile Update="Templates\BeaconItemTemplate .xaml.cs">
<DependentUpon>BeaconItemTemplate .xaml</DependentUpon>
Expand Down Expand Up @@ -191,6 +194,7 @@
<Folder Include="MultilingualResources\" />
<Folder Include="Image\" />
<Folder Include="Services\Logs\" />
<Folder Include="Controls\" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Xamarin.ExposureNotification\Xamarin.ExposureNotification.csproj" />
Expand Down
Loading

0 comments on commit 3eac4f4

Please sign in to comment.