0.0.0 • Published 7 years ago
loopback-sdk-ios-swift-codegen v0.0.0
Note
This project base on iOS objective-C codegen project
LoopBack iOS SDK CodeGen
The iOS CodeGen command line tool generates iOS client side LoopBack Model representations in Swift by looking into the specified server application.
How to Use
The following is an example usage applied to the test server provided under this directory:
- Run
npm installin this directory to initialize the toolbin/lb-iosand the test server undertest-env/server.
- Run
bin/lb-ios -p XX -s SS test-env/server/server test-env/client/ios/CodeGenTest/gen-srcto generate the models in Objective-C representation, whereXXis the prefix andSSis the postfix attached to all the generated class names.
How to Run the Unit Test
After performing the above steps, run the followings:
node test-env/server/server.js
cd test-env/client/ios/CodeGenTestpod installopen CodeGenTest.xcworkspace- Run the CodeGenTestTests unit tests.
Limitations
- Currently properties and simple method generation are supported. See the generated headers for details.
0.0.0
7 years ago