Git Product home page Git Product logo

Comments (7)

siegesmund avatar siegesmund commented on August 25, 2024

Yea, so what happened here was this: That pull request, if I remember correctly, just changed the Podfile and revised the supported platforms. At that point, there was nothing iOS specific in the code. Then, several versions later, OAuth login support was added, and this specifically used the Cocoa Touch API.

Right now, the Podfile, and the OAuth login API are the only thing specifically preventing use on OSX.

One option I'd be open to would be to split the OAuth API into a second package. Have you looked at the code in depth? What were your thoughts on it?

from swiftddp.

shauncampbell avatar shauncampbell commented on August 25, 2024

Ah okay :) That makes sense. From a quick look it looks like the only iOS specific bit is the ViewController for the OAuth display.

I'm relatively new to building cross-platform frameworks in Swift, but my understanding is that you can include/exclude classes on a per platform basis as well using preprocessor statements to include sections of code based on the os:

http://nshipster.com/swift-system-version-checking/

So my guess is (and I'll try this out and see what happens) if we excluded the OAuth stuff from the build for the OSX target and used the preprocessor statements to exclude the OAuth methods from the API - then that would give us the framework minus the OAuth stuff on OS X.

from swiftddp.

siegesmund avatar siegesmund commented on August 25, 2024

Sounds good to me.

from swiftddp.

spunkedy avatar spunkedy commented on August 25, 2024

My last PR #69 created the scheme. Which excluded the oauth in the code until it can be added back in.

I haven't tested it, though you should be able to tweak it

from swiftddp.

siegesmund avatar siegesmund commented on August 25, 2024

Awesome. I'll have to give it a go. If you get around to testing it, that would be a big help also, as i'm tied up with other work at the moment.

from swiftddp.

spunkedy avatar spunkedy commented on August 25, 2024

I was commenting more for the issue owner. So they can be equipped to do
it.

I'm tied up for the next couple weeks also

On Aug 27, 2016 12:30 PM, "Peter Siegesmund" [email protected]
wrote:

Awesome. I'll have to give it a go. If you get around to testing it, that
would be a big help also, as i'm tied up with other work at the moment.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#60 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAqKL6KC3S47IUUuBWS1R2KiNrNyLhKyks5qkHQqgaJpZM4JURRk
.

from swiftddp.

siegesmund avatar siegesmund commented on August 25, 2024

Ah, ok. Thanks.

from swiftddp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.