فهرست منبع

Prevent missing symbol errors when building for armv7. (#157)

Peter Andrews 3 سال پیش
والد
کامیت
47b716352a

+ 4 - 0
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)

+ 4 - 0
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)

+ 4 - 0
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)

+ 4 - 0
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)

+ 4 - 0
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)