Skip to content

Commit

Permalink
feat: connect OEXFoundation to project
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanStepanok committed Oct 18, 2024
1 parent c1bb639 commit 1225cbc
Show file tree
Hide file tree
Showing 56 changed files with 596 additions and 695 deletions.
133 changes: 133 additions & 0 deletions Authorization/Authorization.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,17 @@
5FB79D2802949372CDAF08D6 /* Pods_App_Authorization_AuthorizationTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4FAE9B7FD61FF88C9C4FE1E8 /* Pods_App_Authorization_AuthorizationTests.framework */; };
BA8B3A322AD5487300D25EF5 /* SocialAuthView.swift in Sources */ = {isa = PBXBuildFile; fileRef = BA8B3A312AD5487300D25EF5 /* SocialAuthView.swift */; };
BADB3F552AD6DFC3004D5CFA /* SocialAuthViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = BADB3F542AD6DFC3004D5CFA /* SocialAuthViewModel.swift */; };
CE7CAF2D2CC155BE00E0AC9D /* OEXFoundation in Frameworks */ = {isa = PBXBuildFile; productRef = CE7CAF2C2CC155BE00E0AC9D /* OEXFoundation */; };
CE7FB8772CC13C0B0088001A /* FacebookLogin in Frameworks */ = {isa = PBXBuildFile; productRef = CE7FB8762CC13C0B0088001A /* FacebookLogin */; };
CE7FB87A2CC13C3C0088001A /* GoogleSignInSwift in Frameworks */ = {isa = PBXBuildFile; productRef = CE7FB8792CC13C3C0088001A /* GoogleSignInSwift */; };
CEB1E2642CC14E3100921517 /* OEXFoundation in Frameworks */ = {isa = PBXBuildFile; productRef = CEB1E2632CC14E3100921517 /* OEXFoundation */; };
CEB25A022CC13A36007FC792 /* AppleAuthProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = CEB259FC2CC13A36007FC792 /* AppleAuthProvider.swift */; };
CEB25A032CC13A36007FC792 /* FacebookAuthProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = CEB259FE2CC13A36007FC792 /* FacebookAuthProvider.swift */; };
CEB25A042CC13A36007FC792 /* GoogleAuthProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = CEB259FD2CC13A36007FC792 /* GoogleAuthProvider.swift */; };
CEB25A052CC13A36007FC792 /* SocialAuthResponse.swift in Sources */ = {isa = PBXBuildFile; fileRef = CEB25A002CC13A36007FC792 /* SocialAuthResponse.swift */; };
CEB25A062CC13A36007FC792 /* MicrosoftAuthProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = CEB259FF2CC13A36007FC792 /* MicrosoftAuthProvider.swift */; };
CEB25A072CC13A36007FC792 /* SocialAuthError.swift in Sources */ = {isa = PBXBuildFile; fileRef = CEB259FA2CC13A36007FC792 /* SocialAuthError.swift */; };
CEBCA42E2CC13C9900076589 /* MSAL in Frameworks */ = {isa = PBXBuildFile; productRef = CEBCA42D2CC13C9900076589 /* MSAL */; };
DE843D6BB1B9DDA398494890 /* Pods_App_Authorization.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 47BCFB7C19382EECF15131B6 /* Pods_App_Authorization.framework */; };
E03261642AE64676002CA7EB /* StartupViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = E03261632AE64676002CA7EB /* StartupViewModel.swift */; };
E03261662AE64AF4002CA7EB /* StartupView.swift in Sources */ = {isa = PBXBuildFile; fileRef = E03261652AE64AF4002CA7EB /* StartupView.swift */; };
Expand All @@ -43,6 +54,19 @@
};
/* End PBXContainerItemProxy section */

