Using Alamofire on the OS X app command line app (Xcode 7) - code encapsulation?

I am trying to understand how to use Alamofire in a command line application.

I cannot use frameworks, so I added the source code of Alamofire to the application (so there is no import statement), and I can directly refer to request () and other methods.

Is there a cleaner way to encapsulate Alamofire or is this a limitation in Swift 2.X at the moment?

+4
source share

Source: https://habr.com/ru/post/1624191/


All Articles