Skip to content

Commit

Permalink
Rename OAuthClient package to AuthenticationClient
Browse files Browse the repository at this point in the history
  • Loading branch information
mohannad-hassan committed Jan 1, 2025
1 parent c0f4c25 commit a5fa1a8
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 12 deletions.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// AppAuthOAuthClientTests.swift
// AuthentincationDataManagerTests.swift
// QuranEngine
//
// Created by Mohannad Hassan on 26/12/2024.
Expand All @@ -9,9 +9,9 @@ import AppAuth
import Combine
import Foundation
import XCTest
@testable import OAuthClient
@testable import AuthenticationClient

final class AppAuthOAuthClientTests: XCTestCase {
final class AuthentincationDataManagerTests: XCTestCase {
// MARK: Internal

let configuration = OAuthAppConfiguration(
Expand Down Expand Up @@ -155,7 +155,7 @@ private final class OAuthCallerMock: OAuthCaller {
var loginResult: Result<AuthenticationData, Error>?

func login(
using configuration: OAuthClient.OAuthAppConfiguration,
using configuration: OAuthAppConfiguration,
on viewController: UIViewController
) async throws -> AuthenticationData {
try loginResult!.get()
Expand Down Expand Up @@ -204,7 +204,7 @@ private final class PersistanceMock: Persistance {
var clearCalled = false
var currentState: AuthenticationData?

func persist(state: OAuthClient.AuthenticationData) throws {
func persist(state: AuthenticationData) throws {
currentState = state
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// Created by Mohannad Hassan on 23/12/2024.
//

import OAuthClient
import AuthenticationClient
import UIKit

public class QuranProfileService {
Expand Down
2 changes: 1 addition & 1 deletion Example/QuranEngineApp/Classes/Container.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@

import Analytics
import AppDependencies
import AuthenticationClient
import BatchDownloader
import CoreDataModel
import CoreDataPersistence
import Foundation
import LastPagePersistence
import NotePersistence
import OAuthClient
import PageBookmarkPersistence
import ReadingService
import UIKit
Expand Down
2 changes: 1 addition & 1 deletion Features/AppDependencies/AppDependencies.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@

import Analytics
import AnnotationsService
import AuthenticationClient
import BatchDownloader
import Foundation
import LastPagePersistence
import NotePersistence
import OAuthClient
import PageBookmarkPersistence
import QuranResources
import QuranTextKit
Expand Down
2 changes: 1 addition & 1 deletion Features/AppStructureFeature/Launch/LaunchStartup.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import AppMigrationFeature
import AppMigrator
import AudioUpdater
import OAuthClient
import AuthenticationClient
import SettingsService
import UIKit
import VLogging
Expand Down
6 changes: 3 additions & 3 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ private func dataTargets() -> [[Target]] {

// MARK: - Quran.com OAuth

target(type, name: "OAuthClient", hasTests: true, dependencies: [
target(type, name: "AuthenticationClient", hasTests: true, dependencies: [
"VLogging",
.product(name: "AppAuth", package: "AppAuth-iOS"),
]),
Expand Down Expand Up @@ -470,7 +470,7 @@ private func domainTargets() -> [[Target]] {
]),

target(type, name: "QuranProfileService", hasTests: false, dependencies: [
"OAuthClient",
"AuthenticationClient",
]),
]
}
Expand All @@ -487,7 +487,7 @@ private func featuresTargets() -> [[Target]] {
"LastPagePersistence",
"ReadingService",
"QuranResources",
"OAuthClient",
"AuthenticationClient",
]),

target(type, name: "FeaturesSupport", hasTests: false, dependencies: [
Expand Down

0 comments on commit a5fa1a8

Please sign in to comment.