Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update workflows
Browse files Browse the repository at this point in the history
ns-vasilev committed Dec 26, 2024
1 parent 3b7657b commit 680226a
Showing 5 changed files with 24 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/flare.yml
Original file line number Diff line number Diff line change
@@ -198,7 +198,7 @@ jobs:

discover-typos:
name: Discover Typos
runs-on: macOS-12
runs-on: macOS-13
env:
DEVELOPER_DIR: /Applications/Xcode_14.1.app/Contents/Developer
steps:
2 changes: 1 addition & 1 deletion .github/workflows/flare_ui.yml
Original file line number Diff line number Diff line change
@@ -236,7 +236,7 @@ jobs:

discover-typos:
name: Discover Typos
runs-on: macOS-12
runs-on: macOS-13
env:
DEVELOPER_DIR: /Applications/Xcode_14.1.app/Contents/Developer
steps:
6 changes: 5 additions & 1 deletion Sources/Flare/Classes/Extensions/SKRequest+Identifier.swift
Original file line number Diff line number Diff line change
@@ -5,7 +5,11 @@

import StoreKit

private nonisolated(unsafe) var requestIdKey: UInt = 0
#if swift(>=6.0)
private nonisolated(unsafe) var requestIdKey: UInt = 0
#else
private var requestIdKey: UInt = 0
#endif

extension SKRequest {
var id: String {
6 changes: 5 additions & 1 deletion Sources/Flare/Classes/Flare.swift
Original file line number Diff line number Diff line change
@@ -23,7 +23,11 @@ public final class Flare {
private let configurationProvider: IConfigurationProvider

/// The singleton instance.
private nonisolated(unsafe) static let flare: Flare = .init()
#if swift(>=6.0)
private nonisolated(unsafe) static let flare: Flare = .init()
#else
private static let flare: Flare = .init()
#endif

/// Returns a shared `Flare` object.
public static var shared: IFlare { flare }
Original file line number Diff line number Diff line change
@@ -52,9 +52,13 @@ final class PurchaseProviderMock: IPurchaseProvider, @unchecked Sendable {
invokedPurchaseParameters = (product, promotionalOffer)
invokedPurchaseParametersList.append((product, promotionalOffer))
if let result = stubbedPurchaseCompletionResult {
MainActor.assumeIsolated {
#if swift(>=6.0)
MainActor.assumeIsolated {
completion(result.0)
}
#else
completion(result.0)
}
#endif
}
}

@@ -77,9 +81,13 @@ final class PurchaseProviderMock: IPurchaseProvider, @unchecked Sendable {
invokedPurchaseWithOptionsParametersList.append((product, options, promotionalOffer))

if let result = stubbedinvokedPurchaseWithOptionsCompletionResult {
MainActor.assumeIsolated {
#if swift(>=6.0)
MainActor.assumeIsolated {
completion(result.0)
}
#else
completion(result.0)
}
#endif
}
}

0 comments on commit 680226a

Please sign in to comment.