Skip to content

Commit 470549e

Browse files
authored
Merge pull request #242 from DP-3T/develop
Release Version 2.1.0
2 parents 522938d + e1b1ba2 commit 470549e

33 files changed

+398
-105
lines changed

.github/workflows/build.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ jobs:
1414
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
1515
- uses: actions/checkout@v2
1616

17-
- name: Switch to Xcode 12
18-
run: sudo xcode-select --switch /Applications/Xcode_12.app
17+
- name: Switch to Xcode 12.3
18+
run: sudo xcode-select --switch /Applications/Xcode_12.3.app
1919

2020
- name: Fastlane test
2121
run: fastlane test
@@ -34,8 +34,8 @@ jobs:
3434
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
3535
- uses: actions/checkout@v2
3636

37-
- name: Switch to Xcode 12
38-
run: sudo xcode-select --switch /Applications/Xcode_12.app
37+
- name: Switch to Xcode 12.3
38+
run: sudo xcode-select --switch /Applications/Xcode_12.3.app
3939

4040
# Compile sample app for iOS Simulator (no signing)
4141
- name: Compile and run tests

.github/workflows/deploy_to_cocoapods.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ jobs:
1313
steps:
1414
- uses: actions/checkout@v1
1515

16-
- name: Switch to Xcode 12
17-
run: sudo xcode-select --switch /Applications/Xcode_12.app
16+
- name: Switch to Xcode 12.3
17+
run: sudo xcode-select --switch /Applications/Xcode_12.3.app
1818

1919
- name: Install Cocoapods
2020
run: gem install cocoapods

.github/workflows/distribute.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ jobs:
1111
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
1212
- uses: actions/checkout@v2
1313

14-
- name: Switch to Xcode 12
15-
run: sudo xcode-select --switch /Applications/Xcode_12.app
14+
- name: Switch to Xcode 12.3
15+
run: sudo xcode-select --switch /Applications/Xcode_12.3.app
1616

1717
- name: Run fastlane build
1818
env:

CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
# Changelog for DP3T-SDK iOS
22

3+
## Version 2.1.0 (21.12.2020)
4+
- Add support for iOS 12.5
5+
- Fix timeshift detection
6+
37
## Version 2.0.0 (29.10.2020)
8+
9+
IMPORTANT: Make sure to update dp3t-sdk-backend to 2.0.0 or higher as this version of the dp3t-sdk-ios requires new API endpoints.
10+
411
- 'Bearer' is not added as a prefix to auth key if using HTTPAuthorizationHeader auth method.
512
- HTTPAuthorizationBearer auth method is deprecated
613
- updates to Exposure Notification Framework version 2

DP3TSDK.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Pod::Spec.new do |spec|
33

44
spec.name = "DP3TSDK"
5-
spec.version = ENV['LIB_VERSION'] || '2.0.0'
5+
spec.version = ENV['LIB_VERSION'] || '2.1.0'
66
spec.summary = "Open protocol for COVID-19 proximity tracing using Bluetooth Low Energy on mobile devices"
77

88
spec.description = <<-DESC

