GTMAppAuth icon indicating copy to clipboard operation
GTMAppAuth copied to clipboard

feature: Ported the sample project to MacOS swift with some minor mod…

Open grantkemp opened this issue 7 years ago • 5 comments

As mentioned in #60 Ported the sample project to MacOS swift with some minor mod…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.

Pending Tasks for this item ( if this is going to be used)

  • Fixing up the left over todos- I didn't update them as they weren't relevant to my use case. If you are going to use them in the project, then can tidy them up.
  • Update syntax to match Swift current Standards
  • Validate approach is correct.

grantkemp avatar Feb 23 '18 18:02 grantkemp

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!

OxenBoxen avatar Mar 10 '18 21:03 OxenBoxen

Hiya - Go Ahead. I would be delighted. I have been using the library a lot now and have got my head around it. If you need a hand - ping me here or on twitter @ukdatageek .

grantkemp avatar Mar 10 '18 22:03 grantkemp

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 avatar Mar 12 '19 18:03 expedited

@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 !

grantkemp avatar Mar 29 '19 10:03 grantkemp

@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.

elsesiy avatar Apr 14 '19 15:04 elsesiy