Skip to content

Commit

Permalink
Prevent missing symbol errors when building for armv7. (#157)
Browse files Browse the repository at this point in the history
  • Loading branch information
petea authored May 27, 2022
1 parent c2d9876 commit 47b7163
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 0 deletions.
4 changes: 4 additions & 0 deletions GoogleSignInSwift/Sources/GoogleSignInButton.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* limitations under the License.
*/

#if !arch(arm)

import SwiftUI
import CoreGraphics

Expand Down Expand Up @@ -191,3 +193,5 @@ private extension Font {
return CTFontManagerRegisterGraphicsFont(newFont, nil)
}
}

#endif // !arch(arm)
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* limitations under the License.
*/

#if !arch(arm)

import Foundation

// MARK: - Bundle Extensions
Expand Down Expand Up @@ -62,3 +64,5 @@ extension Bundle {
return bundle?.url(forResource: name, withExtension: ext)
}
}

#endif // !arch(arm)
4 changes: 4 additions & 0 deletions GoogleSignInSwift/Sources/GoogleSignInButtonStrings.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -56,3 +58,5 @@ struct GoogleSignInButtonString {
return localizedString(key: wideButtonText, text: "No translation")
}
}

#endif // !arch(arm)
4 changes: 4 additions & 0 deletions GoogleSignInSwift/Sources/GoogleSignInButtonStyling.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* limitations under the License.
*/

#if !arch(arm)

import SwiftUI

// MARK: - Sizing Constants
Expand Down Expand Up @@ -280,3 +282,5 @@ struct SwiftUIButtonStyle: ButtonStyle {
)
}
}

#endif // !arch(arm)
4 changes: 4 additions & 0 deletions GoogleSignInSwift/Sources/GoogleSignInButtonViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -47,3 +49,5 @@ public class GoogleSignInButtonViewModel: ObservableObject {
self.state = state
}
}

#endif // !arch(arm)

0 comments on commit 47b7163

Please sign in to comment.