Skip to content

Commit

Permalink
Create NativeDefaultAccountProvider which uses use cases with new net…
Browse files Browse the repository at this point in the history
…working engine
  • Loading branch information
kp-said-rehouni committed Aug 29, 2024
1 parent 6ce740b commit f1319a2
Show file tree
Hide file tree
Showing 2 changed files with 732 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ public class AccountFactory {
SubscriptionsUseCase(networkClient: NetworkRequestFactory.maketNetworkRequestClient(), refreshAuthTokensChecker: makeRefreshAuthTokensChecker())
}

static func makeDefaultAccountProvider(with webServices: WebServices? = nil) -> DefaultAccountProvider {
DefaultAccountProvider(
static func makeDefaultAccountProvider(with webServices: WebServices? = nil) -> NativeDefaultAccountProvider {
NativeDefaultAccountProvider(
webServices: webServices,
logoutUseCase: makeLogoutUseCase(),
loginUseCase: makeLoginUseCase(),
Expand All @@ -47,7 +47,6 @@ public class AccountFactory {
deleteAccountUseCase: makeDeleteAccountUseCase(),
featureFlagsUseCase: makeFeatureFlagsUseCase()
)

}

static func makeRefreshAPITokenUseCase() -> RefreshAPITokenUseCaseType {
Expand Down
Loading

0 comments on commit f1319a2

Please sign in to comment.