Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .swiftlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ opt_in_rules: # some rules are only opt-in
excluded: # paths to ignore during linting. Takes precedence over `included`.
- Carthage
- DerivedData
- build
- Pods
- DerivedData
- Core/CoreTests
Expand Down
15 changes: 13 additions & 2 deletions AppDates/AppDatesTests/Generated/AppDatesMocks.generated.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import ZipArchive

public final class ConfigProtocolMock: ConfigProtocol, @unchecked Sendable {
public init() { }
public init(baseURL: URL = URL(fileURLWithPath: ""), baseSSOURL: URL = URL(fileURLWithPath: ""), ssoFinishedURL: URL = URL(fileURLWithPath: ""), ssoButtonTitle: [String: Any] = [String: Any](), oAuthClientId: String = "", tokenType: TokenType, feedbackEmail: String = "", appStoreLink: String = "", faq: URL? = nil, platformName: String = "", agreement: AgreementConfig, firebase: FirebaseConfig, facebook: FacebookConfig, microsoft: MicrosoftConfig, google: GoogleConfig, appleSignIn: AppleSignInConfig, features: FeaturesConfig, theme: ThemeConfig, uiComponents: UIComponentsConfig, discovery: DiscoveryConfig, dashboard: DashboardConfig, braze: BrazeConfig, branch: BranchConfig, program: DiscoveryConfig, experimentalFeatures: ExperimentalFeaturesConfig, URIScheme: String = "") {
public init(baseURL: URL = URL(fileURLWithPath: ""), baseSSOURL: URL = URL(fileURLWithPath: ""), ssoFinishedURL: URL = URL(fileURLWithPath: ""), ssoButtonTitle: [String: Any] = [String: Any](), oAuthClientId: String = "", tokenType: TokenType, feedbackEmail: String = "", appStoreLink: String = "", faq: URL? = nil, platformName: String = "", agreement: AgreementConfig, firebase: FirebaseConfig, facebook: FacebookConfig, microsoft: MicrosoftConfig, google: GoogleConfig, appleSignIn: AppleSignInConfig, features: FeaturesConfig, theme: ThemeConfig, uiComponents: UIComponentsConfig, lmsDirectory: LMSDirectoryConfig, discovery: DiscoveryConfig, dashboard: DashboardConfig, braze: BrazeConfig, branch: BranchConfig, program: DiscoveryConfig, experimentalFeatures: ExperimentalFeaturesConfig, URIScheme: String = "") {
self.baseURL = baseURL
self.baseSSOURL = baseSSOURL
self.ssoFinishedURL = ssoFinishedURL
Expand All @@ -37,6 +37,7 @@ public final class ConfigProtocolMock: ConfigProtocol, @unchecked Sendable {
self._features = features
self._theme = theme
self._uiComponents = uiComponents
self._lmsDirectory = lmsDirectory
self._discovery = discovery
self._dashboard = dashboard
self._braze = braze
Expand Down Expand Up @@ -138,6 +139,12 @@ public final class ConfigProtocolMock: ConfigProtocol, @unchecked Sendable {
}


private var _lmsDirectory: LMSDirectoryConfig!
public var lmsDirectory: LMSDirectoryConfig {
get { return _lmsDirectory }
set { _lmsDirectory = newValue }
}

private var _uiComponents: UIComponentsConfig!
public var uiComponents: UIComponentsConfig {
get { return _uiComponents }
Expand Down Expand Up @@ -257,7 +264,7 @@ public final class CoreAnalyticsMock: CoreAnalytics {

public final class CoreStorageMock: CoreStorage, @unchecked Sendable {
public init() { }
public init(accessToken: String? = nil, refreshToken: String? = nil, pushToken: String? = nil, appleSignFullName: String? = nil, appleSignEmail: String? = nil, cookiesDate: Date? = nil, reviewLastShownVersion: String? = nil, lastReviewDate: Date? = nil, user: DataLayer.User? = nil, userSettings: UserSettings? = nil, resetAppSupportDirectoryUserData: Bool? = nil, useRelativeDates: Bool = false, lastUsedSocialAuth: String? = nil, latestAvailableAppVersion: String? = nil, updateAppRequired: Bool = false) {
public init(accessToken: String? = nil, refreshToken: String? = nil, pushToken: String? = nil, appleSignFullName: String? = nil, appleSignEmail: String? = nil, cookiesDate: Date? = nil, reviewLastShownVersion: String? = nil, lastReviewDate: Date? = nil, user: DataLayer.User? = nil, userSettings: UserSettings? = nil, resetAppSupportDirectoryUserData: Bool? = nil, useRelativeDates: Bool = false, lastUsedSocialAuth: String? = nil, latestAvailableAppVersion: String? = nil, updateAppRequired: Bool = false, selectedLMSBaseURL: String? = nil) {
self.accessToken = accessToken
self.refreshToken = refreshToken
self.pushToken = pushToken
Expand All @@ -273,6 +280,7 @@ public final class CoreStorageMock: CoreStorage, @unchecked Sendable {
self.lastUsedSocialAuth = lastUsedSocialAuth
self.latestAvailableAppVersion = latestAvailableAppVersion
self.updateAppRequired = updateAppRequired
self.selectedLMSBaseURL = selectedLMSBaseURL
}


Expand Down Expand Up @@ -321,6 +329,9 @@ public final class CoreStorageMock: CoreStorage, @unchecked Sendable {
public private(set) var updateAppRequiredSetCallCount = 0
public var updateAppRequired: Bool = false { didSet { updateAppRequiredSetCallCount += 1 } }

public private(set) var selectedLMSBaseURLSetCallCount = 0
public var selectedLMSBaseURL: String? = nil { didSet { selectedLMSBaseURLSetCallCount += 1 } }

private let clearState = MockoloMutex(MockoloHandlerState<Never, @Sendable () -> ()>())
public var clearCallCount: Int {
return clearState.withLock(\.callCount)
Expand Down
Loading
Loading