/* Begin PBXCopyFilesBuildPhase section */
CE7CAF2F2CC155BE00E0AC9D /* Embed Frameworks */ = {
isa = PBXCopyFilesBuildPhase;
buildActionMask = 2147483647;
dstPath = "";
dstSubfolderSpec = 10;
files = (
);
name = "Embed Frameworks";
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXCopyFilesBuildPhase section */

/* Begin PBXFileReference section */
02066B432906D72400F4307E /* SignUpView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SignUpView.swift; sourceTree = "<group>"; };
02066B452906D72F00F4307E /* SignUpViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SignUpViewModel.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -80,6 +104,12 @@
A99D45203C981893C104053A /* Pods-App-Authorization-AuthorizationTests.releasestage.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-App-Authorization-AuthorizationTests.releasestage.xcconfig"; path = "Target Support Files/Pods-App-Authorization-AuthorizationTests/Pods-App-Authorization-AuthorizationTests.releasestage.xcconfig"; sourceTree = "<group>"; };
BA8B3A312AD5487300D25EF5 /* SocialAuthView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SocialAuthView.swift; sourceTree = "<group>"; };
BADB3F542AD6DFC3004D5CFA /* SocialAuthViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SocialAuthViewModel.swift; sourceTree = "<group>"; };
CEB259FA2CC13A36007FC792 /* SocialAuthError.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SocialAuthError.swift; sourceTree = "<group>"; };
CEB259FC2CC13A36007FC792 /* AppleAuthProvider.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppleAuthProvider.swift; sourceTree = "<group>"; };
CEB259FD2CC13A36007FC792 /* GoogleAuthProvider.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GoogleAuthProvider.swift; sourceTree = "<group>"; };
CEB259FE2CC13A36007FC792 /* FacebookAuthProvider.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FacebookAuthProvider.swift; sourceTree = "<group>"; };
CEB259FF2CC13A36007FC792 /* MicrosoftAuthProvider.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MicrosoftAuthProvider.swift; sourceTree = "<group>"; };
CEB25A002CC13A36007FC792 /* SocialAuthResponse.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SocialAuthResponse.swift; sourceTree = "<group>"; };
E03261632AE64676002CA7EB /* StartupViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StartupViewModel.swift; sourceTree = "<group>"; };
E03261652AE64AF4002CA7EB /* StartupView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StartupView.swift; sourceTree = "<group>"; };
E78971D8E6ED2116BBF9FD66 /* Pods-App-Authorization.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-App-Authorization.release.xcconfig"; path = "Target Support Files/Pods-App-Authorization/Pods-App-Authorization.release.xcconfig"; sourceTree = "<group>"; };
Expand All @@ -93,6 +123,7 @@
buildActionMask = 2147483647;
files = (
07169458296D913400E3DED6 /* Authorization.framework in Frameworks */,
CE7CAF2D2CC155BE00E0AC9D /* OEXFoundation in Frameworks */,
5FB79D2802949372CDAF08D6 /* Pods_App_Authorization_AuthorizationTests.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand All @@ -103,6 +134,10 @@
files = (
0770DE4728D0A3DA006D8A5D /* Core.framework in Frameworks */,
DE843D6BB1B9DDA398494890 /* Pods_App_Authorization.framework in Frameworks */,
CE7FB8772CC13C0B0088001A /* FacebookLogin in Frameworks */,
CEBCA42E2CC13C9900076589 /* MSAL in Frameworks */,
CEB1E2642CC14E3100921517 /* OEXFoundation in Frameworks */,
CE7FB87A2CC13C3C0088001A /* GoogleSignInSwift in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -218,6 +253,7 @@
0770DE3D28D0A319006D8A5D /* Authorization */ = {
isa = PBXGroup;
children = (
CEB25A012CC13A36007FC792 /* SocialAuth */,
0770DE6F28D0C08E006D8A5D /* SwiftGen */,
071009CC28D1E24000344290 /* Presentation */,
0770DE6D28D0C035006D8A5D /* Localizable.strings */,
Expand Down Expand Up @@ -276,6 +312,27 @@
path = SocialAuth;
sourceTree = "<group>";
};
CEB259FB2CC13A36007FC792 /* Error */ = {
isa = PBXGroup;
children = (
CEB259FA2CC13A36007FC792 /* SocialAuthError.swift */,
);
path = Error;
sourceTree = "<group>";
};
CEB25A012CC13A36007FC792 /* SocialAuth */ = {
isa = PBXGroup;
children = (
CEB259FB2CC13A36007FC792 /* Error */,
CEB259FC2CC13A36007FC792 /* AppleAuthProvider.swift */,
CEB259FD2CC13A36007FC792 /* GoogleAuthProvider.swift */,
CEB259FE2CC13A36007FC792 /* FacebookAuthProvider.swift */,
CEB259FF2CC13A36007FC792 /* MicrosoftAuthProvider.swift */,
CEB25A002CC13A36007FC792 /* SocialAuthResponse.swift */,
);
path = SocialAuth;
sourceTree = "<group>";
};
E03261622AE6464A002CA7EB /* Startup */ = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -307,6 +364,7 @@
07169451296D913300E3DED6 /* Frameworks */,
07169452296D913300E3DED6 /* Resources */,
95C8CAF0620ABBBAD7ED66D6 /* [CP] Copy Pods Resources */,
CE7CAF2F2CC155BE00E0AC9D /* Embed Frameworks */,
);
buildRules = (
);
Expand Down Expand Up @@ -367,6 +425,12 @@
uk,
);
mainGroup = 0770DE3128D0A318006D8A5D;
packageReferences = (
CE7FB8752CC13C0B0088001A /* XCRemoteSwiftPackageReference "facebook-ios-sdk" */,
CE7FB8782CC13C3C0088001A /* XCRemoteSwiftPackageReference "GoogleSignIn-iOS" */,
CEBCA42C2CC13C9900076589 /* XCRemoteSwiftPackageReference "microsoft-authentication-library-for-objc" */,
CEB1E2622CC14E3100921517 /* XCRemoteSwiftPackageReference "openedx-app-foundation-ios" */,
);
productRefGroup = 0770DE3C28D0A319006D8A5D /* Products */;
projectDirPath = "";
projectRoot = "";
Expand Down Expand Up @@ -508,6 +572,12 @@
E03261662AE64AF4002CA7EB /* StartupView.swift in Sources */,
071009C728D1DA4F00344290 /* SignInViewModel.swift in Sources */,
BA8B3A322AD5487300D25EF5 /* SocialAuthView.swift in Sources */,
CEB25A022CC13A36007FC792 /* AppleAuthProvider.swift in Sources */,
CEB25A032CC13A36007FC792 /* FacebookAuthProvider.swift in Sources */,
CEB25A042CC13A36007FC792 /* GoogleAuthProvider.swift in Sources */,
CEB25A052CC13A36007FC792 /* SocialAuthResponse.swift in Sources */,
CEB25A062CC13A36007FC792 /* MicrosoftAuthProvider.swift in Sources */,
CEB25A072CC13A36007FC792 /* SocialAuthError.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -1491,6 +1561,69 @@
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */

