aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoopesh Chander <roop@roopc.net>2018-12-22 17:08:55 +0530
committerRoopesh Chander <roop@roopc.net>2019-01-14 14:52:26 +0530
commit10982a57ef67a1bf5c8c3fe196afdc8b0cf9858d (patch)
tree1a870e84119ae11a93edce836c0d510d4430e9cc
parentVersion bump (diff)
downloadwireguard-apple-10982a57ef67a1bf5c8c3fe196afdc8b0cf9858d.tar.xz
wireguard-apple-10982a57ef67a1bf5c8c3fe196afdc8b0cf9858d.zip
import Foundation instead of UIKit wherever possible
Signed-off-by: Roopesh Chander <roop@roopc.net>
-rw-r--r--WireGuard/WireGuard/Crypto/Curve25519.swift2
-rw-r--r--WireGuard/WireGuard/UI/TunnelViewModel.swift2
-rw-r--r--WireGuard/WireGuard/ZipArchive/ZipExporter.swift2
-rw-r--r--WireGuard/WireGuard/ZipArchive/ZipImporter.swift2
4 files changed, 4 insertions, 4 deletions
diff --git a/WireGuard/WireGuard/Crypto/Curve25519.swift b/WireGuard/WireGuard/Crypto/Curve25519.swift
index bd49e12..d498a64 100644
--- a/WireGuard/WireGuard/Crypto/Curve25519.swift
+++ b/WireGuard/WireGuard/Crypto/Curve25519.swift
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: MIT
// Copyright © 2018-2019 WireGuard LLC. All Rights Reserved.
-import UIKit
+import Foundation
struct Curve25519 {
diff --git a/WireGuard/WireGuard/UI/TunnelViewModel.swift b/WireGuard/WireGuard/UI/TunnelViewModel.swift
index a16739d..096be76 100644
--- a/WireGuard/WireGuard/UI/TunnelViewModel.swift
+++ b/WireGuard/WireGuard/UI/TunnelViewModel.swift
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: MIT
// Copyright © 2018-2019 WireGuard LLC. All Rights Reserved.
-import UIKit
+import Foundation
//swiftlint:disable:next type_body_length
class TunnelViewModel {
diff --git a/WireGuard/WireGuard/ZipArchive/ZipExporter.swift b/WireGuard/WireGuard/ZipArchive/ZipExporter.swift
index e5b993a..3a87928 100644
--- a/WireGuard/WireGuard/ZipArchive/ZipExporter.swift
+++ b/WireGuard/WireGuard/ZipArchive/ZipExporter.swift
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: MIT
// Copyright © 2018-2019 WireGuard LLC. All Rights Reserved.
-import UIKit
+import Foundation
enum ZipExporterError: WireGuardAppError {
case noTunnelsToExport
diff --git a/WireGuard/WireGuard/ZipArchive/ZipImporter.swift b/WireGuard/WireGuard/ZipArchive/ZipImporter.swift
index ac897c7..b86b06e 100644
--- a/WireGuard/WireGuard/ZipArchive/ZipImporter.swift
+++ b/WireGuard/WireGuard/ZipArchive/ZipImporter.swift
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: MIT
// Copyright © 2018-2019 WireGuard LLC. All Rights Reserved.
-import UIKit
+import Foundation
enum ZipImporterError: WireGuardAppError {
case noTunnelsInZipArchive