Package.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import PackageDescription
55
let package = Package(
66
name: "DP3TSDK",
77
platforms: [
8-
.iOS("13.7"),
8+
.iOS(.v12),
99
],
1010
products: [
1111
.library(
@@ -14,7 +14,7 @@ let package = Package(
1414
),
1515
],
1616
dependencies: [
17-
.package(url: "https://github.com/IBM-Swift/Swift-JWT.git", from: "3.6.1"),
17+
.package(url: "https://github.com/Kitura/Swift-JWT.git", from: "3.6.1"),
1818
.package(url: "https://github.com/weichsel/ZIPFoundation/", .upToNextMajor(from: "0.9.0")),
1919
],
2020
targets: [

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ DP3T-SDK is available through [Cocoapods](https://cocoapods.org/)
8080

8181
```ruby
8282

83-
pod 'DP3TSDK', => '2.0.0'
83+
pod 'DP3TSDK', => '2.1.0'
8484

8585
```
8686

SampleApp/DP3TSampleApp.xcodeproj/project.pbxproj

+25-4
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
F88A3BDE2508AB4A001DDE5B /* ENExposureConfiguration.swift in Sources */ = {isa = PBXBuildFile; fileRef = F88A3BDD2508AB4A001DDE5B /* ENExposureConfiguration.swift */; };
2727
F89B452424731DD40011AD07 /* KeysViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = F89B452324731DD40011AD07 /* KeysViewController.swift */; };
2828
F8A7E69D24731FB400213CE2 /* NetworkingHelper.swift in Sources */ = {isa = PBXBuildFile; fileRef = F8A7E69C24731FB400213CE2 /* NetworkingHelper.swift */; };
29+
F8D581032588E83A00307C2B /* ExposureNotification.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F8D580FA2588E61E00307C2B /* ExposureNotification.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
30+
F8D5814F2589EC5A00307C2B /* DiffableDataSources in Frameworks */ = {isa = PBXBuildFile; productRef = F8D5814E2589EC5A00307C2B /* DiffableDataSources */; };
2931
/* End PBXBuildFile section */
3032

3133
/* Begin PBXFileReference section */
@@ -48,16 +50,19 @@
4850
F88A3BDD2508AB4A001DDE5B /* ENExposureConfiguration.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = ENExposureConfiguration.swift; path = ../../../Sources/DP3TSDK/Matching/ENExposureConfiguration.swift; sourceTree = "<group>"; };
4951
F89B452324731DD40011AD07 /* KeysViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KeysViewController.swift; sourceTree = "<group>"; };
5052
F8A7E69C24731FB400213CE2 /* NetworkingHelper.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = NetworkingHelper.swift; sourceTree = "<group>"; };
53+
F8D580FA2588E61E00307C2B /* ExposureNotification.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = ExposureNotification.framework; path = System/Library/Frameworks/ExposureNotification.framework; sourceTree = SDKROOT; };
5154
/* End PBXFileReference section */
5255

5356
/* Begin PBXFrameworksBuildPhase section */
5457
F83BE133242DDC450043FA1E /* Frameworks */ = {
5558
isa = PBXFrameworksBuildPhase;
5659
buildActionMask = 2147483647;
5760
files = (
61+
F8D581032588E83A00307C2B /* ExposureNotification.framework in Frameworks */,
5862
F83079972492909A005D3C65 /* SQLite in Frameworks */,
5963
F8287D15246A78570022CFD9 /* DP3TSDK in Frameworks */,
6064
DF07D0A62451E59200CFD431 /* Alamofire in Frameworks */,
65+
F8D5814F2589EC5A00307C2B /* DiffableDataSources in Frameworks */,
6166
F83BE150242DDFF60043FA1E /* SnapKit in Frameworks */,
6267
);
6368
runOnlyForDeploymentPostprocessing = 0;
@@ -117,6 +122,7 @@
117122
F83BE151242DE0C00043FA1E /* Frameworks */ = {
118123
isa = PBXGroup;
119124
children = (
125+
F8D580FA2588E61E00307C2B /* ExposureNotification.framework */,
120126
F83BE17C242DE1BF0043FA1E /* covid-tracing-ios-sdk */,
121127
);
122128
name = Frameworks;
@@ -143,6 +149,7 @@
143149
DF07D0A52451E59200CFD431 /* Alamofire */,
144150
F8287D14246A78570022CFD9 /* DP3TSDK */,
145151
F83079962492909A005D3C65 /* SQLite */,
152+
F8D5814E2589EC5A00307C2B /* DiffableDataSources */,
146153
);
147154
productName = CovidTracingTestApp;
148155
productReference = F83BE136242DDC450043FA1E /* DP3TSampleApp.app */;
@@ -176,6 +183,7 @@
176183
F83BE14E242DDFF60043FA1E /* XCRemoteSwiftPackageReference "SnapKit" */,
177184
DF07D0A42451E59200CFD431 /* XCRemoteSwiftPackageReference "Alamofire" */,
178185
F83079952492909A005D3C65 /* XCRemoteSwiftPackageReference "SQLite" */,
186+
F8D5814D2589EC5A00307C2B /* XCRemoteSwiftPackageReference "DiffableDataSources" */,
179187
);
180188
productRefGroup = F83BE137242DDC450043FA1E /* Products */;
181189
projectDirPath = "";
@@ -285,7 +293,7 @@
285293
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
286294
GCC_WARN_UNUSED_FUNCTION = YES;
287295
GCC_WARN_UNUSED_VARIABLE = YES;
288-
IPHONEOS_DEPLOYMENT_TARGET = 13.5;
296+
IPHONEOS_DEPLOYMENT_TARGET = 12.5;
289297
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
290298
MTL_FAST_MATH = YES;
291299
ONLY_ACTIVE_ARCH = YES;
@@ -305,7 +313,7 @@
305313
CURRENT_PROJECT_VERSION = 1;
306314
DEVELOPMENT_TEAM = XPL89PTG92;
307315
INFOPLIST_FILE = DP3TSampleApp/Info.plist;
308-
IPHONEOS_DEPLOYMENT_TARGET = 13.7;
316+
IPHONEOS_DEPLOYMENT_TARGET = 12.5;
309317
LD_RUNPATH_SEARCH_PATHS = (
310318
"$(inherited)",
311319
"@executable_path/Frameworks",
@@ -366,7 +374,7 @@
366374
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
367375
GCC_WARN_UNUSED_FUNCTION = YES;
368376
GCC_WARN_UNUSED_VARIABLE = YES;
369-
IPHONEOS_DEPLOYMENT_TARGET = 13.5;
377+
IPHONEOS_DEPLOYMENT_TARGET = 12.5;
370378
MTL_ENABLE_DEBUG_INFO = NO;
371379
MTL_FAST_MATH = YES;
372380
SDKROOT = iphoneos;
@@ -386,7 +394,7 @@
386394
CURRENT_PROJECT_VERSION = 1;
387395
DEVELOPMENT_TEAM = XPL89PTG92;
388396
INFOPLIST_FILE = DP3TSampleApp/Info.plist;
389-
IPHONEOS_DEPLOYMENT_TARGET = 13.7;
397+
IPHONEOS_DEPLOYMENT_TARGET = 12.5;
390398
LD_RUNPATH_SEARCH_PATHS = (
391399
"$(inherited)",
392400
"@executable_path/Frameworks",
@@ -449,6 +457,14 @@
449457
minimumVersion = 5.0.1;
450458
};
451459
};
460+
F8D5814D2589EC5A00307C2B /* XCRemoteSwiftPackageReference "DiffableDataSources" */ = {
461+
isa = XCRemoteSwiftPackageReference;
462+
repositoryURL = "https://github.com/ra1028/DiffableDataSources";
463+
requirement = {
464+
kind = upToNextMajorVersion;
465+
minimumVersion = 0.4.0;
466+
};
467+
};
452468
/* End XCRemoteSwiftPackageReference section */
453469

454470
/* Begin XCSwiftPackageProductDependency section */
@@ -471,6 +487,11 @@
471487
package = F83BE14E242DDFF60043FA1E /* XCRemoteSwiftPackageReference "SnapKit" */;
472488
productName = SnapKit;
473489
};
490+
F8D5814E2589EC5A00307C2B /* DiffableDataSources */ = {
491+
isa = XCSwiftPackageProductDependency;
492+
package = F8D5814D2589EC5A00307C2B /* XCRemoteSwiftPackageReference "DiffableDataSources" */;
493+
productName = DiffableDataSources;
494+
};
474495
/* End XCSwiftPackageProductDependency section */
475496
};
476497
rootObject = F83BE12E242DDC450043FA1E /* Project object */;

SampleApp/DP3TSampleApp.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved

+40-22
Original file line numberDiff line numberDiff line change
@@ -6,53 +6,71 @@
66
"repositoryURL": "https://github.com/Alamofire/Alamofire.git",
77
"state": {
88
"branch": null,
9-
"revision": "fca036f7aeca07124067cb6e0c12b0ad6359e3d4",
10-
"version": "5.1.0"
9+
"revision": "9e0328127dfb801cefe8ac53a13c0c90a7770448",
10+
"version": "5.4.0"
1111
}
1212
},
1313
{
1414
"package": "Cryptor",
15-
"repositoryURL": "https://github.com/IBM-Swift/BlueCryptor.git",
15+
"repositoryURL": "https://github.com/Kitura/BlueCryptor.git",
1616
"state": {
1717
"branch": null,
18-
"revision": "12d2bf3ec7207ec3cd004b9582f69ef5fae1da3b",
19-
"version": "1.0.32"
18+
"revision": "ee5880e031da4c609f372cf7472476ab51d5dd19",
19+
"version": "1.0.200"
2020
}
2121
},
2222
{
2323
"package": "CryptorECC",
24-
"repositoryURL": "https://github.com/IBM-Swift/BlueECC.git",
24+
"repositoryURL": "https://github.com/Kitura/BlueECC.git",
2525
"state": {
2626
"branch": null,
27-
"revision": "73f362cb0d9c5f1fd0089240d7b293cd2bff18db",
28-
"version": "1.2.5"
27+
"revision": "baf6ed3fc1a622675f0041b4aff7c02dd1a93818",
28+
"version": "1.2.200"
2929
}
3030
},
3131
{
3232
"package": "CryptorRSA",
33-
"repositoryURL": "https://github.com/IBM-Swift/BlueRSA.git",
33+
"repositoryURL": "https://github.com/Kitura/BlueRSA.git",
3434
"state": {
3535
"branch": null,
36-
"revision": "8ea901f2582296837d88f882b0fa5a0601759598",
37-
"version": "1.0.35"
36+
"revision": "c885fcdbe1b04718cb46d747387137653c030f6c",
37+
"version": "1.0.200"
38+
}
39+
},
40+
{
41+
"package": "DiffableDataSources",
42+
"repositoryURL": "https://github.com/ra1028/DiffableDataSources",
43+
"state": {
44+
"branch": null,
45+
"revision": "581b4f8d1634e83c6b33caaafdc6a115a74650c3",
46+
"version": "0.4.0"
47+
}
48+
},
49+
{
50+
"package": "DifferenceKit",
51+
"repositoryURL": "https://github.com/ra1028/DifferenceKit.git",
52+
"state": {
53+
"branch": null,
54+
"revision": "14c66681e12a38b81045f44c6c29724a0d4b0e72",
55+
"version": "1.1.5"
3856
}
3957
},
4058
{
4159
"package": "KituraContracts",
42-
"repositoryURL": "https://github.com/IBM-Swift/KituraContracts.git",
60+
"repositoryURL": "https://github.com/Kitura/KituraContracts.git",
4361
"state": {
4462
"branch": null,
45-
"revision": "a30e2fb79e926672776a05ec6b919c239870a221",
46-
"version": "1.2.1"
63+
"revision": "8418006e39e2efae9b31ae92721cb597ac29c617",
64+
"version": "1.2.200"
4765
}
4866
},
4967
{
5068
"package": "LoggerAPI",
51-
"repositoryURL": "https://github.com/IBM-Swift/LoggerAPI.git",
69+
"repositoryURL": "https://github.com/Kitura/LoggerAPI.git",
5270
"state": {
5371
"branch": null,
54-
"revision": "3357dd9526cdf9436fa63bb792b669e6efdc43da",
55-
"version": "1.9.0"
72+
"revision": "e82d34eab3f0b05391082b11ea07d3b70d2f65bb",
73+
"version": "1.9.200"
5674
}
5775
},
5876
{
@@ -75,20 +93,20 @@
7593
},
7694
{
7795
"package": "SwiftJWT",
78-
"repositoryURL": "https://github.com/IBM-Swift/Swift-JWT.git",
96+
"repositoryURL": "https://github.com/Kitura/Swift-JWT.git",
7997
"state": {
8098
"branch": null,
81-
"revision": "0d435423d12e61c0d14adb6d04396c08a6a650f1",
82-
"version": "3.6.1"
99+
"revision": "2f2fc12ae88660e0760b04d9e6c341517b31ad7b",
100+
"version": "3.6.200"
83101
}
84102
},
85103
{
86104
"package": "swift-log",
87105
"repositoryURL": "https://github.com/apple/swift-log.git",
88106
"state": {
89107
"branch": null,
90-
"revision": "74d7b91ceebc85daf387ebb206003f78813f71aa",
91-
"version": "1.2.0"
108+
"revision": "173f567a2dfec11d74588eea82cecea555bdc0bc",
109+
"version": "1.4.0"
92110
}
93111
},
94112
{

SampleApp/DP3TSampleApp/ControlViewController.swift

+15-3
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,11 @@ class ControlViewController: UIViewController {
3535
init() {
3636
super.init(nibName: nil, bundle: nil)
3737
title = "Controls"
38-
tabBarItem = UITabBarItem(title: title, image: UIImage(systemName: "doc.text"), tag: 0)
38+
if #available(iOS 13.0, *) {
39+
tabBarItem = UITabBarItem(title: title, image: UIImage(systemName: "doc.text"), tag: 0)
40+
} else {
41+
tabBarItem = UITabBarItem(title: title, image: nil, tag: 0)
42+
}
3943
segmentedControl.selectedSegmentIndex = 1
4044
segmentedControl.addTarget(self, action: #selector(segmentedControlChanges), for: .valueChanged)
4145

@@ -66,7 +70,11 @@ class ControlViewController: UIViewController {
6670

6771
override func viewDidLoad() {
6872
super.viewDidLoad()
69-
self.view.backgroundColor = .systemBackground
73+
if #available(iOS 13.0, *) {
74+
self.view.backgroundColor = .systemBackground
75+
} else {
76+
self.view.backgroundColor = .white
77+
}
7078
view.addSubview(scrollView)
7179
scrollView.snp.makeConstraints { make in
7280
make.edges.equalToSuperview()
@@ -88,7 +96,11 @@ class ControlViewController: UIViewController {
8896
statusLabel.font = .systemFont(ofSize: 18)
8997
statusLabel.textAlignment = .center
9098
statusLabel.numberOfLines = 0
91-
statusLabel.backgroundColor = .systemGroupedBackground
99+
if #available(iOS 13.0, *) {
100+
statusLabel.backgroundColor = .systemGroupedBackground
101+
} else {
102+
statusLabel.backgroundColor = .white
103+
}
92104
self.updateUI(DP3TTracing.status)
93105

94106
stackView.addArrangedSubview(statusLabel)

0 commit comments

Comments
 (0)