-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
828 additions
and
5 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
.swiftpm/xcode/xcshareddata/xcschemes/PovioKitAuth-Package.xcscheme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.swiftpm/xcode/xcshareddata/xcschemes/PovioKitAuthApple.xcscheme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.swiftpm/xcode/xcshareddata/xcschemes/PovioKitAuthCore.xcscheme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.swiftpm/xcode/xcshareddata/xcschemes/PovioKitAuthFacebook.xcscheme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.swiftpm/xcode/xcshareddata/xcschemes/PovioKitAuthGoogle.xcscheme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
7 changes: 7 additions & 0 deletions
7
Demo/PovioKitAuthDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
8 changes: 8 additions & 0 deletions
8
Demo/PovioKitAuthDemo.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>IDEDidComputeMac32BitWarning</key> | ||
<true/> | ||
</dict> | ||
</plist> |
68 changes: 68 additions & 0 deletions
68
Demo/PovioKitAuthDemo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
{ | ||
"pins" : [ | ||
{ | ||
"identity" : "alamofire", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/Alamofire/Alamofire", | ||
"state" : { | ||
"revision" : "f455c2975872ccd2d9c81594c658af65716e9b9a", | ||
"version" : "5.9.1" | ||
} | ||
}, | ||
{ | ||
"identity" : "appauth-ios", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/openid/AppAuth-iOS.git", | ||
"state" : { | ||
"revision" : "c89ed571ae140f8eb1142735e6e23d7bb8c34cb2", | ||
"version" : "1.7.5" | ||
} | ||
}, | ||
{ | ||
"identity" : "facebook-ios-sdk", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/facebook/facebook-ios-sdk", | ||
"state" : { | ||
"revision" : "9b89497b97ef043991862c9a8c5bb7fffaf31988", | ||
"version" : "17.0.1" | ||
} | ||
}, | ||
{ | ||
"identity" : "googlesignin-ios", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/google/GoogleSignIn-iOS", | ||
"state" : { | ||
"revision" : "a7965d134c5d3567026c523e0a8a583f73b62b0d", | ||
"version" : "7.1.0" | ||
} | ||
}, | ||
{ | ||
"identity" : "gtm-session-fetcher", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/google/gtm-session-fetcher.git", | ||
"state" : { | ||
"revision" : "0382ca27f22fb3494cf657d8dc356dc282cd1193", | ||
"version" : "3.4.1" | ||
} | ||
}, | ||
{ | ||
"identity" : "gtmappauth", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/google/GTMAppAuth.git", | ||
"state" : { | ||
"revision" : "5d7d66f647400952b1758b230e019b07c0b4b22a", | ||
"version" : "4.1.1" | ||
} | ||
}, | ||
{ | ||
"identity" : "poviokit", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/poviolabs/PovioKit", | ||
"state" : { | ||
"revision" : "96fa97cffa12ff644f10008133da062bec463ff8", | ||
"version" : "4.0.0" | ||
} | ||
} | ||
], | ||
"version" : 2 | ||
} |
11 changes: 11 additions & 0 deletions
11
Demo/PovioKitAuthDemo/Assets.xcassets/AccentColor.colorset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"colors" : [ | ||
{ | ||
"idiom" : "universal" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
63 changes: 63 additions & 0 deletions
63
Demo/PovioKitAuthDemo/Assets.xcassets/AppIcon.appiconset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"idiom" : "universal", | ||
"platform" : "ios", | ||
"size" : "1024x1024" | ||
}, | ||
{ | ||
"idiom" : "mac", | ||
"scale" : "1x", | ||
"size" : "16x16" | ||
}, | ||
{ | ||
"idiom" : "mac", | ||
"scale" : "2x", | ||
"size" : "16x16" | ||
}, | ||
{ | ||
"idiom" : "mac", | ||
"scale" : "1x", | ||
"size" : "32x32" | ||
}, | ||
{ | ||
"idiom" : "mac", | ||
"scale" : "2x", | ||
"size" : "32x32" | ||
}, | ||
{ | ||
"idiom" : "mac", | ||
"scale" : "1x", | ||
"size" : "128x128" | ||
}, | ||
{ | ||
"idiom" : "mac", | ||
"scale" : "2x", | ||
"size" : "128x128" | ||
}, | ||
{ | ||
"idiom" : "mac", | ||
"scale" : "1x", | ||
"size" : "256x256" | ||
}, | ||
{ | ||
"idiom" : "mac", | ||
"scale" : "2x", | ||
"size" : "256x256" | ||
}, | ||
{ | ||
"idiom" : "mac", | ||
"scale" : "1x", | ||
"size" : "512x512" | ||
}, | ||
{ | ||
"idiom" : "mac", | ||
"scale" : "2x", | ||
"size" : "512x512" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// | ||
// DemoApp.swift | ||
// PovioKitAuthDemo | ||
// | ||
// Created by Borut Tomazin on 10/05/2024. | ||
// Copyright © 2024 Povio Inc. All rights reserved. | ||
// | ||
|
||
import SwiftUI | ||
|
||
@main | ||
struct DemoApp: App { | ||
var body: some Scene { | ||
WindowGroup { | ||
SignInView(viewModel: .init()) | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>com.apple.developer.applesignin</key> | ||
<array> | ||
<string>Default</string> | ||
</array> | ||
<key>com.apple.security.app-sandbox</key> | ||
<true/> | ||
<key>com.apple.security.files.user-selected.read-only</key> | ||
<true/> | ||
</dict> | ||
</plist> |
6 changes: 6 additions & 0 deletions
6
Demo/PovioKitAuthDemo/Preview Content/Preview Assets.xcassets/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
// | ||
// SignInView.swift | ||
// PovioKitAuthDemo | ||
// | ||
// Created by Borut Tomazin on 10/05/2024. | ||
// Copyright © 2024 Povio Inc. All rights reserved. | ||
// | ||
|
||
import SwiftUI | ||
|
||
struct SignInView: View { | ||
let viewModel: SignInViewModel | ||
@State private var showErrorAlert: Bool = false | ||
@State private var showSuccessAlert: Bool = false | ||
|
||
var body: some View { | ||
VStack(spacing: 20) { | ||
Button { | ||
viewModel.signInWithApple() | ||
} label: { | ||
Text("SignIn with Apple") | ||
} | ||
Button { | ||
viewModel.signInWithGoogle() | ||
} label: { | ||
Text("SignIn with Google") | ||
} | ||
Button { | ||
viewModel.signInWithFacebook() | ||
} label: { | ||
Text("SignIn with Facebook") | ||
} | ||
Button { | ||
viewModel.signInWithLinkedIn() | ||
} label: { | ||
Text("SignIn with LinkedIn") | ||
} | ||
} | ||
.onChange(of: viewModel.error) { oldValue, newValue in | ||
showErrorAlert = true | ||
} | ||
.onChange(of: viewModel.success) { oldValue, newValue in | ||
showSuccessAlert = true | ||
} | ||
.alert("Error", isPresented: $showErrorAlert) { | ||
Button("Ok", action: {}) | ||
} message: { | ||
Text(viewModel.error) | ||
} | ||
.alert("Success", isPresented: $showSuccessAlert) { | ||
Button("Ok", action: {}) | ||
} message: { | ||
Text(viewModel.success) | ||
} | ||
} | ||
} | ||
|
||
#Preview { | ||
SignInView(viewModel: .init()) | ||
} |
Oops, something went wrong.