MozarkEventConstants is a sdk is used to define constants to be used in the event sdk, the objective is to define the list of event names and event journey ... to be used for the ui test of an app in order to check later if the scripter has entered valid data before synchronizing them with the server
To integrate MozarkEventConstants into a new project we have 4 possible steps:
If cocoapods is not installed on your Mac try typing this command in the terminal :
sudo gem install cocoapods
pod init
logically you will have a new file called Podfile generated in your project tree
You are just invited to add two lines in the podfile:
source 'https://github.com/CocoaPods/Specs.git'
And
pod 'MozarkEventConstants'
here is an example of the structure of a podfile
source 'https://github.com/CocoaPods/Specs.git'
target 'test_Project' do
use_frameworks!
pod "MozarkEventConstants"
end
pod install
Import MozarkEventConstants
To publish a new version, you must:
- Increment the spec.version attribute in the MozarkEventsSDK.podspec file
- Push the code to branch main
- Create a new tag that corresponds to the version number, for exemple tag number is 2.1 => git tag 2.1
- Push the tag => git push origin 2.1
- Check if MozarkEventsSDK.podspec file is valid => pod lib lint MozarkEventConstants.podspec --allow-warnings
- Publish update : pod trunk push MozarkEventConstants.podspec --allow-warnings