/* Begin XCRemoteSwiftPackageReference section */
CE7FB8752CC13C0B0088001A /* XCRemoteSwiftPackageReference "facebook-ios-sdk" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/facebook/facebook-ios-sdk";
requirement = {
kind = upToNextMajorVersion;
minimumVersion = 16.3.1;
};
};
CE7FB8782CC13C3C0088001A /* XCRemoteSwiftPackageReference "GoogleSignIn-iOS" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/google/GoogleSignIn-iOS";
requirement = {
kind = upToNextMajorVersion;
minimumVersion = 8.0.0;
};
};
CEB1E2622CC14E3100921517 /* XCRemoteSwiftPackageReference "openedx-app-foundation-ios" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/raccoongang/openedx-app-foundation-ios/";
requirement = {
kind = exactVersion;
version = 0.1.0;
};
};
CEBCA42C2CC13C9900076589 /* XCRemoteSwiftPackageReference "microsoft-authentication-library-for-objc" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/AzureAD/microsoft-authentication-library-for-objc";
requirement = {
kind = upToNextMajorVersion;
minimumVersion = 1.6.1;
};
};
/* End XCRemoteSwiftPackageReference section */

/* Begin XCSwiftPackageProductDependency section */
CE7CAF2C2CC155BE00E0AC9D /* OEXFoundation */ = {
isa = XCSwiftPackageProductDependency;
package = CEB1E2622CC14E3100921517 /* XCRemoteSwiftPackageReference "openedx-app-foundation-ios" */;
productName = OEXFoundation;
};
CE7FB8762CC13C0B0088001A /* FacebookLogin */ = {
isa = XCSwiftPackageProductDependency;
package = CE7FB8752CC13C0B0088001A /* XCRemoteSwiftPackageReference "facebook-ios-sdk" */;
productName = FacebookLogin;
};
CE7FB8792CC13C3C0088001A /* GoogleSignInSwift */ = {
isa = XCSwiftPackageProductDependency;
package = CE7FB8782CC13C3C0088001A /* XCRemoteSwiftPackageReference "GoogleSignIn-iOS" */;
productName = GoogleSignInSwift;
};
CEB1E2632CC14E3100921517 /* OEXFoundation */ = {
isa = XCSwiftPackageProductDependency;
package = CEB1E2622CC14E3100921517 /* XCRemoteSwiftPackageReference "openedx-app-foundation-ios" */;
productName = OEXFoundation;
};
CEBCA42D2CC13C9900076589 /* MSAL */ = {
isa = XCSwiftPackageProductDependency;
package = CEBCA42C2CC13C9900076589 /* XCRemoteSwiftPackageReference "microsoft-authentication-library-for-objc" */;
productName = MSAL;
};
/* End XCSwiftPackageProductDependency section */
};
rootObject = 0770DE3228D0A318006D8A5D /* Project object */;
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

import Foundation
import Core
import OEXFoundation

public enum AuthMethod: Equatable {
case password
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import Foundation
import AuthenticationServices
import Swinject
import OEXFoundation
import Core

public final class AppleAuthProvider: NSObject, ASAuthorizationControllerDelegate {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
//

import Foundation
import Core

public enum SocialAuthError: Error {
case error(text: String)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

import Foundation
import FacebookLogin
import Core

public final class FacebookAuthProvider {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

import GoogleSignIn
import Foundation
import Core

public final class GoogleAuthProvider {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import Foundation
import MSAL
import Swinject
import OEXFoundation
import Core

public typealias MSLoginCompletionHandler = (account: MSALAccount, token: String)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import Authorization
import Foundation
import SwiftUI
import Combine
import OEXFoundation


// MARK: - AuthInteractorProtocol
Expand Down
3 changes: 2 additions & 1 deletion Authorization/Mockfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ unit.tests.mock:
- Authorization
- Foundation
- SwiftUI
- Combine
- Combine
- OEXFoundation
Loading

0 comments on commit 1225cbc

Please sign in to comment.