From ddc6fb48f88a598280fa932b25cbf09b819c5253 Mon Sep 17 00:00:00 2001 From: Borut Tomazin Date: Tue, 14 Jan 2025 10:41:54 +0100 Subject: [PATCH 1/2] Google/Main thread fix (#36) --- Sources/Google/GoogleAuthenticator.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Sources/Google/GoogleAuthenticator.swift b/Sources/Google/GoogleAuthenticator.swift index 1242a19..f61f224 100644 --- a/Sources/Google/GoogleAuthenticator.swift +++ b/Sources/Google/GoogleAuthenticator.swift @@ -81,6 +81,7 @@ private extension GoogleAuthenticator { } } + @MainActor func signInUser( from presentingViewController: UIViewController, hint: String?, From eaa51d914712be9d3b4e5c92091465051ef1961e Mon Sep 17 00:00:00 2001 From: Borut Tomazin Date: Tue, 14 Jan 2025 10:45:40 +0100 Subject: [PATCH 2/2] Copyright update. --- Demo/PovioKitAuthDemo/DemoApp.swift | 2 +- Demo/PovioKitAuthDemo/SignInView.swift | 2 +- Demo/PovioKitAuthDemo/SignInViewModel.swift | 2 +- LICENSE | 2 +- README.md | 2 +- Sources/Apple/AppleAuthenticator+Models.swift | 2 +- Sources/Apple/AppleAuthenticator+PovioKitAuth.swift | 2 +- Sources/Apple/AppleAuthenticator.swift | 2 +- Sources/Core/Authenticator.swift | 2 +- Sources/Core/JWTDecoder.swift | 2 +- Sources/Core/PersonNameComponents+Extension.swift | 1 + Sources/Core/SocialAuthenticationManager.swift | 2 +- Sources/Facebook/FacebookAuthenticator+Models.swift | 2 +- Sources/Facebook/FacebookAuthenticator.swift | 2 +- Sources/Google/GoogleAuthenticator+Models.swift | 2 +- Sources/Google/GoogleAuthenticator.swift | 2 +- Sources/LinkedIn/API/LinkedInAPI+Endpoints.swift | 2 +- Sources/LinkedIn/API/LinkedInAPI+Models.swift | 2 +- Sources/LinkedIn/API/LinkedInAPI.swift | 2 +- Sources/LinkedIn/Core/HttpClient.swift | 2 +- Sources/LinkedIn/Core/URL+PovioKitAuth.swift | 2 +- Sources/LinkedIn/LinkedInAuthenticator+Models.swift | 2 +- Sources/LinkedIn/LinkedInAuthenticator.swift | 2 +- Sources/LinkedIn/WebView/LinkedInWebView.swift | 2 +- Tests/Tests/Auth/Core/JWTDecoderTests.swift | 2 +- 25 files changed, 25 insertions(+), 24 deletions(-) diff --git a/Demo/PovioKitAuthDemo/DemoApp.swift b/Demo/PovioKitAuthDemo/DemoApp.swift index d880eda..d72e849 100644 --- a/Demo/PovioKitAuthDemo/DemoApp.swift +++ b/Demo/PovioKitAuthDemo/DemoApp.swift @@ -3,7 +3,7 @@ // PovioKitAuthDemo // // Created by Borut Tomazin on 10/05/2024. -// Copyright © 2024 Povio Inc. All rights reserved. +// Copyright © 2025 Povio Inc. All rights reserved. // import SwiftUI diff --git a/Demo/PovioKitAuthDemo/SignInView.swift b/Demo/PovioKitAuthDemo/SignInView.swift index 33fc2f3..11d01f1 100644 --- a/Demo/PovioKitAuthDemo/SignInView.swift +++ b/Demo/PovioKitAuthDemo/SignInView.swift @@ -3,7 +3,7 @@ // PovioKitAuthDemo // // Created by Borut Tomazin on 10/05/2024. -// Copyright © 2024 Povio Inc. All rights reserved. +// Copyright © 2025 Povio Inc. All rights reserved. // import SwiftUI diff --git a/Demo/PovioKitAuthDemo/SignInViewModel.swift b/Demo/PovioKitAuthDemo/SignInViewModel.swift index b431c56..320fdd3 100644 --- a/Demo/PovioKitAuthDemo/SignInViewModel.swift +++ b/Demo/PovioKitAuthDemo/SignInViewModel.swift @@ -3,7 +3,7 @@ // PovioKitAuthDemo // // Created by Borut Tomazin on 10/05/2024. -// Copyright © 2024 Povio Inc. All rights reserved. +// Copyright © 2025 Povio Inc. All rights reserved. // import UIKit diff --git a/LICENSE b/LICENSE index 09b9df2..90014b4 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2024 Povio Inc. +Copyright (c) 2025 Povio Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index 4ac93f9..8e74e30 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ ### Swift Package Manager - In Xcode, click `File` -> `Add Packages...` - Insert `https://github.com/poviolabs/PovioKitAuth` in the Search field. -- Select a desired `Dependency Rule`. Usually "Up to Next Major Version" with "1.0.0". +- Select a desired `Dependency Rule`. Usually "Up to Next Major Version" with "2.1.0". - Select "Add Package" button and check one or all given products from the list: - *PovioKitAuthCore* (core library) - *PovioKitAuthApple* (Apple auth components) diff --git a/Sources/Apple/AppleAuthenticator+Models.swift b/Sources/Apple/AppleAuthenticator+Models.swift index d09335d..5abd62e 100644 --- a/Sources/Apple/AppleAuthenticator+Models.swift +++ b/Sources/Apple/AppleAuthenticator+Models.swift @@ -3,7 +3,7 @@ // PovioKitAuth // // Created by Borut Tomazin on 28/10/2022. -// Copyright © 2024 Povio Inc. All rights reserved. +// Copyright © 2025 Povio Inc. All rights reserved. // import AuthenticationServices diff --git a/Sources/Apple/AppleAuthenticator+PovioKitAuth.swift b/Sources/Apple/AppleAuthenticator+PovioKitAuth.swift index 628fc22..2ea0f36 100644 --- a/Sources/Apple/AppleAuthenticator+PovioKitAuth.swift +++ b/Sources/Apple/AppleAuthenticator+PovioKitAuth.swift @@ -3,7 +3,7 @@ // PovioKitAuth // // Created by Borut Tomazin on 28/10/2022. -// Copyright © 2024 Povio Inc. All rights reserved. +// Copyright © 2025 Povio Inc. All rights reserved. // import AuthenticationServices diff --git a/Sources/Apple/AppleAuthenticator.swift b/Sources/Apple/AppleAuthenticator.swift index 20dd83a..1b97ca0 100644 --- a/Sources/Apple/AppleAuthenticator.swift +++ b/Sources/Apple/AppleAuthenticator.swift @@ -3,7 +3,7 @@ // PovioKitAuth // // Created by Borut Tomazin on 24/10/2022. -// Copyright © 2024 Povio Inc. All rights reserved. +// Copyright © 2025 Povio Inc. All rights reserved. // import AuthenticationServices diff --git a/Sources/Core/Authenticator.swift b/Sources/Core/Authenticator.swift index c0e04d6..e61300c 100644 --- a/Sources/Core/Authenticator.swift +++ b/Sources/Core/Authenticator.swift @@ -3,7 +3,7 @@ // PovioKitAuth // // Created by Borut Tomazin on 20/01/2023. -// Copyright © 2024 Povio Inc. All rights reserved. +// Copyright © 2025 Povio Inc. All rights reserved. // import UIKit diff --git a/Sources/Core/JWTDecoder.swift b/Sources/Core/JWTDecoder.swift index 6b6bec4..fd428cc 100644 --- a/Sources/Core/JWTDecoder.swift +++ b/Sources/Core/JWTDecoder.swift @@ -3,7 +3,7 @@ // PovioKitAuth // // Created by Borut Tomazin on 10/1/2023. -// Copyright © 2024 Povio Inc. All rights reserved. +// Copyright © 2025 Povio Inc. All rights reserved. // import Foundation diff --git a/Sources/Core/PersonNameComponents+Extension.swift b/Sources/Core/PersonNameComponents+Extension.swift index 46c70b7..05d10a5 100644 --- a/Sources/Core/PersonNameComponents+Extension.swift +++ b/Sources/Core/PersonNameComponents+Extension.swift @@ -3,6 +3,7 @@ // PovioKitAuth // // Created by Egzon Arifi on 09/11/2024. +// Copyright © 2025 Povio Inc. All rights reserved. // import AuthenticationServices diff --git a/Sources/Core/SocialAuthenticationManager.swift b/Sources/Core/SocialAuthenticationManager.swift index 4896a33..c7e5b90 100644 --- a/Sources/Core/SocialAuthenticationManager.swift +++ b/Sources/Core/SocialAuthenticationManager.swift @@ -3,7 +3,7 @@ // PovioKitAuth // // Created by Borut Tomazin on 30/01/2023. -// Copyright © 2024 Povio Inc. All rights reserved. +// Copyright © 2025 Povio Inc. All rights reserved. // import Foundation diff --git a/Sources/Facebook/FacebookAuthenticator+Models.swift b/Sources/Facebook/FacebookAuthenticator+Models.swift index 9996584..ecae249 100644 --- a/Sources/Facebook/FacebookAuthenticator+Models.swift +++ b/Sources/Facebook/FacebookAuthenticator+Models.swift @@ -3,7 +3,7 @@ // PovioKitAuth // // Created by Borut Tomazin on 30/11/2022. -// Copyright © 2024 Povio Inc. All rights reserved. +// Copyright © 2025 Povio Inc. All rights reserved. // import Foundation diff --git a/Sources/Facebook/FacebookAuthenticator.swift b/Sources/Facebook/FacebookAuthenticator.swift index f133815..8285af4 100644 --- a/Sources/Facebook/FacebookAuthenticator.swift +++ b/Sources/Facebook/FacebookAuthenticator.swift @@ -3,7 +3,7 @@ // PovioKitAuth // // Created by Borut Tomazin on 29/11/2022. -// Copyright © 2024 Povio Inc. All rights reserved. +// Copyright © 2025 Povio Inc. All rights reserved. // import Foundation diff --git a/Sources/Google/GoogleAuthenticator+Models.swift b/Sources/Google/GoogleAuthenticator+Models.swift index 7f08a41..2626f9d 100644 --- a/Sources/Google/GoogleAuthenticator+Models.swift +++ b/Sources/Google/GoogleAuthenticator+Models.swift @@ -3,7 +3,7 @@ // PovioKitAuth // // Created by Borut Tomazin on 30/01/2023. -// Copyright © 2024 Povio Inc. All rights reserved. +// Copyright © 2025 Povio Inc. All rights reserved. // import Foundation diff --git a/Sources/Google/GoogleAuthenticator.swift b/Sources/Google/GoogleAuthenticator.swift index f61f224..7c3ea24 100644 --- a/Sources/Google/GoogleAuthenticator.swift +++ b/Sources/Google/GoogleAuthenticator.swift @@ -3,7 +3,7 @@ // PovioKitAuth // // Created by Borut Tomazin on 25/10/2022. -// Copyright © 2024 Povio Inc. All rights reserved. +// Copyright © 2025 Povio Inc. All rights reserved. // import Foundation diff --git a/Sources/LinkedIn/API/LinkedInAPI+Endpoints.swift b/Sources/LinkedIn/API/LinkedInAPI+Endpoints.swift index ed4c977..abadbbb 100644 --- a/Sources/LinkedIn/API/LinkedInAPI+Endpoints.swift +++ b/Sources/LinkedIn/API/LinkedInAPI+Endpoints.swift @@ -3,7 +3,7 @@ // PovioKitAuth // // Created by Borut Tomazin on 04/09/2023. -// Copyright © 2024 Povio Inc. All rights reserved. +// Copyright © 2025 Povio Inc. All rights reserved. // import Foundation diff --git a/Sources/LinkedIn/API/LinkedInAPI+Models.swift b/Sources/LinkedIn/API/LinkedInAPI+Models.swift index 76ea1f0..c1b5548 100644 --- a/Sources/LinkedIn/API/LinkedInAPI+Models.swift +++ b/Sources/LinkedIn/API/LinkedInAPI+Models.swift @@ -3,7 +3,7 @@ // PovioKitAuth // // Created by Borut Tomazin on 04/09/2023. -// Copyright © 2024 Povio Inc. All rights reserved. +// Copyright © 2025 Povio Inc. All rights reserved. // import Foundation diff --git a/Sources/LinkedIn/API/LinkedInAPI.swift b/Sources/LinkedIn/API/LinkedInAPI.swift index ab24be1..541cc4c 100644 --- a/Sources/LinkedIn/API/LinkedInAPI.swift +++ b/Sources/LinkedIn/API/LinkedInAPI.swift @@ -3,7 +3,7 @@ // PovioKitAuth // // Created by Borut Tomazin on 04/09/2023. -// Copyright © 2024 Povio Inc. All rights reserved. +// Copyright © 2025 Povio Inc. All rights reserved. // import Foundation diff --git a/Sources/LinkedIn/Core/HttpClient.swift b/Sources/LinkedIn/Core/HttpClient.swift index a5de27d..ef6dd01 100644 --- a/Sources/LinkedIn/Core/HttpClient.swift +++ b/Sources/LinkedIn/Core/HttpClient.swift @@ -3,7 +3,7 @@ // PovioKitAuth // // Created by Borut Tomazin on 22/05/2024. -// Copyright © 2024 Povio Inc. All rights reserved. +// Copyright © 2025 Povio Inc. All rights reserved. // import Foundation diff --git a/Sources/LinkedIn/Core/URL+PovioKitAuth.swift b/Sources/LinkedIn/Core/URL+PovioKitAuth.swift index 5160797..616343a 100644 --- a/Sources/LinkedIn/Core/URL+PovioKitAuth.swift +++ b/Sources/LinkedIn/Core/URL+PovioKitAuth.swift @@ -3,7 +3,7 @@ // PovioKitAuth // // Created by Borut Tomazin on 22/05/2024. -// Copyright © 2024 Povio Inc. All rights reserved. +// Copyright © 2025 Povio Inc. All rights reserved. // import Foundation diff --git a/Sources/LinkedIn/LinkedInAuthenticator+Models.swift b/Sources/LinkedIn/LinkedInAuthenticator+Models.swift index e835783..515debe 100644 --- a/Sources/LinkedIn/LinkedInAuthenticator+Models.swift +++ b/Sources/LinkedIn/LinkedInAuthenticator+Models.swift @@ -3,7 +3,7 @@ // PovioKitAuth // // Created by Borut Tomazin on 30/01/2023. -// Copyright © 2024 Povio Inc. All rights reserved. +// Copyright © 2025 Povio Inc. All rights reserved. // import Foundation diff --git a/Sources/LinkedIn/LinkedInAuthenticator.swift b/Sources/LinkedIn/LinkedInAuthenticator.swift index e2a8aa1..74b04a9 100644 --- a/Sources/LinkedIn/LinkedInAuthenticator.swift +++ b/Sources/LinkedIn/LinkedInAuthenticator.swift @@ -3,7 +3,7 @@ // PovioKitAuth // // Created by Borut Tomazin on 04/09/2023. -// Copyright © 2024 Povio Inc. All rights reserved. +// Copyright © 2025 Povio Inc. All rights reserved. // import UIKit diff --git a/Sources/LinkedIn/WebView/LinkedInWebView.swift b/Sources/LinkedIn/WebView/LinkedInWebView.swift index bb26b86..2afcb02 100644 --- a/Sources/LinkedIn/WebView/LinkedInWebView.swift +++ b/Sources/LinkedIn/WebView/LinkedInWebView.swift @@ -3,7 +3,7 @@ // PovioKitAuth // // Created by Borut Tomazin on 04/09/2023. -// Copyright © 2024 Povio Inc. All rights reserved. +// Copyright © 2025 Povio Inc. All rights reserved. // import SwiftUI diff --git a/Tests/Tests/Auth/Core/JWTDecoderTests.swift b/Tests/Tests/Auth/Core/JWTDecoderTests.swift index 8ce4992..481032c 100644 --- a/Tests/Tests/Auth/Core/JWTDecoderTests.swift +++ b/Tests/Tests/Auth/Core/JWTDecoderTests.swift @@ -3,7 +3,7 @@ // PovioKitAuth_Tests // // Created by Borut Tomazin on 12/1/2023. -// Copyright © 2024 Povio Inc. All rights reserved. +// Copyright © 2025 Povio Inc. All rights reserved. // import XCTest