Build Information
Successful build of EsimplifiedSDK, reference 2.1.0 (44e3e6), with Swift 6.1 for macOS (SPM) on 3 Oct 2026 04:00:25 UTC.
Swift 6 data race errors: 0
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCapturesBuild Log
23 | }
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/OrderResponse.swift:33:15: note: consider making struct 'Order' conform to the 'Sendable' protocol
31 | // MARK: Order Model
32 |
33 | public struct Order: Codable, Identifiable {
| `- note: consider making struct 'Order' conform to the 'Sendable' protocol
34 | public var id: String { orderUUID }
35 | public let user: String
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/OrdersRepositoryImpl.swift:27:61: warning: non-sendable result type 'OrdersResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
25 | parameters["limit"] = "\(Self.unpagedLimit)"
26 | do {
27 | let response: OrdersResponse = try await client.fetch(
| `- warning: non-sendable result type 'OrdersResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
28 | endpoint: .customerOrders,
29 | method: .GET,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/OrderResponse.swift:12:15: note: consider making struct 'OrdersResponse' conform to the 'Sendable' protocol
10 | // MARK: Orders Response
11 |
12 | public struct OrdersResponse: Codable {
| `- note: consider making struct 'OrdersResponse' conform to the 'Sendable' protocol
13 | public let count: Int
14 | public let next: String?
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/OrdersRepositoryImpl.swift:37:48: warning: non-sendable result type '[Order]?' cannot be sent from actor-isolated context in call to instance method 'getExpired'; this is an error in the Swift 6 language mode
35 | } catch {
36 | let failure = error as? SdkError ?? .unknown(error)
37 | let expired: [Order] = await cache.getExpired(cacheKey) ?? []
| `- warning: non-sendable result type '[Order]?' cannot be sent from actor-isolated context in call to instance method 'getExpired'; this is an error in the Swift 6 language mode
38 | return RepositoryResult(value: expired, isStale: !expired.isEmpty, failure: failure)
39 | }
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/OrderResponse.swift:33:15: note: consider making struct 'Order' conform to the 'Sendable' protocol
31 | // MARK: Order Model
32 |
33 | public struct Order: Codable, Identifiable {
| `- note: consider making struct 'Order' conform to the 'Sendable' protocol
34 | public var id: String { orderUUID }
35 | public let user: String
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/OrdersRepositoryImpl.swift:52:64: warning: non-sendable result type 'OrdersPage?' cannot be sent from actor-isolated context in call to instance method 'get'; this is an error in the Swift 6 language mode
50 | ) async -> RepositoryResult<OrdersPage> {
51 | let cacheKey = "orders_page_\(withLoyaltyPoints)_\(limit)_\(offset)"
52 | if !forceRefresh, let cached: OrdersPage = await cache.get(cacheKey) {
| `- warning: non-sendable result type 'OrdersPage?' cannot be sent from actor-isolated context in call to instance method 'get'; this is an error in the Swift 6 language mode
53 | return RepositoryResult(value: cached)
54 | }
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/OrdersRepositoryType.swift:90:15: note: consider making struct 'OrdersPage' conform to the 'Sendable' protocol
88 | // MARK: - Orders Page
89 |
90 | public struct OrdersPage: Codable {
| `- note: consider making struct 'OrdersPage' conform to the 'Sendable' protocol
91 |
92 | public let orders: [Order]
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/OrdersRepositoryImpl.swift:59:61: warning: non-sendable result type 'OrdersResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
57 | parameters["offset"] = "\(offset)"
58 | do {
59 | let response: OrdersResponse = try await client.fetch(
| `- warning: non-sendable result type 'OrdersResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
60 | endpoint: .customerOrders,
61 | method: .GET,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/OrderResponse.swift:12:15: note: consider making struct 'OrdersResponse' conform to the 'Sendable' protocol
10 | // MARK: Orders Response
11 |
12 | public struct OrdersResponse: Codable {
| `- note: consider making struct 'OrdersResponse' conform to the 'Sendable' protocol
13 | public let count: Int
14 | public let next: String?
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/OrdersRepositoryImpl.swift:73:52: warning: non-sendable result type 'OrdersPage?' cannot be sent from actor-isolated context in call to instance method 'getExpired'; this is an error in the Swift 6 language mode
71 | } catch {
72 | let failure = error as? SdkError ?? .unknown(error)
73 | let expired: OrdersPage? = await cache.getExpired(cacheKey)
| `- warning: non-sendable result type 'OrdersPage?' cannot be sent from actor-isolated context in call to instance method 'getExpired'; this is an error in the Swift 6 language mode
74 | let fallback = expired ?? OrdersPage(orders: [], totalCount: 0, hasMore: false)
75 | return RepositoryResult(value: fallback, isStale: expired != nil, failure: failure)
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/OrdersRepositoryType.swift:90:15: note: consider making struct 'OrdersPage' conform to the 'Sendable' protocol
88 | // MARK: - Orders Page
89 |
90 | public struct OrdersPage: Codable {
| `- note: consider making struct 'OrdersPage' conform to the 'Sendable' protocol
91 |
92 | public let orders: [Order]
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/OrdersRepositoryImpl.swift:89:65: warning: non-sendable result type 'OrderDetail?' cannot be sent from actor-isolated context in call to instance method 'get'; this is an error in the Swift 6 language mode
87 | func fetchOrder(orderUUID: String, forceRefresh: Bool = false, cacheTTL: TimeInterval = 300) async throws -> OrderDetail {
88 | let cacheKey = "order_\(orderUUID)"
89 | if !forceRefresh, let cached: OrderDetail = await cache.get(cacheKey) {
| `- warning: non-sendable result type 'OrderDetail?' cannot be sent from actor-isolated context in call to instance method 'get'; this is an error in the Swift 6 language mode
90 | return cached
91 | }
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/OrderDetail.swift:12:15: note: consider making struct 'OrderDetail' conform to the 'Sendable' protocol
10 | // MARK: Order Detail Model
11 |
12 | public struct OrderDetail: Codable {
| `- note: consider making struct 'OrderDetail' conform to the 'Sendable' protocol
13 | public let iccid: String?
14 | public let qrCode: String?
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/OrdersRepositoryImpl.swift:100:59: warning: non-sendable result type 'OrderDetail' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
98 | for attempt in 1...maxRetries {
99 | do {
100 | let order: OrderDetail = try await client.fetch(
| `- warning: non-sendable result type 'OrderDetail' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
101 | endpoint: .customerOrders,
102 | method: .GET,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/OrderDetail.swift:12:15: note: consider making struct 'OrderDetail' conform to the 'Sendable' protocol
10 | // MARK: Order Detail Model
11 |
12 | public struct OrderDetail: Codable {
| `- note: consider making struct 'OrderDetail' conform to the 'Sendable' protocol
13 | public let iccid: String?
14 | public let qrCode: String?
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/OrdersRepositoryImpl.swift:125:60: warning: non-sendable result type 'TrackedOrderResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
123 | func trackedOrder(orderUUID: String) async {
124 | do {
125 | let _: TrackedOrderResponse = try await client.fetch(
| `- warning: non-sendable result type 'TrackedOrderResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
126 | endpoint: .customerOrders,
127 | method: .POST,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/TrackedOrderResponse.swift:12:15: note: consider making struct 'TrackedOrderResponse' conform to the 'Sendable' protocol
10 | // MARK: Tracked Order Response
11 |
12 | public struct TrackedOrderResponse: Codable {
| `- note: consider making struct 'TrackedOrderResponse' conform to the 'Sendable' protocol
13 | public var detail: String
14 | public var conversionTracked: Bool
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/PackagesRepositoryImpl.swift:26:69: warning: non-sendable result type 'PackageResponse?' cannot be sent from actor-isolated context in call to instance method 'get'; this is an error in the Swift 6 language mode
24 | ) async -> RepositoryResult<PackageResponse?> {
25 | let cacheKey = "packages_\(countryCode ?? "")_\(countryNameSlug)"
26 | if !forceRefresh, let cached: PackageResponse = await cache.get(cacheKey) {
| `- warning: non-sendable result type 'PackageResponse?' cannot be sent from actor-isolated context in call to instance method 'get'; this is an error in the Swift 6 language mode
27 | return RepositoryResult(value: cached)
28 | }
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/PackageResponse.swift:12:15: note: consider making struct 'PackageResponse' conform to the 'Sendable' protocol
10 | // MARK: Package Response
11 |
12 | public struct PackageResponse: Codable {
| `- note: consider making struct 'PackageResponse' conform to the 'Sendable' protocol
13 | public let count: Int
14 | public let next: String?
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/PackagesRepositoryImpl.swift:35:62: warning: non-sendable result type 'PackageResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
33 | ]
34 | do {
35 | let response: PackageResponse = try await client.fetch(
| `- warning: non-sendable result type 'PackageResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
36 | endpoint: .packages,
37 | method: .GET,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/PackageResponse.swift:12:15: note: consider making struct 'PackageResponse' conform to the 'Sendable' protocol
10 | // MARK: Package Response
11 |
12 | public struct PackageResponse: Codable {
| `- note: consider making struct 'PackageResponse' conform to the 'Sendable' protocol
13 | public let count: Int
14 | public let next: String?
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/PackagesRepositoryImpl.swift:45:57: warning: non-sendable result type 'PackageResponse?' cannot be sent from actor-isolated context in call to instance method 'getExpired'; this is an error in the Swift 6 language mode
43 | } catch {
44 | let failure = error as? SdkError ?? .unknown(error)
45 | let expired: PackageResponse? = await cache.getExpired(cacheKey)
| `- warning: non-sendable result type 'PackageResponse?' cannot be sent from actor-isolated context in call to instance method 'getExpired'; this is an error in the Swift 6 language mode
46 | return RepositoryResult(value: expired, isStale: expired != nil, failure: failure)
47 | }
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/PackageResponse.swift:12:15: note: consider making struct 'PackageResponse' conform to the 'Sendable' protocol
10 | // MARK: Package Response
11 |
12 | public struct PackageResponse: Codable {
| `- note: consider making struct 'PackageResponse' conform to the 'Sendable' protocol
13 | public let count: Int
14 | public let next: String?
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/PackagesRepositoryImpl.swift:66:63: warning: non-sendable result type '[Package]?' cannot be sent from actor-isolated context in call to instance method 'get'; this is an error in the Swift 6 language mode
64 | func fetchPackagesForTopUpEsimResult(iccid: String, forceRefresh: Bool = false, cacheTTL: TimeInterval = 3600) async -> RepositoryResult<[Package]> {
65 | let cacheKey = "packages_topup_\(iccid)"
66 | if !forceRefresh, let cached: [Package] = await cache.get(cacheKey) {
| `- warning: non-sendable result type '[Package]?' cannot be sent from actor-isolated context in call to instance method 'get'; this is an error in the Swift 6 language mode
67 | return RepositoryResult(value: cached)
68 | }
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/PackageResponse.swift:36:15: note: consider making struct 'Package' conform to the 'Sendable' protocol
34 | // MARK: Package Model
35 |
36 | public struct Package: Codable, Hashable {
| `- note: consider making struct 'Package' conform to the 'Sendable' protocol
37 | public let name: String
38 | public let price: String
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/PackagesRepositoryImpl.swift:71:62: warning: non-sendable result type 'PackageResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
69 | let parameters = ["reverse_order": "true"]
70 | do {
71 | let response: PackageResponse = try await client.fetch(
| `- warning: non-sendable result type 'PackageResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
72 | endpoint: .topUpEsim,
73 | method: .GET,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/PackageResponse.swift:12:15: note: consider making struct 'PackageResponse' conform to the 'Sendable' protocol
10 | // MARK: Package Response
11 |
12 | public struct PackageResponse: Codable {
| `- note: consider making struct 'PackageResponse' conform to the 'Sendable' protocol
13 | public let count: Int
14 | public let next: String?
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/PackagesRepositoryImpl.swift:82:50: warning: non-sendable result type '[Package]?' cannot be sent from actor-isolated context in call to instance method 'getExpired'; this is an error in the Swift 6 language mode
80 | } catch {
81 | let failure = error as? SdkError ?? .unknown(error)
82 | let expired: [Package] = await cache.getExpired(cacheKey) ?? []
| `- warning: non-sendable result type '[Package]?' cannot be sent from actor-isolated context in call to instance method 'getExpired'; this is an error in the Swift 6 language mode
83 | return RepositoryResult(value: expired, isStale: !expired.isEmpty, failure: failure)
84 | }
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/PackageResponse.swift:36:15: note: consider making struct 'Package' conform to the 'Sendable' protocol
34 | // MARK: Package Model
35 |
36 | public struct Package: Codable, Hashable {
| `- note: consider making struct 'Package' conform to the 'Sendable' protocol
37 | public let name: String
38 | public let price: String
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/PackagesRepositoryImpl.swift:93:72: warning: non-sendable result type 'CheckStockResponse?' cannot be sent from actor-isolated context in call to instance method 'get'; this is an error in the Swift 6 language mode
91 | func fetchCheckStockForPackage(packageTypeId: Int, forceRefresh: Bool = false, cacheTTL: TimeInterval = 3600) async -> CheckStockResponse? {
92 | let cacheKey = "check_stock_\(packageTypeId)"
93 | if !forceRefresh, let cached: CheckStockResponse = await cache.get(cacheKey) {
| `- warning: non-sendable result type 'CheckStockResponse?' cannot be sent from actor-isolated context in call to instance method 'get'; this is an error in the Swift 6 language mode
94 | return cached
95 | }
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/CheckStockResponse.swift:12:15: note: consider making struct 'CheckStockResponse' conform to the 'Sendable' protocol
10 | // MARK: Check Stock Response
11 |
12 | public struct CheckStockResponse: Codable {
| `- note: consider making struct 'CheckStockResponse' conform to the 'Sendable' protocol
13 | public let stock: Bool
14 | public let package: Package
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/PackagesRepositoryImpl.swift:98:65: warning: non-sendable result type 'CheckStockResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
96 | let parameters = ["package_type_id": String(packageTypeId)]
97 | do {
98 | let response: CheckStockResponse = try await client.fetch(
| `- warning: non-sendable result type 'CheckStockResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
99 | endpoint: .checkStock,
100 | method: .GET,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/CheckStockResponse.swift:12:15: note: consider making struct 'CheckStockResponse' conform to the 'Sendable' protocol
10 | // MARK: Check Stock Response
11 |
12 | public struct CheckStockResponse: Codable {
| `- note: consider making struct 'CheckStockResponse' conform to the 'Sendable' protocol
13 | public let stock: Bool
14 | public let package: Package
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/PackagesRepositoryImpl.swift:107:32: warning: non-sendable result type 'CheckStockResponse?' cannot be sent from actor-isolated context in call to instance method 'getExpired'; this is an error in the Swift 6 language mode
105 | return response
106 | } catch {
107 | return await cache.getExpired(cacheKey)
| `- warning: non-sendable result type 'CheckStockResponse?' cannot be sent from actor-isolated context in call to instance method 'getExpired'; this is an error in the Swift 6 language mode
108 | }
109 | }
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/CheckStockResponse.swift:12:15: note: consider making struct 'CheckStockResponse' conform to the 'Sendable' protocol
10 | // MARK: Check Stock Response
11 |
12 | public struct CheckStockResponse: Codable {
| `- note: consider making struct 'CheckStockResponse' conform to the 'Sendable' protocol
13 | public let stock: Bool
14 | public let package: Package
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/PaymentsRepositoryImpl.swift:36:58: warning: non-sendable result type 'PaymentResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
34 | loyalty_points_amount: loyaltyPointsAmount
35 | )
36 | let response: PaymentResponse = try await client.fetch(
| `- warning: non-sendable result type 'PaymentResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
37 | endpoint: .payments,
38 | method: .POST,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/PaymentResponse.swift:12:15: note: consider making struct 'PaymentResponse' conform to the 'Sendable' protocol
10 | // MARK: Payment Response
11 |
12 | public struct PaymentResponse: Codable {
| `- note: consider making struct 'PaymentResponse' conform to the 'Sendable' protocol
13 | public let detail: String
14 | public let paymentData: PaymentData
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/PaymentsRepositoryImpl.swift:49:33: warning: non-sendable result type 'KredsQuoteResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
47 | loyalty_points_amount: loyaltyPointsAmount
48 | )
49 | return try await client.fetch(
| `- warning: non-sendable result type 'KredsQuoteResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
50 | endpoint: .paymentsQuote,
51 | method: .POST,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/PaymentResponse.swift:99:15: note: consider making struct 'KredsQuoteResponse' conform to the 'Sendable' protocol
97 | // MARK: Kreds Quote Response
98 |
99 | public struct KredsQuoteResponse: Codable {
| `- note: consider making struct 'KredsQuoteResponse' conform to the 'Sendable' protocol
100 | public let packageTypeID: Int?
101 | public let currency: Currency?
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/PhoneVerificationRepositoryImpl.swift:18:26: warning: non-sendable result type 'PhoneOtpSendResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
16 |
17 | func sendCode(phoneNumber: String, channel: PhoneOtpChannel) async throws -> PhoneOtpSendResponse {
18 | try await client.fetch(
| `- warning: non-sendable result type 'PhoneOtpSendResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
19 | endpoint: .phoneOtp,
20 | method: .POST,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/PhoneVerificationResponse.swift:35:15: note: consider making struct 'PhoneOtpSendResponse' conform to the 'Sendable' protocol
33 | // MARK: Phone OTP Send Response
34 |
35 | public struct PhoneOtpSendResponse: Codable {
| `- note: consider making struct 'PhoneOtpSendResponse' conform to the 'Sendable' protocol
36 | public let phoneNumber: String
37 | public let channel: PhoneOtpChannel
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/PhoneVerificationRepositoryImpl.swift:26:26: warning: non-sendable result type 'PhoneOtpVerifyResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
24 |
25 | func verifyCode(_ code: String) async throws -> PhoneOtpVerifyResponse {
26 | try await client.fetch(
| `- warning: non-sendable result type 'PhoneOtpVerifyResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
27 | endpoint: .phoneOtpVerify,
28 | method: .POST,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/PhoneVerificationResponse.swift:52:15: note: consider making struct 'PhoneOtpVerifyResponse' conform to the 'Sendable' protocol
50 | // MARK: Phone OTP Verify Response
51 |
52 | public struct PhoneOtpVerifyResponse: Codable {
| `- note: consider making struct 'PhoneOtpVerifyResponse' conform to the 'Sendable' protocol
53 | public let phoneNumber: String
54 | public let phoneVerified: Bool
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/PromoCodeRepositoryImpl.swift:18:26: warning: non-sendable result type 'PromoCodeResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
16 |
17 | func fetchPromocode() async throws -> PromoCodeResponse {
18 | try await client.fetch(
| `- warning: non-sendable result type 'PromoCodeResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
19 | endpoint: .promoCode,
20 | method: .GET
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/PromocodeResponse.swift:12:15: note: consider making struct 'PromoCodeResponse' conform to the 'Sendable' protocol
10 | // MARK: Promo Code Response
11 |
12 | public struct PromoCodeResponse: Codable, Hashable {
| `- note: consider making struct 'PromoCodeResponse' conform to the 'Sendable' protocol
13 | public var isValid: Bool
14 | public let discountCode: String
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/PromoCodeRepositoryImpl.swift:25:26: warning: non-sendable result type 'PromoCodeResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
23 |
24 | func applyPromocode(code: String) async throws -> PromoCodeResponse {
25 | try await client.fetch(
| `- warning: non-sendable result type 'PromoCodeResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
26 | endpoint: .promoCode,
27 | method: .POST,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/PromocodeResponse.swift:12:15: note: consider making struct 'PromoCodeResponse' conform to the 'Sendable' protocol
10 | // MARK: Promo Code Response
11 |
12 | public struct PromoCodeResponse: Codable, Hashable {
| `- note: consider making struct 'PromoCodeResponse' conform to the 'Sendable' protocol
13 | public var isValid: Bool
14 | public let discountCode: String
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/PromoCodeRepositoryImpl.swift:33:26: warning: non-sendable result type 'PromoCodeResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
31 |
32 | func deletePromocode(code: String) async throws -> PromoCodeResponse {
33 | try await client.fetch(
| `- warning: non-sendable result type 'PromoCodeResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
34 | endpoint: .promoCode,
35 | method: .DELETE
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/PromocodeResponse.swift:12:15: note: consider making struct 'PromoCodeResponse' conform to the 'Sendable' protocol
10 | // MARK: Promo Code Response
11 |
12 | public struct PromoCodeResponse: Codable, Hashable {
| `- note: consider making struct 'PromoCodeResponse' conform to the 'Sendable' protocol
13 | public var isValid: Bool
14 | public let discountCode: String
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/StoreReviewRepositoryImpl.swift:21:58: warning: non-sendable result type 'StoreReviewResponse?' cannot be sent from actor-isolated context in call to instance method 'get'; this is an error in the Swift 6 language mode
19 | func fetchStoreReview(cacheTTL: TimeInterval = 86400) async throws -> StoreReviewResponse {
20 | let cacheKey = "store_review"
21 | if let cached: StoreReviewResponse = await cache.get(cacheKey) {
| `- warning: non-sendable result type 'StoreReviewResponse?' cannot be sent from actor-isolated context in call to instance method 'get'; this is an error in the Swift 6 language mode
22 | return cached
23 | }
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/StoreReviewResponse.swift:12:15: note: consider making struct 'StoreReviewResponse' conform to the 'Sendable' protocol
10 | // MARK: Store Review Response
11 |
12 | public struct StoreReviewResponse: Codable {
| `- note: consider making struct 'StoreReviewResponse' conform to the 'Sendable' protocol
13 | public let reviews: [Review]?
14 | public let stats: Stats?
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/StoreReviewRepositoryImpl.swift:25:62: warning: non-sendable result type 'StoreReviewResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
23 | }
24 | let parameters = ["type": "store_review"]
25 | let response: StoreReviewResponse = try await client.fetch(
| `- warning: non-sendable result type 'StoreReviewResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
26 | endpoint: .storeReview,
27 | method: .GET,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/StoreReviewResponse.swift:12:15: note: consider making struct 'StoreReviewResponse' conform to the 'Sendable' protocol
10 | // MARK: Store Review Response
11 |
12 | public struct StoreReviewResponse: Codable {
| `- note: consider making struct 'StoreReviewResponse' conform to the 'Sendable' protocol
13 | public let reviews: [Review]?
14 | public let stats: Stats?
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/UserRepositoryImpl.swift:18:26: warning: non-sendable result type 'User' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
16 |
17 | func fetchProfile() async throws -> User {
18 | try await client.fetch(
| `- warning: non-sendable result type 'User' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
19 | endpoint: .customer,
20 | method: .GET
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/UserResponse.swift:51:15: note: consider making struct 'User' conform to the 'Sendable' protocol
49 | // MARK: User Response
50 |
51 | public struct User: Codable, Equatable {
| `- note: consider making struct 'User' conform to the 'Sendable' protocol
52 | public var email: String? = ""
53 | public var phoneNumber: String? = ""
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/UserRepositoryImpl.swift:25:26: warning: non-sendable result type 'UpdateCustomerResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
23 |
24 | func updateProfile(_ request: UpdateCustomerRequest) async throws -> UpdateCustomerResponse {
25 | try await client.fetch(
| `- warning: non-sendable result type 'UpdateCustomerResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
26 | endpoint: .updateCustomer,
27 | method: .PATCH,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/UpdateCustomerResponse.swift:12:15: note: consider making struct 'UpdateCustomerResponse' conform to the 'Sendable' protocol
10 | // MARK: Update Customer Response
11 |
12 | public struct UpdateCustomerResponse: Codable {
| `- note: consider making struct 'UpdateCustomerResponse' conform to the 'Sendable' protocol
13 | public var updated: Bool = false
14 | public var customer: User? = User()
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/UserRepositoryImpl.swift:33:26: warning: non-sendable result type 'User' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
31 |
32 | func updatePreferences(_ request: UpdateCustomerPreferencesRequest) async throws -> User {
33 | try await client.fetch(
| `- warning: non-sendable result type 'User' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
34 | endpoint: .customerPreferences,
35 | method: .PATCH,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/UserResponse.swift:51:15: note: consider making struct 'User' conform to the 'Sendable' protocol
49 | // MARK: User Response
50 |
51 | public struct User: Codable, Equatable {
| `- note: consider making struct 'User' conform to the 'Sendable' protocol
52 | public var email: String? = ""
53 | public var phoneNumber: String? = ""
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/UserRepositoryImpl.swift:41:26: warning: non-sendable result type 'UserLocationResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
39 |
40 | func fetchUserLocation() async throws -> UserLocationResponse {
41 | try await client.fetch(
| `- warning: non-sendable result type 'UserLocationResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
42 | endpoint: .userLocation,
43 | method: .GET,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/UserLocationResponse.swift:12:15: note: consider making struct 'UserLocationResponse' conform to the 'Sendable' protocol
10 | // MARK: User Location Response
11 |
12 | public struct UserLocationResponse: Codable {
| `- note: consider making struct 'UserLocationResponse' conform to the 'Sendable' protocol
13 | public var location: LocationDetails?
14 |
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/VisaRewardsRepositoryImpl.swift:19:33: warning: non-sendable result type 'VisaRewardResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
17 | func fetchVisaReward(isEU: Bool) async throws -> VisaRewardResponse {
18 | let body: [String: String]? = isEU ? ["vendor": "eu"] : nil
19 | return try await client.fetch(
| `- warning: non-sendable result type 'VisaRewardResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
20 | endpoint: .visaIframe,
21 | method: .POST,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/VisaRewardResponse.swift:12:15: note: consider making struct 'VisaRewardResponse' conform to the 'Sendable' protocol
10 | // MARK: Visa Reward Response
11 |
12 | public struct VisaRewardResponse: Codable, Hashable {
| `- note: consider making struct 'VisaRewardResponse' conform to the 'Sendable' protocol
13 | public var created: Bool? = false
14 | public var token: String = ""
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/VisaRewardsRepositoryImpl.swift:27:26: warning: non-sendable result type 'VisaValidateResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
25 |
26 | func fetchVisaValidation(token: String) async throws -> VisaValidateResponse {
27 | try await client.fetch(
| `- warning: non-sendable result type 'VisaValidateResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
28 | endpoint: .validateVisa,
29 | method: .GET,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/VisaValidateResponse.swift:12:15: note: consider making struct 'VisaValidateResponse' conform to the 'Sendable' protocol
10 | // MARK: Visa Validate Response
11 |
12 | public struct VisaValidateResponse: Codable, Hashable {
| `- note: consider making struct 'VisaValidateResponse' conform to the 'Sendable' protocol
13 | public var eligible: Bool = false
14 | public var usedCount: Int? = 0
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/VisaRewardsRepositoryImpl.swift:35:26: warning: non-sendable result type 'RedeemVisaResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
33 |
34 | func redeemVisaReward(token: String, body: [String: String]) async throws -> RedeemVisaResponse {
35 | try await client.fetch(
| `- warning: non-sendable result type 'RedeemVisaResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
36 | endpoint: .validateVisa,
37 | method: .PATCH,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/RedeemVisaResponse.swift:12:15: note: consider making struct 'RedeemVisaResponse' conform to the 'Sendable' protocol
10 | // MARK: Redeem Visa Response
11 |
12 | public struct RedeemVisaResponse: Codable {
| `- note: consider making struct 'RedeemVisaResponse' conform to the 'Sendable' protocol
13 | public var redeemed: Bool? = false
14 | public var detail: String? = ""
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/OrdersRepositoryImpl.swift:33:25: warning: sending 'orders' risks causing data races; this is an error in the Swift 6 language mode
31 | )
32 | let orders = response.orders
33 | await cache.set(cacheKey, value: orders, ttl: cacheTTL)
| |- warning: sending 'orders' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self.client'-isolated 'orders' to actor-isolated instance method 'set(_:value:ttl:)' risks causing data races between actor-isolated and 'self.client'-isolated uses
34 | return RepositoryResult(value: orders)
35 | } catch {
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/OrdersRepositoryImpl.swift:69:25: warning: sending 'page' risks causing data races; this is an error in the Swift 6 language mode
67 | hasMore: response.next?.isEmpty == false
68 | )
69 | await cache.set(cacheKey, value: page, ttl: cacheTTL)
| |- warning: sending 'page' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self.client'-isolated 'page' to actor-isolated instance method 'set(_:value:ttl:)' risks causing data races between actor-isolated and 'self.client'-isolated uses
70 | return RepositoryResult(value: page)
71 | } catch {
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/OrdersRepositoryImpl.swift:107:33: warning: sending 'order' risks causing data races; this is an error in the Swift 6 language mode
105 | )
106 | if order.orderStatus != "pending" || attempt == maxRetries {
107 | await cache.set(cacheKey, value: order, ttl: cacheTTL)
| |- warning: sending 'order' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'order' to actor-isolated instance method 'set(_:value:ttl:)' risks causing data races between actor-isolated and local nonisolated uses
108 | return order
| `- note: access can happen concurrently
109 | }
110 | try? await Task.sleep(for: .seconds(1))
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/PackagesRepositoryImpl.swift:41:25: warning: sending 'response' risks causing data races; this is an error in the Swift 6 language mode
39 | requiresAuth: false
40 | )
41 | await cache.set(cacheKey, value: response, ttl: cacheTTL)
| |- warning: sending 'response' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self.client'-isolated 'response' to actor-isolated instance method 'set(_:value:ttl:)' risks causing data races between actor-isolated and 'self.client'-isolated uses
42 | return RepositoryResult(value: response)
43 | } catch {
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/PackagesRepositoryImpl.swift:78:25: warning: sending 'packages' risks causing data races; this is an error in the Swift 6 language mode
76 | )
77 | let packages = response.packages
78 | await cache.set(cacheKey, value: packages, ttl: cacheTTL)
| |- warning: sending 'packages' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self.client'-isolated 'packages' to actor-isolated instance method 'set(_:value:ttl:)' risks causing data races between actor-isolated and 'self.client'-isolated uses
79 | return RepositoryResult(value: packages)
80 | } catch {
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/PackagesRepositoryImpl.swift:104:25: warning: sending 'response' risks causing data races; this is an error in the Swift 6 language mode
102 | requiresAuth: false
103 | )
104 | await cache.set(cacheKey, value: response, ttl: cacheTTL)
| |- warning: sending 'response' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'response' to actor-isolated instance method 'set(_:value:ttl:)' risks causing data races between actor-isolated and local nonisolated uses
105 | return response
| `- note: access can happen concurrently
106 | } catch {
107 | return await cache.getExpired(cacheKey)
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/PaymentsRepositoryImpl.swift:36:58: warning: sending value of non-Sendable type 'PaymentRequest' risks causing data races; this is an error in the Swift 6 language mode
34 | loyalty_points_amount: loyaltyPointsAmount
35 | )
36 | let response: PaymentResponse = try await client.fetch(
| |- warning: sending value of non-Sendable type 'PaymentRequest' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type 'PaymentRequest' to actor-isolated instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)' risks causing races in between task-isolated and actor-isolated uses
37 | endpoint: .payments,
38 | method: .POST,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/PhoneVerificationRepositoryImpl.swift:18:26: warning: sending value of non-Sendable type 'PhoneOtpSendRequest' risks causing data races; this is an error in the Swift 6 language mode
16 |
17 | func sendCode(phoneNumber: String, channel: PhoneOtpChannel) async throws -> PhoneOtpSendResponse {
18 | try await client.fetch(
| |- warning: sending value of non-Sendable type 'PhoneOtpSendRequest' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type 'PhoneOtpSendRequest' to actor-isolated instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)' risks causing races in between task-isolated and actor-isolated uses
19 | endpoint: .phoneOtp,
20 | method: .POST,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/StoreReviewRepositoryImpl.swift:31:21: warning: sending 'response' risks causing data races; this is an error in the Swift 6 language mode
29 | requiresAuth: false
30 | )
31 | await cache.set(cacheKey, value: response, ttl: cacheTTL)
| |- warning: sending 'response' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self.client'-isolated 'response' to actor-isolated instance method 'set(_:value:ttl:)' risks causing data races between actor-isolated and 'self.client'-isolated uses
32 | return response
33 | }
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/UserRepositoryImpl.swift:25:26: warning: sending value of non-Sendable type 'UpdateCustomerRequest' risks causing data races; this is an error in the Swift 6 language mode
23 |
24 | func updateProfile(_ request: UpdateCustomerRequest) async throws -> UpdateCustomerResponse {
25 | try await client.fetch(
| |- warning: sending value of non-Sendable type 'UpdateCustomerRequest' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type 'UpdateCustomerRequest' to actor-isolated instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)' risks causing races in between task-isolated and actor-isolated uses
26 | endpoint: .updateCustomer,
27 | method: .PATCH,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/UserRepositoryImpl.swift:33:26: warning: sending value of non-Sendable type 'UpdateCustomerPreferencesRequest' risks causing data races; this is an error in the Swift 6 language mode
31 |
32 | func updatePreferences(_ request: UpdateCustomerPreferencesRequest) async throws -> User {
33 | try await client.fetch(
| |- warning: sending value of non-Sendable type 'UpdateCustomerPreferencesRequest' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type 'UpdateCustomerPreferencesRequest' to actor-isolated instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)' risks causing races in between task-isolated and actor-isolated uses
34 | endpoint: .customerPreferences,
35 | method: .PATCH,
[57/95] Compiling EsimplifiedSDK UserRepositoryImpl.swift
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/OrdersRepositoryImpl.swift:21:61: warning: non-sendable result type '[Order]?' cannot be sent from actor-isolated context in call to instance method 'get'; this is an error in the Swift 6 language mode
19 | func fetchOrdersResult(forceRefresh: Bool = false, withLoyaltyPoints: Bool, cacheTTL: TimeInterval = 600) async -> RepositoryResult<[Order]> {
20 | let cacheKey = "orders_\(withLoyaltyPoints)"
21 | if !forceRefresh, let cached: [Order] = await cache.get(cacheKey) {
| `- warning: non-sendable result type '[Order]?' cannot be sent from actor-isolated context in call to instance method 'get'; this is an error in the Swift 6 language mode
22 | return RepositoryResult(value: cached)
23 | }
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/OrderResponse.swift:33:15: note: consider making struct 'Order' conform to the 'Sendable' protocol
31 | // MARK: Order Model
32 |
33 | public struct Order: Codable, Identifiable {
| `- note: consider making struct 'Order' conform to the 'Sendable' protocol
34 | public var id: String { orderUUID }
35 | public let user: String
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/OrdersRepositoryImpl.swift:27:61: warning: non-sendable result type 'OrdersResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
25 | parameters["limit"] = "\(Self.unpagedLimit)"
26 | do {
27 | let response: OrdersResponse = try await client.fetch(
| `- warning: non-sendable result type 'OrdersResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
28 | endpoint: .customerOrders,
29 | method: .GET,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/OrderResponse.swift:12:15: note: consider making struct 'OrdersResponse' conform to the 'Sendable' protocol
10 | // MARK: Orders Response
11 |
12 | public struct OrdersResponse: Codable {
| `- note: consider making struct 'OrdersResponse' conform to the 'Sendable' protocol
13 | public let count: Int
14 | public let next: String?
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/OrdersRepositoryImpl.swift:37:48: warning: non-sendable result type '[Order]?' cannot be sent from actor-isolated context in call to instance method 'getExpired'; this is an error in the Swift 6 language mode
35 | } catch {
36 | let failure = error as? SdkError ?? .unknown(error)
37 | let expired: [Order] = await cache.getExpired(cacheKey) ?? []
| `- warning: non-sendable result type '[Order]?' cannot be sent from actor-isolated context in call to instance method 'getExpired'; this is an error in the Swift 6 language mode
38 | return RepositoryResult(value: expired, isStale: !expired.isEmpty, failure: failure)
39 | }
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/OrderResponse.swift:33:15: note: consider making struct 'Order' conform to the 'Sendable' protocol
31 | // MARK: Order Model
32 |
33 | public struct Order: Codable, Identifiable {
| `- note: consider making struct 'Order' conform to the 'Sendable' protocol
34 | public var id: String { orderUUID }
35 | public let user: String
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/OrdersRepositoryImpl.swift:52:64: warning: non-sendable result type 'OrdersPage?' cannot be sent from actor-isolated context in call to instance method 'get'; this is an error in the Swift 6 language mode
50 | ) async -> RepositoryResult<OrdersPage> {
51 | let cacheKey = "orders_page_\(withLoyaltyPoints)_\(limit)_\(offset)"
52 | if !forceRefresh, let cached: OrdersPage = await cache.get(cacheKey) {
| `- warning: non-sendable result type 'OrdersPage?' cannot be sent from actor-isolated context in call to instance method 'get'; this is an error in the Swift 6 language mode
53 | return RepositoryResult(value: cached)
54 | }
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/OrdersRepositoryType.swift:90:15: note: consider making struct 'OrdersPage' conform to the 'Sendable' protocol
88 | // MARK: - Orders Page
89 |
90 | public struct OrdersPage: Codable {
| `- note: consider making struct 'OrdersPage' conform to the 'Sendable' protocol
91 |
92 | public let orders: [Order]
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/OrdersRepositoryImpl.swift:59:61: warning: non-sendable result type 'OrdersResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
57 | parameters["offset"] = "\(offset)"
58 | do {
59 | let response: OrdersResponse = try await client.fetch(
| `- warning: non-sendable result type 'OrdersResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
60 | endpoint: .customerOrders,
61 | method: .GET,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/OrderResponse.swift:12:15: note: consider making struct 'OrdersResponse' conform to the 'Sendable' protocol
10 | // MARK: Orders Response
11 |
12 | public struct OrdersResponse: Codable {
| `- note: consider making struct 'OrdersResponse' conform to the 'Sendable' protocol
13 | public let count: Int
14 | public let next: String?
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/OrdersRepositoryImpl.swift:73:52: warning: non-sendable result type 'OrdersPage?' cannot be sent from actor-isolated context in call to instance method 'getExpired'; this is an error in the Swift 6 language mode
71 | } catch {
72 | let failure = error as? SdkError ?? .unknown(error)
73 | let expired: OrdersPage? = await cache.getExpired(cacheKey)
| `- warning: non-sendable result type 'OrdersPage?' cannot be sent from actor-isolated context in call to instance method 'getExpired'; this is an error in the Swift 6 language mode
74 | let fallback = expired ?? OrdersPage(orders: [], totalCount: 0, hasMore: false)
75 | return RepositoryResult(value: fallback, isStale: expired != nil, failure: failure)
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/OrdersRepositoryType.swift:90:15: note: consider making struct 'OrdersPage' conform to the 'Sendable' protocol
88 | // MARK: - Orders Page
89 |
90 | public struct OrdersPage: Codable {
| `- note: consider making struct 'OrdersPage' conform to the 'Sendable' protocol
91 |
92 | public let orders: [Order]
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/OrdersRepositoryImpl.swift:89:65: warning: non-sendable result type 'OrderDetail?' cannot be sent from actor-isolated context in call to instance method 'get'; this is an error in the Swift 6 language mode
87 | func fetchOrder(orderUUID: String, forceRefresh: Bool = false, cacheTTL: TimeInterval = 300) async throws -> OrderDetail {
88 | let cacheKey = "order_\(orderUUID)"
89 | if !forceRefresh, let cached: OrderDetail = await cache.get(cacheKey) {
| `- warning: non-sendable result type 'OrderDetail?' cannot be sent from actor-isolated context in call to instance method 'get'; this is an error in the Swift 6 language mode
90 | return cached
91 | }
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/OrderDetail.swift:12:15: note: consider making struct 'OrderDetail' conform to the 'Sendable' protocol
10 | // MARK: Order Detail Model
11 |
12 | public struct OrderDetail: Codable {
| `- note: consider making struct 'OrderDetail' conform to the 'Sendable' protocol
13 | public let iccid: String?
14 | public let qrCode: String?
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/OrdersRepositoryImpl.swift:100:59: warning: non-sendable result type 'OrderDetail' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
98 | for attempt in 1...maxRetries {
99 | do {
100 | let order: OrderDetail = try await client.fetch(
| `- warning: non-sendable result type 'OrderDetail' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
101 | endpoint: .customerOrders,
102 | method: .GET,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/OrderDetail.swift:12:15: note: consider making struct 'OrderDetail' conform to the 'Sendable' protocol
10 | // MARK: Order Detail Model
11 |
12 | public struct OrderDetail: Codable {
| `- note: consider making struct 'OrderDetail' conform to the 'Sendable' protocol
13 | public let iccid: String?
14 | public let qrCode: String?
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/OrdersRepositoryImpl.swift:125:60: warning: non-sendable result type 'TrackedOrderResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
123 | func trackedOrder(orderUUID: String) async {
124 | do {
125 | let _: TrackedOrderResponse = try await client.fetch(
| `- warning: non-sendable result type 'TrackedOrderResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
126 | endpoint: .customerOrders,
127 | method: .POST,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/TrackedOrderResponse.swift:12:15: note: consider making struct 'TrackedOrderResponse' conform to the 'Sendable' protocol
10 | // MARK: Tracked Order Response
11 |
12 | public struct TrackedOrderResponse: Codable {
| `- note: consider making struct 'TrackedOrderResponse' conform to the 'Sendable' protocol
13 | public var detail: String
14 | public var conversionTracked: Bool
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/PackagesRepositoryImpl.swift:26:69: warning: non-sendable result type 'PackageResponse?' cannot be sent from actor-isolated context in call to instance method 'get'; this is an error in the Swift 6 language mode
24 | ) async -> RepositoryResult<PackageResponse?> {
25 | let cacheKey = "packages_\(countryCode ?? "")_\(countryNameSlug)"
26 | if !forceRefresh, let cached: PackageResponse = await cache.get(cacheKey) {
| `- warning: non-sendable result type 'PackageResponse?' cannot be sent from actor-isolated context in call to instance method 'get'; this is an error in the Swift 6 language mode
27 | return RepositoryResult(value: cached)
28 | }
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/PackageResponse.swift:12:15: note: consider making struct 'PackageResponse' conform to the 'Sendable' protocol
10 | // MARK: Package Response
11 |
12 | public struct PackageResponse: Codable {
| `- note: consider making struct 'PackageResponse' conform to the 'Sendable' protocol
13 | public let count: Int
14 | public let next: String?
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/PackagesRepositoryImpl.swift:35:62: warning: non-sendable result type 'PackageResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
33 | ]
34 | do {
35 | let response: PackageResponse = try await client.fetch(
| `- warning: non-sendable result type 'PackageResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
36 | endpoint: .packages,
37 | method: .GET,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/PackageResponse.swift:12:15: note: consider making struct 'PackageResponse' conform to the 'Sendable' protocol
10 | // MARK: Package Response
11 |
12 | public struct PackageResponse: Codable {
| `- note: consider making struct 'PackageResponse' conform to the 'Sendable' protocol
13 | public let count: Int
14 | public let next: String?
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/PackagesRepositoryImpl.swift:45:57: warning: non-sendable result type 'PackageResponse?' cannot be sent from actor-isolated context in call to instance method 'getExpired'; this is an error in the Swift 6 language mode
43 | } catch {
44 | let failure = error as? SdkError ?? .unknown(error)
45 | let expired: PackageResponse? = await cache.getExpired(cacheKey)
| `- warning: non-sendable result type 'PackageResponse?' cannot be sent from actor-isolated context in call to instance method 'getExpired'; this is an error in the Swift 6 language mode
46 | return RepositoryResult(value: expired, isStale: expired != nil, failure: failure)
47 | }
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/PackageResponse.swift:12:15: note: consider making struct 'PackageResponse' conform to the 'Sendable' protocol
10 | // MARK: Package Response
11 |
12 | public struct PackageResponse: Codable {
| `- note: consider making struct 'PackageResponse' conform to the 'Sendable' protocol
13 | public let count: Int
14 | public let next: String?
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/PackagesRepositoryImpl.swift:66:63: warning: non-sendable result type '[Package]?' cannot be sent from actor-isolated context in call to instance method 'get'; this is an error in the Swift 6 language mode
64 | func fetchPackagesForTopUpEsimResult(iccid: String, forceRefresh: Bool = false, cacheTTL: TimeInterval = 3600) async -> RepositoryResult<[Package]> {
65 | let cacheKey = "packages_topup_\(iccid)"
66 | if !forceRefresh, let cached: [Package] = await cache.get(cacheKey) {
| `- warning: non-sendable result type '[Package]?' cannot be sent from actor-isolated context in call to instance method 'get'; this is an error in the Swift 6 language mode
67 | return RepositoryResult(value: cached)
68 | }
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/PackageResponse.swift:36:15: note: consider making struct 'Package' conform to the 'Sendable' protocol
34 | // MARK: Package Model
35 |
36 | public struct Package: Codable, Hashable {
| `- note: consider making struct 'Package' conform to the 'Sendable' protocol
37 | public let name: String
38 | public let price: String
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/PackagesRepositoryImpl.swift:71:62: warning: non-sendable result type 'PackageResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
69 | let parameters = ["reverse_order": "true"]
70 | do {
71 | let response: PackageResponse = try await client.fetch(
| `- warning: non-sendable result type 'PackageResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
72 | endpoint: .topUpEsim,
73 | method: .GET,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/PackageResponse.swift:12:15: note: consider making struct 'PackageResponse' conform to the 'Sendable' protocol
10 | // MARK: Package Response
11 |
12 | public struct PackageResponse: Codable {
| `- note: consider making struct 'PackageResponse' conform to the 'Sendable' protocol
13 | public let count: Int
14 | public let next: String?
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/PackagesRepositoryImpl.swift:82:50: warning: non-sendable result type '[Package]?' cannot be sent from actor-isolated context in call to instance method 'getExpired'; this is an error in the Swift 6 language mode
80 | } catch {
81 | let failure = error as? SdkError ?? .unknown(error)
82 | let expired: [Package] = await cache.getExpired(cacheKey) ?? []
| `- warning: non-sendable result type '[Package]?' cannot be sent from actor-isolated context in call to instance method 'getExpired'; this is an error in the Swift 6 language mode
83 | return RepositoryResult(value: expired, isStale: !expired.isEmpty, failure: failure)
84 | }
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/PackageResponse.swift:36:15: note: consider making struct 'Package' conform to the 'Sendable' protocol
34 | // MARK: Package Model
35 |
36 | public struct Package: Codable, Hashable {
| `- note: consider making struct 'Package' conform to the 'Sendable' protocol
37 | public let name: String
38 | public let price: String
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/PackagesRepositoryImpl.swift:93:72: warning: non-sendable result type 'CheckStockResponse?' cannot be sent from actor-isolated context in call to instance method 'get'; this is an error in the Swift 6 language mode
91 | func fetchCheckStockForPackage(packageTypeId: Int, forceRefresh: Bool = false, cacheTTL: TimeInterval = 3600) async -> CheckStockResponse? {
92 | let cacheKey = "check_stock_\(packageTypeId)"
93 | if !forceRefresh, let cached: CheckStockResponse = await cache.get(cacheKey) {
| `- warning: non-sendable result type 'CheckStockResponse?' cannot be sent from actor-isolated context in call to instance method 'get'; this is an error in the Swift 6 language mode
94 | return cached
95 | }
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/CheckStockResponse.swift:12:15: note: consider making struct 'CheckStockResponse' conform to the 'Sendable' protocol
10 | // MARK: Check Stock Response
11 |
12 | public struct CheckStockResponse: Codable {
| `- note: consider making struct 'CheckStockResponse' conform to the 'Sendable' protocol
13 | public let stock: Bool
14 | public let package: Package
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/PackagesRepositoryImpl.swift:98:65: warning: non-sendable result type 'CheckStockResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
96 | let parameters = ["package_type_id": String(packageTypeId)]
97 | do {
98 | let response: CheckStockResponse = try await client.fetch(
| `- warning: non-sendable result type 'CheckStockResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
99 | endpoint: .checkStock,
100 | method: .GET,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/CheckStockResponse.swift:12:15: note: consider making struct 'CheckStockResponse' conform to the 'Sendable' protocol
10 | // MARK: Check Stock Response
11 |
12 | public struct CheckStockResponse: Codable {
| `- note: consider making struct 'CheckStockResponse' conform to the 'Sendable' protocol
13 | public let stock: Bool
14 | public let package: Package
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/PackagesRepositoryImpl.swift:107:32: warning: non-sendable result type 'CheckStockResponse?' cannot be sent from actor-isolated context in call to instance method 'getExpired'; this is an error in the Swift 6 language mode
105 | return response
106 | } catch {
107 | return await cache.getExpired(cacheKey)
| `- warning: non-sendable result type 'CheckStockResponse?' cannot be sent from actor-isolated context in call to instance method 'getExpired'; this is an error in the Swift 6 language mode
108 | }
109 | }
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/CheckStockResponse.swift:12:15: note: consider making struct 'CheckStockResponse' conform to the 'Sendable' protocol
10 | // MARK: Check Stock Response
11 |
12 | public struct CheckStockResponse: Codable {
| `- note: consider making struct 'CheckStockResponse' conform to the 'Sendable' protocol
13 | public let stock: Bool
14 | public let package: Package
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/PaymentsRepositoryImpl.swift:36:58: warning: non-sendable result type 'PaymentResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
34 | loyalty_points_amount: loyaltyPointsAmount
35 | )
36 | let response: PaymentResponse = try await client.fetch(
| `- warning: non-sendable result type 'PaymentResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
37 | endpoint: .payments,
38 | method: .POST,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/PaymentResponse.swift:12:15: note: consider making struct 'PaymentResponse' conform to the 'Sendable' protocol
10 | // MARK: Payment Response
11 |
12 | public struct PaymentResponse: Codable {
| `- note: consider making struct 'PaymentResponse' conform to the 'Sendable' protocol
13 | public let detail: String
14 | public let paymentData: PaymentData
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/PaymentsRepositoryImpl.swift:49:33: warning: non-sendable result type 'KredsQuoteResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
47 | loyalty_points_amount: loyaltyPointsAmount
48 | )
49 | return try await client.fetch(
| `- warning: non-sendable result type 'KredsQuoteResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
50 | endpoint: .paymentsQuote,
51 | method: .POST,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/PaymentResponse.swift:99:15: note: consider making struct 'KredsQuoteResponse' conform to the 'Sendable' protocol
97 | // MARK: Kreds Quote Response
98 |
99 | public struct KredsQuoteResponse: Codable {
| `- note: consider making struct 'KredsQuoteResponse' conform to the 'Sendable' protocol
100 | public let packageTypeID: Int?
101 | public let currency: Currency?
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/PhoneVerificationRepositoryImpl.swift:18:26: warning: non-sendable result type 'PhoneOtpSendResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
16 |
17 | func sendCode(phoneNumber: String, channel: PhoneOtpChannel) async throws -> PhoneOtpSendResponse {
18 | try await client.fetch(
| `- warning: non-sendable result type 'PhoneOtpSendResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
19 | endpoint: .phoneOtp,
20 | method: .POST,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/PhoneVerificationResponse.swift:35:15: note: consider making struct 'PhoneOtpSendResponse' conform to the 'Sendable' protocol
33 | // MARK: Phone OTP Send Response
34 |
35 | public struct PhoneOtpSendResponse: Codable {
| `- note: consider making struct 'PhoneOtpSendResponse' conform to the 'Sendable' protocol
36 | public let phoneNumber: String
37 | public let channel: PhoneOtpChannel
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/PhoneVerificationRepositoryImpl.swift:26:26: warning: non-sendable result type 'PhoneOtpVerifyResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
24 |
25 | func verifyCode(_ code: String) async throws -> PhoneOtpVerifyResponse {
26 | try await client.fetch(
| `- warning: non-sendable result type 'PhoneOtpVerifyResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
27 | endpoint: .phoneOtpVerify,
28 | method: .POST,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/PhoneVerificationResponse.swift:52:15: note: consider making struct 'PhoneOtpVerifyResponse' conform to the 'Sendable' protocol
50 | // MARK: Phone OTP Verify Response
51 |
52 | public struct PhoneOtpVerifyResponse: Codable {
| `- note: consider making struct 'PhoneOtpVerifyResponse' conform to the 'Sendable' protocol
53 | public let phoneNumber: String
54 | public let phoneVerified: Bool
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/PromoCodeRepositoryImpl.swift:18:26: warning: non-sendable result type 'PromoCodeResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
16 |
17 | func fetchPromocode() async throws -> PromoCodeResponse {
18 | try await client.fetch(
| `- warning: non-sendable result type 'PromoCodeResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
19 | endpoint: .promoCode,
20 | method: .GET
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/PromocodeResponse.swift:12:15: note: consider making struct 'PromoCodeResponse' conform to the 'Sendable' protocol
10 | // MARK: Promo Code Response
11 |
12 | public struct PromoCodeResponse: Codable, Hashable {
| `- note: consider making struct 'PromoCodeResponse' conform to the 'Sendable' protocol
13 | public var isValid: Bool
14 | public let discountCode: String
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/PromoCodeRepositoryImpl.swift:25:26: warning: non-sendable result type 'PromoCodeResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
23 |
24 | func applyPromocode(code: String) async throws -> PromoCodeResponse {
25 | try await client.fetch(
| `- warning: non-sendable result type 'PromoCodeResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
26 | endpoint: .promoCode,
27 | method: .POST,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/PromocodeResponse.swift:12:15: note: consider making struct 'PromoCodeResponse' conform to the 'Sendable' protocol
10 | // MARK: Promo Code Response
11 |
12 | public struct PromoCodeResponse: Codable, Hashable {
| `- note: consider making struct 'PromoCodeResponse' conform to the 'Sendable' protocol
13 | public var isValid: Bool
14 | public let discountCode: String
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/PromoCodeRepositoryImpl.swift:33:26: warning: non-sendable result type 'PromoCodeResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
31 |
32 | func deletePromocode(code: String) async throws -> PromoCodeResponse {
33 | try await client.fetch(
| `- warning: non-sendable result type 'PromoCodeResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
34 | endpoint: .promoCode,
35 | method: .DELETE
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/PromocodeResponse.swift:12:15: note: consider making struct 'PromoCodeResponse' conform to the 'Sendable' protocol
10 | // MARK: Promo Code Response
11 |
12 | public struct PromoCodeResponse: Codable, Hashable {
| `- note: consider making struct 'PromoCodeResponse' conform to the 'Sendable' protocol
13 | public var isValid: Bool
14 | public let discountCode: String
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/StoreReviewRepositoryImpl.swift:21:58: warning: non-sendable result type 'StoreReviewResponse?' cannot be sent from actor-isolated context in call to instance method 'get'; this is an error in the Swift 6 language mode
19 | func fetchStoreReview(cacheTTL: TimeInterval = 86400) async throws -> StoreReviewResponse {
20 | let cacheKey = "store_review"
21 | if let cached: StoreReviewResponse = await cache.get(cacheKey) {
| `- warning: non-sendable result type 'StoreReviewResponse?' cannot be sent from actor-isolated context in call to instance method 'get'; this is an error in the Swift 6 language mode
22 | return cached
23 | }
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/StoreReviewResponse.swift:12:15: note: consider making struct 'StoreReviewResponse' conform to the 'Sendable' protocol
10 | // MARK: Store Review Response
11 |
12 | public struct StoreReviewResponse: Codable {
| `- note: consider making struct 'StoreReviewResponse' conform to the 'Sendable' protocol
13 | public let reviews: [Review]?
14 | public let stats: Stats?
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/StoreReviewRepositoryImpl.swift:25:62: warning: non-sendable result type 'StoreReviewResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
23 | }
24 | let parameters = ["type": "store_review"]
25 | let response: StoreReviewResponse = try await client.fetch(
| `- warning: non-sendable result type 'StoreReviewResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
26 | endpoint: .storeReview,
27 | method: .GET,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/StoreReviewResponse.swift:12:15: note: consider making struct 'StoreReviewResponse' conform to the 'Sendable' protocol
10 | // MARK: Store Review Response
11 |
12 | public struct StoreReviewResponse: Codable {
| `- note: consider making struct 'StoreReviewResponse' conform to the 'Sendable' protocol
13 | public let reviews: [Review]?
14 | public let stats: Stats?
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/UserRepositoryImpl.swift:18:26: warning: non-sendable result type 'User' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
16 |
17 | func fetchProfile() async throws -> User {
18 | try await client.fetch(
| `- warning: non-sendable result type 'User' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
19 | endpoint: .customer,
20 | method: .GET
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/UserResponse.swift:51:15: note: consider making struct 'User' conform to the 'Sendable' protocol
49 | // MARK: User Response
50 |
51 | public struct User: Codable, Equatable {
| `- note: consider making struct 'User' conform to the 'Sendable' protocol
52 | public var email: String? = ""
53 | public var phoneNumber: String? = ""
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/UserRepositoryImpl.swift:25:26: warning: non-sendable result type 'UpdateCustomerResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
23 |
24 | func updateProfile(_ request: UpdateCustomerRequest) async throws -> UpdateCustomerResponse {
25 | try await client.fetch(
| `- warning: non-sendable result type 'UpdateCustomerResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
26 | endpoint: .updateCustomer,
27 | method: .PATCH,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/UpdateCustomerResponse.swift:12:15: note: consider making struct 'UpdateCustomerResponse' conform to the 'Sendable' protocol
10 | // MARK: Update Customer Response
11 |
12 | public struct UpdateCustomerResponse: Codable {
| `- note: consider making struct 'UpdateCustomerResponse' conform to the 'Sendable' protocol
13 | public var updated: Bool = false
14 | public var customer: User? = User()
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/UserRepositoryImpl.swift:33:26: warning: non-sendable result type 'User' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
31 |
32 | func updatePreferences(_ request: UpdateCustomerPreferencesRequest) async throws -> User {
33 | try await client.fetch(
| `- warning: non-sendable result type 'User' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
34 | endpoint: .customerPreferences,
35 | method: .PATCH,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/UserResponse.swift:51:15: note: consider making struct 'User' conform to the 'Sendable' protocol
49 | // MARK: User Response
50 |
51 | public struct User: Codable, Equatable {
| `- note: consider making struct 'User' conform to the 'Sendable' protocol
52 | public var email: String? = ""
53 | public var phoneNumber: String? = ""
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/UserRepositoryImpl.swift:41:26: warning: non-sendable result type 'UserLocationResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
39 |
40 | func fetchUserLocation() async throws -> UserLocationResponse {
41 | try await client.fetch(
| `- warning: non-sendable result type 'UserLocationResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
42 | endpoint: .userLocation,
43 | method: .GET,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/UserLocationResponse.swift:12:15: note: consider making struct 'UserLocationResponse' conform to the 'Sendable' protocol
10 | // MARK: User Location Response
11 |
12 | public struct UserLocationResponse: Codable {
| `- note: consider making struct 'UserLocationResponse' conform to the 'Sendable' protocol
13 | public var location: LocationDetails?
14 |
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/VisaRewardsRepositoryImpl.swift:19:33: warning: non-sendable result type 'VisaRewardResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
17 | func fetchVisaReward(isEU: Bool) async throws -> VisaRewardResponse {
18 | let body: [String: String]? = isEU ? ["vendor": "eu"] : nil
19 | return try await client.fetch(
| `- warning: non-sendable result type 'VisaRewardResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
20 | endpoint: .visaIframe,
21 | method: .POST,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/VisaRewardResponse.swift:12:15: note: consider making struct 'VisaRewardResponse' conform to the 'Sendable' protocol
10 | // MARK: Visa Reward Response
11 |
12 | public struct VisaRewardResponse: Codable, Hashable {
| `- note: consider making struct 'VisaRewardResponse' conform to the 'Sendable' protocol
13 | public var created: Bool? = false
14 | public var token: String = ""
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/VisaRewardsRepositoryImpl.swift:27:26: warning: non-sendable result type 'VisaValidateResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
25 |
26 | func fetchVisaValidation(token: String) async throws -> VisaValidateResponse {
27 | try await client.fetch(
| `- warning: non-sendable result type 'VisaValidateResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
28 | endpoint: .validateVisa,
29 | method: .GET,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/VisaValidateResponse.swift:12:15: note: consider making struct 'VisaValidateResponse' conform to the 'Sendable' protocol
10 | // MARK: Visa Validate Response
11 |
12 | public struct VisaValidateResponse: Codable, Hashable {
| `- note: consider making struct 'VisaValidateResponse' conform to the 'Sendable' protocol
13 | public var eligible: Bool = false
14 | public var usedCount: Int? = 0
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/VisaRewardsRepositoryImpl.swift:35:26: warning: non-sendable result type 'RedeemVisaResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
33 |
34 | func redeemVisaReward(token: String, body: [String: String]) async throws -> RedeemVisaResponse {
35 | try await client.fetch(
| `- warning: non-sendable result type 'RedeemVisaResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
36 | endpoint: .validateVisa,
37 | method: .PATCH,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/RedeemVisaResponse.swift:12:15: note: consider making struct 'RedeemVisaResponse' conform to the 'Sendable' protocol
10 | // MARK: Redeem Visa Response
11 |
12 | public struct RedeemVisaResponse: Codable {
| `- note: consider making struct 'RedeemVisaResponse' conform to the 'Sendable' protocol
13 | public var redeemed: Bool? = false
14 | public var detail: String? = ""
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/OrdersRepositoryImpl.swift:33:25: warning: sending 'orders' risks causing data races; this is an error in the Swift 6 language mode
31 | )
32 | let orders = response.orders
33 | await cache.set(cacheKey, value: orders, ttl: cacheTTL)
| |- warning: sending 'orders' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self.client'-isolated 'orders' to actor-isolated instance method 'set(_:value:ttl:)' risks causing data races between actor-isolated and 'self.client'-isolated uses
34 | return RepositoryResult(value: orders)
35 | } catch {
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/OrdersRepositoryImpl.swift:69:25: warning: sending 'page' risks causing data races; this is an error in the Swift 6 language mode
67 | hasMore: response.next?.isEmpty == false
68 | )
69 | await cache.set(cacheKey, value: page, ttl: cacheTTL)
| |- warning: sending 'page' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self.client'-isolated 'page' to actor-isolated instance method 'set(_:value:ttl:)' risks causing data races between actor-isolated and 'self.client'-isolated uses
70 | return RepositoryResult(value: page)
71 | } catch {
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/OrdersRepositoryImpl.swift:107:33: warning: sending 'order' risks causing data races; this is an error in the Swift 6 language mode
105 | )
106 | if order.orderStatus != "pending" || attempt == maxRetries {
107 | await cache.set(cacheKey, value: order, ttl: cacheTTL)
| |- warning: sending 'order' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'order' to actor-isolated instance method 'set(_:value:ttl:)' risks causing data races between actor-isolated and local nonisolated uses
108 | return order
| `- note: access can happen concurrently
109 | }
110 | try? await Task.sleep(for: .seconds(1))
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/PackagesRepositoryImpl.swift:41:25: warning: sending 'response' risks causing data races; this is an error in the Swift 6 language mode
39 | requiresAuth: false
40 | )
41 | await cache.set(cacheKey, value: response, ttl: cacheTTL)
| |- warning: sending 'response' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self.client'-isolated 'response' to actor-isolated instance method 'set(_:value:ttl:)' risks causing data races between actor-isolated and 'self.client'-isolated uses
42 | return RepositoryResult(value: response)
43 | } catch {
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/PackagesRepositoryImpl.swift:78:25: warning: sending 'packages' risks causing data races; this is an error in the Swift 6 language mode
76 | )
77 | let packages = response.packages
78 | await cache.set(cacheKey, value: packages, ttl: cacheTTL)
| |- warning: sending 'packages' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self.client'-isolated 'packages' to actor-isolated instance method 'set(_:value:ttl:)' risks causing data races between actor-isolated and 'self.client'-isolated uses
79 | return RepositoryResult(value: packages)
80 | } catch {
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/PackagesRepositoryImpl.swift:104:25: warning: sending 'response' risks causing data races; this is an error in the Swift 6 language mode
102 | requiresAuth: false
103 | )
104 | await cache.set(cacheKey, value: response, ttl: cacheTTL)
| |- warning: sending 'response' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'response' to actor-isolated instance method 'set(_:value:ttl:)' risks causing data races between actor-isolated and local nonisolated uses
105 | return response
| `- note: access can happen concurrently
106 | } catch {
107 | return await cache.getExpired(cacheKey)
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/PaymentsRepositoryImpl.swift:36:58: warning: sending value of non-Sendable type 'PaymentRequest' risks causing data races; this is an error in the Swift 6 language mode
34 | loyalty_points_amount: loyaltyPointsAmount
35 | )
36 | let response: PaymentResponse = try await client.fetch(
| |- warning: sending value of non-Sendable type 'PaymentRequest' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type 'PaymentRequest' to actor-isolated instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)' risks causing races in between task-isolated and actor-isolated uses
37 | endpoint: .payments,
38 | method: .POST,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/PhoneVerificationRepositoryImpl.swift:18:26: warning: sending value of non-Sendable type 'PhoneOtpSendRequest' risks causing data races; this is an error in the Swift 6 language mode
16 |
17 | func sendCode(phoneNumber: String, channel: PhoneOtpChannel) async throws -> PhoneOtpSendResponse {
18 | try await client.fetch(
| |- warning: sending value of non-Sendable type 'PhoneOtpSendRequest' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type 'PhoneOtpSendRequest' to actor-isolated instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)' risks causing races in between task-isolated and actor-isolated uses
19 | endpoint: .phoneOtp,
20 | method: .POST,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/StoreReviewRepositoryImpl.swift:31:21: warning: sending 'response' risks causing data races; this is an error in the Swift 6 language mode
29 | requiresAuth: false
30 | )
31 | await cache.set(cacheKey, value: response, ttl: cacheTTL)
| |- warning: sending 'response' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self.client'-isolated 'response' to actor-isolated instance method 'set(_:value:ttl:)' risks causing data races between actor-isolated and 'self.client'-isolated uses
32 | return response
33 | }
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/UserRepositoryImpl.swift:25:26: warning: sending value of non-Sendable type 'UpdateCustomerRequest' risks causing data races; this is an error in the Swift 6 language mode
23 |
24 | func updateProfile(_ request: UpdateCustomerRequest) async throws -> UpdateCustomerResponse {
25 | try await client.fetch(
| |- warning: sending value of non-Sendable type 'UpdateCustomerRequest' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type 'UpdateCustomerRequest' to actor-isolated instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)' risks causing races in between task-isolated and actor-isolated uses
26 | endpoint: .updateCustomer,
27 | method: .PATCH,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/UserRepositoryImpl.swift:33:26: warning: sending value of non-Sendable type 'UpdateCustomerPreferencesRequest' risks causing data races; this is an error in the Swift 6 language mode
31 |
32 | func updatePreferences(_ request: UpdateCustomerPreferencesRequest) async throws -> User {
33 | try await client.fetch(
| |- warning: sending value of non-Sendable type 'UpdateCustomerPreferencesRequest' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type 'UpdateCustomerPreferencesRequest' to actor-isolated instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)' risks causing races in between task-isolated and actor-isolated uses
34 | endpoint: .customerPreferences,
35 | method: .PATCH,
[58/95] Compiling EsimplifiedSDK VisaRewardsRepositoryImpl.swift
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/OrdersRepositoryImpl.swift:21:61: warning: non-sendable result type '[Order]?' cannot be sent from actor-isolated context in call to instance method 'get'; this is an error in the Swift 6 language mode
19 | func fetchOrdersResult(forceRefresh: Bool = false, withLoyaltyPoints: Bool, cacheTTL: TimeInterval = 600) async -> RepositoryResult<[Order]> {
20 | let cacheKey = "orders_\(withLoyaltyPoints)"
21 | if !forceRefresh, let cached: [Order] = await cache.get(cacheKey) {
| `- warning: non-sendable result type '[Order]?' cannot be sent from actor-isolated context in call to instance method 'get'; this is an error in the Swift 6 language mode
22 | return RepositoryResult(value: cached)
23 | }
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/OrderResponse.swift:33:15: note: consider making struct 'Order' conform to the 'Sendable' protocol
31 | // MARK: Order Model
32 |
33 | public struct Order: Codable, Identifiable {
| `- note: consider making struct 'Order' conform to the 'Sendable' protocol
34 | public var id: String { orderUUID }
35 | public let user: String
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/OrdersRepositoryImpl.swift:27:61: warning: non-sendable result type 'OrdersResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
25 | parameters["limit"] = "\(Self.unpagedLimit)"
26 | do {
27 | let response: OrdersResponse = try await client.fetch(
| `- warning: non-sendable result type 'OrdersResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
28 | endpoint: .customerOrders,
29 | method: .GET,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/OrderResponse.swift:12:15: note: consider making struct 'OrdersResponse' conform to the 'Sendable' protocol
10 | // MARK: Orders Response
11 |
12 | public struct OrdersResponse: Codable {
| `- note: consider making struct 'OrdersResponse' conform to the 'Sendable' protocol
13 | public let count: Int
14 | public let next: String?
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/OrdersRepositoryImpl.swift:37:48: warning: non-sendable result type '[Order]?' cannot be sent from actor-isolated context in call to instance method 'getExpired'; this is an error in the Swift 6 language mode
35 | } catch {
36 | let failure = error as? SdkError ?? .unknown(error)
37 | let expired: [Order] = await cache.getExpired(cacheKey) ?? []
| `- warning: non-sendable result type '[Order]?' cannot be sent from actor-isolated context in call to instance method 'getExpired'; this is an error in the Swift 6 language mode
38 | return RepositoryResult(value: expired, isStale: !expired.isEmpty, failure: failure)
39 | }
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/OrderResponse.swift:33:15: note: consider making struct 'Order' conform to the 'Sendable' protocol
31 | // MARK: Order Model
32 |
33 | public struct Order: Codable, Identifiable {
| `- note: consider making struct 'Order' conform to the 'Sendable' protocol
34 | public var id: String { orderUUID }
35 | public let user: String
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/OrdersRepositoryImpl.swift:52:64: warning: non-sendable result type 'OrdersPage?' cannot be sent from actor-isolated context in call to instance method 'get'; this is an error in the Swift 6 language mode
50 | ) async -> RepositoryResult<OrdersPage> {
51 | let cacheKey = "orders_page_\(withLoyaltyPoints)_\(limit)_\(offset)"
52 | if !forceRefresh, let cached: OrdersPage = await cache.get(cacheKey) {
| `- warning: non-sendable result type 'OrdersPage?' cannot be sent from actor-isolated context in call to instance method 'get'; this is an error in the Swift 6 language mode
53 | return RepositoryResult(value: cached)
54 | }
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/OrdersRepositoryType.swift:90:15: note: consider making struct 'OrdersPage' conform to the 'Sendable' protocol
88 | // MARK: - Orders Page
89 |
90 | public struct OrdersPage: Codable {
| `- note: consider making struct 'OrdersPage' conform to the 'Sendable' protocol
91 |
92 | public let orders: [Order]
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/OrdersRepositoryImpl.swift:59:61: warning: non-sendable result type 'OrdersResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
57 | parameters["offset"] = "\(offset)"
58 | do {
59 | let response: OrdersResponse = try await client.fetch(
| `- warning: non-sendable result type 'OrdersResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
60 | endpoint: .customerOrders,
61 | method: .GET,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/OrderResponse.swift:12:15: note: consider making struct 'OrdersResponse' conform to the 'Sendable' protocol
10 | // MARK: Orders Response
11 |
12 | public struct OrdersResponse: Codable {
| `- note: consider making struct 'OrdersResponse' conform to the 'Sendable' protocol
13 | public let count: Int
14 | public let next: String?
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/OrdersRepositoryImpl.swift:73:52: warning: non-sendable result type 'OrdersPage?' cannot be sent from actor-isolated context in call to instance method 'getExpired'; this is an error in the Swift 6 language mode
71 | } catch {
72 | let failure = error as? SdkError ?? .unknown(error)
73 | let expired: OrdersPage? = await cache.getExpired(cacheKey)
| `- warning: non-sendable result type 'OrdersPage?' cannot be sent from actor-isolated context in call to instance method 'getExpired'; this is an error in the Swift 6 language mode
74 | let fallback = expired ?? OrdersPage(orders: [], totalCount: 0, hasMore: false)
75 | return RepositoryResult(value: fallback, isStale: expired != nil, failure: failure)
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/OrdersRepositoryType.swift:90:15: note: consider making struct 'OrdersPage' conform to the 'Sendable' protocol
88 | // MARK: - Orders Page
89 |
90 | public struct OrdersPage: Codable {
| `- note: consider making struct 'OrdersPage' conform to the 'Sendable' protocol
91 |
92 | public let orders: [Order]
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/OrdersRepositoryImpl.swift:89:65: warning: non-sendable result type 'OrderDetail?' cannot be sent from actor-isolated context in call to instance method 'get'; this is an error in the Swift 6 language mode
87 | func fetchOrder(orderUUID: String, forceRefresh: Bool = false, cacheTTL: TimeInterval = 300) async throws -> OrderDetail {
88 | let cacheKey = "order_\(orderUUID)"
89 | if !forceRefresh, let cached: OrderDetail = await cache.get(cacheKey) {
| `- warning: non-sendable result type 'OrderDetail?' cannot be sent from actor-isolated context in call to instance method 'get'; this is an error in the Swift 6 language mode
90 | return cached
91 | }
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/OrderDetail.swift:12:15: note: consider making struct 'OrderDetail' conform to the 'Sendable' protocol
10 | // MARK: Order Detail Model
11 |
12 | public struct OrderDetail: Codable {
| `- note: consider making struct 'OrderDetail' conform to the 'Sendable' protocol
13 | public let iccid: String?
14 | public let qrCode: String?
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/OrdersRepositoryImpl.swift:100:59: warning: non-sendable result type 'OrderDetail' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
98 | for attempt in 1...maxRetries {
99 | do {
100 | let order: OrderDetail = try await client.fetch(
| `- warning: non-sendable result type 'OrderDetail' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
101 | endpoint: .customerOrders,
102 | method: .GET,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/OrderDetail.swift:12:15: note: consider making struct 'OrderDetail' conform to the 'Sendable' protocol
10 | // MARK: Order Detail Model
11 |
12 | public struct OrderDetail: Codable {
| `- note: consider making struct 'OrderDetail' conform to the 'Sendable' protocol
13 | public let iccid: String?
14 | public let qrCode: String?
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/OrdersRepositoryImpl.swift:125:60: warning: non-sendable result type 'TrackedOrderResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
123 | func trackedOrder(orderUUID: String) async {
124 | do {
125 | let _: TrackedOrderResponse = try await client.fetch(
| `- warning: non-sendable result type 'TrackedOrderResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
126 | endpoint: .customerOrders,
127 | method: .POST,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/TrackedOrderResponse.swift:12:15: note: consider making struct 'TrackedOrderResponse' conform to the 'Sendable' protocol
10 | // MARK: Tracked Order Response
11 |
12 | public struct TrackedOrderResponse: Codable {
| `- note: consider making struct 'TrackedOrderResponse' conform to the 'Sendable' protocol
13 | public var detail: String
14 | public var conversionTracked: Bool
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/PackagesRepositoryImpl.swift:26:69: warning: non-sendable result type 'PackageResponse?' cannot be sent from actor-isolated context in call to instance method 'get'; this is an error in the Swift 6 language mode
24 | ) async -> RepositoryResult<PackageResponse?> {
25 | let cacheKey = "packages_\(countryCode ?? "")_\(countryNameSlug)"
26 | if !forceRefresh, let cached: PackageResponse = await cache.get(cacheKey) {
| `- warning: non-sendable result type 'PackageResponse?' cannot be sent from actor-isolated context in call to instance method 'get'; this is an error in the Swift 6 language mode
27 | return RepositoryResult(value: cached)
28 | }
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/PackageResponse.swift:12:15: note: consider making struct 'PackageResponse' conform to the 'Sendable' protocol
10 | // MARK: Package Response
11 |
12 | public struct PackageResponse: Codable {
| `- note: consider making struct 'PackageResponse' conform to the 'Sendable' protocol
13 | public let count: Int
14 | public let next: String?
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/PackagesRepositoryImpl.swift:35:62: warning: non-sendable result type 'PackageResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
33 | ]
34 | do {
35 | let response: PackageResponse = try await client.fetch(
| `- warning: non-sendable result type 'PackageResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
36 | endpoint: .packages,
37 | method: .GET,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/PackageResponse.swift:12:15: note: consider making struct 'PackageResponse' conform to the 'Sendable' protocol
10 | // MARK: Package Response
11 |
12 | public struct PackageResponse: Codable {
| `- note: consider making struct 'PackageResponse' conform to the 'Sendable' protocol
13 | public let count: Int
14 | public let next: String?
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/PackagesRepositoryImpl.swift:45:57: warning: non-sendable result type 'PackageResponse?' cannot be sent from actor-isolated context in call to instance method 'getExpired'; this is an error in the Swift 6 language mode
43 | } catch {
44 | let failure = error as? SdkError ?? .unknown(error)
45 | let expired: PackageResponse? = await cache.getExpired(cacheKey)
| `- warning: non-sendable result type 'PackageResponse?' cannot be sent from actor-isolated context in call to instance method 'getExpired'; this is an error in the Swift 6 language mode
46 | return RepositoryResult(value: expired, isStale: expired != nil, failure: failure)
47 | }
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/PackageResponse.swift:12:15: note: consider making struct 'PackageResponse' conform to the 'Sendable' protocol
10 | // MARK: Package Response
11 |
12 | public struct PackageResponse: Codable {
| `- note: consider making struct 'PackageResponse' conform to the 'Sendable' protocol
13 | public let count: Int
14 | public let next: String?
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/PackagesRepositoryImpl.swift:66:63: warning: non-sendable result type '[Package]?' cannot be sent from actor-isolated context in call to instance method 'get'; this is an error in the Swift 6 language mode
64 | func fetchPackagesForTopUpEsimResult(iccid: String, forceRefresh: Bool = false, cacheTTL: TimeInterval = 3600) async -> RepositoryResult<[Package]> {
65 | let cacheKey = "packages_topup_\(iccid)"
66 | if !forceRefresh, let cached: [Package] = await cache.get(cacheKey) {
| `- warning: non-sendable result type '[Package]?' cannot be sent from actor-isolated context in call to instance method 'get'; this is an error in the Swift 6 language mode
67 | return RepositoryResult(value: cached)
68 | }
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/PackageResponse.swift:36:15: note: consider making struct 'Package' conform to the 'Sendable' protocol
34 | // MARK: Package Model
35 |
36 | public struct Package: Codable, Hashable {
| `- note: consider making struct 'Package' conform to the 'Sendable' protocol
37 | public let name: String
38 | public let price: String
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/PackagesRepositoryImpl.swift:71:62: warning: non-sendable result type 'PackageResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
69 | let parameters = ["reverse_order": "true"]
70 | do {
71 | let response: PackageResponse = try await client.fetch(
| `- warning: non-sendable result type 'PackageResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
72 | endpoint: .topUpEsim,
73 | method: .GET,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/PackageResponse.swift:12:15: note: consider making struct 'PackageResponse' conform to the 'Sendable' protocol
10 | // MARK: Package Response
11 |
12 | public struct PackageResponse: Codable {
| `- note: consider making struct 'PackageResponse' conform to the 'Sendable' protocol
13 | public let count: Int
14 | public let next: String?
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/PackagesRepositoryImpl.swift:82:50: warning: non-sendable result type '[Package]?' cannot be sent from actor-isolated context in call to instance method 'getExpired'; this is an error in the Swift 6 language mode
80 | } catch {
81 | let failure = error as? SdkError ?? .unknown(error)
82 | let expired: [Package] = await cache.getExpired(cacheKey) ?? []
| `- warning: non-sendable result type '[Package]?' cannot be sent from actor-isolated context in call to instance method 'getExpired'; this is an error in the Swift 6 language mode
83 | return RepositoryResult(value: expired, isStale: !expired.isEmpty, failure: failure)
84 | }
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/PackageResponse.swift:36:15: note: consider making struct 'Package' conform to the 'Sendable' protocol
34 | // MARK: Package Model
35 |
36 | public struct Package: Codable, Hashable {
| `- note: consider making struct 'Package' conform to the 'Sendable' protocol
37 | public let name: String
38 | public let price: String
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/PackagesRepositoryImpl.swift:93:72: warning: non-sendable result type 'CheckStockResponse?' cannot be sent from actor-isolated context in call to instance method 'get'; this is an error in the Swift 6 language mode
91 | func fetchCheckStockForPackage(packageTypeId: Int, forceRefresh: Bool = false, cacheTTL: TimeInterval = 3600) async -> CheckStockResponse? {
92 | let cacheKey = "check_stock_\(packageTypeId)"
93 | if !forceRefresh, let cached: CheckStockResponse = await cache.get(cacheKey) {
| `- warning: non-sendable result type 'CheckStockResponse?' cannot be sent from actor-isolated context in call to instance method 'get'; this is an error in the Swift 6 language mode
94 | return cached
95 | }
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/CheckStockResponse.swift:12:15: note: consider making struct 'CheckStockResponse' conform to the 'Sendable' protocol
10 | // MARK: Check Stock Response
11 |
12 | public struct CheckStockResponse: Codable {
| `- note: consider making struct 'CheckStockResponse' conform to the 'Sendable' protocol
13 | public let stock: Bool
14 | public let package: Package
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/PackagesRepositoryImpl.swift:98:65: warning: non-sendable result type 'CheckStockResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
96 | let parameters = ["package_type_id": String(packageTypeId)]
97 | do {
98 | let response: CheckStockResponse = try await client.fetch(
| `- warning: non-sendable result type 'CheckStockResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
99 | endpoint: .checkStock,
100 | method: .GET,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/CheckStockResponse.swift:12:15: note: consider making struct 'CheckStockResponse' conform to the 'Sendable' protocol
10 | // MARK: Check Stock Response
11 |
12 | public struct CheckStockResponse: Codable {
| `- note: consider making struct 'CheckStockResponse' conform to the 'Sendable' protocol
13 | public let stock: Bool
14 | public let package: Package
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/PackagesRepositoryImpl.swift:107:32: warning: non-sendable result type 'CheckStockResponse?' cannot be sent from actor-isolated context in call to instance method 'getExpired'; this is an error in the Swift 6 language mode
105 | return response
106 | } catch {
107 | return await cache.getExpired(cacheKey)
| `- warning: non-sendable result type 'CheckStockResponse?' cannot be sent from actor-isolated context in call to instance method 'getExpired'; this is an error in the Swift 6 language mode
108 | }
109 | }
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/CheckStockResponse.swift:12:15: note: consider making struct 'CheckStockResponse' conform to the 'Sendable' protocol
10 | // MARK: Check Stock Response
11 |
12 | public struct CheckStockResponse: Codable {
| `- note: consider making struct 'CheckStockResponse' conform to the 'Sendable' protocol
13 | public let stock: Bool
14 | public let package: Package
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/PaymentsRepositoryImpl.swift:36:58: warning: non-sendable result type 'PaymentResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
34 | loyalty_points_amount: loyaltyPointsAmount
35 | )
36 | let response: PaymentResponse = try await client.fetch(
| `- warning: non-sendable result type 'PaymentResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
37 | endpoint: .payments,
38 | method: .POST,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/PaymentResponse.swift:12:15: note: consider making struct 'PaymentResponse' conform to the 'Sendable' protocol
10 | // MARK: Payment Response
11 |
12 | public struct PaymentResponse: Codable {
| `- note: consider making struct 'PaymentResponse' conform to the 'Sendable' protocol
13 | public let detail: String
14 | public let paymentData: PaymentData
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/PaymentsRepositoryImpl.swift:49:33: warning: non-sendable result type 'KredsQuoteResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
47 | loyalty_points_amount: loyaltyPointsAmount
48 | )
49 | return try await client.fetch(
| `- warning: non-sendable result type 'KredsQuoteResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
50 | endpoint: .paymentsQuote,
51 | method: .POST,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/PaymentResponse.swift:99:15: note: consider making struct 'KredsQuoteResponse' conform to the 'Sendable' protocol
97 | // MARK: Kreds Quote Response
98 |
99 | public struct KredsQuoteResponse: Codable {
| `- note: consider making struct 'KredsQuoteResponse' conform to the 'Sendable' protocol
100 | public let packageTypeID: Int?
101 | public let currency: Currency?
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/PhoneVerificationRepositoryImpl.swift:18:26: warning: non-sendable result type 'PhoneOtpSendResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
16 |
17 | func sendCode(phoneNumber: String, channel: PhoneOtpChannel) async throws -> PhoneOtpSendResponse {
18 | try await client.fetch(
| `- warning: non-sendable result type 'PhoneOtpSendResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
19 | endpoint: .phoneOtp,
20 | method: .POST,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/PhoneVerificationResponse.swift:35:15: note: consider making struct 'PhoneOtpSendResponse' conform to the 'Sendable' protocol
33 | // MARK: Phone OTP Send Response
34 |
35 | public struct PhoneOtpSendResponse: Codable {
| `- note: consider making struct 'PhoneOtpSendResponse' conform to the 'Sendable' protocol
36 | public let phoneNumber: String
37 | public let channel: PhoneOtpChannel
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/PhoneVerificationRepositoryImpl.swift:26:26: warning: non-sendable result type 'PhoneOtpVerifyResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
24 |
25 | func verifyCode(_ code: String) async throws -> PhoneOtpVerifyResponse {
26 | try await client.fetch(
| `- warning: non-sendable result type 'PhoneOtpVerifyResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
27 | endpoint: .phoneOtpVerify,
28 | method: .POST,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/PhoneVerificationResponse.swift:52:15: note: consider making struct 'PhoneOtpVerifyResponse' conform to the 'Sendable' protocol
50 | // MARK: Phone OTP Verify Response
51 |
52 | public struct PhoneOtpVerifyResponse: Codable {
| `- note: consider making struct 'PhoneOtpVerifyResponse' conform to the 'Sendable' protocol
53 | public let phoneNumber: String
54 | public let phoneVerified: Bool
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/PromoCodeRepositoryImpl.swift:18:26: warning: non-sendable result type 'PromoCodeResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
16 |
17 | func fetchPromocode() async throws -> PromoCodeResponse {
18 | try await client.fetch(
| `- warning: non-sendable result type 'PromoCodeResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
19 | endpoint: .promoCode,
20 | method: .GET
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/PromocodeResponse.swift:12:15: note: consider making struct 'PromoCodeResponse' conform to the 'Sendable' protocol
10 | // MARK: Promo Code Response
11 |
12 | public struct PromoCodeResponse: Codable, Hashable {
| `- note: consider making struct 'PromoCodeResponse' conform to the 'Sendable' protocol
13 | public var isValid: Bool
14 | public let discountCode: String
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/PromoCodeRepositoryImpl.swift:25:26: warning: non-sendable result type 'PromoCodeResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
23 |
24 | func applyPromocode(code: String) async throws -> PromoCodeResponse {
25 | try await client.fetch(
| `- warning: non-sendable result type 'PromoCodeResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
26 | endpoint: .promoCode,
27 | method: .POST,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/PromocodeResponse.swift:12:15: note: consider making struct 'PromoCodeResponse' conform to the 'Sendable' protocol
10 | // MARK: Promo Code Response
11 |
12 | public struct PromoCodeResponse: Codable, Hashable {
| `- note: consider making struct 'PromoCodeResponse' conform to the 'Sendable' protocol
13 | public var isValid: Bool
14 | public let discountCode: String
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/PromoCodeRepositoryImpl.swift:33:26: warning: non-sendable result type 'PromoCodeResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
31 |
32 | func deletePromocode(code: String) async throws -> PromoCodeResponse {
33 | try await client.fetch(
| `- warning: non-sendable result type 'PromoCodeResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
34 | endpoint: .promoCode,
35 | method: .DELETE
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/PromocodeResponse.swift:12:15: note: consider making struct 'PromoCodeResponse' conform to the 'Sendable' protocol
10 | // MARK: Promo Code Response
11 |
12 | public struct PromoCodeResponse: Codable, Hashable {
| `- note: consider making struct 'PromoCodeResponse' conform to the 'Sendable' protocol
13 | public var isValid: Bool
14 | public let discountCode: String
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/StoreReviewRepositoryImpl.swift:21:58: warning: non-sendable result type 'StoreReviewResponse?' cannot be sent from actor-isolated context in call to instance method 'get'; this is an error in the Swift 6 language mode
19 | func fetchStoreReview(cacheTTL: TimeInterval = 86400) async throws -> StoreReviewResponse {
20 | let cacheKey = "store_review"
21 | if let cached: StoreReviewResponse = await cache.get(cacheKey) {
| `- warning: non-sendable result type 'StoreReviewResponse?' cannot be sent from actor-isolated context in call to instance method 'get'; this is an error in the Swift 6 language mode
22 | return cached
23 | }
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/StoreReviewResponse.swift:12:15: note: consider making struct 'StoreReviewResponse' conform to the 'Sendable' protocol
10 | // MARK: Store Review Response
11 |
12 | public struct StoreReviewResponse: Codable {
| `- note: consider making struct 'StoreReviewResponse' conform to the 'Sendable' protocol
13 | public let reviews: [Review]?
14 | public let stats: Stats?
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/StoreReviewRepositoryImpl.swift:25:62: warning: non-sendable result type 'StoreReviewResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
23 | }
24 | let parameters = ["type": "store_review"]
25 | let response: StoreReviewResponse = try await client.fetch(
| `- warning: non-sendable result type 'StoreReviewResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
26 | endpoint: .storeReview,
27 | method: .GET,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/StoreReviewResponse.swift:12:15: note: consider making struct 'StoreReviewResponse' conform to the 'Sendable' protocol
10 | // MARK: Store Review Response
11 |
12 | public struct StoreReviewResponse: Codable {
| `- note: consider making struct 'StoreReviewResponse' conform to the 'Sendable' protocol
13 | public let reviews: [Review]?
14 | public let stats: Stats?
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/UserRepositoryImpl.swift:18:26: warning: non-sendable result type 'User' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
16 |
17 | func fetchProfile() async throws -> User {
18 | try await client.fetch(
| `- warning: non-sendable result type 'User' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
19 | endpoint: .customer,
20 | method: .GET
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/UserResponse.swift:51:15: note: consider making struct 'User' conform to the 'Sendable' protocol
49 | // MARK: User Response
50 |
51 | public struct User: Codable, Equatable {
| `- note: consider making struct 'User' conform to the 'Sendable' protocol
52 | public var email: String? = ""
53 | public var phoneNumber: String? = ""
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/UserRepositoryImpl.swift:25:26: warning: non-sendable result type 'UpdateCustomerResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
23 |
24 | func updateProfile(_ request: UpdateCustomerRequest) async throws -> UpdateCustomerResponse {
25 | try await client.fetch(
| `- warning: non-sendable result type 'UpdateCustomerResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
26 | endpoint: .updateCustomer,
27 | method: .PATCH,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/UpdateCustomerResponse.swift:12:15: note: consider making struct 'UpdateCustomerResponse' conform to the 'Sendable' protocol
10 | // MARK: Update Customer Response
11 |
12 | public struct UpdateCustomerResponse: Codable {
| `- note: consider making struct 'UpdateCustomerResponse' conform to the 'Sendable' protocol
13 | public var updated: Bool = false
14 | public var customer: User? = User()
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/UserRepositoryImpl.swift:33:26: warning: non-sendable result type 'User' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
31 |
32 | func updatePreferences(_ request: UpdateCustomerPreferencesRequest) async throws -> User {
33 | try await client.fetch(
| `- warning: non-sendable result type 'User' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
34 | endpoint: .customerPreferences,
35 | method: .PATCH,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/UserResponse.swift:51:15: note: consider making struct 'User' conform to the 'Sendable' protocol
49 | // MARK: User Response
50 |
51 | public struct User: Codable, Equatable {
| `- note: consider making struct 'User' conform to the 'Sendable' protocol
52 | public var email: String? = ""
53 | public var phoneNumber: String? = ""
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/UserRepositoryImpl.swift:41:26: warning: non-sendable result type 'UserLocationResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
39 |
40 | func fetchUserLocation() async throws -> UserLocationResponse {
41 | try await client.fetch(
| `- warning: non-sendable result type 'UserLocationResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
42 | endpoint: .userLocation,
43 | method: .GET,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/UserLocationResponse.swift:12:15: note: consider making struct 'UserLocationResponse' conform to the 'Sendable' protocol
10 | // MARK: User Location Response
11 |
12 | public struct UserLocationResponse: Codable {
| `- note: consider making struct 'UserLocationResponse' conform to the 'Sendable' protocol
13 | public var location: LocationDetails?
14 |
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/VisaRewardsRepositoryImpl.swift:19:33: warning: non-sendable result type 'VisaRewardResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
17 | func fetchVisaReward(isEU: Bool) async throws -> VisaRewardResponse {
18 | let body: [String: String]? = isEU ? ["vendor": "eu"] : nil
19 | return try await client.fetch(
| `- warning: non-sendable result type 'VisaRewardResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
20 | endpoint: .visaIframe,
21 | method: .POST,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/VisaRewardResponse.swift:12:15: note: consider making struct 'VisaRewardResponse' conform to the 'Sendable' protocol
10 | // MARK: Visa Reward Response
11 |
12 | public struct VisaRewardResponse: Codable, Hashable {
| `- note: consider making struct 'VisaRewardResponse' conform to the 'Sendable' protocol
13 | public var created: Bool? = false
14 | public var token: String = ""
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/VisaRewardsRepositoryImpl.swift:27:26: warning: non-sendable result type 'VisaValidateResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
25 |
26 | func fetchVisaValidation(token: String) async throws -> VisaValidateResponse {
27 | try await client.fetch(
| `- warning: non-sendable result type 'VisaValidateResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
28 | endpoint: .validateVisa,
29 | method: .GET,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/VisaValidateResponse.swift:12:15: note: consider making struct 'VisaValidateResponse' conform to the 'Sendable' protocol
10 | // MARK: Visa Validate Response
11 |
12 | public struct VisaValidateResponse: Codable, Hashable {
| `- note: consider making struct 'VisaValidateResponse' conform to the 'Sendable' protocol
13 | public var eligible: Bool = false
14 | public var usedCount: Int? = 0
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/VisaRewardsRepositoryImpl.swift:35:26: warning: non-sendable result type 'RedeemVisaResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
33 |
34 | func redeemVisaReward(token: String, body: [String: String]) async throws -> RedeemVisaResponse {
35 | try await client.fetch(
| `- warning: non-sendable result type 'RedeemVisaResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
36 | endpoint: .validateVisa,
37 | method: .PATCH,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/RedeemVisaResponse.swift:12:15: note: consider making struct 'RedeemVisaResponse' conform to the 'Sendable' protocol
10 | // MARK: Redeem Visa Response
11 |
12 | public struct RedeemVisaResponse: Codable {
| `- note: consider making struct 'RedeemVisaResponse' conform to the 'Sendable' protocol
13 | public var redeemed: Bool? = false
14 | public var detail: String? = ""
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/OrdersRepositoryImpl.swift:33:25: warning: sending 'orders' risks causing data races; this is an error in the Swift 6 language mode
31 | )
32 | let orders = response.orders
33 | await cache.set(cacheKey, value: orders, ttl: cacheTTL)
| |- warning: sending 'orders' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self.client'-isolated 'orders' to actor-isolated instance method 'set(_:value:ttl:)' risks causing data races between actor-isolated and 'self.client'-isolated uses
34 | return RepositoryResult(value: orders)
35 | } catch {
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/OrdersRepositoryImpl.swift:69:25: warning: sending 'page' risks causing data races; this is an error in the Swift 6 language mode
67 | hasMore: response.next?.isEmpty == false
68 | )
69 | await cache.set(cacheKey, value: page, ttl: cacheTTL)
| |- warning: sending 'page' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self.client'-isolated 'page' to actor-isolated instance method 'set(_:value:ttl:)' risks causing data races between actor-isolated and 'self.client'-isolated uses
70 | return RepositoryResult(value: page)
71 | } catch {
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/OrdersRepositoryImpl.swift:107:33: warning: sending 'order' risks causing data races; this is an error in the Swift 6 language mode
105 | )
106 | if order.orderStatus != "pending" || attempt == maxRetries {
107 | await cache.set(cacheKey, value: order, ttl: cacheTTL)
| |- warning: sending 'order' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'order' to actor-isolated instance method 'set(_:value:ttl:)' risks causing data races between actor-isolated and local nonisolated uses
108 | return order
| `- note: access can happen concurrently
109 | }
110 | try? await Task.sleep(for: .seconds(1))
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/PackagesRepositoryImpl.swift:41:25: warning: sending 'response' risks causing data races; this is an error in the Swift 6 language mode
39 | requiresAuth: false
40 | )
41 | await cache.set(cacheKey, value: response, ttl: cacheTTL)
| |- warning: sending 'response' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self.client'-isolated 'response' to actor-isolated instance method 'set(_:value:ttl:)' risks causing data races between actor-isolated and 'self.client'-isolated uses
42 | return RepositoryResult(value: response)
43 | } catch {
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/PackagesRepositoryImpl.swift:78:25: warning: sending 'packages' risks causing data races; this is an error in the Swift 6 language mode
76 | )
77 | let packages = response.packages
78 | await cache.set(cacheKey, value: packages, ttl: cacheTTL)
| |- warning: sending 'packages' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self.client'-isolated 'packages' to actor-isolated instance method 'set(_:value:ttl:)' risks causing data races between actor-isolated and 'self.client'-isolated uses
79 | return RepositoryResult(value: packages)
80 | } catch {
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/PackagesRepositoryImpl.swift:104:25: warning: sending 'response' risks causing data races; this is an error in the Swift 6 language mode
102 | requiresAuth: false
103 | )
104 | await cache.set(cacheKey, value: response, ttl: cacheTTL)
| |- warning: sending 'response' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'response' to actor-isolated instance method 'set(_:value:ttl:)' risks causing data races between actor-isolated and local nonisolated uses
105 | return response
| `- note: access can happen concurrently
106 | } catch {
107 | return await cache.getExpired(cacheKey)
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/PaymentsRepositoryImpl.swift:36:58: warning: sending value of non-Sendable type 'PaymentRequest' risks causing data races; this is an error in the Swift 6 language mode
34 | loyalty_points_amount: loyaltyPointsAmount
35 | )
36 | let response: PaymentResponse = try await client.fetch(
| |- warning: sending value of non-Sendable type 'PaymentRequest' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type 'PaymentRequest' to actor-isolated instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)' risks causing races in between task-isolated and actor-isolated uses
37 | endpoint: .payments,
38 | method: .POST,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/PhoneVerificationRepositoryImpl.swift:18:26: warning: sending value of non-Sendable type 'PhoneOtpSendRequest' risks causing data races; this is an error in the Swift 6 language mode
16 |
17 | func sendCode(phoneNumber: String, channel: PhoneOtpChannel) async throws -> PhoneOtpSendResponse {
18 | try await client.fetch(
| |- warning: sending value of non-Sendable type 'PhoneOtpSendRequest' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type 'PhoneOtpSendRequest' to actor-isolated instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)' risks causing races in between task-isolated and actor-isolated uses
19 | endpoint: .phoneOtp,
20 | method: .POST,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/StoreReviewRepositoryImpl.swift:31:21: warning: sending 'response' risks causing data races; this is an error in the Swift 6 language mode
29 | requiresAuth: false
30 | )
31 | await cache.set(cacheKey, value: response, ttl: cacheTTL)
| |- warning: sending 'response' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self.client'-isolated 'response' to actor-isolated instance method 'set(_:value:ttl:)' risks causing data races between actor-isolated and 'self.client'-isolated uses
32 | return response
33 | }
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/UserRepositoryImpl.swift:25:26: warning: sending value of non-Sendable type 'UpdateCustomerRequest' risks causing data races; this is an error in the Swift 6 language mode
23 |
24 | func updateProfile(_ request: UpdateCustomerRequest) async throws -> UpdateCustomerResponse {
25 | try await client.fetch(
| |- warning: sending value of non-Sendable type 'UpdateCustomerRequest' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type 'UpdateCustomerRequest' to actor-isolated instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)' risks causing races in between task-isolated and actor-isolated uses
26 | endpoint: .updateCustomer,
27 | method: .PATCH,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/UserRepositoryImpl.swift:33:26: warning: sending value of non-Sendable type 'UpdateCustomerPreferencesRequest' risks causing data races; this is an error in the Swift 6 language mode
31 |
32 | func updatePreferences(_ request: UpdateCustomerPreferencesRequest) async throws -> User {
33 | try await client.fetch(
| |- warning: sending value of non-Sendable type 'UpdateCustomerPreferencesRequest' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type 'UpdateCustomerPreferencesRequest' to actor-isolated instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)' risks causing races in between task-isolated and actor-isolated uses
34 | endpoint: .customerPreferences,
35 | method: .PATCH,
[59/95] Compiling EsimplifiedSDK VouchersRepositoryImpl.swift
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/VouchersRepositoryImpl.swift:19:33: warning: non-sendable result type 'VoucherRedeemResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
17 | func redeemVoucher(code: String) async throws -> VoucherRedeemResponse {
18 | let request = VoucherRedeemRequest(voucherCode: code)
19 | return try await client.fetch(
| `- warning: non-sendable result type 'VoucherRedeemResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
20 | endpoint: .redeemVoucher,
21 | method: .POST,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/VoucherRedeemResponse.swift:26:15: note: consider making struct 'VoucherRedeemResponse' conform to the 'Sendable' protocol
24 | // MARK: Voucher Redeem Response
25 |
26 | public struct VoucherRedeemResponse: Codable {
| `- note: consider making struct 'VoucherRedeemResponse' conform to the 'Sendable' protocol
27 | public let redeemed: Bool
28 | public let redirectUrl: String?
[60/95] Compiling EsimplifiedSDK LoyaltyRepositoryType.swift
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/VouchersRepositoryImpl.swift:19:33: warning: non-sendable result type 'VoucherRedeemResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
17 | func redeemVoucher(code: String) async throws -> VoucherRedeemResponse {
18 | let request = VoucherRedeemRequest(voucherCode: code)
19 | return try await client.fetch(
| `- warning: non-sendable result type 'VoucherRedeemResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
20 | endpoint: .redeemVoucher,
21 | method: .POST,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/VoucherRedeemResponse.swift:26:15: note: consider making struct 'VoucherRedeemResponse' conform to the 'Sendable' protocol
24 | // MARK: Voucher Redeem Response
25 |
26 | public struct VoucherRedeemResponse: Codable {
| `- note: consider making struct 'VoucherRedeemResponse' conform to the 'Sendable' protocol
27 | public let redeemed: Bool
28 | public let redirectUrl: String?
[61/95] Compiling EsimplifiedSDK MarketingRepositoryType.swift
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/VouchersRepositoryImpl.swift:19:33: warning: non-sendable result type 'VoucherRedeemResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
17 | func redeemVoucher(code: String) async throws -> VoucherRedeemResponse {
18 | let request = VoucherRedeemRequest(voucherCode: code)
19 | return try await client.fetch(
| `- warning: non-sendable result type 'VoucherRedeemResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
20 | endpoint: .redeemVoucher,
21 | method: .POST,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/VoucherRedeemResponse.swift:26:15: note: consider making struct 'VoucherRedeemResponse' conform to the 'Sendable' protocol
24 | // MARK: Voucher Redeem Response
25 |
26 | public struct VoucherRedeemResponse: Codable {
| `- note: consider making struct 'VoucherRedeemResponse' conform to the 'Sendable' protocol
27 | public let redeemed: Bool
28 | public let redirectUrl: String?
[62/95] Compiling EsimplifiedSDK NotificationRepositoryType.swift
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/VouchersRepositoryImpl.swift:19:33: warning: non-sendable result type 'VoucherRedeemResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
17 | func redeemVoucher(code: String) async throws -> VoucherRedeemResponse {
18 | let request = VoucherRedeemRequest(voucherCode: code)
19 | return try await client.fetch(
| `- warning: non-sendable result type 'VoucherRedeemResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
20 | endpoint: .redeemVoucher,
21 | method: .POST,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/VoucherRedeemResponse.swift:26:15: note: consider making struct 'VoucherRedeemResponse' conform to the 'Sendable' protocol
24 | // MARK: Voucher Redeem Response
25 |
26 | public struct VoucherRedeemResponse: Codable {
| `- note: consider making struct 'VoucherRedeemResponse' conform to the 'Sendable' protocol
27 | public let redeemed: Bool
28 | public let redirectUrl: String?
[63/95] Compiling EsimplifiedSDK OrdersRepositoryType.swift
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/VouchersRepositoryImpl.swift:19:33: warning: non-sendable result type 'VoucherRedeemResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
17 | func redeemVoucher(code: String) async throws -> VoucherRedeemResponse {
18 | let request = VoucherRedeemRequest(voucherCode: code)
19 | return try await client.fetch(
| `- warning: non-sendable result type 'VoucherRedeemResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
20 | endpoint: .redeemVoucher,
21 | method: .POST,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/VoucherRedeemResponse.swift:26:15: note: consider making struct 'VoucherRedeemResponse' conform to the 'Sendable' protocol
24 | // MARK: Voucher Redeem Response
25 |
26 | public struct VoucherRedeemResponse: Codable {
| `- note: consider making struct 'VoucherRedeemResponse' conform to the 'Sendable' protocol
27 | public let redeemed: Bool
28 | public let redirectUrl: String?
[64/95] Compiling EsimplifiedSDK PackagesRepositoryType.swift
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/VouchersRepositoryImpl.swift:19:33: warning: non-sendable result type 'VoucherRedeemResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
17 | func redeemVoucher(code: String) async throws -> VoucherRedeemResponse {
18 | let request = VoucherRedeemRequest(voucherCode: code)
19 | return try await client.fetch(
| `- warning: non-sendable result type 'VoucherRedeemResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
20 | endpoint: .redeemVoucher,
21 | method: .POST,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/VoucherRedeemResponse.swift:26:15: note: consider making struct 'VoucherRedeemResponse' conform to the 'Sendable' protocol
24 | // MARK: Voucher Redeem Response
25 |
26 | public struct VoucherRedeemResponse: Codable {
| `- note: consider making struct 'VoucherRedeemResponse' conform to the 'Sendable' protocol
27 | public let redeemed: Bool
28 | public let redirectUrl: String?
[65/95] Compiling EsimplifiedSDK PaymentsRepositoryType.swift
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/VouchersRepositoryImpl.swift:19:33: warning: non-sendable result type 'VoucherRedeemResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
17 | func redeemVoucher(code: String) async throws -> VoucherRedeemResponse {
18 | let request = VoucherRedeemRequest(voucherCode: code)
19 | return try await client.fetch(
| `- warning: non-sendable result type 'VoucherRedeemResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
20 | endpoint: .redeemVoucher,
21 | method: .POST,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/VoucherRedeemResponse.swift:26:15: note: consider making struct 'VoucherRedeemResponse' conform to the 'Sendable' protocol
24 | // MARK: Voucher Redeem Response
25 |
26 | public struct VoucherRedeemResponse: Codable {
| `- note: consider making struct 'VoucherRedeemResponse' conform to the 'Sendable' protocol
27 | public let redeemed: Bool
28 | public let redirectUrl: String?
[66/95] Compiling EsimplifiedSDK PhoneVerificationRepositoryType.swift
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/VouchersRepositoryImpl.swift:19:33: warning: non-sendable result type 'VoucherRedeemResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
17 | func redeemVoucher(code: String) async throws -> VoucherRedeemResponse {
18 | let request = VoucherRedeemRequest(voucherCode: code)
19 | return try await client.fetch(
| `- warning: non-sendable result type 'VoucherRedeemResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
20 | endpoint: .redeemVoucher,
21 | method: .POST,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/VoucherRedeemResponse.swift:26:15: note: consider making struct 'VoucherRedeemResponse' conform to the 'Sendable' protocol
24 | // MARK: Voucher Redeem Response
25 |
26 | public struct VoucherRedeemResponse: Codable {
| `- note: consider making struct 'VoucherRedeemResponse' conform to the 'Sendable' protocol
27 | public let redeemed: Bool
28 | public let redirectUrl: String?
[67/95] Compiling EsimplifiedSDK PromoCodeRepositoryType.swift
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/VouchersRepositoryImpl.swift:19:33: warning: non-sendable result type 'VoucherRedeemResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
17 | func redeemVoucher(code: String) async throws -> VoucherRedeemResponse {
18 | let request = VoucherRedeemRequest(voucherCode: code)
19 | return try await client.fetch(
| `- warning: non-sendable result type 'VoucherRedeemResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
20 | endpoint: .redeemVoucher,
21 | method: .POST,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/VoucherRedeemResponse.swift:26:15: note: consider making struct 'VoucherRedeemResponse' conform to the 'Sendable' protocol
24 | // MARK: Voucher Redeem Response
25 |
26 | public struct VoucherRedeemResponse: Codable {
| `- note: consider making struct 'VoucherRedeemResponse' conform to the 'Sendable' protocol
27 | public let redeemed: Bool
28 | public let redirectUrl: String?
[68/95] Compiling EsimplifiedSDK AuthState.swift
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/EsimplifiedSDK.swift:56:22: warning: sending 'resolvedConfig' risks causing data races; this is an error in the Swift 6 language mode
54 | let storage = storageProvider ?? DefaultStorageProvider()
55 | let session = sessionProvider ?? DefaultSessionProvider(storage: storage)
56 | let client = HTTPClient(config: resolvedConfig, sessionProvider: session)
| |- warning: sending 'resolvedConfig' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'resolvedConfig' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
57 |
58 | return EsimplifiedSdk(config: resolvedConfig, client: client, sessionProvider: session)
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/EsimplifiedSDK.swift:56:22: warning: sending 'session' risks causing data races; this is an error in the Swift 6 language mode
54 | let storage = storageProvider ?? DefaultStorageProvider()
55 | let session = sessionProvider ?? DefaultSessionProvider(storage: storage)
56 | let client = HTTPClient(config: resolvedConfig, sessionProvider: session)
| |- warning: sending 'session' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'session' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
57 |
58 | return EsimplifiedSdk(config: resolvedConfig, client: client, sessionProvider: session)
[69/95] Compiling EsimplifiedSDK DefaultSessionProvider.swift
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/EsimplifiedSDK.swift:56:22: warning: sending 'resolvedConfig' risks causing data races; this is an error in the Swift 6 language mode
54 | let storage = storageProvider ?? DefaultStorageProvider()
55 | let session = sessionProvider ?? DefaultSessionProvider(storage: storage)
56 | let client = HTTPClient(config: resolvedConfig, sessionProvider: session)
| |- warning: sending 'resolvedConfig' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'resolvedConfig' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
57 |
58 | return EsimplifiedSdk(config: resolvedConfig, client: client, sessionProvider: session)
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/EsimplifiedSDK.swift:56:22: warning: sending 'session' risks causing data races; this is an error in the Swift 6 language mode
54 | let storage = storageProvider ?? DefaultStorageProvider()
55 | let session = sessionProvider ?? DefaultSessionProvider(storage: storage)
56 | let client = HTTPClient(config: resolvedConfig, sessionProvider: session)
| |- warning: sending 'session' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'session' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
57 |
58 | return EsimplifiedSdk(config: resolvedConfig, client: client, sessionProvider: session)
[70/95] Compiling EsimplifiedSDK DefaultStorageProvider.swift
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/EsimplifiedSDK.swift:56:22: warning: sending 'resolvedConfig' risks causing data races; this is an error in the Swift 6 language mode
54 | let storage = storageProvider ?? DefaultStorageProvider()
55 | let session = sessionProvider ?? DefaultSessionProvider(storage: storage)
56 | let client = HTTPClient(config: resolvedConfig, sessionProvider: session)
| |- warning: sending 'resolvedConfig' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'resolvedConfig' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
57 |
58 | return EsimplifiedSdk(config: resolvedConfig, client: client, sessionProvider: session)
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/EsimplifiedSDK.swift:56:22: warning: sending 'session' risks causing data races; this is an error in the Swift 6 language mode
54 | let storage = storageProvider ?? DefaultStorageProvider()
55 | let session = sessionProvider ?? DefaultSessionProvider(storage: storage)
56 | let client = HTTPClient(config: resolvedConfig, sessionProvider: session)
| |- warning: sending 'session' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'session' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
57 |
58 | return EsimplifiedSdk(config: resolvedConfig, client: client, sessionProvider: session)
[71/95] Compiling EsimplifiedSDK SessionProvider.swift
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/EsimplifiedSDK.swift:56:22: warning: sending 'resolvedConfig' risks causing data races; this is an error in the Swift 6 language mode
54 | let storage = storageProvider ?? DefaultStorageProvider()
55 | let session = sessionProvider ?? DefaultSessionProvider(storage: storage)
56 | let client = HTTPClient(config: resolvedConfig, sessionProvider: session)
| |- warning: sending 'resolvedConfig' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'resolvedConfig' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
57 |
58 | return EsimplifiedSdk(config: resolvedConfig, client: client, sessionProvider: session)
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/EsimplifiedSDK.swift:56:22: warning: sending 'session' risks causing data races; this is an error in the Swift 6 language mode
54 | let storage = storageProvider ?? DefaultStorageProvider()
55 | let session = sessionProvider ?? DefaultSessionProvider(storage: storage)
56 | let client = HTTPClient(config: resolvedConfig, sessionProvider: session)
| |- warning: sending 'session' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'session' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
57 |
58 | return EsimplifiedSdk(config: resolvedConfig, client: client, sessionProvider: session)
[72/95] Compiling EsimplifiedSDK StorageProvider.swift
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/EsimplifiedSDK.swift:56:22: warning: sending 'resolvedConfig' risks causing data races; this is an error in the Swift 6 language mode
54 | let storage = storageProvider ?? DefaultStorageProvider()
55 | let session = sessionProvider ?? DefaultSessionProvider(storage: storage)
56 | let client = HTTPClient(config: resolvedConfig, sessionProvider: session)
| |- warning: sending 'resolvedConfig' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'resolvedConfig' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
57 |
58 | return EsimplifiedSdk(config: resolvedConfig, client: client, sessionProvider: session)
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/EsimplifiedSDK.swift:56:22: warning: sending 'session' risks causing data races; this is an error in the Swift 6 language mode
54 | let storage = storageProvider ?? DefaultStorageProvider()
55 | let session = sessionProvider ?? DefaultSessionProvider(storage: storage)
56 | let client = HTTPClient(config: resolvedConfig, sessionProvider: session)
| |- warning: sending 'session' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'session' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
57 |
58 | return EsimplifiedSdk(config: resolvedConfig, client: client, sessionProvider: session)
[73/95] Compiling EsimplifiedSDK EsimplifiedSDK.swift
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/EsimplifiedSDK.swift:56:22: warning: sending 'resolvedConfig' risks causing data races; this is an error in the Swift 6 language mode
54 | let storage = storageProvider ?? DefaultStorageProvider()
55 | let session = sessionProvider ?? DefaultSessionProvider(storage: storage)
56 | let client = HTTPClient(config: resolvedConfig, sessionProvider: session)
| |- warning: sending 'resolvedConfig' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'resolvedConfig' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
57 |
58 | return EsimplifiedSdk(config: resolvedConfig, client: client, sessionProvider: session)
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/EsimplifiedSDK.swift:56:22: warning: sending 'session' risks causing data races; this is an error in the Swift 6 language mode
54 | let storage = storageProvider ?? DefaultStorageProvider()
55 | let session = sessionProvider ?? DefaultSessionProvider(storage: storage)
56 | let client = HTTPClient(config: resolvedConfig, sessionProvider: session)
| |- warning: sending 'session' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'session' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
57 |
58 | return EsimplifiedSdk(config: resolvedConfig, client: client, sessionProvider: session)
[74/95] Compiling EsimplifiedSDK ApiErrorResponse.swift
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/EsimplifiedSDK.swift:56:22: warning: sending 'resolvedConfig' risks causing data races; this is an error in the Swift 6 language mode
54 | let storage = storageProvider ?? DefaultStorageProvider()
55 | let session = sessionProvider ?? DefaultSessionProvider(storage: storage)
56 | let client = HTTPClient(config: resolvedConfig, sessionProvider: session)
| |- warning: sending 'resolvedConfig' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'resolvedConfig' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
57 |
58 | return EsimplifiedSdk(config: resolvedConfig, client: client, sessionProvider: session)
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/EsimplifiedSDK.swift:56:22: warning: sending 'session' risks causing data races; this is an error in the Swift 6 language mode
54 | let storage = storageProvider ?? DefaultStorageProvider()
55 | let session = sessionProvider ?? DefaultSessionProvider(storage: storage)
56 | let client = HTTPClient(config: resolvedConfig, sessionProvider: session)
| |- warning: sending 'session' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'session' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
57 |
58 | return EsimplifiedSdk(config: resolvedConfig, client: client, sessionProvider: session)
[75/95] Compiling EsimplifiedSDK ChangePasswordResponse.swift
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/EsimplifiedSDK.swift:56:22: warning: sending 'resolvedConfig' risks causing data races; this is an error in the Swift 6 language mode
54 | let storage = storageProvider ?? DefaultStorageProvider()
55 | let session = sessionProvider ?? DefaultSessionProvider(storage: storage)
56 | let client = HTTPClient(config: resolvedConfig, sessionProvider: session)
| |- warning: sending 'resolvedConfig' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'resolvedConfig' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
57 |
58 | return EsimplifiedSdk(config: resolvedConfig, client: client, sessionProvider: session)
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/EsimplifiedSDK.swift:56:22: warning: sending 'session' risks causing data races; this is an error in the Swift 6 language mode
54 | let storage = storageProvider ?? DefaultStorageProvider()
55 | let session = sessionProvider ?? DefaultSessionProvider(storage: storage)
56 | let client = HTTPClient(config: resolvedConfig, sessionProvider: session)
| |- warning: sending 'session' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'session' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
57 |
58 | return EsimplifiedSdk(config: resolvedConfig, client: client, sessionProvider: session)
[76/95] Compiling EsimplifiedSDK CheckStockResponse.swift
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/EsimplifiedSDK.swift:56:22: warning: sending 'resolvedConfig' risks causing data races; this is an error in the Swift 6 language mode
54 | let storage = storageProvider ?? DefaultStorageProvider()
55 | let session = sessionProvider ?? DefaultSessionProvider(storage: storage)
56 | let client = HTTPClient(config: resolvedConfig, sessionProvider: session)
| |- warning: sending 'resolvedConfig' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'resolvedConfig' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
57 |
58 | return EsimplifiedSdk(config: resolvedConfig, client: client, sessionProvider: session)
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/EsimplifiedSDK.swift:56:22: warning: sending 'session' risks causing data races; this is an error in the Swift 6 language mode
54 | let storage = storageProvider ?? DefaultStorageProvider()
55 | let session = sessionProvider ?? DefaultSessionProvider(storage: storage)
56 | let client = HTTPClient(config: resolvedConfig, sessionProvider: session)
| |- warning: sending 'session' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'session' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
57 |
58 | return EsimplifiedSdk(config: resolvedConfig, client: client, sessionProvider: session)
[77/95] Compiling EsimplifiedSDK ContentDocument.swift
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/EsimplifiedSDK.swift:56:22: warning: sending 'resolvedConfig' risks causing data races; this is an error in the Swift 6 language mode
54 | let storage = storageProvider ?? DefaultStorageProvider()
55 | let session = sessionProvider ?? DefaultSessionProvider(storage: storage)
56 | let client = HTTPClient(config: resolvedConfig, sessionProvider: session)
| |- warning: sending 'resolvedConfig' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'resolvedConfig' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
57 |
58 | return EsimplifiedSdk(config: resolvedConfig, client: client, sessionProvider: session)
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/EsimplifiedSDK.swift:56:22: warning: sending 'session' risks causing data races; this is an error in the Swift 6 language mode
54 | let storage = storageProvider ?? DefaultStorageProvider()
55 | let session = sessionProvider ?? DefaultSessionProvider(storage: storage)
56 | let client = HTTPClient(config: resolvedConfig, sessionProvider: session)
| |- warning: sending 'session' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'session' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
57 |
58 | return EsimplifiedSdk(config: resolvedConfig, client: client, sessionProvider: session)
[78/95] Compiling EsimplifiedSDK NotificationSettingsResponse.swift
[79/95] Compiling EsimplifiedSDK OrderDetail.swift
[80/95] Compiling EsimplifiedSDK OrderResponse.swift
[81/95] Compiling EsimplifiedSDK PackageResponse.swift
[82/95] Compiling EsimplifiedSDK PaymentResponse.swift
[83/95] Compiling EsimplifiedSDK PhoneVerificationResponse.swift
[84/95] Compiling EsimplifiedSDK Promo.swift
[85/95] Compiling EsimplifiedSDK PromocodeResponse.swift
[86/95] Compiling EsimplifiedSDK RedeemVisaResponse.swift
[87/95] Compiling EsimplifiedSDK VoucherRedeemResponse.swift
[88/95] Compiling EsimplifiedSDK ApiErrorMessage.swift
[89/95] Compiling EsimplifiedSDK Endpoints.swift
[90/95] Compiling EsimplifiedSDK HTTPClient.swift
[91/95] Compiling EsimplifiedSDK HTTPMethod.swift
[92/95] Compiling EsimplifiedSDK NetworkLogger.swift
[93/95] Compiling EsimplifiedSDK SdkCache.swift
[94/95] Compiling EsimplifiedSDK AuthRepositoryType.swift
[95/95] Compiling EsimplifiedSDK CountriesRepositoryType.swift
Build complete! (5.95s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "EsimplifiedSDK",
"name" : "EsimplifiedSDK",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "17.0"
},
{
"name" : "macos",
"version" : "13.0"
}
],
"products" : [
{
"name" : "EsimplifiedSDK",
"targets" : [
"EsimplifiedSDK"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "EsimplifiedSDKTests",
"module_type" : "SwiftTarget",
"name" : "EsimplifiedSDKTests",
"path" : "Tests/EsimplifiedSDKTests",
"sources" : [
"ApiReferenceTests.swift",
"Auth/AuthFlowTests.swift",
"Auth/DefaultSessionProviderTests.swift",
"EsimplifiedSDKTests.swift",
"EsimplifiedSdkInitTests.swift",
"Helpers/MockStorageProvider.swift",
"Helpers/MockURLProtocol.swift",
"Model/ContentDocumentDecodingTests.swift",
"Model/CustomerDecodingTests.swift",
"Model/ModelDecodingTests.swift",
"Model/ModelDecodingTestsExtended.swift",
"Model/OrderDetailDecodingTests.swift",
"Model/RegisterCustomerRequestTests.swift",
"Network/ApiErrorMessageTests.swift",
"Network/HTTPClientTests.swift",
"Network/OfflineErrorMappingTests.swift",
"Network/SdkCacheTests.swift",
"Network/TokenRefreshSerializationTests.swift",
"PromoDecodingTests.swift",
"Repository/ContentRepositoryTests.swift",
"Repository/EsimQrCodeTests.swift",
"Repository/EsimsQueryTests.swift",
"Repository/OrdersPagingTests.swift",
"Repository/PhoneVerificationRepositoryTests.swift",
"Repository/RepositoryResultTests.swift",
"Repository/RepositoryTests.swift",
"SdkConfigTests.swift"
],
"target_dependencies" : [
"EsimplifiedSDK"
],
"type" : "test"
},
{
"c99name" : "EsimplifiedSDK",
"module_type" : "SwiftTarget",
"name" : "EsimplifiedSDK",
"path" : "Sources/EsimplifiedSDK",
"product_memberships" : [
"EsimplifiedSDK"
],
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/PrivacyInfo.xcprivacy",
"rule" : {
"copy" : {
}
}
}
],
"sources" : [
"Auth/AuthState.swift",
"Auth/DefaultSessionProvider.swift",
"Auth/DefaultStorageProvider.swift",
"Auth/SessionProvider.swift",
"Auth/StorageProvider.swift",
"EsimplifiedSDK.swift",
"Model/ApiErrorResponse.swift",
"Model/ChangePasswordResponse.swift",
"Model/CheckStockResponse.swift",
"Model/ContentDocument.swift",
"Model/CountryResponse.swift",
"Model/CustomerEmail.swift",
"Model/DefaultFalse.swift",
"Model/DeleteAccountResponse.swift",
"Model/DestinationFaqResponse.swift",
"Model/EsimsResponse.swift",
"Model/ForgotPasswordResponse.swift",
"Model/KredsResponse.swift",
"Model/MokafaaResponse.swift",
"Model/NotificationSettingsResponse.swift",
"Model/OrderDetail.swift",
"Model/OrderResponse.swift",
"Model/PackageResponse.swift",
"Model/PaymentResponse.swift",
"Model/PhoneVerificationResponse.swift",
"Model/Promo.swift",
"Model/PromocodeResponse.swift",
"Model/RedeemVisaResponse.swift",
"Model/RegisterCustomerRequest.swift",
"Model/RegisterCustomerResponse.swift",
"Model/RegisterUserRequest.swift",
"Model/RestrictedCountryModels.swift",
"Model/SignInCustomerResponse.swift",
"Model/StoreReviewResponse.swift",
"Model/StringExtensions.swift",
"Model/ThemeResponse.swift",
"Model/TrackedOrderResponse.swift",
"Model/TransactionType.swift",
"Model/UpdateCustomerPreferenceResponse.swift",
"Model/UpdateCustomerResponse.swift",
"Model/UpdateEsimResponse.swift",
"Model/UserLocationResponse.swift",
"Model/UserResponse.swift",
"Model/VerifyEmailResponse.swift",
"Model/VisaRewardResponse.swift",
"Model/VisaValidateResponse.swift",
"Model/VoucherRedeemResponse.swift",
"Network/ApiErrorMessage.swift",
"Network/Endpoints.swift",
"Network/HTTPClient.swift",
"Network/HTTPMethod.swift",
"Network/NetworkLogger.swift",
"Network/SdkCache.swift",
"Repository/AuthRepositoryType.swift",
"Repository/CountriesRepositoryType.swift",
"Repository/EsimsRepositoryType.swift",
"Repository/FaqAndSupportRepositoryType.swift",
"Repository/Implementation/AuthRepositoryImpl.swift",
"Repository/Implementation/CountriesRepositoryImpl.swift",
"Repository/Implementation/EsimsRepositoryImpl.swift",
"Repository/Implementation/FaqAndSupportRepositoryImpl.swift",
"Repository/Implementation/LoyaltyRepositoryImpl.swift",
"Repository/Implementation/MarketingRepositoryImpl.swift",
"Repository/Implementation/NotificationRepositoryImpl.swift",
"Repository/Implementation/OrdersRepositoryImpl.swift",
"Repository/Implementation/PackagesRepositoryImpl.swift",
"Repository/Implementation/PaymentsRepositoryImpl.swift",
"Repository/Implementation/PhoneVerificationRepositoryImpl.swift",
"Repository/Implementation/PromoCodeRepositoryImpl.swift",
"Repository/Implementation/StoreReviewRepositoryImpl.swift",
"Repository/Implementation/ThemeRepositoryImpl.swift",
"Repository/Implementation/UserRepositoryImpl.swift",
"Repository/Implementation/VisaRewardsRepositoryImpl.swift",
"Repository/Implementation/VouchersRepositoryImpl.swift",
"Repository/LoyaltyRepositoryType.swift",
"Repository/MarketingRepositoryType.swift",
"Repository/NotificationRepositoryType.swift",
"Repository/OrdersRepositoryType.swift",
"Repository/PackagesRepositoryType.swift",
"Repository/PaymentsRepositoryType.swift",
"Repository/PhoneVerificationRepositoryType.swift",
"Repository/PromoCodeRepositoryType.swift",
"Repository/RepositoryResult.swift",
"Repository/StoreReviewRepositoryType.swift",
"Repository/ThemeRepositoryType.swift",
"Repository/UserRepositoryType.swift",
"Repository/VisaRewardsRepositoryType.swift",
"Repository/VouchersRepositoryType.swift",
"SdkConfig.swift",
"SdkError.swift"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
Done.