From 553e9341d45c8ee7e9b45769c7d0b7f85bd3c72d Mon Sep 17 00:00:00 2001 From: Moises Olmedo <101673188+moisesolmedo-okta@users.noreply.github.com> Date: Thu, 21 Dec 2023 17:15:08 -0800 Subject: [PATCH] OKTA-677650 - Explicitly import UIKit (#169) Explicitly import UIKit --- .../DeviceSignals/OktaDeviceModelBuilder.swift | 3 +++ .../Mocks/OktaDeviceBindJWTPartialMock.swift | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/Sources/DeviceAuthenticator/DeviceSignals/OktaDeviceModelBuilder.swift b/Sources/DeviceAuthenticator/DeviceSignals/OktaDeviceModelBuilder.swift index abe1a59..b5970ed 100644 --- a/Sources/DeviceAuthenticator/DeviceSignals/OktaDeviceModelBuilder.swift +++ b/Sources/DeviceAuthenticator/DeviceSignals/OktaDeviceModelBuilder.swift @@ -17,6 +17,9 @@ import LoggerCore #else import OktaLogger #endif +#if os(iOS) +import UIKit +#endif class OktaDeviceModelBuilder { diff --git a/Tests/DeviceAuthenticatorUnitTests/Mocks/OktaDeviceBindJWTPartialMock.swift b/Tests/DeviceAuthenticatorUnitTests/Mocks/OktaDeviceBindJWTPartialMock.swift index 0bbcb5d..f5b448c 100644 --- a/Tests/DeviceAuthenticatorUnitTests/Mocks/OktaDeviceBindJWTPartialMock.swift +++ b/Tests/DeviceAuthenticatorUnitTests/Mocks/OktaDeviceBindJWTPartialMock.swift @@ -11,7 +11,11 @@ */ import Foundation +#if SWIFT_PACKAGE +import LoggerCore +#else import OktaLogger +#endif @testable import DeviceAuthenticator class OktaDeviceBindJWTPartialMock: OktaBindJWT {