Sfoglia il codice sorgente

Disable EMM support for Mac Catalyst builds. (#77)

Peter Andrews 4 anni fa
parent
commit
1594441e61
1 ha cambiato i file con 6 aggiunte e 1 eliminazioni
  1. 6 1
      GoogleSignIn/Sources/GIDSignIn.m

+ 6 - 1
GoogleSignIn/Sources/GIDSignIn.m

@@ -435,7 +435,12 @@ static const NSTimeInterval kMinimumRestoredAccessTokenTimeToExpire = 600.0;
   NSURL *redirectURL = [NSURL URLWithString:[NSString stringWithFormat:@"%@:%@",
                                              [schemes clientIdentifierScheme],
                                              kBrowserCallbackPath]];
-  NSString *emmSupport = [[self class] isOperatingSystemAtLeast9] ? kEMMVersion : nil;
+  NSString *emmSupport;
+#if TARGET_OS_MACCATALYST
+  emmSupport = nil;
+#else
+  emmSupport = [[self class] isOperatingSystemAtLeast9] ? kEMMVersion : nil;
+#endif
 
   NSMutableDictionary<NSString *, NSString *> *additionalParameters = [@{} mutableCopy];
   additionalParameters[kIncludeGrantedScopesParameter] = @"true";