Skip to content

Commit

Permalink
Fix Examples/Google for linux builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
timburks committed Dec 30, 2017
1 parent d8a6a0b commit c5f11b6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Sources/Examples/Google/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,17 @@ func main() throws {
return
}

let scopes = ["profile",
"https://www.googleapis.com/auth/contacts.readonly",
"https://www.googleapis.com/auth/cloud-platform"]

var tokenProvider : TokenProvider
#if os(OSX)
tokenProvider = BrowserTokenProvider(credentials:CLIENT_CREDENTIALS, token:TOKEN)!
#else
tokenProvider = DefaultTokenProvider()!
tokenProvider = DefaultTokenProvider(scopes:scopes)!
#endif

let scopes = ["profile",
"https://www.googleapis.com/auth/contacts.readonly",
"https://www.googleapis.com/auth/cloud-platform"]

if USE_SERVICE_ACCOUNT {
if #available(OSX 10.12, *) {
let homeURL = FileManager.default.homeDirectoryForCurrentUser
Expand Down

0 comments on commit c5f11b6

Please sign in to comment.