Installation
CocoaPods
The GSD Software Development Kit is a standalone solution which can be incorporated to any project. It can be done with the usage of CocoaPods dependency manager. You can install it with the following command:
1 | $ gem install cocoapods |
To integrate the SDK into your Xcode project using CocoaPods, you must specify it in your Podfile:
1 2 3 4 5 6 7 8 | platform :ios, '10.0' use_frameworks! target '<NAME_OF_THE_TARGET>' do pod 'GSDMobileFramework', :git => 'http://akaleta@gsd-web-02/sdk/iOS/GSDMobileFramework.git’, :branch => 'Develop' pod 'Firebase/Core' pod 'Firebase/Messaging' end |
Then, run the command:
1 | $ pod update |
This command will generate new project file ( NAME_OF_THE_TARGET.xcworkspace ), with all the pods installed. In the future use this is the file which should be used to start the work with the project. By default the newest version of the SDK will be installed.
Usage
After sucesfull isntallation of the pod, the SDK can be used in every file, after importing the source to the file with:
1 | import GSDMobileFramework |