This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Make sure you import HealthKit | |
// Get the HKHealthStore reference. Must be single reference in your app. | |
let healthStore = HKHealthStore() | |
// Create required Record Type's equivalent HKClinicalType using clinicalType func of HKObjectType | |
guard let allergyRecord = HKObjectType.clinicalType(forIdentifier: .allergyRecord), | |
let medicationRecord = HKObjectType.clinicalType(forIdentifier: .medicationRecord), | |
let conditionRecord = HKObjectType.clinicalType(forIdentifier: .conditionRecord), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Assume that I have MyApp as a repository and my project root folder is also MyApp. | |
echo "Lets update the build number for featire releases" | |
echo "Creating temp folder as ~/Documents/TempCadenceIosBuildIncrement/" | |
mkdir ~/Documents/TempIosBuildIncrement/ | |
cd ~/Documents/TempIosBuildIncrement/ | |
echo "Cloning Repo of master branch....." | |
git clone https://gitlab.com/MyApp.git # clone your master branch here. | |
echo "Clonned successfully. Updating build number now using PlistBuddy" | |
cd MyApp/ # get into the project directory. |
NewerOlder