feature: Ported the sample project to MacOS swift with some minor mod…#61
feature: Ported the sample project to MacOS swift with some minor mod…#61grantkemp wants to merge 2 commits intogoogle:masterfrom grantkemp:feature/60-add-swift-macOS-example-and-fix-docs-
Conversation
…ifications ( as little as possible) to keep things comparable. - Added some simplified documentation to Readme and into the project adjacent to the relevant variables so that its easier to understand whats needed. - Added in docs for some missing steps that bamboozled me and lost me time. - Moved Scopes up to a variable and showed other users where to access them. This was really helpful to me to try get going with google services.
|
Hey @grantkemp , I too am writing a Swift MacOS app at the moment, and am using this library. I am also experiencing problems with Chome - I'm wondering how can I use or fork your updates? It does not appear your updates are merged in master yet. Thanks for the help! |
|
Hiya - Go Ahead. I would be delighted. |
|
Hi there, maybe this is coming a little late but I just found this swift port yesterday, thanks for this. It seemed like a nightmare to me reading through the dense obj c examples and trying to reimagine it as swift code. To be clear, I'm trying to create a MacOS Cocoa app, not an iOS app. It seems like the code here is the authorization code for iOS, or is actually for MacOS? I tried copy pasting your code into an example yesterday, and I was met with an invalid request URI. I read through the original documentation and it looks like for MacOS we want to create a local HTTP server to listen on, but from what I can see in this example it looks more like the iOS authorization. Did I just get confused here or is this example actually aimed at iOS swift? Thanks! |
|
@expedited I built it a while back - it seemed to work for me - but there have been a lot of changes since! I might do another project with it - if so I will update ! |
|
@expedited You can also check out my wrapper for this which does work with MacOS and iOS. I added MacOS support a while back as @grantkemp was asking for it. |
As mentioned in #60
Ported the sample project to MacOS swift with some minor mod…ifications ( as little as possible) to keep things comparable.
Pending Tasks for this item ( if this is going to be used)