Skip to content

rewardsciences/rewardsciences-ios

Repository files navigation

RewardSciencesAPI

This API SDK was automatically generated by APIMATIC v2.0

Note: Only works with Cocoapods version 0.38.2 or later. Due to recent breaking changes, you must upgrade to the latest pod version. You can find the change log link below.

https://github.com/CocoaPods/CocoaPods/blob/master/CHANGELOG.md

How To Configure:

The generated code might need to be configured with your API credentials. To do that, open the file "Configuration.h" and edit it's contents.

How to build and use via CocoaPods:

CocoaPods is a popular dependency manager for Swift and Objective-C Cocoa projects. The following instructions help you integrate with an existing CocoaPods project.

1. Create a folder named RewardSciencesAPI in /path/to/your/project/Vendor/
2. Extract the contents of the SDK in to the folder named RewardSciencesAPI
3. Add the following line to your PodFile : 
       pod 'RewardSciencesAPI', :path => 'Vendor/RewardSciencesAPI'
4. Execute 'pod install' from terminal to install the dependency in to your project.
Note: Use pod setup to update your Cocoapods repo if yoou haven't done that for a while

For more information, please refer to http://CocoaPods.org on how to use CocoaPods to manage dependency for the project.

How to build via static framework:

The generated code uses two Cocoa Pods namely, JSONModel and UniRest. Reference to these two is already set in the PodFile, all you need to do is the following.

1. Open terminal and goto the unarchived directory.
2. Run command "pod install" without the quotes. 
3. A new file named "RewardSciencesAPI.xcworkspace" will be created as a result.
4. Open the "RewardSciencesAPI.xcworkspace" in XCode 5.0.
5. Change the build target: Product -> Schema and select "Framework"
6. Invoke build command. By default the generated framework is copied to your desktop. 

How to use the static framework:

The build process generates a static library, which can be used just like an ordinary static library. See the following link for more information on this topic.

https://developer.apple.com/library/ios/technotes/iOSStaticLibraries/Introduction.html

Note: You may need to add the '-all_load' flag (under Build Settings > Linking > Other Linker Flags) in your app project that uses this framework.

About

Reward Sciences IOS SDK. Need help? Email us at [email protected]

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages