Build Information
Failed to build PushNotifications with Swift 5.10 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.29.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/pusher/push-notifications-swift.git
Reference: 4.0.0
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/pusher/push-notifications-swift
* tag 4.0.0 -> FETCH_HEAD
HEAD is now at 0374352 Merge pull request #174 from pusher/release/4.0.0
Cloned https://github.com/pusher/push-notifications-swift.git
Revision (git rev-parse @):
0374352e6a54071a4e3d2ddf674ba56a84630ba6
SUCCESS checkout https://github.com/pusher/push-notifications-swift.git at 4.0.0
========================================
Build
========================================
Selected platform: linux
Swift version: 5.10
Building package at path: $workDir
https://github.com/pusher/push-notifications-swift.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Fetching https://github.com/Quick/Nimble
Fetching https://github.com/mattgallagher/CwlPreconditionTesting.git
Fetching https://github.com/mattgallagher/CwlCatchException.git
Fetching https://github.com/AliSoftware/OHHTTPStubs
[1/1236] Fetching cwlpreconditiontesting
[990/1668] Fetching cwlpreconditiontesting, cwlcatchexception
[1669/9363] Fetching cwlpreconditiontesting, cwlcatchexception, ohhttpstubs
[9364/26654] Fetching cwlpreconditiontesting, cwlcatchexception, ohhttpstubs, nimble
Fetched https://github.com/mattgallagher/CwlPreconditionTesting.git from cache (1.37s)
Fetched https://github.com/mattgallagher/CwlCatchException.git from cache (1.37s)
Fetched https://github.com/AliSoftware/OHHTTPStubs from cache (1.37s)
Fetched https://github.com/Quick/Nimble from cache (1.39s)
Computing version for https://github.com/AliSoftware/OHHTTPStubs
Computed https://github.com/AliSoftware/OHHTTPStubs at 9.1.0 (0.47s)
Computing version for https://github.com/Quick/Nimble
Computed https://github.com/Quick/Nimble at 9.0.0 (0.46s)
Creating working copy for https://github.com/Quick/Nimble
Working copy of https://github.com/Quick/Nimble resolved at 9.0.0
Creating working copy for https://github.com/AliSoftware/OHHTTPStubs
Working copy of https://github.com/AliSoftware/OHHTTPStubs resolved at 9.1.0
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/41] Emitting module PushNotifications
/host/spi-builder-workspace/Sources/Models/AuthData.swift:4:2: error: Objective-C interoperability is disabled
@objc public class AuthData: NSObject {
~^~~~~
/host/spi-builder-workspace/Sources/Models/AuthData.swift:16:6: error: Objective-C interoperability is disabled
@objc public init(headers: [String: String], queryParams: [String: String]) {
~^~~~~
/host/spi-builder-workspace/Sources/Protocols/TokenProvider.swift:24:2: error: Objective-C interoperability is disabled
@objc public protocol TokenProvider {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:11:2: error: Objective-C interoperability is disabled
@objc public final class PushNotifications: NSObject {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:22:6: error: Objective-C interoperability is disabled
@objc public init(instanceId: String) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:35:6: error: Objective-C interoperability is disabled
@objc public static let shared = PushNotificationsStatic.self
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:51:6: error: Objective-C interoperability is disabled
@objc public func start() {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:78:6: error: Objective-C interoperability is disabled
@objc public func registerForRemoteNotifications() {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:110:6: error: Objective-C interoperability is disabled
@objc public func setUserId(_ userId: String, tokenProvider: TokenProvider, completion: @escaping (Error?) -> Void) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:156:6: error: Objective-C interoperability is disabled
@objc private func printHelpfulMessage() {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:167:6: error: Objective-C interoperability is disabled
@objc public func stop(completion: @escaping () -> Void) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:196:6: error: Objective-C interoperability is disabled
@objc public func clearAllState(completion: @escaping () -> Void) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:218:6: error: Objective-C interoperability is disabled
@objc public func registerDeviceToken(_ deviceToken: Data) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:232:6: error: Objective-C interoperability is disabled
@objc public func addDeviceInterest(interest: String) throws {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:258:6: error: Objective-C interoperability is disabled
@objc public func setDeviceInterests(interests: [String]) throws {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:283:7: error: Objective-C interoperability is disabled
@objc public func removeDeviceInterest(interest: String) throws {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:300:6: error: Objective-C interoperability is disabled
@objc public func clearDeviceInterests() throws {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:310:6: error: Objective-C interoperability is disabled
@objc public func getDeviceInterests() -> [String]? {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:333:6: error: Objective-C interoperability is disabled
@objc public func handleNotification(userInfo: [AnyHashable: Any]) -> RemoteNotificationType {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:352:2: error: Objective-C interoperability is disabled
@objc public protocol InterestsChangedDelegate: AnyObject {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:11:2: error: Objective-C interoperability is disabled
@objc public final class PushNotificationsStatic: NSObject {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:28:6: error: Objective-C interoperability is disabled
@objc public static func start(instanceId: String) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:50:6: error: Objective-C interoperability is disabled
@objc public static func registerForRemoteNotifications() {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:102:6: error: Objective-C interoperability is disabled
@objc public static func setUserId(_ userId: String, tokenProvider: TokenProvider, completion: @escaping (Error?) -> Void) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:117:6: error: Objective-C interoperability is disabled
@objc public static func stop(completion: @escaping () -> Void) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:139:6: error: Objective-C interoperability is disabled
@objc public static func clearAllState(completion: @escaping () -> Void) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:161:6: error: Objective-C interoperability is disabled
@objc public static func registerDeviceToken(_ deviceToken: Data) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:192:6: error: Objective-C interoperability is disabled
@objc public static func addDeviceInterest(interest: String) throws {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:211:6: error: Objective-C interoperability is disabled
@objc public static func setDeviceInterests(interests: [String]) throws {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:229:6: error: Objective-C interoperability is disabled
@objc public static func removeDeviceInterest(interest: String) throws {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:239:6: error: Objective-C interoperability is disabled
@objc public static func clearDeviceInterests() throws {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:253:6: error: Objective-C interoperability is disabled
@objc public static func getDeviceInterests() -> [String]? {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:268:6: error: Objective-C interoperability is disabled
@objc public static func handleNotification(userInfo: [AnyHashable: Any]) -> RemoteNotificationType {
~^~~~~
/host/spi-builder-workspace/Sources/Services/BeamsTokenProvider.swift:4:2: error: Objective-C interoperability is disabled
@objc public final class BeamsTokenProvider: NSObject, TokenProvider {
~^~~~~
/host/spi-builder-workspace/Sources/Services/BeamsTokenProvider.swift:16:6: error: Objective-C interoperability is disabled
@objc public init(authURL: String, getAuthData: @escaping () -> (AuthData)) {
~^~~~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:4:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
let session: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:6:19: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
init(session: URLSession) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:225:44: error: cannot find type 'URLRequest' in scope
private func networkRequest(_ request: URLRequest,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:226:42: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
session: URLSession,
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:283:85: error: cannot find type 'URLRequest' in scope
private func setRequest(url: URL, httpMethod: HTTPMethod, body: Data? = nil) -> URLRequest {
^~~~~~~~~~
[4/46] Compiling PushNotifications TokenProvider.swift
/host/spi-builder-workspace/Sources/Protocols/TokenProvider.swift:24:2: error: Objective-C interoperability is disabled
@objc public protocol TokenProvider {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:11:2: error: Objective-C interoperability is disabled
@objc public final class PushNotifications: NSObject {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:22:6: error: Objective-C interoperability is disabled
@objc public init(instanceId: String) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:35:6: error: Objective-C interoperability is disabled
@objc public static let shared = PushNotificationsStatic.self
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:51:6: error: Objective-C interoperability is disabled
@objc public func start() {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:78:6: error: Objective-C interoperability is disabled
@objc public func registerForRemoteNotifications() {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:110:6: error: Objective-C interoperability is disabled
@objc public func setUserId(_ userId: String, tokenProvider: TokenProvider, completion: @escaping (Error?) -> Void) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:156:6: error: Objective-C interoperability is disabled
@objc private func printHelpfulMessage() {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:167:6: error: Objective-C interoperability is disabled
@objc public func stop(completion: @escaping () -> Void) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:196:6: error: Objective-C interoperability is disabled
@objc public func clearAllState(completion: @escaping () -> Void) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:218:6: error: Objective-C interoperability is disabled
@objc public func registerDeviceToken(_ deviceToken: Data) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:232:6: error: Objective-C interoperability is disabled
@objc public func addDeviceInterest(interest: String) throws {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:258:6: error: Objective-C interoperability is disabled
@objc public func setDeviceInterests(interests: [String]) throws {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:283:7: error: Objective-C interoperability is disabled
@objc public func removeDeviceInterest(interest: String) throws {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:300:6: error: Objective-C interoperability is disabled
@objc public func clearDeviceInterests() throws {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:310:6: error: Objective-C interoperability is disabled
@objc public func getDeviceInterests() -> [String]? {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:333:6: error: Objective-C interoperability is disabled
@objc public func handleNotification(userInfo: [AnyHashable: Any]) -> RemoteNotificationType {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:352:2: error: Objective-C interoperability is disabled
@objc public protocol InterestsChangedDelegate: AnyObject {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:141:91: error: '#selector' can only be used with the Objective-C runtime
let helpfulTimer = Timer.scheduledTimer(timeInterval: 15, target: self, selector: #selector(printHelpfulMessage), userInfo: nil, repeats: false)
^
/host/spi-builder-workspace/Sources/PushNotifications.swift:339:37: error: 'init(format:_:)' has been renamed to 'init(block:)': Predicate strings and key-value coding are not supported in swift-corelibs-foundation. Use a closure instead if possible.
let interestNamePredicate = NSPredicate(format: "SELF MATCHES %@", interestNameRegex)
^
Foundation.NSPredicate:3:24: note: 'init(format:_:)' has been explicitly marked unavailable here
public convenience init(format predicateFormat: String, _ args: any CVarArg...)
^
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:11:2: error: Objective-C interoperability is disabled
@objc public final class PushNotificationsStatic: NSObject {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:28:6: error: Objective-C interoperability is disabled
@objc public static func start(instanceId: String) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:50:6: error: Objective-C interoperability is disabled
@objc public static func registerForRemoteNotifications() {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:102:6: error: Objective-C interoperability is disabled
@objc public static func setUserId(_ userId: String, tokenProvider: TokenProvider, completion: @escaping (Error?) -> Void) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:117:6: error: Objective-C interoperability is disabled
@objc public static func stop(completion: @escaping () -> Void) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:139:6: error: Objective-C interoperability is disabled
@objc public static func clearAllState(completion: @escaping () -> Void) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:161:6: error: Objective-C interoperability is disabled
@objc public static func registerDeviceToken(_ deviceToken: Data) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:192:6: error: Objective-C interoperability is disabled
@objc public static func addDeviceInterest(interest: String) throws {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:211:6: error: Objective-C interoperability is disabled
@objc public static func setDeviceInterests(interests: [String]) throws {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:229:6: error: Objective-C interoperability is disabled
@objc public static func removeDeviceInterest(interest: String) throws {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:239:6: error: Objective-C interoperability is disabled
@objc public static func clearDeviceInterests() throws {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:253:6: error: Objective-C interoperability is disabled
@objc public static func getDeviceInterests() -> [String]? {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:268:6: error: Objective-C interoperability is disabled
@objc public static func handleNotification(userInfo: [AnyHashable: Any]) -> RemoteNotificationType {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:51:14: error: type 'PushNotificationsStatic' has no member 'registerForPushNotifications'
self.registerForPushNotifications(options: [.alert, .sound, .badge])
~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:51:54: error: reference to member 'alert' cannot be resolved without a contextual type
self.registerForPushNotifications(options: [.alert, .sound, .badge])
^
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:51:62: error: reference to member 'sound' cannot be resolved without a contextual type
self.registerForPushNotifications(options: [.alert, .sound, .badge])
^
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:51:70: error: reference to member 'badge' cannot be resolved without a contextual type
self.registerForPushNotifications(options: [.alert, .sound, .badge])
^
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:284:84: error: cannot find 'eventType' in scope
let serverSyncProcessHandler = ServerSyncProcessHandler.obtain(instanceId: eventType.getInstanceId())
^~~~~~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:285:89: error: cannot find 'eventType' in scope
serverSyncProcessHandler?.sendMessage(serverSyncJob: .reportEventJob(eventType: eventType))
^~~~~~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:285:63: error: cannot infer contextual base in reference to member 'reportEventJob'
serverSyncProcessHandler?.sendMessage(serverSyncJob: .reportEventJob(eventType: eventType))
~^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Services/BeamsTokenProvider.swift:4:2: error: Objective-C interoperability is disabled
@objc public final class BeamsTokenProvider: NSObject, TokenProvider {
~^~~~~
/host/spi-builder-workspace/Sources/Services/BeamsTokenProvider.swift:16:6: error: Objective-C interoperability is disabled
@objc public init(authURL: String, getAuthData: @escaping () -> (AuthData)) {
~^~~~~
/host/spi-builder-workspace/Sources/Services/BeamsTokenProvider.swift:30:26: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
let urlSession = URLSession(configuration: .ephemeral)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Services/BeamsTokenProvider.swift:30:53: error: cannot infer contextual base in reference to member 'ephemeral'
let urlSession = URLSession(configuration: .ephemeral)
~^~~~~~~~~
/host/spi-builder-workspace/Sources/Services/BeamsTokenProvider.swift:43:26: error: cannot find 'URLRequest' in scope
var urlRequest = URLRequest(url: url)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Services/BeamsTokenProvider.swift:56:46: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
let statusCode = httpURLResponse.statusCode
~~~~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Services/DeviceStateStore.swift:206:24: error: value of type 'UserDefaults' has no member 'value'
return service.value(forKey: PersistenceConstants.PersistenceService.hashKey) as? String ?? ""
~~~~~~~ ^~~~~
[5/46] Compiling PushNotifications PushNotifications.swift
/host/spi-builder-workspace/Sources/Protocols/TokenProvider.swift:24:2: error: Objective-C interoperability is disabled
@objc public protocol TokenProvider {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:11:2: error: Objective-C interoperability is disabled
@objc public final class PushNotifications: NSObject {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:22:6: error: Objective-C interoperability is disabled
@objc public init(instanceId: String) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:35:6: error: Objective-C interoperability is disabled
@objc public static let shared = PushNotificationsStatic.self
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:51:6: error: Objective-C interoperability is disabled
@objc public func start() {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:78:6: error: Objective-C interoperability is disabled
@objc public func registerForRemoteNotifications() {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:110:6: error: Objective-C interoperability is disabled
@objc public func setUserId(_ userId: String, tokenProvider: TokenProvider, completion: @escaping (Error?) -> Void) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:156:6: error: Objective-C interoperability is disabled
@objc private func printHelpfulMessage() {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:167:6: error: Objective-C interoperability is disabled
@objc public func stop(completion: @escaping () -> Void) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:196:6: error: Objective-C interoperability is disabled
@objc public func clearAllState(completion: @escaping () -> Void) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:218:6: error: Objective-C interoperability is disabled
@objc public func registerDeviceToken(_ deviceToken: Data) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:232:6: error: Objective-C interoperability is disabled
@objc public func addDeviceInterest(interest: String) throws {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:258:6: error: Objective-C interoperability is disabled
@objc public func setDeviceInterests(interests: [String]) throws {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:283:7: error: Objective-C interoperability is disabled
@objc public func removeDeviceInterest(interest: String) throws {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:300:6: error: Objective-C interoperability is disabled
@objc public func clearDeviceInterests() throws {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:310:6: error: Objective-C interoperability is disabled
@objc public func getDeviceInterests() -> [String]? {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:333:6: error: Objective-C interoperability is disabled
@objc public func handleNotification(userInfo: [AnyHashable: Any]) -> RemoteNotificationType {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:352:2: error: Objective-C interoperability is disabled
@objc public protocol InterestsChangedDelegate: AnyObject {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:141:91: error: '#selector' can only be used with the Objective-C runtime
let helpfulTimer = Timer.scheduledTimer(timeInterval: 15, target: self, selector: #selector(printHelpfulMessage), userInfo: nil, repeats: false)
^
/host/spi-builder-workspace/Sources/PushNotifications.swift:339:37: error: 'init(format:_:)' has been renamed to 'init(block:)': Predicate strings and key-value coding are not supported in swift-corelibs-foundation. Use a closure instead if possible.
let interestNamePredicate = NSPredicate(format: "SELF MATCHES %@", interestNameRegex)
^
Foundation.NSPredicate:3:24: note: 'init(format:_:)' has been explicitly marked unavailable here
public convenience init(format predicateFormat: String, _ args: any CVarArg...)
^
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:11:2: error: Objective-C interoperability is disabled
@objc public final class PushNotificationsStatic: NSObject {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:28:6: error: Objective-C interoperability is disabled
@objc public static func start(instanceId: String) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:50:6: error: Objective-C interoperability is disabled
@objc public static func registerForRemoteNotifications() {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:102:6: error: Objective-C interoperability is disabled
@objc public static func setUserId(_ userId: String, tokenProvider: TokenProvider, completion: @escaping (Error?) -> Void) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:117:6: error: Objective-C interoperability is disabled
@objc public static func stop(completion: @escaping () -> Void) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:139:6: error: Objective-C interoperability is disabled
@objc public static func clearAllState(completion: @escaping () -> Void) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:161:6: error: Objective-C interoperability is disabled
@objc public static func registerDeviceToken(_ deviceToken: Data) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:192:6: error: Objective-C interoperability is disabled
@objc public static func addDeviceInterest(interest: String) throws {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:211:6: error: Objective-C interoperability is disabled
@objc public static func setDeviceInterests(interests: [String]) throws {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:229:6: error: Objective-C interoperability is disabled
@objc public static func removeDeviceInterest(interest: String) throws {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:239:6: error: Objective-C interoperability is disabled
@objc public static func clearDeviceInterests() throws {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:253:6: error: Objective-C interoperability is disabled
@objc public static func getDeviceInterests() -> [String]? {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:268:6: error: Objective-C interoperability is disabled
@objc public static func handleNotification(userInfo: [AnyHashable: Any]) -> RemoteNotificationType {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:51:14: error: type 'PushNotificationsStatic' has no member 'registerForPushNotifications'
self.registerForPushNotifications(options: [.alert, .sound, .badge])
~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:51:54: error: reference to member 'alert' cannot be resolved without a contextual type
self.registerForPushNotifications(options: [.alert, .sound, .badge])
^
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:51:62: error: reference to member 'sound' cannot be resolved without a contextual type
self.registerForPushNotifications(options: [.alert, .sound, .badge])
^
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:51:70: error: reference to member 'badge' cannot be resolved without a contextual type
self.registerForPushNotifications(options: [.alert, .sound, .badge])
^
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:284:84: error: cannot find 'eventType' in scope
let serverSyncProcessHandler = ServerSyncProcessHandler.obtain(instanceId: eventType.getInstanceId())
^~~~~~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:285:89: error: cannot find 'eventType' in scope
serverSyncProcessHandler?.sendMessage(serverSyncJob: .reportEventJob(eventType: eventType))
^~~~~~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:285:63: error: cannot infer contextual base in reference to member 'reportEventJob'
serverSyncProcessHandler?.sendMessage(serverSyncJob: .reportEventJob(eventType: eventType))
~^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Services/BeamsTokenProvider.swift:4:2: error: Objective-C interoperability is disabled
@objc public final class BeamsTokenProvider: NSObject, TokenProvider {
~^~~~~
/host/spi-builder-workspace/Sources/Services/BeamsTokenProvider.swift:16:6: error: Objective-C interoperability is disabled
@objc public init(authURL: String, getAuthData: @escaping () -> (AuthData)) {
~^~~~~
/host/spi-builder-workspace/Sources/Services/BeamsTokenProvider.swift:30:26: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
let urlSession = URLSession(configuration: .ephemeral)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Services/BeamsTokenProvider.swift:30:53: error: cannot infer contextual base in reference to member 'ephemeral'
let urlSession = URLSession(configuration: .ephemeral)
~^~~~~~~~~
/host/spi-builder-workspace/Sources/Services/BeamsTokenProvider.swift:43:26: error: cannot find 'URLRequest' in scope
var urlRequest = URLRequest(url: url)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Services/BeamsTokenProvider.swift:56:46: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
let statusCode = httpURLResponse.statusCode
~~~~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Services/DeviceStateStore.swift:206:24: error: value of type 'UserDefaults' has no member 'value'
return service.value(forKey: PersistenceConstants.PersistenceService.hashKey) as? String ?? ""
~~~~~~~ ^~~~~
[6/46] Compiling PushNotifications PushNotificationsStatic.swift
/host/spi-builder-workspace/Sources/Protocols/TokenProvider.swift:24:2: error: Objective-C interoperability is disabled
@objc public protocol TokenProvider {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:11:2: error: Objective-C interoperability is disabled
@objc public final class PushNotifications: NSObject {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:22:6: error: Objective-C interoperability is disabled
@objc public init(instanceId: String) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:35:6: error: Objective-C interoperability is disabled
@objc public static let shared = PushNotificationsStatic.self
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:51:6: error: Objective-C interoperability is disabled
@objc public func start() {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:78:6: error: Objective-C interoperability is disabled
@objc public func registerForRemoteNotifications() {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:110:6: error: Objective-C interoperability is disabled
@objc public func setUserId(_ userId: String, tokenProvider: TokenProvider, completion: @escaping (Error?) -> Void) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:156:6: error: Objective-C interoperability is disabled
@objc private func printHelpfulMessage() {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:167:6: error: Objective-C interoperability is disabled
@objc public func stop(completion: @escaping () -> Void) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:196:6: error: Objective-C interoperability is disabled
@objc public func clearAllState(completion: @escaping () -> Void) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:218:6: error: Objective-C interoperability is disabled
@objc public func registerDeviceToken(_ deviceToken: Data) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:232:6: error: Objective-C interoperability is disabled
@objc public func addDeviceInterest(interest: String) throws {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:258:6: error: Objective-C interoperability is disabled
@objc public func setDeviceInterests(interests: [String]) throws {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:283:7: error: Objective-C interoperability is disabled
@objc public func removeDeviceInterest(interest: String) throws {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:300:6: error: Objective-C interoperability is disabled
@objc public func clearDeviceInterests() throws {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:310:6: error: Objective-C interoperability is disabled
@objc public func getDeviceInterests() -> [String]? {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:333:6: error: Objective-C interoperability is disabled
@objc public func handleNotification(userInfo: [AnyHashable: Any]) -> RemoteNotificationType {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:352:2: error: Objective-C interoperability is disabled
@objc public protocol InterestsChangedDelegate: AnyObject {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:141:91: error: '#selector' can only be used with the Objective-C runtime
let helpfulTimer = Timer.scheduledTimer(timeInterval: 15, target: self, selector: #selector(printHelpfulMessage), userInfo: nil, repeats: false)
^
/host/spi-builder-workspace/Sources/PushNotifications.swift:339:37: error: 'init(format:_:)' has been renamed to 'init(block:)': Predicate strings and key-value coding are not supported in swift-corelibs-foundation. Use a closure instead if possible.
let interestNamePredicate = NSPredicate(format: "SELF MATCHES %@", interestNameRegex)
^
Foundation.NSPredicate:3:24: note: 'init(format:_:)' has been explicitly marked unavailable here
public convenience init(format predicateFormat: String, _ args: any CVarArg...)
^
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:11:2: error: Objective-C interoperability is disabled
@objc public final class PushNotificationsStatic: NSObject {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:28:6: error: Objective-C interoperability is disabled
@objc public static func start(instanceId: String) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:50:6: error: Objective-C interoperability is disabled
@objc public static func registerForRemoteNotifications() {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:102:6: error: Objective-C interoperability is disabled
@objc public static func setUserId(_ userId: String, tokenProvider: TokenProvider, completion: @escaping (Error?) -> Void) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:117:6: error: Objective-C interoperability is disabled
@objc public static func stop(completion: @escaping () -> Void) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:139:6: error: Objective-C interoperability is disabled
@objc public static func clearAllState(completion: @escaping () -> Void) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:161:6: error: Objective-C interoperability is disabled
@objc public static func registerDeviceToken(_ deviceToken: Data) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:192:6: error: Objective-C interoperability is disabled
@objc public static func addDeviceInterest(interest: String) throws {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:211:6: error: Objective-C interoperability is disabled
@objc public static func setDeviceInterests(interests: [String]) throws {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:229:6: error: Objective-C interoperability is disabled
@objc public static func removeDeviceInterest(interest: String) throws {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:239:6: error: Objective-C interoperability is disabled
@objc public static func clearDeviceInterests() throws {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:253:6: error: Objective-C interoperability is disabled
@objc public static func getDeviceInterests() -> [String]? {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:268:6: error: Objective-C interoperability is disabled
@objc public static func handleNotification(userInfo: [AnyHashable: Any]) -> RemoteNotificationType {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:51:14: error: type 'PushNotificationsStatic' has no member 'registerForPushNotifications'
self.registerForPushNotifications(options: [.alert, .sound, .badge])
~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:51:54: error: reference to member 'alert' cannot be resolved without a contextual type
self.registerForPushNotifications(options: [.alert, .sound, .badge])
^
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:51:62: error: reference to member 'sound' cannot be resolved without a contextual type
self.registerForPushNotifications(options: [.alert, .sound, .badge])
^
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:51:70: error: reference to member 'badge' cannot be resolved without a contextual type
self.registerForPushNotifications(options: [.alert, .sound, .badge])
^
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:284:84: error: cannot find 'eventType' in scope
let serverSyncProcessHandler = ServerSyncProcessHandler.obtain(instanceId: eventType.getInstanceId())
^~~~~~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:285:89: error: cannot find 'eventType' in scope
serverSyncProcessHandler?.sendMessage(serverSyncJob: .reportEventJob(eventType: eventType))
^~~~~~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:285:63: error: cannot infer contextual base in reference to member 'reportEventJob'
serverSyncProcessHandler?.sendMessage(serverSyncJob: .reportEventJob(eventType: eventType))
~^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Services/BeamsTokenProvider.swift:4:2: error: Objective-C interoperability is disabled
@objc public final class BeamsTokenProvider: NSObject, TokenProvider {
~^~~~~
/host/spi-builder-workspace/Sources/Services/BeamsTokenProvider.swift:16:6: error: Objective-C interoperability is disabled
@objc public init(authURL: String, getAuthData: @escaping () -> (AuthData)) {
~^~~~~
/host/spi-builder-workspace/Sources/Services/BeamsTokenProvider.swift:30:26: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
let urlSession = URLSession(configuration: .ephemeral)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Services/BeamsTokenProvider.swift:30:53: error: cannot infer contextual base in reference to member 'ephemeral'
let urlSession = URLSession(configuration: .ephemeral)
~^~~~~~~~~
/host/spi-builder-workspace/Sources/Services/BeamsTokenProvider.swift:43:26: error: cannot find 'URLRequest' in scope
var urlRequest = URLRequest(url: url)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Services/BeamsTokenProvider.swift:56:46: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
let statusCode = httpURLResponse.statusCode
~~~~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Services/DeviceStateStore.swift:206:24: error: value of type 'UserDefaults' has no member 'value'
return service.value(forKey: PersistenceConstants.PersistenceService.hashKey) as? String ?? ""
~~~~~~~ ^~~~~
[7/46] Compiling PushNotifications BeamsTokenProvider.swift
/host/spi-builder-workspace/Sources/Protocols/TokenProvider.swift:24:2: error: Objective-C interoperability is disabled
@objc public protocol TokenProvider {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:11:2: error: Objective-C interoperability is disabled
@objc public final class PushNotifications: NSObject {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:22:6: error: Objective-C interoperability is disabled
@objc public init(instanceId: String) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:35:6: error: Objective-C interoperability is disabled
@objc public static let shared = PushNotificationsStatic.self
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:51:6: error: Objective-C interoperability is disabled
@objc public func start() {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:78:6: error: Objective-C interoperability is disabled
@objc public func registerForRemoteNotifications() {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:110:6: error: Objective-C interoperability is disabled
@objc public func setUserId(_ userId: String, tokenProvider: TokenProvider, completion: @escaping (Error?) -> Void) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:156:6: error: Objective-C interoperability is disabled
@objc private func printHelpfulMessage() {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:167:6: error: Objective-C interoperability is disabled
@objc public func stop(completion: @escaping () -> Void) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:196:6: error: Objective-C interoperability is disabled
@objc public func clearAllState(completion: @escaping () -> Void) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:218:6: error: Objective-C interoperability is disabled
@objc public func registerDeviceToken(_ deviceToken: Data) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:232:6: error: Objective-C interoperability is disabled
@objc public func addDeviceInterest(interest: String) throws {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:258:6: error: Objective-C interoperability is disabled
@objc public func setDeviceInterests(interests: [String]) throws {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:283:7: error: Objective-C interoperability is disabled
@objc public func removeDeviceInterest(interest: String) throws {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:300:6: error: Objective-C interoperability is disabled
@objc public func clearDeviceInterests() throws {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:310:6: error: Objective-C interoperability is disabled
@objc public func getDeviceInterests() -> [String]? {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:333:6: error: Objective-C interoperability is disabled
@objc public func handleNotification(userInfo: [AnyHashable: Any]) -> RemoteNotificationType {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:352:2: error: Objective-C interoperability is disabled
@objc public protocol InterestsChangedDelegate: AnyObject {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:141:91: error: '#selector' can only be used with the Objective-C runtime
let helpfulTimer = Timer.scheduledTimer(timeInterval: 15, target: self, selector: #selector(printHelpfulMessage), userInfo: nil, repeats: false)
^
/host/spi-builder-workspace/Sources/PushNotifications.swift:339:37: error: 'init(format:_:)' has been renamed to 'init(block:)': Predicate strings and key-value coding are not supported in swift-corelibs-foundation. Use a closure instead if possible.
let interestNamePredicate = NSPredicate(format: "SELF MATCHES %@", interestNameRegex)
^
Foundation.NSPredicate:3:24: note: 'init(format:_:)' has been explicitly marked unavailable here
public convenience init(format predicateFormat: String, _ args: any CVarArg...)
^
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:11:2: error: Objective-C interoperability is disabled
@objc public final class PushNotificationsStatic: NSObject {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:28:6: error: Objective-C interoperability is disabled
@objc public static func start(instanceId: String) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:50:6: error: Objective-C interoperability is disabled
@objc public static func registerForRemoteNotifications() {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:102:6: error: Objective-C interoperability is disabled
@objc public static func setUserId(_ userId: String, tokenProvider: TokenProvider, completion: @escaping (Error?) -> Void) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:117:6: error: Objective-C interoperability is disabled
@objc public static func stop(completion: @escaping () -> Void) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:139:6: error: Objective-C interoperability is disabled
@objc public static func clearAllState(completion: @escaping () -> Void) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:161:6: error: Objective-C interoperability is disabled
@objc public static func registerDeviceToken(_ deviceToken: Data) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:192:6: error: Objective-C interoperability is disabled
@objc public static func addDeviceInterest(interest: String) throws {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:211:6: error: Objective-C interoperability is disabled
@objc public static func setDeviceInterests(interests: [String]) throws {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:229:6: error: Objective-C interoperability is disabled
@objc public static func removeDeviceInterest(interest: String) throws {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:239:6: error: Objective-C interoperability is disabled
@objc public static func clearDeviceInterests() throws {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:253:6: error: Objective-C interoperability is disabled
@objc public static func getDeviceInterests() -> [String]? {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:268:6: error: Objective-C interoperability is disabled
@objc public static func handleNotification(userInfo: [AnyHashable: Any]) -> RemoteNotificationType {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:51:14: error: type 'PushNotificationsStatic' has no member 'registerForPushNotifications'
self.registerForPushNotifications(options: [.alert, .sound, .badge])
~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:51:54: error: reference to member 'alert' cannot be resolved without a contextual type
self.registerForPushNotifications(options: [.alert, .sound, .badge])
^
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:51:62: error: reference to member 'sound' cannot be resolved without a contextual type
self.registerForPushNotifications(options: [.alert, .sound, .badge])
^
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:51:70: error: reference to member 'badge' cannot be resolved without a contextual type
self.registerForPushNotifications(options: [.alert, .sound, .badge])
^
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:284:84: error: cannot find 'eventType' in scope
let serverSyncProcessHandler = ServerSyncProcessHandler.obtain(instanceId: eventType.getInstanceId())
^~~~~~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:285:89: error: cannot find 'eventType' in scope
serverSyncProcessHandler?.sendMessage(serverSyncJob: .reportEventJob(eventType: eventType))
^~~~~~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:285:63: error: cannot infer contextual base in reference to member 'reportEventJob'
serverSyncProcessHandler?.sendMessage(serverSyncJob: .reportEventJob(eventType: eventType))
~^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Services/BeamsTokenProvider.swift:4:2: error: Objective-C interoperability is disabled
@objc public final class BeamsTokenProvider: NSObject, TokenProvider {
~^~~~~
/host/spi-builder-workspace/Sources/Services/BeamsTokenProvider.swift:16:6: error: Objective-C interoperability is disabled
@objc public init(authURL: String, getAuthData: @escaping () -> (AuthData)) {
~^~~~~
/host/spi-builder-workspace/Sources/Services/BeamsTokenProvider.swift:30:26: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
let urlSession = URLSession(configuration: .ephemeral)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Services/BeamsTokenProvider.swift:30:53: error: cannot infer contextual base in reference to member 'ephemeral'
let urlSession = URLSession(configuration: .ephemeral)
~^~~~~~~~~
/host/spi-builder-workspace/Sources/Services/BeamsTokenProvider.swift:43:26: error: cannot find 'URLRequest' in scope
var urlRequest = URLRequest(url: url)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Services/BeamsTokenProvider.swift:56:46: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
let statusCode = httpURLResponse.statusCode
~~~~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Services/DeviceStateStore.swift:206:24: error: value of type 'UserDefaults' has no member 'value'
return service.value(forKey: PersistenceConstants.PersistenceService.hashKey) as? String ?? ""
~~~~~~~ ^~~~~
[8/46] Compiling PushNotifications DeviceStateStore.swift
/host/spi-builder-workspace/Sources/Protocols/TokenProvider.swift:24:2: error: Objective-C interoperability is disabled
@objc public protocol TokenProvider {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:11:2: error: Objective-C interoperability is disabled
@objc public final class PushNotifications: NSObject {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:22:6: error: Objective-C interoperability is disabled
@objc public init(instanceId: String) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:35:6: error: Objective-C interoperability is disabled
@objc public static let shared = PushNotificationsStatic.self
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:51:6: error: Objective-C interoperability is disabled
@objc public func start() {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:78:6: error: Objective-C interoperability is disabled
@objc public func registerForRemoteNotifications() {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:110:6: error: Objective-C interoperability is disabled
@objc public func setUserId(_ userId: String, tokenProvider: TokenProvider, completion: @escaping (Error?) -> Void) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:156:6: error: Objective-C interoperability is disabled
@objc private func printHelpfulMessage() {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:167:6: error: Objective-C interoperability is disabled
@objc public func stop(completion: @escaping () -> Void) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:196:6: error: Objective-C interoperability is disabled
@objc public func clearAllState(completion: @escaping () -> Void) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:218:6: error: Objective-C interoperability is disabled
@objc public func registerDeviceToken(_ deviceToken: Data) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:232:6: error: Objective-C interoperability is disabled
@objc public func addDeviceInterest(interest: String) throws {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:258:6: error: Objective-C interoperability is disabled
@objc public func setDeviceInterests(interests: [String]) throws {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:283:7: error: Objective-C interoperability is disabled
@objc public func removeDeviceInterest(interest: String) throws {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:300:6: error: Objective-C interoperability is disabled
@objc public func clearDeviceInterests() throws {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:310:6: error: Objective-C interoperability is disabled
@objc public func getDeviceInterests() -> [String]? {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:333:6: error: Objective-C interoperability is disabled
@objc public func handleNotification(userInfo: [AnyHashable: Any]) -> RemoteNotificationType {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:352:2: error: Objective-C interoperability is disabled
@objc public protocol InterestsChangedDelegate: AnyObject {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:141:91: error: '#selector' can only be used with the Objective-C runtime
let helpfulTimer = Timer.scheduledTimer(timeInterval: 15, target: self, selector: #selector(printHelpfulMessage), userInfo: nil, repeats: false)
^
/host/spi-builder-workspace/Sources/PushNotifications.swift:339:37: error: 'init(format:_:)' has been renamed to 'init(block:)': Predicate strings and key-value coding are not supported in swift-corelibs-foundation. Use a closure instead if possible.
let interestNamePredicate = NSPredicate(format: "SELF MATCHES %@", interestNameRegex)
^
Foundation.NSPredicate:3:24: note: 'init(format:_:)' has been explicitly marked unavailable here
public convenience init(format predicateFormat: String, _ args: any CVarArg...)
^
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:11:2: error: Objective-C interoperability is disabled
@objc public final class PushNotificationsStatic: NSObject {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:28:6: error: Objective-C interoperability is disabled
@objc public static func start(instanceId: String) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:50:6: error: Objective-C interoperability is disabled
@objc public static func registerForRemoteNotifications() {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:102:6: error: Objective-C interoperability is disabled
@objc public static func setUserId(_ userId: String, tokenProvider: TokenProvider, completion: @escaping (Error?) -> Void) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:117:6: error: Objective-C interoperability is disabled
@objc public static func stop(completion: @escaping () -> Void) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:139:6: error: Objective-C interoperability is disabled
@objc public static func clearAllState(completion: @escaping () -> Void) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:161:6: error: Objective-C interoperability is disabled
@objc public static func registerDeviceToken(_ deviceToken: Data) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:192:6: error: Objective-C interoperability is disabled
@objc public static func addDeviceInterest(interest: String) throws {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:211:6: error: Objective-C interoperability is disabled
@objc public static func setDeviceInterests(interests: [String]) throws {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:229:6: error: Objective-C interoperability is disabled
@objc public static func removeDeviceInterest(interest: String) throws {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:239:6: error: Objective-C interoperability is disabled
@objc public static func clearDeviceInterests() throws {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:253:6: error: Objective-C interoperability is disabled
@objc public static func getDeviceInterests() -> [String]? {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:268:6: error: Objective-C interoperability is disabled
@objc public static func handleNotification(userInfo: [AnyHashable: Any]) -> RemoteNotificationType {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:51:14: error: type 'PushNotificationsStatic' has no member 'registerForPushNotifications'
self.registerForPushNotifications(options: [.alert, .sound, .badge])
~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:51:54: error: reference to member 'alert' cannot be resolved without a contextual type
self.registerForPushNotifications(options: [.alert, .sound, .badge])
^
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:51:62: error: reference to member 'sound' cannot be resolved without a contextual type
self.registerForPushNotifications(options: [.alert, .sound, .badge])
^
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:51:70: error: reference to member 'badge' cannot be resolved without a contextual type
self.registerForPushNotifications(options: [.alert, .sound, .badge])
^
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:284:84: error: cannot find 'eventType' in scope
let serverSyncProcessHandler = ServerSyncProcessHandler.obtain(instanceId: eventType.getInstanceId())
^~~~~~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:285:89: error: cannot find 'eventType' in scope
serverSyncProcessHandler?.sendMessage(serverSyncJob: .reportEventJob(eventType: eventType))
^~~~~~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:285:63: error: cannot infer contextual base in reference to member 'reportEventJob'
serverSyncProcessHandler?.sendMessage(serverSyncJob: .reportEventJob(eventType: eventType))
~^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Services/BeamsTokenProvider.swift:4:2: error: Objective-C interoperability is disabled
@objc public final class BeamsTokenProvider: NSObject, TokenProvider {
~^~~~~
/host/spi-builder-workspace/Sources/Services/BeamsTokenProvider.swift:16:6: error: Objective-C interoperability is disabled
@objc public init(authURL: String, getAuthData: @escaping () -> (AuthData)) {
~^~~~~
/host/spi-builder-workspace/Sources/Services/BeamsTokenProvider.swift:30:26: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
let urlSession = URLSession(configuration: .ephemeral)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Services/BeamsTokenProvider.swift:30:53: error: cannot infer contextual base in reference to member 'ephemeral'
let urlSession = URLSession(configuration: .ephemeral)
~^~~~~~~~~
/host/spi-builder-workspace/Sources/Services/BeamsTokenProvider.swift:43:26: error: cannot find 'URLRequest' in scope
var urlRequest = URLRequest(url: url)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Services/BeamsTokenProvider.swift:56:46: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
let statusCode = httpURLResponse.statusCode
~~~~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Services/DeviceStateStore.swift:206:24: error: value of type 'UserDefaults' has no member 'value'
return service.value(forKey: PersistenceConstants.PersistenceService.hashKey) as? String ?? ""
~~~~~~~ ^~~~~
[9/46] Compiling PushNotifications Token.swift
[10/46] Compiling PushNotifications PropertyListReadable.swift
[11/46] Compiling PushNotifications PushNotificationsNetworkable.swift
[12/46] Compiling PushNotifications ReportEventType.swift
[13/46] Compiling PushNotifications RetryStrategy.swift
[14/46] Compiling PushNotifications PushNotificationsAPIError.swift
[15/46] Compiling PushNotifications PushNotificationsError.swift
[16/46] Compiling PushNotifications PusherAlreadyRegisteredError.swift
[17/46] Compiling PushNotifications Reason.swift
[18/46] Compiling PushNotifications Register.swift
[19/46] Compiling PushNotifications RemoteNotificationType.swift
/host/spi-builder-workspace/Sources/Models/SystemVersion.swift:5:38: error: 'ProcessInfo' initializer is inaccessible due to 'internal' protection level
let operatingSystemVersion = ProcessInfo().operatingSystemVersion
^
Foundation.ProcessInfo (internal):3:23: note: 'init()' declared here
override internal init()
^
[20/46] Compiling PushNotifications SDK.swift
/host/spi-builder-workspace/Sources/Models/SystemVersion.swift:5:38: error: 'ProcessInfo' initializer is inaccessible due to 'internal' protection level
let operatingSystemVersion = ProcessInfo().operatingSystemVersion
^
Foundation.ProcessInfo (internal):3:23: note: 'init()' declared here
override internal init()
^
[21/46] Compiling PushNotifications ServerSyncEvent.swift
/host/spi-builder-workspace/Sources/Models/SystemVersion.swift:5:38: error: 'ProcessInfo' initializer is inaccessible due to 'internal' protection level
let operatingSystemVersion = ProcessInfo().operatingSystemVersion
^
Foundation.ProcessInfo (internal):3:23: note: 'init()' declared here
override internal init()
^
[22/46] Compiling PushNotifications ServerSyncJob.swift
/host/spi-builder-workspace/Sources/Models/SystemVersion.swift:5:38: error: 'ProcessInfo' initializer is inaccessible due to 'internal' protection level
let operatingSystemVersion = ProcessInfo().operatingSystemVersion
^
Foundation.ProcessInfo (internal):3:23: note: 'init()' declared here
override internal init()
^
[23/46] Compiling PushNotifications SystemVersion.swift
/host/spi-builder-workspace/Sources/Models/SystemVersion.swift:5:38: error: 'ProcessInfo' initializer is inaccessible due to 'internal' protection level
let operatingSystemVersion = ProcessInfo().operatingSystemVersion
^
Foundation.ProcessInfo (internal):3:23: note: 'init()' declared here
override internal init()
^
[24/46] Compiling PushNotifications InterestValidationError.swift
/host/spi-builder-workspace/Sources/Models/Metadata.swift:17:5: error: missing return in closure expected to return 'Metadata'
}()
^
[25/46] Compiling PushNotifications Interests.swift
/host/spi-builder-workspace/Sources/Models/Metadata.swift:17:5: error: missing return in closure expected to return 'Metadata'
}()
^
[26/46] Compiling PushNotifications Metadata.swift
/host/spi-builder-workspace/Sources/Models/Metadata.swift:17:5: error: missing return in closure expected to return 'Metadata'
}()
^
[27/46] Compiling PushNotifications MultipleInvalidInterestsError.swift
/host/spi-builder-workspace/Sources/Models/Metadata.swift:17:5: error: missing return in closure expected to return 'Metadata'
}()
^
[28/46] Compiling PushNotifications PersistenceConstants.swift
/host/spi-builder-workspace/Sources/Models/Metadata.swift:17:5: error: missing return in closure expected to return 'Metadata'
}()
^
[29/46] Compiling PushNotifications PublishId.swift
/host/spi-builder-workspace/Sources/Models/Metadata.swift:17:5: error: missing return in closure expected to return 'Metadata'
}()
^
[30/46] Compiling PushNotifications AuthData.swift
/host/spi-builder-workspace/Sources/Models/AuthData.swift:4:2: error: Objective-C interoperability is disabled
@objc public class AuthData: NSObject {
~^~~~~
/host/spi-builder-workspace/Sources/Models/AuthData.swift:16:6: error: Objective-C interoperability is disabled
@objc public init(headers: [String: String], queryParams: [String: String]) {
~^~~~~
[31/46] Compiling PushNotifications Constants.swift
/host/spi-builder-workspace/Sources/Models/AuthData.swift:4:2: error: Objective-C interoperability is disabled
@objc public class AuthData: NSObject {
~^~~~~
/host/spi-builder-workspace/Sources/Models/AuthData.swift:16:6: error: Objective-C interoperability is disabled
@objc public init(headers: [String: String], queryParams: [String: String]) {
~^~~~~
[32/46] Compiling PushNotifications Device.swift
/host/spi-builder-workspace/Sources/Models/AuthData.swift:4:2: error: Objective-C interoperability is disabled
@objc public class AuthData: NSObject {
~^~~~~
/host/spi-builder-workspace/Sources/Models/AuthData.swift:16:6: error: Objective-C interoperability is disabled
@objc public init(headers: [String: String], queryParams: [String: String]) {
~^~~~~
[33/46] Compiling PushNotifications FeatureFlags.swift
/host/spi-builder-workspace/Sources/Models/AuthData.swift:4:2: error: Objective-C interoperability is disabled
@objc public class AuthData: NSObject {
~^~~~~
/host/spi-builder-workspace/Sources/Models/AuthData.swift:16:6: error: Objective-C interoperability is disabled
@objc public init(headers: [String: String], queryParams: [String: String]) {
~^~~~~
[34/46] Compiling PushNotifications HTTPMethod.swift
/host/spi-builder-workspace/Sources/Models/AuthData.swift:4:2: error: Objective-C interoperability is disabled
@objc public class AuthData: NSObject {
~^~~~~
/host/spi-builder-workspace/Sources/Models/AuthData.swift:16:6: error: Objective-C interoperability is disabled
@objc public init(headers: [String: String], queryParams: [String: String]) {
~^~~~~
[35/46] Compiling PushNotifications InstanceId.swift
/host/spi-builder-workspace/Sources/Models/AuthData.swift:4:2: error: Objective-C interoperability is disabled
@objc public class AuthData: NSObject {
~^~~~~
/host/spi-builder-workspace/Sources/Models/AuthData.swift:16:6: error: Objective-C interoperability is disabled
@objc public init(headers: [String: String], queryParams: [String: String]) {
~^~~~~
[36/46] Compiling PushNotifications Array+CalculateMD5Hash.swift
[37/46] Compiling PushNotifications Encodable+Encode.swift
[38/46] Compiling PushNotifications String+HexStringToData.swift
[39/46] Compiling PushNotifications URL+NetworkService.swift
[40/46] Compiling PushNotifications DeviceTokenHelper.swift
[41/46] Compiling PushNotifications MD5.swift
[42/46] Compiling PushNotifications EventTypeHandler.swift
/host/spi-builder-workspace/Sources/Services/EventTypeHandler.swift:147:31: error: cannot find 'isForeground' in scope
if hasCustomerData && isForeground {
^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:4:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
let session: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:6:19: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
init(session: URLSession) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:225:44: error: cannot find type 'URLRequest' in scope
private func networkRequest(_ request: URLRequest,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:226:42: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
session: URLSession,
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:283:85: error: cannot find type 'URLRequest' in scope
private func setRequest(url: URL, httpMethod: HTTPMethod, body: Data? = nil) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:28:66: error: cannot infer contextual base in reference to member 'POST'
let request = self.setRequest(url: url, httpMethod: .POST, body: body)
~^~~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:54:66: error: cannot infer contextual base in reference to member 'POST'
let request = self.setRequest(url: url, httpMethod: .POST)
~^~~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:79:66: error: cannot infer contextual base in reference to member 'PUT'
let request = self.setRequest(url: url, httpMethod: .PUT, body: body)
~^~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:102:66: error: cannot infer contextual base in reference to member 'DELETE'
let request = self.setRequest(url: url, httpMethod: .DELETE)
~^~~~~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:127:66: error: cannot infer contextual base in reference to member 'POST'
let request = self.setRequest(url: url, httpMethod: .POST, body: body)
~^~~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:151:66: error: cannot infer contextual base in reference to member 'PUT'
let request = self.setRequest(url: url, httpMethod: .PUT, body: body)
~^~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:172:66: error: cannot infer contextual base in reference to member 'PUT'
var request = self.setRequest(url: url, httpMethod: .PUT)
~^~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:193:66: error: cannot infer contextual base in reference to member 'DELETE'
let request = self.setRequest(url: url, httpMethod: .DELETE)
~^~~~~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:213:66: error: cannot infer contextual base in reference to member 'GET'
let request = self.setRequest(url: url, httpMethod: .GET)
~^~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:231:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
session.dataTask(with: request, completionHandler: { data, response, error in
~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:247:46: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
let statusCode = httpURLResponse.statusCode
~~~~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:284:23: error: cannot find 'URLRequest' in scope
var request = URLRequest(url: url)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Services/ServerSyncProcessHandler.swift:47:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
let session = URLSession(configuration: .ephemeral)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Services/ServerSyncProcessHandler.swift:47:50: error: cannot infer contextual base in reference to member 'ephemeral'
let session = URLSession(configuration: .ephemeral)
~^~~~~~~~~
[43/46] Compiling PushNotifications NetworkService.swift
/host/spi-builder-workspace/Sources/Services/EventTypeHandler.swift:147:31: error: cannot find 'isForeground' in scope
if hasCustomerData && isForeground {
^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:4:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
let session: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:6:19: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
init(session: URLSession) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:225:44: error: cannot find type 'URLRequest' in scope
private func networkRequest(_ request: URLRequest,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:226:42: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
session: URLSession,
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:283:85: error: cannot find type 'URLRequest' in scope
private func setRequest(url: URL, httpMethod: HTTPMethod, body: Data? = nil) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:28:66: error: cannot infer contextual base in reference to member 'POST'
let request = self.setRequest(url: url, httpMethod: .POST, body: body)
~^~~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:54:66: error: cannot infer contextual base in reference to member 'POST'
let request = self.setRequest(url: url, httpMethod: .POST)
~^~~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:79:66: error: cannot infer contextual base in reference to member 'PUT'
let request = self.setRequest(url: url, httpMethod: .PUT, body: body)
~^~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:102:66: error: cannot infer contextual base in reference to member 'DELETE'
let request = self.setRequest(url: url, httpMethod: .DELETE)
~^~~~~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:127:66: error: cannot infer contextual base in reference to member 'POST'
let request = self.setRequest(url: url, httpMethod: .POST, body: body)
~^~~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:151:66: error: cannot infer contextual base in reference to member 'PUT'
let request = self.setRequest(url: url, httpMethod: .PUT, body: body)
~^~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:172:66: error: cannot infer contextual base in reference to member 'PUT'
var request = self.setRequest(url: url, httpMethod: .PUT)
~^~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:193:66: error: cannot infer contextual base in reference to member 'DELETE'
let request = self.setRequest(url: url, httpMethod: .DELETE)
~^~~~~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:213:66: error: cannot infer contextual base in reference to member 'GET'
let request = self.setRequest(url: url, httpMethod: .GET)
~^~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:231:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
session.dataTask(with: request, completionHandler: { data, response, error in
~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:247:46: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
let statusCode = httpURLResponse.statusCode
~~~~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:284:23: error: cannot find 'URLRequest' in scope
var request = URLRequest(url: url)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Services/ServerSyncProcessHandler.swift:47:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
let session = URLSession(configuration: .ephemeral)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Services/ServerSyncProcessHandler.swift:47:50: error: cannot infer contextual base in reference to member 'ephemeral'
let session = URLSession(configuration: .ephemeral)
~^~~~~~~~~
[44/46] Compiling PushNotifications ServerSyncEventHandler.swift
/host/spi-builder-workspace/Sources/Services/EventTypeHandler.swift:147:31: error: cannot find 'isForeground' in scope
if hasCustomerData && isForeground {
^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:4:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
let session: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:6:19: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
init(session: URLSession) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:225:44: error: cannot find type 'URLRequest' in scope
private func networkRequest(_ request: URLRequest,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:226:42: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
session: URLSession,
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:283:85: error: cannot find type 'URLRequest' in scope
private func setRequest(url: URL, httpMethod: HTTPMethod, body: Data? = nil) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:28:66: error: cannot infer contextual base in reference to member 'POST'
let request = self.setRequest(url: url, httpMethod: .POST, body: body)
~^~~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:54:66: error: cannot infer contextual base in reference to member 'POST'
let request = self.setRequest(url: url, httpMethod: .POST)
~^~~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:79:66: error: cannot infer contextual base in reference to member 'PUT'
let request = self.setRequest(url: url, httpMethod: .PUT, body: body)
~^~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:102:66: error: cannot infer contextual base in reference to member 'DELETE'
let request = self.setRequest(url: url, httpMethod: .DELETE)
~^~~~~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:127:66: error: cannot infer contextual base in reference to member 'POST'
let request = self.setRequest(url: url, httpMethod: .POST, body: body)
~^~~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:151:66: error: cannot infer contextual base in reference to member 'PUT'
let request = self.setRequest(url: url, httpMethod: .PUT, body: body)
~^~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:172:66: error: cannot infer contextual base in reference to member 'PUT'
var request = self.setRequest(url: url, httpMethod: .PUT)
~^~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:193:66: error: cannot infer contextual base in reference to member 'DELETE'
let request = self.setRequest(url: url, httpMethod: .DELETE)
~^~~~~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:213:66: error: cannot infer contextual base in reference to member 'GET'
let request = self.setRequest(url: url, httpMethod: .GET)
~^~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:231:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
session.dataTask(with: request, completionHandler: { data, response, error in
~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:247:46: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
let statusCode = httpURLResponse.statusCode
~~~~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:284:23: error: cannot find 'URLRequest' in scope
var request = URLRequest(url: url)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Services/ServerSyncProcessHandler.swift:47:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
let session = URLSession(configuration: .ephemeral)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Services/ServerSyncProcessHandler.swift:47:50: error: cannot infer contextual base in reference to member 'ephemeral'
let session = URLSession(configuration: .ephemeral)
~^~~~~~~~~
[45/46] Compiling PushNotifications ServerSyncJobStore.swift
/host/spi-builder-workspace/Sources/Services/EventTypeHandler.swift:147:31: error: cannot find 'isForeground' in scope
if hasCustomerData && isForeground {
^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:4:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
let session: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:6:19: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
init(session: URLSession) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:225:44: error: cannot find type 'URLRequest' in scope
private func networkRequest(_ request: URLRequest,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:226:42: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
session: URLSession,
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:283:85: error: cannot find type 'URLRequest' in scope
private func setRequest(url: URL, httpMethod: HTTPMethod, body: Data? = nil) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:28:66: error: cannot infer contextual base in reference to member 'POST'
let request = self.setRequest(url: url, httpMethod: .POST, body: body)
~^~~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:54:66: error: cannot infer contextual base in reference to member 'POST'
let request = self.setRequest(url: url, httpMethod: .POST)
~^~~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:79:66: error: cannot infer contextual base in reference to member 'PUT'
let request = self.setRequest(url: url, httpMethod: .PUT, body: body)
~^~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:102:66: error: cannot infer contextual base in reference to member 'DELETE'
let request = self.setRequest(url: url, httpMethod: .DELETE)
~^~~~~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:127:66: error: cannot infer contextual base in reference to member 'POST'
let request = self.setRequest(url: url, httpMethod: .POST, body: body)
~^~~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:151:66: error: cannot infer contextual base in reference to member 'PUT'
let request = self.setRequest(url: url, httpMethod: .PUT, body: body)
~^~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:172:66: error: cannot infer contextual base in reference to member 'PUT'
var request = self.setRequest(url: url, httpMethod: .PUT)
~^~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:193:66: error: cannot infer contextual base in reference to member 'DELETE'
let request = self.setRequest(url: url, httpMethod: .DELETE)
~^~~~~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:213:66: error: cannot infer contextual base in reference to member 'GET'
let request = self.setRequest(url: url, httpMethod: .GET)
~^~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:231:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
session.dataTask(with: request, completionHandler: { data, response, error in
~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:247:46: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
let statusCode = httpURLResponse.statusCode
~~~~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:284:23: error: cannot find 'URLRequest' in scope
var request = URLRequest(url: url)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Services/ServerSyncProcessHandler.swift:47:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
let session = URLSession(configuration: .ephemeral)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Services/ServerSyncProcessHandler.swift:47:50: error: cannot infer contextual base in reference to member 'ephemeral'
let session = URLSession(configuration: .ephemeral)
~^~~~~~~~~
[46/46] Compiling PushNotifications ServerSyncProcessHandler.swift
/host/spi-builder-workspace/Sources/Services/EventTypeHandler.swift:147:31: error: cannot find 'isForeground' in scope
if hasCustomerData && isForeground {
^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:4:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
let session: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:6:19: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
init(session: URLSession) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:225:44: error: cannot find type 'URLRequest' in scope
private func networkRequest(_ request: URLRequest,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:226:42: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
session: URLSession,
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:283:85: error: cannot find type 'URLRequest' in scope
private func setRequest(url: URL, httpMethod: HTTPMethod, body: Data? = nil) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:28:66: error: cannot infer contextual base in reference to member 'POST'
let request = self.setRequest(url: url, httpMethod: .POST, body: body)
~^~~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:54:66: error: cannot infer contextual base in reference to member 'POST'
let request = self.setRequest(url: url, httpMethod: .POST)
~^~~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:79:66: error: cannot infer contextual base in reference to member 'PUT'
let request = self.setRequest(url: url, httpMethod: .PUT, body: body)
~^~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:102:66: error: cannot infer contextual base in reference to member 'DELETE'
let request = self.setRequest(url: url, httpMethod: .DELETE)
~^~~~~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:127:66: error: cannot infer contextual base in reference to member 'POST'
let request = self.setRequest(url: url, httpMethod: .POST, body: body)
~^~~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:151:66: error: cannot infer contextual base in reference to member 'PUT'
let request = self.setRequest(url: url, httpMethod: .PUT, body: body)
~^~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:172:66: error: cannot infer contextual base in reference to member 'PUT'
var request = self.setRequest(url: url, httpMethod: .PUT)
~^~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:193:66: error: cannot infer contextual base in reference to member 'DELETE'
let request = self.setRequest(url: url, httpMethod: .DELETE)
~^~~~~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:213:66: error: cannot infer contextual base in reference to member 'GET'
let request = self.setRequest(url: url, httpMethod: .GET)
~^~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:231:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
session.dataTask(with: request, completionHandler: { data, response, error in
~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:247:46: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
let statusCode = httpURLResponse.statusCode
~~~~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:284:23: error: cannot find 'URLRequest' in scope
var request = URLRequest(url: url)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Services/ServerSyncProcessHandler.swift:47:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
let session = URLSession(configuration: .ephemeral)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Services/ServerSyncProcessHandler.swift:47:50: error: cannot infer contextual base in reference to member 'ephemeral'
let session = URLSession(configuration: .ephemeral)
~^~~~~~~~~
error: fatalError
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/26] Compiling PushNotifications RemoteNotificationType.swift
[3/26] Compiling PushNotifications SDK.swift
[4/26] Compiling PushNotifications ServerSyncEvent.swift
[5/26] Compiling PushNotifications AuthData.swift
/host/spi-builder-workspace/Sources/Models/AuthData.swift:4:2: error: Objective-C interoperability is disabled
@objc public class AuthData: NSObject {
~^~~~~
/host/spi-builder-workspace/Sources/Models/AuthData.swift:16:6: error: Objective-C interoperability is disabled
@objc public init(headers: [String: String], queryParams: [String: String]) {
~^~~~~
[6/26] Compiling PushNotifications Constants.swift
/host/spi-builder-workspace/Sources/Models/AuthData.swift:4:2: error: Objective-C interoperability is disabled
@objc public class AuthData: NSObject {
~^~~~~
/host/spi-builder-workspace/Sources/Models/AuthData.swift:16:6: error: Objective-C interoperability is disabled
@objc public init(headers: [String: String], queryParams: [String: String]) {
~^~~~~
[7/26] Compiling PushNotifications Device.swift
/host/spi-builder-workspace/Sources/Models/AuthData.swift:4:2: error: Objective-C interoperability is disabled
@objc public class AuthData: NSObject {
~^~~~~
/host/spi-builder-workspace/Sources/Models/AuthData.swift:16:6: error: Objective-C interoperability is disabled
@objc public init(headers: [String: String], queryParams: [String: String]) {
~^~~~~
[8/26] Compiling PushNotifications FeatureFlags.swift
/host/spi-builder-workspace/Sources/Models/AuthData.swift:4:2: error: Objective-C interoperability is disabled
@objc public class AuthData: NSObject {
~^~~~~
/host/spi-builder-workspace/Sources/Models/AuthData.swift:16:6: error: Objective-C interoperability is disabled
@objc public init(headers: [String: String], queryParams: [String: String]) {
~^~~~~
error: emit-module command failed with exit code 1 (use -v to see invocation)
[9/29] Emitting module PushNotifications
/host/spi-builder-workspace/Sources/Models/AuthData.swift:4:2: error: Objective-C interoperability is disabled
@objc public class AuthData: NSObject {
~^~~~~
/host/spi-builder-workspace/Sources/Models/AuthData.swift:16:6: error: Objective-C interoperability is disabled
@objc public init(headers: [String: String], queryParams: [String: String]) {
~^~~~~
/host/spi-builder-workspace/Sources/Protocols/TokenProvider.swift:24:2: error: Objective-C interoperability is disabled
@objc public protocol TokenProvider {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:11:2: error: Objective-C interoperability is disabled
@objc public final class PushNotifications: NSObject {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:22:6: error: Objective-C interoperability is disabled
@objc public init(instanceId: String) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:35:6: error: Objective-C interoperability is disabled
@objc public static let shared = PushNotificationsStatic.self
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:51:6: error: Objective-C interoperability is disabled
@objc public func start() {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:78:6: error: Objective-C interoperability is disabled
@objc public func registerForRemoteNotifications() {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:110:6: error: Objective-C interoperability is disabled
@objc public func setUserId(_ userId: String, tokenProvider: TokenProvider, completion: @escaping (Error?) -> Void) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:156:6: error: Objective-C interoperability is disabled
@objc private func printHelpfulMessage() {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:167:6: error: Objective-C interoperability is disabled
@objc public func stop(completion: @escaping () -> Void) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:196:6: error: Objective-C interoperability is disabled
@objc public func clearAllState(completion: @escaping () -> Void) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:218:6: error: Objective-C interoperability is disabled
@objc public func registerDeviceToken(_ deviceToken: Data) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:232:6: error: Objective-C interoperability is disabled
@objc public func addDeviceInterest(interest: String) throws {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:258:6: error: Objective-C interoperability is disabled
@objc public func setDeviceInterests(interests: [String]) throws {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:283:7: error: Objective-C interoperability is disabled
@objc public func removeDeviceInterest(interest: String) throws {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:300:6: error: Objective-C interoperability is disabled
@objc public func clearDeviceInterests() throws {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:310:6: error: Objective-C interoperability is disabled
@objc public func getDeviceInterests() -> [String]? {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:333:6: error: Objective-C interoperability is disabled
@objc public func handleNotification(userInfo: [AnyHashable: Any]) -> RemoteNotificationType {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:352:2: error: Objective-C interoperability is disabled
@objc public protocol InterestsChangedDelegate: AnyObject {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:11:2: error: Objective-C interoperability is disabled
@objc public final class PushNotificationsStatic: NSObject {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:28:6: error: Objective-C interoperability is disabled
@objc public static func start(instanceId: String) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:50:6: error: Objective-C interoperability is disabled
@objc public static func registerForRemoteNotifications() {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:102:6: error: Objective-C interoperability is disabled
@objc public static func setUserId(_ userId: String, tokenProvider: TokenProvider, completion: @escaping (Error?) -> Void) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:117:6: error: Objective-C interoperability is disabled
@objc public static func stop(completion: @escaping () -> Void) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:139:6: error: Objective-C interoperability is disabled
@objc public static func clearAllState(completion: @escaping () -> Void) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:161:6: error: Objective-C interoperability is disabled
@objc public static func registerDeviceToken(_ deviceToken: Data) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:192:6: error: Objective-C interoperability is disabled
@objc public static func addDeviceInterest(interest: String) throws {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:211:6: error: Objective-C interoperability is disabled
@objc public static func setDeviceInterests(interests: [String]) throws {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:229:6: error: Objective-C interoperability is disabled
@objc public static func removeDeviceInterest(interest: String) throws {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:239:6: error: Objective-C interoperability is disabled
@objc public static func clearDeviceInterests() throws {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:253:6: error: Objective-C interoperability is disabled
@objc public static func getDeviceInterests() -> [String]? {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:268:6: error: Objective-C interoperability is disabled
@objc public static func handleNotification(userInfo: [AnyHashable: Any]) -> RemoteNotificationType {
~^~~~~
/host/spi-builder-workspace/Sources/Services/BeamsTokenProvider.swift:4:2: error: Objective-C interoperability is disabled
@objc public final class BeamsTokenProvider: NSObject, TokenProvider {
~^~~~~
/host/spi-builder-workspace/Sources/Services/BeamsTokenProvider.swift:16:6: error: Objective-C interoperability is disabled
@objc public init(authURL: String, getAuthData: @escaping () -> (AuthData)) {
~^~~~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:4:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
let session: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:6:19: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
init(session: URLSession) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:225:44: error: cannot find type 'URLRequest' in scope
private func networkRequest(_ request: URLRequest,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:226:42: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
session: URLSession,
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:283:85: error: cannot find type 'URLRequest' in scope
private func setRequest(url: URL, httpMethod: HTTPMethod, body: Data? = nil) -> URLRequest {
^~~~~~~~~~
[10/29] Compiling PushNotifications HTTPMethod.swift
[11/29] Compiling PushNotifications InstanceId.swift
[12/29] Compiling PushNotifications InterestValidationError.swift
[13/29] Compiling PushNotifications Interests.swift
[14/29] Compiling PushNotifications ServerSyncJob.swift
/host/spi-builder-workspace/Sources/Models/SystemVersion.swift:5:38: error: 'ProcessInfo' initializer is inaccessible due to 'internal' protection level
let operatingSystemVersion = ProcessInfo().operatingSystemVersion
^
Foundation.ProcessInfo (internal):3:23: note: 'init()' declared here
override internal init()
^
/host/spi-builder-workspace/Sources/Protocols/TokenProvider.swift:24:2: error: Objective-C interoperability is disabled
@objc public protocol TokenProvider {
~^~~~~
[15/29] Compiling PushNotifications SystemVersion.swift
/host/spi-builder-workspace/Sources/Models/SystemVersion.swift:5:38: error: 'ProcessInfo' initializer is inaccessible due to 'internal' protection level
let operatingSystemVersion = ProcessInfo().operatingSystemVersion
^
Foundation.ProcessInfo (internal):3:23: note: 'init()' declared here
override internal init()
^
/host/spi-builder-workspace/Sources/Protocols/TokenProvider.swift:24:2: error: Objective-C interoperability is disabled
@objc public protocol TokenProvider {
~^~~~~
[16/29] Compiling PushNotifications TokenProvider.swift
/host/spi-builder-workspace/Sources/Models/SystemVersion.swift:5:38: error: 'ProcessInfo' initializer is inaccessible due to 'internal' protection level
let operatingSystemVersion = ProcessInfo().operatingSystemVersion
^
Foundation.ProcessInfo (internal):3:23: note: 'init()' declared here
override internal init()
^
/host/spi-builder-workspace/Sources/Protocols/TokenProvider.swift:24:2: error: Objective-C interoperability is disabled
@objc public protocol TokenProvider {
~^~~~~
[17/29] Compiling PushNotifications PushNotifications.swift
/host/spi-builder-workspace/Sources/PushNotifications.swift:11:2: error: Objective-C interoperability is disabled
@objc public final class PushNotifications: NSObject {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:22:6: error: Objective-C interoperability is disabled
@objc public init(instanceId: String) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:35:6: error: Objective-C interoperability is disabled
@objc public static let shared = PushNotificationsStatic.self
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:51:6: error: Objective-C interoperability is disabled
@objc public func start() {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:78:6: error: Objective-C interoperability is disabled
@objc public func registerForRemoteNotifications() {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:110:6: error: Objective-C interoperability is disabled
@objc public func setUserId(_ userId: String, tokenProvider: TokenProvider, completion: @escaping (Error?) -> Void) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:156:6: error: Objective-C interoperability is disabled
@objc private func printHelpfulMessage() {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:167:6: error: Objective-C interoperability is disabled
@objc public func stop(completion: @escaping () -> Void) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:196:6: error: Objective-C interoperability is disabled
@objc public func clearAllState(completion: @escaping () -> Void) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:218:6: error: Objective-C interoperability is disabled
@objc public func registerDeviceToken(_ deviceToken: Data) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:232:6: error: Objective-C interoperability is disabled
@objc public func addDeviceInterest(interest: String) throws {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:258:6: error: Objective-C interoperability is disabled
@objc public func setDeviceInterests(interests: [String]) throws {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:283:7: error: Objective-C interoperability is disabled
@objc public func removeDeviceInterest(interest: String) throws {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:300:6: error: Objective-C interoperability is disabled
@objc public func clearDeviceInterests() throws {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:310:6: error: Objective-C interoperability is disabled
@objc public func getDeviceInterests() -> [String]? {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:333:6: error: Objective-C interoperability is disabled
@objc public func handleNotification(userInfo: [AnyHashable: Any]) -> RemoteNotificationType {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:352:2: error: Objective-C interoperability is disabled
@objc public protocol InterestsChangedDelegate: AnyObject {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:141:91: error: '#selector' can only be used with the Objective-C runtime
let helpfulTimer = Timer.scheduledTimer(timeInterval: 15, target: self, selector: #selector(printHelpfulMessage), userInfo: nil, repeats: false)
^
/host/spi-builder-workspace/Sources/PushNotifications.swift:339:37: error: 'init(format:_:)' has been renamed to 'init(block:)': Predicate strings and key-value coding are not supported in swift-corelibs-foundation. Use a closure instead if possible.
let interestNamePredicate = NSPredicate(format: "SELF MATCHES %@", interestNameRegex)
^
Foundation.NSPredicate:3:24: note: 'init(format:_:)' has been explicitly marked unavailable here
public convenience init(format predicateFormat: String, _ args: any CVarArg...)
^
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:11:2: error: Objective-C interoperability is disabled
@objc public final class PushNotificationsStatic: NSObject {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:28:6: error: Objective-C interoperability is disabled
@objc public static func start(instanceId: String) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:50:6: error: Objective-C interoperability is disabled
@objc public static func registerForRemoteNotifications() {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:102:6: error: Objective-C interoperability is disabled
@objc public static func setUserId(_ userId: String, tokenProvider: TokenProvider, completion: @escaping (Error?) -> Void) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:117:6: error: Objective-C interoperability is disabled
@objc public static func stop(completion: @escaping () -> Void) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:139:6: error: Objective-C interoperability is disabled
@objc public static func clearAllState(completion: @escaping () -> Void) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:161:6: error: Objective-C interoperability is disabled
@objc public static func registerDeviceToken(_ deviceToken: Data) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:192:6: error: Objective-C interoperability is disabled
@objc public static func addDeviceInterest(interest: String) throws {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:211:6: error: Objective-C interoperability is disabled
@objc public static func setDeviceInterests(interests: [String]) throws {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:229:6: error: Objective-C interoperability is disabled
@objc public static func removeDeviceInterest(interest: String) throws {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:239:6: error: Objective-C interoperability is disabled
@objc public static func clearDeviceInterests() throws {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:253:6: error: Objective-C interoperability is disabled
@objc public static func getDeviceInterests() -> [String]? {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:268:6: error: Objective-C interoperability is disabled
@objc public static func handleNotification(userInfo: [AnyHashable: Any]) -> RemoteNotificationType {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:51:14: error: type 'PushNotificationsStatic' has no member 'registerForPushNotifications'
self.registerForPushNotifications(options: [.alert, .sound, .badge])
~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:51:54: error: reference to member 'alert' cannot be resolved without a contextual type
self.registerForPushNotifications(options: [.alert, .sound, .badge])
^
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:51:62: error: reference to member 'sound' cannot be resolved without a contextual type
self.registerForPushNotifications(options: [.alert, .sound, .badge])
^
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:51:70: error: reference to member 'badge' cannot be resolved without a contextual type
self.registerForPushNotifications(options: [.alert, .sound, .badge])
^
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:284:84: error: cannot find 'eventType' in scope
let serverSyncProcessHandler = ServerSyncProcessHandler.obtain(instanceId: eventType.getInstanceId())
^~~~~~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:285:89: error: cannot find 'eventType' in scope
serverSyncProcessHandler?.sendMessage(serverSyncJob: .reportEventJob(eventType: eventType))
^~~~~~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:285:63: error: cannot infer contextual base in reference to member 'reportEventJob'
serverSyncProcessHandler?.sendMessage(serverSyncJob: .reportEventJob(eventType: eventType))
~^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Services/BeamsTokenProvider.swift:4:2: error: Objective-C interoperability is disabled
@objc public final class BeamsTokenProvider: NSObject, TokenProvider {
~^~~~~
/host/spi-builder-workspace/Sources/Services/BeamsTokenProvider.swift:16:6: error: Objective-C interoperability is disabled
@objc public init(authURL: String, getAuthData: @escaping () -> (AuthData)) {
~^~~~~
/host/spi-builder-workspace/Sources/Services/BeamsTokenProvider.swift:30:26: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
let urlSession = URLSession(configuration: .ephemeral)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Services/BeamsTokenProvider.swift:30:53: error: cannot infer contextual base in reference to member 'ephemeral'
let urlSession = URLSession(configuration: .ephemeral)
~^~~~~~~~~
/host/spi-builder-workspace/Sources/Services/BeamsTokenProvider.swift:43:26: error: cannot find 'URLRequest' in scope
var urlRequest = URLRequest(url: url)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Services/BeamsTokenProvider.swift:56:46: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
let statusCode = httpURLResponse.statusCode
~~~~~~~~~~~~~~~ ^~~~~~~~~~
[18/29] Compiling PushNotifications PushNotificationsStatic.swift
/host/spi-builder-workspace/Sources/PushNotifications.swift:11:2: error: Objective-C interoperability is disabled
@objc public final class PushNotifications: NSObject {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:22:6: error: Objective-C interoperability is disabled
@objc public init(instanceId: String) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:35:6: error: Objective-C interoperability is disabled
@objc public static let shared = PushNotificationsStatic.self
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:51:6: error: Objective-C interoperability is disabled
@objc public func start() {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:78:6: error: Objective-C interoperability is disabled
@objc public func registerForRemoteNotifications() {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:110:6: error: Objective-C interoperability is disabled
@objc public func setUserId(_ userId: String, tokenProvider: TokenProvider, completion: @escaping (Error?) -> Void) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:156:6: error: Objective-C interoperability is disabled
@objc private func printHelpfulMessage() {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:167:6: error: Objective-C interoperability is disabled
@objc public func stop(completion: @escaping () -> Void) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:196:6: error: Objective-C interoperability is disabled
@objc public func clearAllState(completion: @escaping () -> Void) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:218:6: error: Objective-C interoperability is disabled
@objc public func registerDeviceToken(_ deviceToken: Data) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:232:6: error: Objective-C interoperability is disabled
@objc public func addDeviceInterest(interest: String) throws {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:258:6: error: Objective-C interoperability is disabled
@objc public func setDeviceInterests(interests: [String]) throws {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:283:7: error: Objective-C interoperability is disabled
@objc public func removeDeviceInterest(interest: String) throws {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:300:6: error: Objective-C interoperability is disabled
@objc public func clearDeviceInterests() throws {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:310:6: error: Objective-C interoperability is disabled
@objc public func getDeviceInterests() -> [String]? {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:333:6: error: Objective-C interoperability is disabled
@objc public func handleNotification(userInfo: [AnyHashable: Any]) -> RemoteNotificationType {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:352:2: error: Objective-C interoperability is disabled
@objc public protocol InterestsChangedDelegate: AnyObject {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:141:91: error: '#selector' can only be used with the Objective-C runtime
let helpfulTimer = Timer.scheduledTimer(timeInterval: 15, target: self, selector: #selector(printHelpfulMessage), userInfo: nil, repeats: false)
^
/host/spi-builder-workspace/Sources/PushNotifications.swift:339:37: error: 'init(format:_:)' has been renamed to 'init(block:)': Predicate strings and key-value coding are not supported in swift-corelibs-foundation. Use a closure instead if possible.
let interestNamePredicate = NSPredicate(format: "SELF MATCHES %@", interestNameRegex)
^
Foundation.NSPredicate:3:24: note: 'init(format:_:)' has been explicitly marked unavailable here
public convenience init(format predicateFormat: String, _ args: any CVarArg...)
^
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:11:2: error: Objective-C interoperability is disabled
@objc public final class PushNotificationsStatic: NSObject {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:28:6: error: Objective-C interoperability is disabled
@objc public static func start(instanceId: String) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:50:6: error: Objective-C interoperability is disabled
@objc public static func registerForRemoteNotifications() {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:102:6: error: Objective-C interoperability is disabled
@objc public static func setUserId(_ userId: String, tokenProvider: TokenProvider, completion: @escaping (Error?) -> Void) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:117:6: error: Objective-C interoperability is disabled
@objc public static func stop(completion: @escaping () -> Void) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:139:6: error: Objective-C interoperability is disabled
@objc public static func clearAllState(completion: @escaping () -> Void) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:161:6: error: Objective-C interoperability is disabled
@objc public static func registerDeviceToken(_ deviceToken: Data) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:192:6: error: Objective-C interoperability is disabled
@objc public static func addDeviceInterest(interest: String) throws {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:211:6: error: Objective-C interoperability is disabled
@objc public static func setDeviceInterests(interests: [String]) throws {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:229:6: error: Objective-C interoperability is disabled
@objc public static func removeDeviceInterest(interest: String) throws {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:239:6: error: Objective-C interoperability is disabled
@objc public static func clearDeviceInterests() throws {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:253:6: error: Objective-C interoperability is disabled
@objc public static func getDeviceInterests() -> [String]? {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:268:6: error: Objective-C interoperability is disabled
@objc public static func handleNotification(userInfo: [AnyHashable: Any]) -> RemoteNotificationType {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:51:14: error: type 'PushNotificationsStatic' has no member 'registerForPushNotifications'
self.registerForPushNotifications(options: [.alert, .sound, .badge])
~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:51:54: error: reference to member 'alert' cannot be resolved without a contextual type
self.registerForPushNotifications(options: [.alert, .sound, .badge])
^
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:51:62: error: reference to member 'sound' cannot be resolved without a contextual type
self.registerForPushNotifications(options: [.alert, .sound, .badge])
^
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:51:70: error: reference to member 'badge' cannot be resolved without a contextual type
self.registerForPushNotifications(options: [.alert, .sound, .badge])
^
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:284:84: error: cannot find 'eventType' in scope
let serverSyncProcessHandler = ServerSyncProcessHandler.obtain(instanceId: eventType.getInstanceId())
^~~~~~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:285:89: error: cannot find 'eventType' in scope
serverSyncProcessHandler?.sendMessage(serverSyncJob: .reportEventJob(eventType: eventType))
^~~~~~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:285:63: error: cannot infer contextual base in reference to member 'reportEventJob'
serverSyncProcessHandler?.sendMessage(serverSyncJob: .reportEventJob(eventType: eventType))
~^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Services/BeamsTokenProvider.swift:4:2: error: Objective-C interoperability is disabled
@objc public final class BeamsTokenProvider: NSObject, TokenProvider {
~^~~~~
/host/spi-builder-workspace/Sources/Services/BeamsTokenProvider.swift:16:6: error: Objective-C interoperability is disabled
@objc public init(authURL: String, getAuthData: @escaping () -> (AuthData)) {
~^~~~~
/host/spi-builder-workspace/Sources/Services/BeamsTokenProvider.swift:30:26: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
let urlSession = URLSession(configuration: .ephemeral)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Services/BeamsTokenProvider.swift:30:53: error: cannot infer contextual base in reference to member 'ephemeral'
let urlSession = URLSession(configuration: .ephemeral)
~^~~~~~~~~
/host/spi-builder-workspace/Sources/Services/BeamsTokenProvider.swift:43:26: error: cannot find 'URLRequest' in scope
var urlRequest = URLRequest(url: url)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Services/BeamsTokenProvider.swift:56:46: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
let statusCode = httpURLResponse.statusCode
~~~~~~~~~~~~~~~ ^~~~~~~~~~
[19/29] Compiling PushNotifications BeamsTokenProvider.swift
/host/spi-builder-workspace/Sources/PushNotifications.swift:11:2: error: Objective-C interoperability is disabled
@objc public final class PushNotifications: NSObject {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:22:6: error: Objective-C interoperability is disabled
@objc public init(instanceId: String) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:35:6: error: Objective-C interoperability is disabled
@objc public static let shared = PushNotificationsStatic.self
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:51:6: error: Objective-C interoperability is disabled
@objc public func start() {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:78:6: error: Objective-C interoperability is disabled
@objc public func registerForRemoteNotifications() {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:110:6: error: Objective-C interoperability is disabled
@objc public func setUserId(_ userId: String, tokenProvider: TokenProvider, completion: @escaping (Error?) -> Void) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:156:6: error: Objective-C interoperability is disabled
@objc private func printHelpfulMessage() {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:167:6: error: Objective-C interoperability is disabled
@objc public func stop(completion: @escaping () -> Void) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:196:6: error: Objective-C interoperability is disabled
@objc public func clearAllState(completion: @escaping () -> Void) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:218:6: error: Objective-C interoperability is disabled
@objc public func registerDeviceToken(_ deviceToken: Data) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:232:6: error: Objective-C interoperability is disabled
@objc public func addDeviceInterest(interest: String) throws {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:258:6: error: Objective-C interoperability is disabled
@objc public func setDeviceInterests(interests: [String]) throws {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:283:7: error: Objective-C interoperability is disabled
@objc public func removeDeviceInterest(interest: String) throws {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:300:6: error: Objective-C interoperability is disabled
@objc public func clearDeviceInterests() throws {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:310:6: error: Objective-C interoperability is disabled
@objc public func getDeviceInterests() -> [String]? {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:333:6: error: Objective-C interoperability is disabled
@objc public func handleNotification(userInfo: [AnyHashable: Any]) -> RemoteNotificationType {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:352:2: error: Objective-C interoperability is disabled
@objc public protocol InterestsChangedDelegate: AnyObject {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotifications.swift:141:91: error: '#selector' can only be used with the Objective-C runtime
let helpfulTimer = Timer.scheduledTimer(timeInterval: 15, target: self, selector: #selector(printHelpfulMessage), userInfo: nil, repeats: false)
^
/host/spi-builder-workspace/Sources/PushNotifications.swift:339:37: error: 'init(format:_:)' has been renamed to 'init(block:)': Predicate strings and key-value coding are not supported in swift-corelibs-foundation. Use a closure instead if possible.
let interestNamePredicate = NSPredicate(format: "SELF MATCHES %@", interestNameRegex)
^
Foundation.NSPredicate:3:24: note: 'init(format:_:)' has been explicitly marked unavailable here
public convenience init(format predicateFormat: String, _ args: any CVarArg...)
^
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:11:2: error: Objective-C interoperability is disabled
@objc public final class PushNotificationsStatic: NSObject {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:28:6: error: Objective-C interoperability is disabled
@objc public static func start(instanceId: String) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:50:6: error: Objective-C interoperability is disabled
@objc public static func registerForRemoteNotifications() {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:102:6: error: Objective-C interoperability is disabled
@objc public static func setUserId(_ userId: String, tokenProvider: TokenProvider, completion: @escaping (Error?) -> Void) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:117:6: error: Objective-C interoperability is disabled
@objc public static func stop(completion: @escaping () -> Void) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:139:6: error: Objective-C interoperability is disabled
@objc public static func clearAllState(completion: @escaping () -> Void) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:161:6: error: Objective-C interoperability is disabled
@objc public static func registerDeviceToken(_ deviceToken: Data) {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:192:6: error: Objective-C interoperability is disabled
@objc public static func addDeviceInterest(interest: String) throws {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:211:6: error: Objective-C interoperability is disabled
@objc public static func setDeviceInterests(interests: [String]) throws {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:229:6: error: Objective-C interoperability is disabled
@objc public static func removeDeviceInterest(interest: String) throws {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:239:6: error: Objective-C interoperability is disabled
@objc public static func clearDeviceInterests() throws {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:253:6: error: Objective-C interoperability is disabled
@objc public static func getDeviceInterests() -> [String]? {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:268:6: error: Objective-C interoperability is disabled
@objc public static func handleNotification(userInfo: [AnyHashable: Any]) -> RemoteNotificationType {
~^~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:51:14: error: type 'PushNotificationsStatic' has no member 'registerForPushNotifications'
self.registerForPushNotifications(options: [.alert, .sound, .badge])
~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:51:54: error: reference to member 'alert' cannot be resolved without a contextual type
self.registerForPushNotifications(options: [.alert, .sound, .badge])
^
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:51:62: error: reference to member 'sound' cannot be resolved without a contextual type
self.registerForPushNotifications(options: [.alert, .sound, .badge])
^
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:51:70: error: reference to member 'badge' cannot be resolved without a contextual type
self.registerForPushNotifications(options: [.alert, .sound, .badge])
^
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:284:84: error: cannot find 'eventType' in scope
let serverSyncProcessHandler = ServerSyncProcessHandler.obtain(instanceId: eventType.getInstanceId())
^~~~~~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:285:89: error: cannot find 'eventType' in scope
serverSyncProcessHandler?.sendMessage(serverSyncJob: .reportEventJob(eventType: eventType))
^~~~~~~~~
/host/spi-builder-workspace/Sources/PushNotificationsStatic.swift:285:63: error: cannot infer contextual base in reference to member 'reportEventJob'
serverSyncProcessHandler?.sendMessage(serverSyncJob: .reportEventJob(eventType: eventType))
~^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Services/BeamsTokenProvider.swift:4:2: error: Objective-C interoperability is disabled
@objc public final class BeamsTokenProvider: NSObject, TokenProvider {
~^~~~~
/host/spi-builder-workspace/Sources/Services/BeamsTokenProvider.swift:16:6: error: Objective-C interoperability is disabled
@objc public init(authURL: String, getAuthData: @escaping () -> (AuthData)) {
~^~~~~
/host/spi-builder-workspace/Sources/Services/BeamsTokenProvider.swift:30:26: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
let urlSession = URLSession(configuration: .ephemeral)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Services/BeamsTokenProvider.swift:30:53: error: cannot infer contextual base in reference to member 'ephemeral'
let urlSession = URLSession(configuration: .ephemeral)
~^~~~~~~~~
/host/spi-builder-workspace/Sources/Services/BeamsTokenProvider.swift:43:26: error: cannot find 'URLRequest' in scope
var urlRequest = URLRequest(url: url)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Services/BeamsTokenProvider.swift:56:46: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
let statusCode = httpURLResponse.statusCode
~~~~~~~~~~~~~~~ ^~~~~~~~~~
[20/29] Compiling PushNotifications Metadata.swift
/host/spi-builder-workspace/Sources/Models/Metadata.swift:17:5: error: missing return in closure expected to return 'Metadata'
}()
^
[21/29] Compiling PushNotifications MultipleInvalidInterestsError.swift
/host/spi-builder-workspace/Sources/Models/Metadata.swift:17:5: error: missing return in closure expected to return 'Metadata'
}()
^
[22/29] Compiling PushNotifications PersistenceConstants.swift
/host/spi-builder-workspace/Sources/Models/Metadata.swift:17:5: error: missing return in closure expected to return 'Metadata'
}()
^
[23/29] Compiling PushNotifications PublishId.swift
/host/spi-builder-workspace/Sources/Models/Metadata.swift:17:5: error: missing return in closure expected to return 'Metadata'
}()
^
[24/29] Compiling PushNotifications DeviceStateStore.swift
/host/spi-builder-workspace/Sources/Services/DeviceStateStore.swift:206:24: error: value of type 'UserDefaults' has no member 'value'
return service.value(forKey: PersistenceConstants.PersistenceService.hashKey) as? String ?? ""
~~~~~~~ ^~~~~
/host/spi-builder-workspace/Sources/Services/EventTypeHandler.swift:147:31: error: cannot find 'isForeground' in scope
if hasCustomerData && isForeground {
^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:4:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
let session: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:6:19: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
init(session: URLSession) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:225:44: error: cannot find type 'URLRequest' in scope
private func networkRequest(_ request: URLRequest,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:226:42: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
session: URLSession,
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:283:85: error: cannot find type 'URLRequest' in scope
private func setRequest(url: URL, httpMethod: HTTPMethod, body: Data? = nil) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:28:66: error: cannot infer contextual base in reference to member 'POST'
let request = self.setRequest(url: url, httpMethod: .POST, body: body)
~^~~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:54:66: error: cannot infer contextual base in reference to member 'POST'
let request = self.setRequest(url: url, httpMethod: .POST)
~^~~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:79:66: error: cannot infer contextual base in reference to member 'PUT'
let request = self.setRequest(url: url, httpMethod: .PUT, body: body)
~^~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:102:66: error: cannot infer contextual base in reference to member 'DELETE'
let request = self.setRequest(url: url, httpMethod: .DELETE)
~^~~~~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:127:66: error: cannot infer contextual base in reference to member 'POST'
let request = self.setRequest(url: url, httpMethod: .POST, body: body)
~^~~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:151:66: error: cannot infer contextual base in reference to member 'PUT'
let request = self.setRequest(url: url, httpMethod: .PUT, body: body)
~^~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:172:66: error: cannot infer contextual base in reference to member 'PUT'
var request = self.setRequest(url: url, httpMethod: .PUT)
~^~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:193:66: error: cannot infer contextual base in reference to member 'DELETE'
let request = self.setRequest(url: url, httpMethod: .DELETE)
~^~~~~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:213:66: error: cannot infer contextual base in reference to member 'GET'
let request = self.setRequest(url: url, httpMethod: .GET)
~^~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:231:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
session.dataTask(with: request, completionHandler: { data, response, error in
~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:247:46: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
let statusCode = httpURLResponse.statusCode
~~~~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:284:23: error: cannot find 'URLRequest' in scope
var request = URLRequest(url: url)
^~~~~~~~~~
[25/29] Compiling PushNotifications EventTypeHandler.swift
/host/spi-builder-workspace/Sources/Services/DeviceStateStore.swift:206:24: error: value of type 'UserDefaults' has no member 'value'
return service.value(forKey: PersistenceConstants.PersistenceService.hashKey) as? String ?? ""
~~~~~~~ ^~~~~
/host/spi-builder-workspace/Sources/Services/EventTypeHandler.swift:147:31: error: cannot find 'isForeground' in scope
if hasCustomerData && isForeground {
^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:4:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
let session: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:6:19: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
init(session: URLSession) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:225:44: error: cannot find type 'URLRequest' in scope
private func networkRequest(_ request: URLRequest,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:226:42: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
session: URLSession,
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:283:85: error: cannot find type 'URLRequest' in scope
private func setRequest(url: URL, httpMethod: HTTPMethod, body: Data? = nil) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:28:66: error: cannot infer contextual base in reference to member 'POST'
let request = self.setRequest(url: url, httpMethod: .POST, body: body)
~^~~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:54:66: error: cannot infer contextual base in reference to member 'POST'
let request = self.setRequest(url: url, httpMethod: .POST)
~^~~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:79:66: error: cannot infer contextual base in reference to member 'PUT'
let request = self.setRequest(url: url, httpMethod: .PUT, body: body)
~^~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:102:66: error: cannot infer contextual base in reference to member 'DELETE'
let request = self.setRequest(url: url, httpMethod: .DELETE)
~^~~~~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:127:66: error: cannot infer contextual base in reference to member 'POST'
let request = self.setRequest(url: url, httpMethod: .POST, body: body)
~^~~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:151:66: error: cannot infer contextual base in reference to member 'PUT'
let request = self.setRequest(url: url, httpMethod: .PUT, body: body)
~^~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:172:66: error: cannot infer contextual base in reference to member 'PUT'
var request = self.setRequest(url: url, httpMethod: .PUT)
~^~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:193:66: error: cannot infer contextual base in reference to member 'DELETE'
let request = self.setRequest(url: url, httpMethod: .DELETE)
~^~~~~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:213:66: error: cannot infer contextual base in reference to member 'GET'
let request = self.setRequest(url: url, httpMethod: .GET)
~^~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:231:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
session.dataTask(with: request, completionHandler: { data, response, error in
~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:247:46: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
let statusCode = httpURLResponse.statusCode
~~~~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:284:23: error: cannot find 'URLRequest' in scope
var request = URLRequest(url: url)
^~~~~~~~~~
[26/29] Compiling PushNotifications NetworkService.swift
/host/spi-builder-workspace/Sources/Services/DeviceStateStore.swift:206:24: error: value of type 'UserDefaults' has no member 'value'
return service.value(forKey: PersistenceConstants.PersistenceService.hashKey) as? String ?? ""
~~~~~~~ ^~~~~
/host/spi-builder-workspace/Sources/Services/EventTypeHandler.swift:147:31: error: cannot find 'isForeground' in scope
if hasCustomerData && isForeground {
^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:4:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
let session: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:6:19: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
init(session: URLSession) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:225:44: error: cannot find type 'URLRequest' in scope
private func networkRequest(_ request: URLRequest,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:226:42: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
session: URLSession,
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:283:85: error: cannot find type 'URLRequest' in scope
private func setRequest(url: URL, httpMethod: HTTPMethod, body: Data? = nil) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:28:66: error: cannot infer contextual base in reference to member 'POST'
let request = self.setRequest(url: url, httpMethod: .POST, body: body)
~^~~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:54:66: error: cannot infer contextual base in reference to member 'POST'
let request = self.setRequest(url: url, httpMethod: .POST)
~^~~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:79:66: error: cannot infer contextual base in reference to member 'PUT'
let request = self.setRequest(url: url, httpMethod: .PUT, body: body)
~^~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:102:66: error: cannot infer contextual base in reference to member 'DELETE'
let request = self.setRequest(url: url, httpMethod: .DELETE)
~^~~~~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:127:66: error: cannot infer contextual base in reference to member 'POST'
let request = self.setRequest(url: url, httpMethod: .POST, body: body)
~^~~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:151:66: error: cannot infer contextual base in reference to member 'PUT'
let request = self.setRequest(url: url, httpMethod: .PUT, body: body)
~^~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:172:66: error: cannot infer contextual base in reference to member 'PUT'
var request = self.setRequest(url: url, httpMethod: .PUT)
~^~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:193:66: error: cannot infer contextual base in reference to member 'DELETE'
let request = self.setRequest(url: url, httpMethod: .DELETE)
~^~~~~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:213:66: error: cannot infer contextual base in reference to member 'GET'
let request = self.setRequest(url: url, httpMethod: .GET)
~^~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:231:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
session.dataTask(with: request, completionHandler: { data, response, error in
~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:247:46: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
let statusCode = httpURLResponse.statusCode
~~~~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Services/NetworkService.swift:284:23: error: cannot find 'URLRequest' in scope
var request = URLRequest(url: url)
^~~~~~~~~~
[27/29] Compiling PushNotifications ServerSyncEventHandler.swift
/host/spi-builder-workspace/Sources/Services/ServerSyncProcessHandler.swift:47:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
let session = URLSession(configuration: .ephemeral)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Services/ServerSyncProcessHandler.swift:47:50: error: cannot infer contextual base in reference to member 'ephemeral'
let session = URLSession(configuration: .ephemeral)
~^~~~~~~~~
[28/29] Compiling PushNotifications ServerSyncJobStore.swift
/host/spi-builder-workspace/Sources/Services/ServerSyncProcessHandler.swift:47:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
let session = URLSession(configuration: .ephemeral)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Services/ServerSyncProcessHandler.swift:47:50: error: cannot infer contextual base in reference to member 'ephemeral'
let session = URLSession(configuration: .ephemeral)
~^~~~~~~~~
[29/29] Compiling PushNotifications ServerSyncProcessHandler.swift
/host/spi-builder-workspace/Sources/Services/ServerSyncProcessHandler.swift:47:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
let session = URLSession(configuration: .ephemeral)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Services/ServerSyncProcessHandler.swift:47:50: error: cannot infer contextual base in reference to member 'ephemeral'
let session = URLSession(configuration: .ephemeral)
~^~~~~~~~~
error: fatalError
BUILD FAILURE 5.10 linux