Skip to content

Commit b1745b6

Browse files
authored
Merge pull request #131 from ProteGO-Safe/release/4.10.0
Release/4.10.0
2 parents 8dc27a7 + faf7cda commit b1745b6

34 files changed

+1488
-1033
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ All notable changes to this project will be documented in this file.
66
The format is based on [Keep a Changelog](http://keepachangelog.com/)
77
and this project adheres to [Semantic Versioning](http://semver.org/).
88

9+
## 4.10.0
10+
- Added new file storage method
11+
- Split current JSON data to multiple smaller data files to prevent over downloading unwanted data
12+
- Enhanced view of the app home screen, which now includes more detailed statistics on vaccination and infections
13+
- New screen with detailed statistics and graphs on vaccination (number of people vaccinated, doses, adverse reactions) and infections (number of people infected, recovered, deaths, causes of death and tests)
14+
- Added information on vaccination and registration rules with redirection to registration, vaccination request and helpline
15+
916
## 4.9.1
1017
- Added Vaccination stats to dashboard
1118

Podfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,4 +185,4 @@ SPEC CHECKSUMS:
185185

186186
PODFILE CHECKSUM: 779fe596c92aaa178911e4fb4980414eb2b9ab2e
187187

188-
COCOAPODS: 1.10.0
188+
COCOAPODS: 1.10.1

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,14 @@ For convenience, there's a `rebuild.sh` script which performs actions mentioned
7373
To launch it, type `sh rebuild.sh` in your console.
7474

7575
## ChangeLog
76+
**4.10.0**
77+
- Added new file storage method
78+
- Split current JSON data to multiple smaller data files to prevent over downloading unwanted data
79+
- Enhanced view of the app home screen, which now includes more detailed statistics on vaccination and infections
80+
- New screen with detailed statistics and graphs on vaccination (number of people vaccinated, doses, adverse reactions) and infections (number of people infected, recovered, deaths, causes of death and tests)
81+
- Added information on vaccination and registration rules with redirection to registration, vaccination request and helpline
82+
83+
7684
**4.9.1**
7785
- Added Vaccination stats to dashboard
7886

project.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ targets:
4242
PushMutableContent:
4343
settings:
4444
CODE_SIGN_STYLE: Manual
45-
MARKETING_VERSION: "4.9.1"
46-
CURRENT_PROJECT_VERSION: 745
45+
MARKETING_VERSION: "4.10.0"
46+
CURRENT_PROJECT_VERSION: 746
4747
TARGETED_DEVICE_FAMILY: 1,2
4848
type: app-extension
4949
platform: iOS
@@ -67,6 +67,8 @@ targets:
6767
group: safesafe/Language
6868
- path: safesafe/Resources/Extensions
6969
group: safesafe/Resources
70+
- path: safesafe/Models/DashboardStatsAPIResponse.swift
71+
group: safesafe/Models
7072
# Main app target
7173
#
7274
safesafe:
@@ -75,8 +77,8 @@ targets:
7577
deploymentTarget: "12.1"
7678
settings:
7779
CODE_SIGN_STYLE: Manual
78-
MARKETING_VERSION: "4.9.1"
79-
CURRENT_PROJECT_VERSION: 745
80+
MARKETING_VERSION: "4.10.0"
81+
CURRENT_PROJECT_VERSION: 746
8082
TARGETED_DEVICE_FAMILY: 1
8183
SWIFT_OBJC_BRIDGING_HEADER: $(PROJECT_DIR)/safesafe/App/safesafe-Bridging-Header.h
8284
configFiles:

safesafe/App/AppCoordinator.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ final class AppCoordinator: CoordinatorType {
142142
dependencyContainer.jsBridge.register(freeTestService: dependencyContainer.freeTestService)
143143
dependencyContainer.jsBridge.register(historicalDataWorker: dependencyContainer.historicalDataWorker)
144144
dependencyContainer.jsBridge.register(dashboardWorker: dependencyContainer.dashboardWorker)
145+
dependencyContainer.jsBridge.register(detailsWorker: dependencyContainer.detailsWorker)
145146
}
146147

147148
@objc private func applicationWillEnterForeground(notification: Notification) {
@@ -158,6 +159,5 @@ final class AppCoordinator: CoordinatorType {
158159
} else {
159160
UIScreen.main.isCaptured ? HiderController.shared.show() : HiderController.shared.hide()
160161
}
161-
162162
}
163163
}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
//
2+
// Moya+PromiseKit.swift
3+
// safesafe
4+
//
5+
// Created by Namedix on 22/02/2021.
6+
//
7+
8+
import Moya
9+
import PromiseKit
10+
11+
extension MoyaProvider {
12+
func request(
13+
_ target: Target,
14+
callbackQueue: DispatchQueue? = .none,
15+
progress: ProgressBlock? = .none
16+
) -> Promise<Moya.Response> {
17+
Promise { seal in
18+
request(
19+
target,
20+
callbackQueue: callbackQueue,
21+
progress: progress
22+
) { result in
23+
switch result {
24+
case .success(let response):
25+
seal.fulfill(response)
26+
case .failure(let error):
27+
seal.reject(error)
28+
}
29+
}
30+
}
31+
}
32+
}

safesafe/Common/Extensions/Result+Void.swift

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,24 @@
77
//
88

99
import Foundation
10+
import PromiseKit
1011

11-
extension Result where Success == Void {
12-
13-
static var success: Result {
12+
extension Swift.Result where Success == Void {
13+
static var success: Swift.Result<Void, Failure> {
1414
return .success(())
1515
}
16-
16+
}
17+
18+
19+
extension Swift.Result {
20+
func toPromise() -> Promise<Success> {
21+
Promise { seal in
22+
switch self {
23+
case .success(let success):
24+
seal.fulfill(success)
25+
case .failure(let error):
26+
seal.reject(error)
27+
}
28+
}
29+
}
1730
}

safesafe/Common/Helpers/Dashboard/DashboardWorker.swift

Lines changed: 0 additions & 241 deletions
This file was deleted.

0 commit comments

Comments
 (0)