Objective-C support library for FlatPack generated client libraries
Objective-C Shell
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
codegen
flatpack-objc.xcodeproj
flatpack-objc
flatpack-objcTests
.gitignore
README.md

README.md

flatpack-obj

Objective-C support library for FlatPack generated client libraries.

Code Generation

Use the included codegen.sh script to generate a client library based on an existing FlatPack API description:

./codegen/codegen.sh \
  -v 2.17 \
  -f $WORKSPACE/perka/flatpack-java/fast \
  -a https://sandbox.getperka.com/api/2/describe \
  -o /tmp/codegen
  -p Perka

Once generated, you can add the source files to your XCode project manually.

Alternatively, use the included flatpack codegen target to automatically invoke the codegen.sh script and add the resulting fiiles to your XCode project.

Edit the included 'flatpack codegen' scheme to include the following arguments, using appropriate values for your library:

  • --fastVersion 2.17-SNAPSHOT
  • --fastDir /Users/joe/perka/flatpack-java/fast
  • --flatpackDir /Users/joe/perka/flatpack-objc
  • --apiDescription https://sandbox.getperka.com/api/2/describe
  • --sourceDir /tmp/codegen
  • --project /Users/joe/perka/perka-client-objc/perka-client-objc.xcodeproj
  • --group perka-client-objc/generated
  • --target perka-client-objc*
  • --classPrefix Perka
  • --doxygenConfig /Users/joe/perka/perka-client-objc/docs/Doxyfile
  • --copyFlatpackSource

Run the 'flatpack codegen' scheme to run the code generation.