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

接触確認の基準値ファイルの取得を実施しないようにする #1134

Merged
1 commit merged into from
Sep 13, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Covid19Radar/Covid19Radar.Android/MainApplication.cs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ private void RegisterPlatformTypes(IContainer container)

public Task<ExposureConfiguration> GetExposureConfigurationAsync()
{
return _exposureConfigurationRepository.Value.GetExposureConfigurationAsync();
return Task.FromResult(new ExposureConfiguration());
}

public async Task PreExposureDetectedAsync(ExposureConfiguration exposureConfiguration)
Expand Down
2 changes: 1 addition & 1 deletion Covid19Radar/Covid19Radar.iOS/AppDelegate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ private void RegisterPlatformTypes(IContainer container)

public Task<ExposureConfiguration> GetExposureConfigurationAsync()
{
return _exposureConfigurationRepository.Value.GetExposureConfigurationAsync();
return Task.FromResult(new ExposureConfiguration());
}

public Task DiagnosisKeysDataMappingAppliedAsync()
Expand Down
7 changes: 1 addition & 6 deletions Covid19Radar/Covid19Radar/Model/ExposureData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,6 @@ public class ExposureData
[JsonProperty("exposure_windows")]
public readonly List<ExposureWindow> ExposureWindowList;

[JsonProperty("exposure_configuration")]
public readonly ExposureConfiguration ExposureConfiguration;

public ExposureData(
string platform,
string platformVersion,
Expand All @@ -49,8 +46,7 @@ public ExposureData(
string buildNumber,
string enVersion,
List<DailySummary> dailySummaryList,
List<ExposureWindow> exposureWindowList,
ExposureConfiguration exposureConfiguration
List<ExposureWindow> exposureWindowList
)
{
Platform = platform;
Expand All @@ -62,7 +58,6 @@ ExposureConfiguration exposureConfiguration
EnVersion = enVersion;
DailySummaryList = dailySummaryList;
ExposureWindowList = exposureWindowList;
ExposureConfiguration = exposureConfiguration;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ public async Task ExportAsync(string filePath)
long enVersion = await _exposureNotificationApiService.GetVersionAsync();
List<DailySummary> dailySummaryList = await _exposureDataRepository.GetDailySummariesAsync();
List<ExposureWindow> exposureWindowList = await _exposureDataRepository.GetExposureWindowsAsync();
ExposureConfiguration exposureConfiguration = await _exposureConfigurationRepository.GetExposureConfigurationAsync();

var exposureData = new ExposureData(
_essentialsService.Platform,
Expand All @@ -64,8 +63,7 @@ public async Task ExportAsync(string filePath)
_essentialsService.BuildNumber,
enVersion.ToString(),
dailySummaryList,
exposureWindowList,
exposureConfiguration
exposureWindowList
);

string exposureDataJson = JsonConvert.SerializeObject(exposureData, Formatting.Indented);
Expand Down