From 47b716352abfa91bf73843b8a27ba1f0571968c8 Mon Sep 17 00:00:00 2001 From: Peter Andrews Date: Fri, 27 May 2022 15:37:44 -0700 Subject: [PATCH] Prevent missing symbol errors when building for armv7. (#157) --- GoogleSignInSwift/Sources/GoogleSignInButton.swift | 4 ++++ .../Sources/GoogleSignInButtonBundleExtensions.swift | 4 ++++ GoogleSignInSwift/Sources/GoogleSignInButtonStrings.swift | 4 ++++ GoogleSignInSwift/Sources/GoogleSignInButtonStyling.swift | 4 ++++ GoogleSignInSwift/Sources/GoogleSignInButtonViewModel.swift | 4 ++++ 5 files changed, 20 insertions(+) diff --git a/GoogleSignInSwift/Sources/GoogleSignInButton.swift b/GoogleSignInSwift/Sources/GoogleSignInButton.swift index cb86efcd..02acf289 100644 --- a/GoogleSignInSwift/Sources/GoogleSignInButton.swift +++ b/GoogleSignInSwift/Sources/GoogleSignInButton.swift @@ -14,6 +14,8 @@ * limitations under the License. */ +#if !arch(arm) + import SwiftUI import CoreGraphics @@ -191,3 +193,5 @@ private extension Font { return CTFontManagerRegisterGraphicsFont(newFont, nil) } } + +#endif // !arch(arm) diff --git a/GoogleSignInSwift/Sources/GoogleSignInButtonBundleExtensions.swift b/GoogleSignInSwift/Sources/GoogleSignInButtonBundleExtensions.swift index 73e29692..664159d0 100644 --- a/GoogleSignInSwift/Sources/GoogleSignInButtonBundleExtensions.swift +++ b/GoogleSignInSwift/Sources/GoogleSignInButtonBundleExtensions.swift @@ -14,6 +14,8 @@ * limitations under the License. */ +#if !arch(arm) + import Foundation // MARK: - Bundle Extensions @@ -62,3 +64,5 @@ extension Bundle { return bundle?.url(forResource: name, withExtension: ext) } } + +#endif // !arch(arm) diff --git a/GoogleSignInSwift/Sources/GoogleSignInButtonStrings.swift b/GoogleSignInSwift/Sources/GoogleSignInButtonStrings.swift index 88a1f05e..f463ea3a 100644 --- a/GoogleSignInSwift/Sources/GoogleSignInButtonStrings.swift +++ b/GoogleSignInSwift/Sources/GoogleSignInButtonStrings.swift @@ -14,6 +14,8 @@ * limitations under the License. */ +#if !arch(arm) + import Foundation /// A type retrieving the localized strings for the sign-in button text. @@ -56,3 +58,5 @@ struct GoogleSignInButtonString { return localizedString(key: wideButtonText, text: "No translation") } } + +#endif // !arch(arm) diff --git a/GoogleSignInSwift/Sources/GoogleSignInButtonStyling.swift b/GoogleSignInSwift/Sources/GoogleSignInButtonStyling.swift index 7164d104..77d4c504 100644 --- a/GoogleSignInSwift/Sources/GoogleSignInButtonStyling.swift +++ b/GoogleSignInSwift/Sources/GoogleSignInButtonStyling.swift @@ -14,6 +14,8 @@ * limitations under the License. */ +#if !arch(arm) + import SwiftUI // MARK: - Sizing Constants @@ -280,3 +282,5 @@ struct SwiftUIButtonStyle: ButtonStyle { ) } } + +#endif // !arch(arm) diff --git a/GoogleSignInSwift/Sources/GoogleSignInButtonViewModel.swift b/GoogleSignInSwift/Sources/GoogleSignInButtonViewModel.swift index 60e0a45b..54cabefa 100644 --- a/GoogleSignInSwift/Sources/GoogleSignInButtonViewModel.swift +++ b/GoogleSignInSwift/Sources/GoogleSignInButtonViewModel.swift @@ -14,6 +14,8 @@ * limitations under the License. */ +#if !arch(arm) + import Combine /// A view model for the SwiftUI sign-in button publishing changes for the @@ -47,3 +49,5 @@ public class GoogleSignInButtonViewModel: ObservableObject { self.state = state } } + +#endif // !arch(arm)