├── .gitignore
├── APCAppCore
├── APCAppCore.xcodeproj
│ ├── project.pbxproj
│ └── project.xcworkspace
│ │ └── contents.xcworkspacedata
├── APCAppCore
│ ├── APCAppCore.h
│ ├── Consent
│ │ ├── APCConsentBooleanQuestion.h
│ │ ├── APCConsentBooleanQuestion.m
│ │ ├── APCConsentInstructionQuestion.h
│ │ ├── APCConsentInstructionQuestion.m
│ │ ├── APCConsentQuestion.h
│ │ ├── APCConsentQuestion.m
│ │ ├── APCConsentRedirector.h
│ │ ├── APCConsentTask.h
│ │ ├── APCConsentTask.m
│ │ ├── APCConsentTextChoiceQuestion.h
│ │ └── APCConsentTextChoiceQuestion.m
│ ├── DataMonitor
│ │ ├── APCDataMonitor+Bridge.h
│ │ ├── APCDataMonitor+Bridge.m
│ │ ├── APCDataMonitor.h
│ │ └── APCDataMonitor.m
│ ├── DataSubstrate
│ │ ├── APCDataSubstrate+ResearchKit.h
│ │ ├── APCDataSubstrate+ResearchKit.m
│ │ ├── APCDataSubstrate.h
│ │ ├── APCDataSubstrate.m
│ │ └── Model
│ │ │ ├── APCDBStatus+AddOn.h
│ │ │ ├── APCDBStatus+AddOn.m
│ │ │ ├── APCDBStatus.h
│ │ │ ├── APCDBStatus.m
│ │ │ ├── APCDataMigrationMetadata_Model4ToModel6.h
│ │ │ ├── APCDataMigrationMetadata_Model4ToModel6.m
│ │ │ ├── APCDataMigrationPolicy_Model4ToModel6.h
│ │ │ ├── APCDataMigrationPolicy_Model4ToModel6.m
│ │ │ ├── APCDataResult.h
│ │ │ ├── APCDataResult.m
│ │ │ ├── APCDateRange.h
│ │ │ ├── APCDateRange.m
│ │ │ ├── APCMappingModel4ToModel6.xcmappingmodel
│ │ │ └── xcmapping.xml
│ │ │ ├── APCModel.h
│ │ │ ├── APCModel.xcdatamodeld
│ │ │ ├── .xccurrentversion
│ │ │ ├── APCModel 2.xcdatamodel
│ │ │ │ └── contents
│ │ │ ├── APCModel 3.xcdatamodel
│ │ │ │ └── contents
│ │ │ ├── APCModel 4.xcdatamodel
│ │ │ │ └── contents
│ │ │ ├── APCModel 5.xcdatamodel
│ │ │ │ └── contents
│ │ │ ├── APCModel 6.xcdatamodel
│ │ │ │ └── contents
│ │ │ └── APCModel.xcdatamodel
│ │ │ │ └── contents
│ │ │ ├── APCPotentialScheduledTask.h
│ │ │ ├── APCPotentialScheduledTask.m
│ │ │ ├── APCResult+AddOn.h
│ │ │ ├── APCResult+AddOn.m
│ │ │ ├── APCResult+Bridge.h
│ │ │ ├── APCResult+Bridge.m
│ │ │ ├── APCResult.h
│ │ │ ├── APCResult.m
│ │ │ ├── APCSchedule+AddOn.h
│ │ │ ├── APCSchedule+AddOn.m
│ │ │ ├── APCSchedule.h
│ │ │ ├── APCSchedule.m
│ │ │ ├── APCScheduledTask+AddOn.h
│ │ │ ├── APCScheduledTask+AddOn.m
│ │ │ ├── APCScheduledTask.h
│ │ │ ├── APCScheduledTask.m
│ │ │ ├── APCSmartSurveyTask.h
│ │ │ ├── APCSmartSurveyTask.m
│ │ │ ├── APCStoredUserData.h
│ │ │ ├── APCStoredUserData.m
│ │ │ ├── APCTask+AddOn.h
│ │ │ ├── APCTask+AddOn.m
│ │ │ ├── APCTask+Bridge.h
│ │ │ ├── APCTask+Bridge.m
│ │ │ ├── APCTask.h
│ │ │ ├── APCTask.m
│ │ │ ├── APCTaskGroup.h
│ │ │ ├── APCTaskGroup.m
│ │ │ ├── APCUser+Bridge.h
│ │ │ ├── APCUser+Bridge.m
│ │ │ ├── APCUser+UserData.h
│ │ │ ├── APCUser+UserData.m
│ │ │ ├── APCUser.h
│ │ │ ├── APCUser.m
│ │ │ ├── MODEL_MIGRATION_README.txt
│ │ │ └── MODEL_README.txt
│ ├── Library
│ │ ├── APCMotionHistoryData.h
│ │ ├── APCMotionHistoryData.m
│ │ ├── APCMotionHistoryReporter.h
│ │ ├── APCMotionHistoryReporter.m
│ │ ├── APCTaskReminder.h
│ │ ├── APCTaskReminder.m
│ │ ├── AppearanceHelpers
│ │ │ ├── APCAppearanceInfo.h
│ │ │ ├── APCAppearanceInfo.m
│ │ │ ├── UIColor+APCAppearance.h
│ │ │ ├── UIColor+APCAppearance.m
│ │ │ ├── UIFont+APCAppearance.h
│ │ │ └── UIFont+APCAppearance.m
│ │ ├── AssertionHandler
│ │ │ ├── APCAssertionHandler.h
│ │ │ └── APCAssertionHandler.m
│ │ ├── CMS
│ │ │ ├── APCCMS.h
│ │ │ ├── APCCMS.m
│ │ │ ├── APCCMSSupport.h
│ │ │ └── ENCRYPTION_README.txt
│ │ ├── Categories
│ │ │ ├── APCDeviceHardware+APCHelper.h
│ │ │ ├── APCDeviceHardware+APCHelper.m
│ │ │ ├── APCStepProgressBar+Appearance.h
│ │ │ ├── APCStepProgressBar+Appearance.m
│ │ │ ├── CLLocation+APCAdditions.h
│ │ │ ├── CLLocation+APCAdditions.m
│ │ │ ├── CMMotionActivity+Helper.h
│ │ │ ├── CMMotionActivity+Helper.m
│ │ │ ├── HKHealthStore+APCExtensions.h
│ │ │ ├── HKHealthStore+APCExtensions.m
│ │ │ ├── HKWorkout+APCHelper.h
│ │ │ ├── HKWorkout+APCHelper.m
│ │ │ ├── NSArray+APCHelper.h
│ │ │ ├── NSArray+APCHelper.m
│ │ │ ├── NSBundle+Helper.h
│ │ │ ├── NSBundle+Helper.m
│ │ │ ├── NSDate+Helper.h
│ │ │ ├── NSDate+Helper.m
│ │ │ ├── NSDateComponents+Helper.h
│ │ │ ├── NSDateComponents+Helper.m
│ │ │ ├── NSDictionary+APCAdditions.h
│ │ │ ├── NSDictionary+APCAdditions.m
│ │ │ ├── NSDictionary+APCStringify.h
│ │ │ ├── NSDictionary+APCStringify.m
│ │ │ ├── NSError+APCAdditions.h
│ │ │ ├── NSError+APCAdditions.m
│ │ │ ├── NSError+Bridge.h
│ │ │ ├── NSError+Bridge.m
│ │ │ ├── NSFileManager+Helper.h
│ │ │ ├── NSFileManager+Helper.m
│ │ │ ├── NSManagedObject+APCHelper.h
│ │ │ ├── NSManagedObject+APCHelper.m
│ │ │ ├── NSObject+Helper.h
│ │ │ ├── NSObject+Helper.m
│ │ │ ├── NSOperationQueue+Helper.h
│ │ │ ├── NSOperationQueue+Helper.m
│ │ │ ├── NSString+Helper.h
│ │ │ ├── NSString+Helper.m
│ │ │ ├── NewDataCollector
│ │ │ │ ├── APCDataArchiver.h
│ │ │ │ ├── APCDataArchiver.m
│ │ │ │ ├── APCPassiveDataCollector.h
│ │ │ │ ├── APCPassiveDataCollector.m
│ │ │ │ ├── APCPassiveDisplacementTrackingDataUploader.h
│ │ │ │ ├── APCPassiveDisplacementTrackingDataUploader.m
│ │ │ │ ├── Collectors
│ │ │ │ │ ├── APCCoreMotionBackgroundDataCollector.h
│ │ │ │ │ ├── APCCoreMotionBackgroundDataCollector.m
│ │ │ │ │ ├── APCDataCollector.h
│ │ │ │ │ ├── APCDataCollector.m
│ │ │ │ │ ├── APCDisplacementTrackingCollector.h
│ │ │ │ │ ├── APCDisplacementTrackingCollector.m
│ │ │ │ │ ├── APCHealthKitBackgroundDataCollector.h
│ │ │ │ │ └── APCHealthKitBackgroundDataCollector.m
│ │ │ │ └── Data Sink
│ │ │ │ │ ├── APCCollectorProtocol.h
│ │ │ │ │ ├── APCPassiveDataSink.h
│ │ │ │ │ └── APCPassiveDataSink.m
│ │ │ ├── ORKAnswerFormat+Helper.h
│ │ │ ├── ORKAnswerFormat+Helper.m
│ │ │ ├── ORKFileResult+Filename.h
│ │ │ ├── ORKFileResult+Filename.m
│ │ │ ├── ORKQuestionResult+APCHelper.h
│ │ │ ├── ORKQuestionResult+APCHelper.m
│ │ │ ├── SBBSchedule+APCHelper.h
│ │ │ ├── SBBSchedule+APCHelper.m
│ │ │ ├── UIAlertController+Helper.h
│ │ │ ├── UIAlertController+Helper.m
│ │ │ ├── UIImage+APCHelper.h
│ │ │ ├── UIImage+APCHelper.m
│ │ │ ├── UIImage+ImageEffects.h
│ │ │ ├── UIImage+ImageEffects.m
│ │ │ ├── UIScrollView+Helper.h
│ │ │ ├── UIScrollView+Helper.m
│ │ │ ├── UIView+Helper.h
│ │ │ └── UIView+Helper.m
│ │ ├── DataArchiverAndUploader
│ │ │ ├── APCDataArchive.h
│ │ │ ├── APCDataArchive.m
│ │ │ ├── APCDataArchiveUploader.h
│ │ │ ├── APCDataArchiveUploader.m
│ │ │ ├── APCDataArchiverAndUploader.h
│ │ │ ├── APCDataArchiverAndUploader.m
│ │ │ ├── APCDataEncryptor.h
│ │ │ ├── APCDataEncryptor.m
│ │ │ ├── APCDataUploader.h
│ │ │ ├── APCDataUploader.m
│ │ │ ├── APCDataVerificationDaemon.h
│ │ │ └── APCDataVerificationDaemon.m
│ │ ├── DataVerificationClient
│ │ │ ├── APCDataVerificationClient.h
│ │ │ ├── APCDataVerificationClient.m
│ │ │ └── APCDataVerificationServerAccessControl.h
│ │ ├── FeedParser
│ │ │ ├── APCFeedParser.h
│ │ │ ├── APCFeedParser.m
│ │ │ ├── APCNewsFeedManager.h
│ │ │ └── APCNewsFeedManager.m
│ │ ├── Insights
│ │ │ ├── APCFoodInsight.h
│ │ │ ├── APCFoodInsight.m
│ │ │ ├── APCInsights.h
│ │ │ └── APCInsights.m
│ │ ├── Logging
│ │ │ ├── APCLog.h
│ │ │ └── APCLog.m
│ │ ├── MedicationTrackerStorageClasses
│ │ │ ├── APCMedTrackerDailyDosageRecord+Helper.h
│ │ │ ├── APCMedTrackerDailyDosageRecord+Helper.m
│ │ │ ├── APCMedTrackerDailyDosageRecord.h
│ │ │ ├── APCMedTrackerDailyDosageRecord.m
│ │ │ ├── APCMedTrackerDataStorageManager.h
│ │ │ ├── APCMedTrackerDataStorageManager.m
│ │ │ ├── APCMedTrackerInflatableItem+Helper.h
│ │ │ ├── APCMedTrackerInflatableItem+Helper.m
│ │ │ ├── APCMedTrackerInflatableItem.h
│ │ │ ├── APCMedTrackerInflatableItem.m
│ │ │ ├── APCMedTrackerMedication+Helper.h
│ │ │ ├── APCMedTrackerMedication+Helper.m
│ │ │ ├── APCMedTrackerMedication.h
│ │ │ ├── APCMedTrackerMedication.m
│ │ │ ├── APCMedTrackerPossibleDosage+Helper.h
│ │ │ ├── APCMedTrackerPossibleDosage+Helper.m
│ │ │ ├── APCMedTrackerPossibleDosage.h
│ │ │ ├── APCMedTrackerPossibleDosage.m
│ │ │ ├── APCMedTrackerPredefinedMedications.plist
│ │ │ ├── APCMedTrackerPredefinedPossibleDosages.plist
│ │ │ ├── APCMedTrackerPredefinedPrescriptionColors.plist
│ │ │ ├── APCMedTrackerPrescription+Helper.h
│ │ │ ├── APCMedTrackerPrescription+Helper.m
│ │ │ ├── APCMedTrackerPrescription.h
│ │ │ ├── APCMedTrackerPrescription.m
│ │ │ ├── APCMedTrackerPrescriptionColor+Helper.h
│ │ │ ├── APCMedTrackerPrescriptionColor+Helper.m
│ │ │ ├── APCMedTrackerPrescriptionColor.h
│ │ │ ├── APCMedTrackerPrescriptionColor.m
│ │ │ ├── APCMedicationActualMedicine.h
│ │ │ ├── APCMedicationActualMedicine.m
│ │ │ ├── APCMedicationColor.h
│ │ │ ├── APCMedicationColor.m
│ │ │ ├── APCMedicationDataStorageEngine.h
│ │ │ ├── APCMedicationDataStorageEngine.m
│ │ │ ├── APCMedicationDosageTaken.h
│ │ │ ├── APCMedicationDosageTaken.m
│ │ │ ├── APCMedicationLozenge.h
│ │ │ ├── APCMedicationLozenge.m
│ │ │ ├── APCMedicationPossibleDosage.h
│ │ │ ├── APCMedicationPossibleDosage.m
│ │ │ ├── APCMedicationSampleDosesTaken.plist
│ │ │ ├── APCMedicationSampleSchedules.plist
│ │ │ ├── APCMedicationUltraSimpleSelfInflator.h
│ │ │ ├── APCMedicationUltraSimpleSelfInflator.m
│ │ │ ├── APCMedicationWeeklySchedule.h
│ │ │ └── APCMedicationWeeklySchedule.m
│ │ ├── MedicationTrackingAppComponent
│ │ │ ├── APCMedicationDetailsTableViewCell.h
│ │ │ ├── APCMedicationDetailsTableViewCell.m
│ │ │ ├── APCMedicationDetailsTableViewCell.xib
│ │ │ ├── APCMedicationTrackerCalendarDailyView.h
│ │ │ ├── APCMedicationTrackerCalendarDailyView.m
│ │ │ ├── APCMedicationTrackerCalendarViewController.h
│ │ │ ├── APCMedicationTrackerCalendarViewController.m
│ │ │ ├── APCMedicationTrackerCalendarViewController.xib
│ │ │ ├── APCMedicationTrackerCalendarWeeklyView.h
│ │ │ ├── APCMedicationTrackerCalendarWeeklyView.m
│ │ │ ├── APCMedicationTrackerDayTitleLabel.h
│ │ │ ├── APCMedicationTrackerDayTitleLabel.m
│ │ │ ├── APCMedicationTrackerDetailViewController.h
│ │ │ ├── APCMedicationTrackerDetailViewController.m
│ │ │ ├── APCMedicationTrackerDetailViewController.xib
│ │ │ ├── APCMedicationTrackerMedicationsDisplayView.h
│ │ │ ├── APCMedicationTrackerMedicationsDisplayView.m
│ │ │ ├── NSDate+MedicationTracker.h
│ │ │ ├── NSDate+MedicationTracker.m
│ │ │ ├── NSDictionary+MedicationTracker.h
│ │ │ ├── NSDictionary+MedicationTracker.m
│ │ │ ├── UIColor+MedicationTracker.h
│ │ │ └── UIColor+MedicationTracker.m
│ │ ├── MedicationTrackingSetup
│ │ │ ├── MedicationDosage
│ │ │ │ ├── APCMedicationDosageViewController.h
│ │ │ │ ├── APCMedicationDosageViewController.m
│ │ │ │ └── APCMedicationDosageViewController.xib
│ │ │ ├── MedicationFrequency
│ │ │ │ ├── APCFrequencyDayTableViewCell.h
│ │ │ │ ├── APCFrequencyDayTableViewCell.m
│ │ │ │ ├── APCFrequencyDayTableViewCell.xib
│ │ │ │ ├── APCFrequencyEverydayTableViewCell.h
│ │ │ │ ├── APCFrequencyEverydayTableViewCell.m
│ │ │ │ ├── APCFrequencyEverydayTableViewCell.xib
│ │ │ │ ├── APCFrequencyTableViewTimesCell.h
│ │ │ │ ├── APCFrequencyTableViewTimesCell.m
│ │ │ │ ├── APCFrequencyTableViewTimesCell.xib
│ │ │ │ ├── APCMedicationFrequencyViewController.h
│ │ │ │ ├── APCMedicationFrequencyViewController.m
│ │ │ │ └── APCMedicationFrequencyViewController.xib
│ │ │ ├── MedicationLabel
│ │ │ │ ├── APCColorSwatchTableViewCell.h
│ │ │ │ ├── APCColorSwatchTableViewCell.m
│ │ │ │ ├── APCColorSwatchTableViewCell.xib
│ │ │ │ ├── APCMedicationColorViewController.h
│ │ │ │ ├── APCMedicationColorViewController.m
│ │ │ │ └── APCMedicationColorViewController.xib
│ │ │ ├── MedicationModel
│ │ │ │ ├── APCLozengeButton.h
│ │ │ │ └── APCLozengeButton.m
│ │ │ ├── MedicationName
│ │ │ │ ├── APCMedicationNameTableViewCell.h
│ │ │ │ ├── APCMedicationNameTableViewCell.m
│ │ │ │ ├── APCMedicationNameTableViewCell.xib
│ │ │ │ ├── APCMedicationNameViewController.h
│ │ │ │ ├── APCMedicationNameViewController.m
│ │ │ │ └── APCMedicationNameViewController.xib
│ │ │ └── MedicationSetup
│ │ │ │ ├── APCMedicationSummaryTableViewCell.h
│ │ │ │ ├── APCMedicationSummaryTableViewCell.m
│ │ │ │ ├── APCMedicationSummaryTableViewCell.xib
│ │ │ │ ├── APCMedicationTrackerSetupViewController.h
│ │ │ │ ├── APCMedicationTrackerSetupViewController.m
│ │ │ │ ├── APCMedicationTrackerSetupViewController.xib
│ │ │ │ ├── APCSetupButtonTableViewCell.h
│ │ │ │ ├── APCSetupButtonTableViewCell.m
│ │ │ │ ├── APCSetupButtonTableViewCell.xib
│ │ │ │ ├── APCSetupTableViewCell.h
│ │ │ │ ├── APCSetupTableViewCell.m
│ │ │ │ └── APCSetupTableViewCell.xib
│ │ ├── Objects
│ │ │ ├── APCConstants.h
│ │ │ ├── APCConstants.m
│ │ │ ├── APCDeviceHardware.h
│ │ │ ├── APCDeviceHardware.m
│ │ │ ├── APCGroupedScheduledTask.h
│ │ │ ├── APCGroupedScheduledTask.m
│ │ │ ├── APCJSONSerializer.h
│ │ │ ├── APCJSONSerializer.m
│ │ │ ├── APCKeychainStore+Passcode.h
│ │ │ ├── APCKeychainStore+Passcode.m
│ │ │ ├── APCKeychainStore.h
│ │ │ ├── APCKeychainStore.m
│ │ │ ├── APCSegmentedButton.h
│ │ │ ├── APCSegmentedButton.m
│ │ │ ├── APCTasksReminderManager.h
│ │ │ ├── APCTasksReminderManager.m
│ │ │ ├── APCUtilities.h
│ │ │ └── APCUtilities.m
│ │ ├── Parameters
│ │ │ ├── APCDebugWindow.h
│ │ │ ├── APCDebugWindow.m
│ │ │ ├── APCParameters+Settings.h
│ │ │ ├── APCParameters+Settings.m
│ │ │ ├── APCParameters.h
│ │ │ ├── APCParameters.m
│ │ │ ├── APCParameters.storyboard
│ │ │ ├── APCParametersCell.h
│ │ │ ├── APCParametersCell.m
│ │ │ ├── APCParametersCoreDataCell.h
│ │ │ ├── APCParametersCoreDataCell.m
│ │ │ ├── APCParametersDashboardTableViewController.h
│ │ │ ├── APCParametersDashboardTableViewController.m
│ │ │ ├── APCParametersUserDefaultCell.h
│ │ │ └── APCParametersUserDefaultCell.m
│ │ ├── Permissions
│ │ │ ├── APCPermissionsManager.h
│ │ │ └── APCPermissionsManager.m
│ │ ├── ScheduleExpression
│ │ │ ├── APCScheduleExpression.h
│ │ │ ├── APCScheduleExpression.m
│ │ │ └── Internals
│ │ │ │ ├── APCDayOfMonthSelector.h
│ │ │ │ ├── APCDayOfMonthSelector.m
│ │ │ │ ├── APCListSelector.h
│ │ │ │ ├── APCListSelector.m
│ │ │ │ ├── APCPointSelector.h
│ │ │ │ ├── APCPointSelector.m
│ │ │ │ ├── APCScheduleEnumerator.h
│ │ │ │ ├── APCScheduleEnumerator.m
│ │ │ │ ├── APCScheduleExpressionParser.h
│ │ │ │ ├── APCScheduleExpressionParser.m
│ │ │ │ ├── APCScheduleExpressionToken.h
│ │ │ │ ├── APCScheduleExpressionToken.m
│ │ │ │ ├── APCScheduleExpressionTokenizer.h
│ │ │ │ ├── APCScheduleExpressionTokenizer.m
│ │ │ │ ├── APCTimeSelector.h
│ │ │ │ ├── APCTimeSelector.m
│ │ │ │ ├── APCTimeSelectorEnumerator.h
│ │ │ │ └── APCTimeSelectorEnumerator.m
│ │ ├── ScheduleImporter
│ │ │ ├── APCScheduleImporter.h
│ │ │ ├── APCScheduleImporter.m
│ │ │ ├── Documentation
│ │ │ │ ├── ScheduleImportProcess-fourPages.pdf
│ │ │ │ ├── ScheduleImportProcess.graffle
│ │ │ │ └── ScheduleImportProcess.pdf
│ │ │ ├── Filters
│ │ │ │ ├── APCScheduleFilter.h
│ │ │ │ ├── APCScheduleFilter.m
│ │ │ │ └── SpecificFilters
│ │ │ │ │ ├── APCCompletedOneTimeTaskFilter.h
│ │ │ │ │ ├── APCCompletedOneTimeTaskFilter.m
│ │ │ │ │ ├── APCExistingTaskFilter.h
│ │ │ │ │ ├── APCExistingTaskFilter.m
│ │ │ │ │ ├── APCMatchingScheduleFilter.h
│ │ │ │ │ ├── APCMatchingScheduleFilter.m
│ │ │ │ │ ├── APCMatchingSourceFilter.h
│ │ │ │ │ ├── APCMatchingSourceFilter.m
│ │ │ │ │ ├── APCScheduleInMapFilter.h
│ │ │ │ │ ├── APCScheduleInMapFilter.m
│ │ │ │ │ ├── APCScheduleSourceFilter.h
│ │ │ │ │ ├── APCScheduleSourceFilter.m
│ │ │ │ │ ├── APCScheduleStartDateFilter.h
│ │ │ │ │ ├── APCScheduleStartDateFilter.m
│ │ │ │ │ ├── APCUniqueTaskIdFilter.h
│ │ │ │ │ └── APCUniqueTaskIdFilter.m
│ │ │ └── ScheduleTaskMap
│ │ │ │ ├── APCScheduleTaskMap.h
│ │ │ │ ├── APCScheduleTaskMap.m
│ │ │ │ ├── APCScheduleTaskMapEntry.h
│ │ │ │ └── APCScheduleTaskMapEntry.m
│ │ ├── Scheduler
│ │ │ ├── APCActivitiesDateState.h
│ │ │ ├── APCActivitiesDateState.m
│ │ │ ├── APCScheduleDebugPrinter.h
│ │ │ ├── APCScheduleDebugPrinter.m
│ │ │ ├── APCScheduleIntervalEnumerator.h
│ │ │ ├── APCScheduleIntervalEnumerator.m
│ │ │ ├── APCScheduleQueryEngine.h
│ │ │ ├── APCScheduler.h
│ │ │ ├── APCScheduler.m
│ │ │ ├── APCTaskGroupCacheEntry.h
│ │ │ ├── APCTaskGroupCacheEntry.m
│ │ │ ├── APCTopLevelScheduleEnumerator.h
│ │ │ └── APCTopLevelScheduleEnumerator.m
│ │ ├── Scoring
│ │ │ ├── APCScoring.h
│ │ │ └── APCScoring.m
│ │ └── Stack
│ │ │ ├── APCStack.h
│ │ │ └── APCStack.m
│ ├── Resources
│ │ ├── Assets
│ │ │ ├── consent
│ │ │ │ ├── phone-667h@2x
│ │ │ │ │ ├── consent_01@2x.png
│ │ │ │ │ ├── consent_02@2x.png
│ │ │ │ │ ├── consent_03@2x.png
│ │ │ │ │ ├── consent_04@2x.png
│ │ │ │ │ ├── consent_05@2x.png
│ │ │ │ │ ├── consent_06@2x.png
│ │ │ │ │ └── consent_07@2x.png
│ │ │ │ └── phone-736h@3x
│ │ │ │ │ ├── consent_01@3x.png
│ │ │ │ │ ├── consent_02@3x.png
│ │ │ │ │ ├── consent_03@3x.png
│ │ │ │ │ ├── consent_04@3x.png
│ │ │ │ │ ├── consent_05@3x.png
│ │ │ │ │ ├── consent_06@3x.png
│ │ │ │ │ └── consent_07@3x.png
│ │ │ └── tasks
│ │ │ │ ├── phone-667h@2x
│ │ │ │ ├── handtapping01@2x.png
│ │ │ │ ├── handtapping02@2x.png
│ │ │ │ ├── heart-fitness@2x.png
│ │ │ │ ├── heartbeat@2x.png
│ │ │ │ ├── phonesoundwaves@2x.png
│ │ │ │ ├── phonetapping@2x.png
│ │ │ │ ├── phonewaves@2x.png
│ │ │ │ ├── pocket@2x.png
│ │ │ │ ├── sittingman@2x.png
│ │ │ │ ├── walkingman@2x.png
│ │ │ │ └── walkingman_monitor@2x.png
│ │ │ │ └── phone-736h@3x
│ │ │ │ ├── handtapping01@3x.png
│ │ │ │ ├── handtapping02@3x.png
│ │ │ │ ├── heart-fitness@3x.png
│ │ │ │ ├── heartbeat@3x.png
│ │ │ │ ├── phonesoundwaves@3x.png
│ │ │ │ ├── phonetapping@3x.png
│ │ │ │ ├── phonewaves@3x.png
│ │ │ │ ├── pocket@3x.png
│ │ │ │ ├── sittingman@3x.png
│ │ │ │ ├── walkingman@3x.png
│ │ │ │ └── walkingman_monitor@3x.png
│ │ ├── Info.plist
│ │ ├── Licenses
│ │ │ ├── License_BridgeSDK.txt
│ │ │ └── License_ZipZap.txt
│ │ ├── Localizable.strings
│ │ ├── bridge_framework_switcher.sh
│ │ ├── get_debug_ip_address.sh
│ │ ├── rk_framework_switcher.sh
│ │ └── update_version.sh
│ ├── Startup
│ │ ├── APCAppDelegate.h
│ │ ├── APCAppDelegate.m
│ │ └── Migration
│ │ │ ├── APCTasksAndSchedulesMigrationUtility.h
│ │ │ └── APCTasksAndSchedulesMigrationUtility.m
│ ├── UI
│ │ ├── CollectionViewCells
│ │ │ ├── APCStudyLandingCollectionViewCell.h
│ │ │ ├── APCStudyLandingCollectionViewCell.m
│ │ │ ├── APCStudyVideoCollectionViewCell.h
│ │ │ └── APCStudyVideoCollectionViewCell.m
│ │ ├── Components
│ │ │ ├── APCBadgeLabel.h
│ │ │ ├── APCBadgeLabel.m
│ │ │ ├── APCButton.h
│ │ │ ├── APCButton.m
│ │ │ ├── APCCircularProgressView.h
│ │ │ ├── APCCircularProgressView.m
│ │ │ ├── APCConcentricProgressView.h
│ │ │ ├── APCConcentricProgressView.m
│ │ │ ├── APCConfirmationView.h
│ │ │ ├── APCConfirmationView.m
│ │ │ ├── APCCustomBackButton.h
│ │ │ ├── APCCustomBackButton.m
│ │ │ ├── APCHorizontalBottomThinLineView.h
│ │ │ ├── APCHorizontalBottomThinLineView.m
│ │ │ ├── APCHorizontalThinLineView.h
│ │ │ ├── APCHorizontalThinLineView.m
│ │ │ ├── APCInsightBarView.h
│ │ │ ├── APCInsightBarView.m
│ │ │ ├── APCPieGraphView.h
│ │ │ ├── APCPieGraphView.m
│ │ │ ├── APCStepProgressBar.h
│ │ │ ├── APCStepProgressBar.m
│ │ │ ├── APCVerticalThinLineView.h
│ │ │ ├── APCVerticalThinLineView.m
│ │ │ └── GraphCharts
│ │ │ │ ├── APCAxisView.h
│ │ │ │ ├── APCAxisView.m
│ │ │ │ ├── APCBaseGraphView.h
│ │ │ │ ├── APCBaseGraphView.m
│ │ │ │ ├── APCCircleView.h
│ │ │ │ ├── APCCircleView.m
│ │ │ │ ├── APCCubicCurveAlgorithm.h
│ │ │ │ ├── APCCubicCurveAlgorithm.m
│ │ │ │ ├── APCDiscreteGraphView.h
│ │ │ │ ├── APCDiscreteGraphView.m
│ │ │ │ ├── APCGraph.h
│ │ │ │ ├── APCGraphConstants.h
│ │ │ │ ├── APCLineGraphView.h
│ │ │ │ ├── APCLineGraphView.m
│ │ │ │ ├── APCNormalDistributionGraphView.h
│ │ │ │ ├── APCNormalDistributionGraphView.m
│ │ │ │ ├── APCPresentAnimator.h
│ │ │ │ ├── APCPresentAnimator.m
│ │ │ │ ├── APCResizeView.h
│ │ │ │ └── APCResizeView.m
│ │ ├── Errors
│ │ │ ├── APCCatastrophicErrorViewController.h
│ │ │ ├── APCCatastrophicErrorViewController.m
│ │ │ └── CatastrophicError.storyboard
│ │ ├── Model
│ │ │ ├── APCOnboarding.h
│ │ │ ├── APCOnboarding.m
│ │ │ ├── APCOnboardingManager.h
│ │ │ ├── APCOnboardingManager.m
│ │ │ ├── APCOnboardingTask.h
│ │ │ ├── APCOnboardingTask.m
│ │ │ ├── APCSignInTask.h
│ │ │ ├── APCSignInTask.m
│ │ │ ├── APCSignUpTask.h
│ │ │ ├── APCSignUpTask.m
│ │ │ ├── APCTableViewItem.h
│ │ │ └── APCTableViewItem.m
│ │ ├── Onboarding
│ │ │ ├── APCIntroVideoViewController.h
│ │ │ ├── APCIntroVideoViewController.m
│ │ │ ├── APCOnboarding.storyboard
│ │ │ ├── APCShareViewController.h
│ │ │ ├── APCShareViewController.m
│ │ │ ├── APCSpinnerViewController.h
│ │ │ ├── APCSpinnerViewController.m
│ │ │ ├── APCSpinnerViewController.xib
│ │ │ ├── APCStudyDetailsViewController.h
│ │ │ ├── APCStudyDetailsViewController.m
│ │ │ ├── APCStudyOverviewCollectionViewCell.h
│ │ │ ├── APCStudyOverviewCollectionViewCell.m
│ │ │ ├── APCStudyOverviewCollectionViewController.h
│ │ │ ├── APCStudyOverviewCollectionViewController.m
│ │ │ ├── APCStudyOverviewViewController.h
│ │ │ ├── APCStudyOverviewViewController.m
│ │ │ ├── APCUserInfoConstants.h
│ │ │ ├── APCWebViewController.h
│ │ │ ├── APCWebViewController.m
│ │ │ ├── EmailVerification
│ │ │ │ ├── APCChangeEmailViewController.h
│ │ │ │ ├── APCChangeEmailViewController.m
│ │ │ │ ├── APCEmailVerify.storyboard
│ │ │ │ ├── APCEmailVerifyViewController.h
│ │ │ │ └── APCEmailVerifyViewController.m
│ │ │ ├── SignIn
│ │ │ │ ├── APCForgotPasswordViewController.h
│ │ │ │ ├── APCForgotPasswordViewController.m
│ │ │ │ ├── APCSignInViewController.h
│ │ │ │ └── APCSignInViewController.m
│ │ │ └── SignUp
│ │ │ │ ├── APCAllSetContentViewController.h
│ │ │ │ ├── APCAllSetContentViewController.m
│ │ │ │ ├── APCAllSetTableViewCell.h
│ │ │ │ ├── APCAllSetTableViewCell.m
│ │ │ │ ├── APCConsentTaskViewController.h
│ │ │ │ ├── APCConsentTaskViewController.m
│ │ │ │ ├── APCEligibleViewController.h
│ │ │ │ ├── APCEligibleViewController.m
│ │ │ │ ├── APCInEligibleViewController.h
│ │ │ │ ├── APCInEligibleViewController.m
│ │ │ │ ├── APCInclusionCriteriaViewController.h
│ │ │ │ ├── APCInclusionCriteriaViewController.m
│ │ │ │ ├── APCPermissionPrimingViewController.h
│ │ │ │ ├── APCPermissionPrimingViewController.m
│ │ │ │ ├── APCSignUpGeneralInfoViewController.h
│ │ │ │ ├── APCSignUpGeneralInfoViewController.m
│ │ │ │ ├── APCSignUpInfoViewController.h
│ │ │ │ ├── APCSignUpInfoViewController.m
│ │ │ │ ├── APCSignUpMedicalInfoViewController.h
│ │ │ │ ├── APCSignUpMedicalInfoViewController.m
│ │ │ │ ├── APCSignUpPermissionsViewController.h
│ │ │ │ ├── APCSignUpPermissionsViewController.m
│ │ │ │ ├── APCSignUpProgressing.h
│ │ │ │ ├── APCSignupPasscodeViewController.h
│ │ │ │ ├── APCSignupPasscodeViewController.m
│ │ │ │ ├── APCTermsAndConditionsViewController.h
│ │ │ │ ├── APCTermsAndConditionsViewController.m
│ │ │ │ ├── APCThankYouViewController.h
│ │ │ │ └── APCThankYouViewController.m
│ │ ├── TabBarControllers
│ │ │ ├── Activities
│ │ │ │ ├── APCActivities.storyboard
│ │ │ │ ├── APCActivitiesViewController.h
│ │ │ │ ├── APCActivitiesViewController.m
│ │ │ │ ├── APCActivitiesViewSection.h
│ │ │ │ └── APCActivitiesViewSection.m
│ │ │ ├── Dashboard
│ │ │ │ ├── APCCorrelationsSelectorViewController.h
│ │ │ │ ├── APCCorrelationsSelectorViewController.m
│ │ │ │ ├── APCDashboard.storyboard
│ │ │ │ ├── APCDashboardEditViewController.h
│ │ │ │ ├── APCDashboardEditViewController.m
│ │ │ │ ├── APCDashboardMoreInfoViewController.h
│ │ │ │ ├── APCDashboardMoreInfoViewController.m
│ │ │ │ ├── APCDashboardViewController.h
│ │ │ │ ├── APCDashboardViewController.m
│ │ │ │ ├── APCGraphViewController.h
│ │ │ │ └── APCGraphViewController.m
│ │ │ ├── Learn
│ │ │ │ ├── APCLearn.storyboard
│ │ │ │ ├── APCLearnMasterViewController.h
│ │ │ │ ├── APCLearnMasterViewController.m
│ │ │ │ ├── APCLearnStudyDetailsViewController.h
│ │ │ │ └── APCLearnStudyDetailsViewController.m
│ │ │ ├── NewsFeed
│ │ │ │ ├── APCNewsFeed.storyboard
│ │ │ │ ├── APCNewsFeedViewController.h
│ │ │ │ └── APCNewsFeedViewController.m
│ │ │ └── Profile
│ │ │ │ ├── APCChangePasscodeViewController.h
│ │ │ │ ├── APCChangePasscodeViewController.m
│ │ │ │ ├── APCDemographicUploader.h
│ │ │ │ ├── APCDemographicUploader.m
│ │ │ │ ├── APCLicenseInfoViewController.h
│ │ │ │ ├── APCLicenseInfoViewController.m
│ │ │ │ ├── APCProfile.storyboard
│ │ │ │ ├── APCProfileViewController+Bridge.h
│ │ │ │ ├── APCProfileViewController+Bridge.m
│ │ │ │ ├── APCProfileViewController.h
│ │ │ │ ├── APCProfileViewController.m
│ │ │ │ ├── APCSettingsViewController.h
│ │ │ │ ├── APCSettingsViewController.m
│ │ │ │ ├── APCSharingOptionsViewController.h
│ │ │ │ ├── APCSharingOptionsViewController.m
│ │ │ │ ├── APCWithdrawCompleteViewController.h
│ │ │ │ ├── APCWithdrawCompleteViewController.m
│ │ │ │ ├── APCWithdrawDescriptionViewController.h
│ │ │ │ ├── APCWithdrawDescriptionViewController.m
│ │ │ │ ├── APCWithdrawSurveyViewController.h
│ │ │ │ └── APCWithdrawSurveyViewController.m
│ │ ├── TableViewCells
│ │ │ ├── APCAddressTableViewCell.h
│ │ │ ├── APCAddressTableViewCell.m
│ │ │ ├── APCCheckTableViewCell.h
│ │ │ ├── APCCheckTableViewCell.m
│ │ │ ├── APCDefaultTableViewCell.h
│ │ │ ├── APCDefaultTableViewCell.m
│ │ │ ├── APCFeedTableViewCell.h
│ │ │ ├── APCFeedTableViewCell.m
│ │ │ ├── APCPermissionsCell.h
│ │ │ ├── APCPermissionsCell.m
│ │ │ ├── APCPickerTableViewCell.h
│ │ │ ├── APCPickerTableViewCell.m
│ │ │ ├── APCSegmentedTableViewCell.h
│ │ │ ├── APCSegmentedTableViewCell.m
│ │ │ ├── APCShareTableViewCell.h
│ │ │ ├── APCShareTableViewCell.m
│ │ │ ├── APCSwitchTableViewCell.h
│ │ │ ├── APCSwitchTableViewCell.m
│ │ │ ├── APCTextFieldTableViewCell.h
│ │ │ ├── APCTextFieldTableViewCell.m
│ │ │ ├── APCTintedTableViewCell.h
│ │ │ ├── APCTintedTableViewCell.m
│ │ │ ├── ActivitiesCells
│ │ │ │ ├── APCActivitiesBasicTableViewCell.h
│ │ │ │ ├── APCActivitiesBasicTableViewCell.m
│ │ │ │ ├── APCActivitiesSectionHeaderView.h
│ │ │ │ ├── APCActivitiesSectionHeaderView.m
│ │ │ │ ├── APCActivitiesSectionHeaderView.xib
│ │ │ │ ├── APCActivitiesTableViewCell.h
│ │ │ │ ├── APCActivitiesTableViewCell.m
│ │ │ │ ├── APCActivitiesTintedTableViewCell.h
│ │ │ │ └── APCActivitiesTintedTableViewCell.m
│ │ │ └── DashboardCells
│ │ │ │ ├── APCDashboardEditTableViewCell.h
│ │ │ │ ├── APCDashboardEditTableViewCell.m
│ │ │ │ ├── APCDashboardFoodInsightTableViewCell.h
│ │ │ │ ├── APCDashboardFoodInsightTableViewCell.m
│ │ │ │ ├── APCDashboardGraphTableViewCell.h
│ │ │ │ ├── APCDashboardGraphTableViewCell.m
│ │ │ │ ├── APCDashboardInsightSummaryTableViewCell.h
│ │ │ │ ├── APCDashboardInsightSummaryTableViewCell.m
│ │ │ │ ├── APCDashboardInsightTableViewCell.h
│ │ │ │ ├── APCDashboardInsightTableViewCell.m
│ │ │ │ ├── APCDashboardInsightsTableViewCell.h
│ │ │ │ ├── APCDashboardInsightsTableViewCell.m
│ │ │ │ ├── APCDashboardMessageTableViewCell.h
│ │ │ │ ├── APCDashboardMessageTableViewCell.m
│ │ │ │ ├── APCDashboardPieGraphTableViewCell.h
│ │ │ │ ├── APCDashboardPieGraphTableViewCell.m
│ │ │ │ ├── APCDashboardProgressTableViewCell.h
│ │ │ │ ├── APCDashboardProgressTableViewCell.m
│ │ │ │ ├── APCDashboardTableViewCell.h
│ │ │ │ └── APCDashboardTableViewCell.m
│ │ ├── TasksAndSteps
│ │ │ ├── APCBaseTaskViewController.h
│ │ │ ├── APCBaseTaskViewController.m
│ │ │ ├── APCBaseWithProgressTaskViewController.h
│ │ │ ├── APCBaseWithProgressTaskViewController.m
│ │ │ ├── APCStepViewController.h
│ │ │ ├── APCStepViewController.m
│ │ │ └── CommonTaskVCs
│ │ │ │ ├── GenericSurveyTaskViewController
│ │ │ │ ├── APCGenericSurveyTaskViewController.h
│ │ │ │ └── APCGenericSurveyTaskViewController.m
│ │ │ │ ├── InstructionStepViewControllers
│ │ │ │ ├── APCInstructionStep.storyboard
│ │ │ │ ├── APCInstructionStepViewController.h
│ │ │ │ ├── APCInstructionStepViewController.m
│ │ │ │ ├── APCIntroductionViewController.h
│ │ │ │ ├── APCIntroductionViewController.m
│ │ │ │ └── APCIntroductionViewController.xib
│ │ │ │ └── SimpleSummaryViewController
│ │ │ │ ├── APCSimpleTaskSummaryViewController.h
│ │ │ │ ├── APCSimpleTaskSummaryViewController.m
│ │ │ │ └── APCSimpleTaskSummaryViewController.xib
│ │ ├── TransitionAnimators
│ │ │ ├── APCFadeAnimator.h
│ │ │ └── APCFadeAnimator.m
│ │ ├── ViewControllers
│ │ │ ├── APCPasscode.storyboard
│ │ │ ├── APCPasscodeViewController.h
│ │ │ ├── APCPasscodeViewController.m
│ │ │ ├── APCUserInfoViewController.h
│ │ │ ├── APCUserInfoViewController.m
│ │ │ └── Activity Tracking
│ │ │ │ ├── APCActivityTracking.storyboard
│ │ │ │ ├── APCActivityTrackingStepViewController.h
│ │ │ │ ├── APCActivityTrackingStepViewController.m
│ │ │ │ ├── APCFitnessAllocation.h
│ │ │ │ ├── APCFitnessAllocation.m
│ │ │ │ ├── APCTheme.h
│ │ │ │ └── APCTheme.m
│ │ └── Views
│ │ │ ├── APCExampleLabel.h
│ │ │ ├── APCExampleLabel.m
│ │ │ ├── APCFormTextField.h
│ │ │ ├── APCFormTextField.m
│ │ │ ├── APCImageButton.h
│ │ │ ├── APCImageButton.m
│ │ │ ├── APCPasscodeView.h
│ │ │ ├── APCPasscodeView.m
│ │ │ ├── APCPermissionButton.h
│ │ │ └── APCPermissionButton.m
│ └── Vendor
│ │ └── Zipzap
│ │ ├── ZZAESDecryptInputStream.h
│ │ ├── ZZAESDecryptInputStream.mm
│ │ ├── ZZArchive.h
│ │ ├── ZZArchive.mm
│ │ ├── ZZArchiveEntry.h
│ │ ├── ZZArchiveEntry.m
│ │ ├── ZZArchiveEntryWriter.h
│ │ ├── ZZChannel.h
│ │ ├── ZZChannelOutput.h
│ │ ├── ZZConstants.h
│ │ ├── ZZConstants.m
│ │ ├── ZZDataChannel.h
│ │ ├── ZZDataChannel.m
│ │ ├── ZZDataChannelOutput.h
│ │ ├── ZZDataChannelOutput.m
│ │ ├── ZZDataProvider.h
│ │ ├── ZZDeflateOutputStream.h
│ │ ├── ZZDeflateOutputStream.m
│ │ ├── ZZError.h
│ │ ├── ZZError.m
│ │ ├── ZZFileChannel.h
│ │ ├── ZZFileChannel.m
│ │ ├── ZZFileChannelOutput.h
│ │ ├── ZZFileChannelOutput.m
│ │ ├── ZZHeaders.h
│ │ ├── ZZInflateInputStream.h
│ │ ├── ZZInflateInputStream.m
│ │ ├── ZZNewArchiveEntry.h
│ │ ├── ZZNewArchiveEntry.mm
│ │ ├── ZZNewArchiveEntryWriter.h
│ │ ├── ZZNewArchiveEntryWriter.mm
│ │ ├── ZZOldArchiveEntry.h
│ │ ├── ZZOldArchiveEntry.mm
│ │ ├── ZZOldArchiveEntryWriter.h
│ │ ├── ZZOldArchiveEntryWriter.mm
│ │ ├── ZZScopeGuard.h
│ │ ├── ZZStandardCryptoEngine.cpp
│ │ ├── ZZStandardCryptoEngine.h
│ │ ├── ZZStandardDecryptInputStream.h
│ │ ├── ZZStandardDecryptInputStream.mm
│ │ ├── ZZStoreOutputStream.h
│ │ ├── ZZStoreOutputStream.m
│ │ └── zipzap.h
└── APCAppCoreTests
│ ├── APCScheduleExpressionEnumeratorTests.m
│ ├── APCScheduleExpressionListSelectorTests.m
│ ├── APCScheduleExpressionParserTests.m
│ ├── APCScheduleExpressionPointSelectorTests.m
│ ├── APCScheduleExpressionRealLifeTests.m
│ ├── Info.plist
│ └── NSDateComponentsHelperTests.m
├── LICENSE
└── README.md
/.gitignore:
--------------------------------------------------------------------------------
1 | # Created by http://www.gitignore.io
2 |
3 | ### Objective-C ###
4 | # OS X
5 | .DS_Store
6 |
7 | # Xcode
8 | build/
9 | *.pbxuser
10 | !default.pbxuser
11 | *.mode1v3
12 | !default.mode1v3
13 | *.mode2v3
14 | !default.mode2v3
15 | *.perspectivev3
16 | !default.perspectivev3
17 | *.xcworkspace
18 | !default.xcworkspace
19 | xcuserdata
20 | *.xccheckout
21 | *.moved-aside
22 | DerivedData/
23 | *.hmap
24 | *.ipa
25 | *.xcuserstate
26 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/DataSubstrate/Model/APCDBStatus.h:
--------------------------------------------------------------------------------
1 | //
2 | // APCDBStatus.h
3 | // APCAppCore
4 | //
5 | // Copyright (c) 2015, Apple Inc. All rights reserved.
6 | //
7 | // Redistribution and use in source and binary forms, with or without modification,
8 | // are permitted provided that the following conditions are met:
9 | //
10 | // 1. Redistributions of source code must retain the above copyright notice, this
11 | // list of conditions and the following disclaimer.
12 | //
13 | // 2. Redistributions in binary form must reproduce the above copyright notice,
14 | // this list of conditions and the following disclaimer in the documentation and/or
15 | // other materials provided with the distribution.
16 | //
17 | // 3. Neither the name of the copyright holder(s) nor the names of any contributors
18 | // may be used to endorse or promote products derived from this software without
19 | // specific prior written permission. No license is granted to the trademarks of
20 | // the copyright holders even if such marks are included in this software.
21 | //
22 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23 | // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 | // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 | // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
26 | // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29 | // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30 | // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 | //
33 |
34 | #import
35 | #import
36 |
37 |
38 | @interface APCDBStatus : NSManagedObject
39 |
40 | @property (nonatomic, retain) NSString * status;
41 |
42 | @end
43 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/DataSubstrate/Model/APCDBStatus.m:
--------------------------------------------------------------------------------
1 | //
2 | // APCDBStatus.m
3 | // APCAppCore
4 | //
5 | // Copyright (c) 2015, Apple Inc. All rights reserved.
6 | //
7 | // Redistribution and use in source and binary forms, with or without modification,
8 | // are permitted provided that the following conditions are met:
9 | //
10 | // 1. Redistributions of source code must retain the above copyright notice, this
11 | // list of conditions and the following disclaimer.
12 | //
13 | // 2. Redistributions in binary form must reproduce the above copyright notice,
14 | // this list of conditions and the following disclaimer in the documentation and/or
15 | // other materials provided with the distribution.
16 | //
17 | // 3. Neither the name of the copyright holder(s) nor the names of any contributors
18 | // may be used to endorse or promote products derived from this software without
19 | // specific prior written permission. No license is granted to the trademarks of
20 | // the copyright holders even if such marks are included in this software.
21 | //
22 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23 | // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 | // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 | // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
26 | // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29 | // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30 | // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 | //
33 |
34 | #import "APCDBStatus.h"
35 |
36 |
37 | @implementation APCDBStatus
38 |
39 | @dynamic status;
40 |
41 | @end
42 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/DataSubstrate/Model/APCDataResult.h:
--------------------------------------------------------------------------------
1 | //
2 | // APCDataResult.h
3 | // APCAppCore
4 | //
5 | // Copyright (c) 2015, Apple Inc. All rights reserved.
6 | //
7 | // Redistribution and use in source and binary forms, with or without modification,
8 | // are permitted provided that the following conditions are met:
9 | //
10 | // 1. Redistributions of source code must retain the above copyright notice, this
11 | // list of conditions and the following disclaimer.
12 | //
13 | // 2. Redistributions in binary form must reproduce the above copyright notice,
14 | // this list of conditions and the following disclaimer in the documentation and/or
15 | // other materials provided with the distribution.
16 | //
17 | // 3. Neither the name of the copyright holder(s) nor the names of any contributors
18 | // may be used to endorse or promote products derived from this software without
19 | // specific prior written permission. No license is granted to the trademarks of
20 | // the copyright holders even if such marks are included in this software.
21 | //
22 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23 | // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 | // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 | // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
26 | // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29 | // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30 | // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 | //
33 |
34 | #import
35 |
36 | @interface APCDataResult : ORKResult
37 |
38 | @property (nonatomic, strong) NSData *data;
39 | @end
40 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/DataSubstrate/Model/APCModel.xcdatamodeld/.xccurrentversion:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | _XCCurrentVersionName
6 | APCModel 6.xcdatamodel
7 |
8 |
9 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/DataSubstrate/Model/APCResult+Bridge.h:
--------------------------------------------------------------------------------
1 | //
2 | // APCResult+Bridge.h
3 | // APCAppCore
4 | //
5 | // Copyright (c) 2015, Apple Inc. All rights reserved.
6 | //
7 | // Redistribution and use in source and binary forms, with or without modification,
8 | // are permitted provided that the following conditions are met:
9 | //
10 | // 1. Redistributions of source code must retain the above copyright notice, this
11 | // list of conditions and the following disclaimer.
12 | //
13 | // 2. Redistributions in binary form must reproduce the above copyright notice,
14 | // this list of conditions and the following disclaimer in the documentation and/or
15 | // other materials provided with the distribution.
16 | //
17 | // 3. Neither the name of the copyright holder(s) nor the names of any contributors
18 | // may be used to endorse or promote products derived from this software without
19 | // specific prior written permission. No license is granted to the trademarks of
20 | // the copyright holders even if such marks are included in this software.
21 | //
22 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23 | // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 | // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 | // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
26 | // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29 | // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30 | // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 | //
33 |
34 | #import "APCResult.h"
35 |
36 | @interface APCResult (Bridge)
37 |
38 | @property (nonatomic, readonly) NSURL * archiveURL;
39 | - (void) uploadToBridgeOnCompletion: (void (^)(NSError * error)) completionBlock;
40 |
41 | @end
42 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/DataSubstrate/Model/MODEL_README.txt:
--------------------------------------------------------------------------------
1 |
2 | CORE DATA NOTES
3 | ---------------
4 |
5 | 1) Datasubstrate has two managed object contexts: mainContext & persistentContext.
6 |
7 | 2) mainContext should be used ONLY by viewControllers and view related classes. mainContext is a child context of persistentContext.
8 |
9 | 3) persistentContext has the associated persistentStore. Please DO NOT do any blocking activities in this context. For doing work in the background, create a local child context of the persistentContext . Use the below code sample to create a local child context.
10 |
11 | NSMananagedObjectContext * localContext = [[NSManagedObjectContext alloc] initWithConcurrencyType:NSPrivateQueueConcurrencyType];
12 | localContext.parentContext = .persistentContext;
13 |
14 | 4) When you are not on mainContext, you should ALWAYS do CRUD (Create, Read, Update, Delete) operations in `performBlock` or `performBlockAndWait` methods. Code snippet:
15 |
16 | [localContext performBlockAndWait:^{
17 | < CRUD code here >
18 | }];
19 |
20 | 5) For creating new managed objects use `newObjectForContext:` category method. DO NOT use alloc init. Code sample:
21 |
22 | APCTask * task = [APCTask newObjectForContext:context];
23 |
24 | 6) For saving managed objects, use `saveToPersistentStore:` category method.
25 |
26 | NSError * error;
27 | [ saveToPersistentStore:&error];
28 |
29 | 7) For reading managed objects from core data use `request` category method and set appropriate NSPredicates and NSSortDescriptors. Code sample:
30 |
31 | NSFetchRequest * request = [APCTask request];
32 | request.predicate = [NSPredicate predicateWithFormat:@"uid == %@",taskID];
33 | NSError * error;
34 | NSArray * managedObjects = [ executeFetchRequest:request error:&error];
35 |
36 |
37 |
38 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Library/AppearanceHelpers/APCAppearanceInfo.h:
--------------------------------------------------------------------------------
1 | //
2 | // APCAppearanceInfo.h
3 | // APCAppCore
4 | //
5 | // Copyright (c) 2015, Apple Inc. All rights reserved.
6 | //
7 | // Redistribution and use in source and binary forms, with or without modification,
8 | // are permitted provided that the following conditions are met:
9 | //
10 | // 1. Redistributions of source code must retain the above copyright notice, this
11 | // list of conditions and the following disclaimer.
12 | //
13 | // 2. Redistributions in binary form must reproduce the above copyright notice,
14 | // this list of conditions and the following disclaimer in the documentation and/or
15 | // other materials provided with the distribution.
16 | //
17 | // 3. Neither the name of the copyright holder(s) nor the names of any contributors
18 | // may be used to endorse or promote products derived from this software without
19 | // specific prior written permission. No license is granted to the trademarks of
20 | // the copyright holders even if such marks are included in this software.
21 | //
22 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23 | // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 | // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 | // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
26 | // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29 | // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30 | // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 | //
33 |
34 | #import
35 | #import
36 |
37 |
38 |
39 | @interface APCAppearanceInfo : NSObject
40 |
41 | + (void) setAppearanceDictionary: (NSDictionary*) appearanceDictionary;
42 | + (id) valueForAppearanceKey: (NSString*) key;
43 | @end
44 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Library/AssertionHandler/APCAssertionHandler.h:
--------------------------------------------------------------------------------
1 | //
2 | // APCAssertionHandler.h
3 | // APCAppCore
4 | //
5 | // Copyright (c) 2015, Apple Inc. All rights reserved.
6 | //
7 | // Redistribution and use in source and binary forms, with or without modification,
8 | // are permitted provided that the following conditions are met:
9 | //
10 | // 1. Redistributions of source code must retain the above copyright notice, this
11 | // list of conditions and the following disclaimer.
12 | //
13 | // 2. Redistributions in binary form must reproduce the above copyright notice,
14 | // this list of conditions and the following disclaimer in the documentation and/or
15 | // other materials provided with the distribution.
16 | //
17 | // 3. Neither the name of the copyright holder(s) nor the names of any contributors
18 | // may be used to endorse or promote products derived from this software without
19 | // specific prior written permission. No license is granted to the trademarks of
20 | // the copyright holders even if such marks are included in this software.
21 | //
22 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23 | // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 | // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 | // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
26 | // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29 | // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30 | // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 | //
33 |
34 | @import Foundation;
35 |
36 | @interface APCAssertionHandler : NSAssertionHandler
37 |
38 | @end
39 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Library/CMS/ENCRYPTION_README.txt:
--------------------------------------------------------------------------------
1 | -------------------------------
2 | Setting up Encryption
3 | -------------------------------
4 |
5 | The APCCMSSupport.h header file defines an interface for an APCCMSSupport class.
6 |
7 | By default, no implementation of this class is included in APCAppCore. If you provide an implementation and link it
8 | into the same executable binary with APCAppCore, the cmsEncrypt() function in APCCMS.m will find it and call its
9 | cmsEncrypt:identityPath:error: class method to encrypt data before it is sent to the back-end storage server, or before
10 | being saved on device to be sent on later.
11 |
12 | If you provide no implementation of this class, the default behavior of the cmsEncrypt() function is to log a warning
13 | to the console and return the data unchanged.
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Library/Categories/APCDeviceHardware+APCHelper.h:
--------------------------------------------------------------------------------
1 | //
2 | // APCDeviceHardware+APCHelper.h
3 | // APCAppCore
4 | //
5 | // Copyright (c) 2015, Apple Inc. All rights reserved.
6 | //
7 | // Redistribution and use in source and binary forms, with or without modification,
8 | // are permitted provided that the following conditions are met:
9 | //
10 | // 1. Redistributions of source code must retain the above copyright notice, this
11 | // list of conditions and the following disclaimer.
12 | //
13 | // 2. Redistributions in binary form must reproduce the above copyright notice,
14 | // this list of conditions and the following disclaimer in the documentation and/or
15 | // other materials provided with the distribution.
16 | //
17 | // 3. Neither the name of the copyright holder(s) nor the names of any contributors
18 | // may be used to endorse or promote products derived from this software without
19 | // specific prior written permission. No license is granted to the trademarks of
20 | // the copyright holders even if such marks are included in this software.
21 | //
22 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23 | // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 | // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 | // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
26 | // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29 | // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30 | // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 | //
33 |
34 | #import "APCDeviceHardware.h"
35 |
36 | @interface APCDeviceHardware (APCHelper)
37 |
38 | + (BOOL) isiPhone5SOrNewer;
39 |
40 | @end
41 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Library/Categories/CLLocation+APCAdditions.h:
--------------------------------------------------------------------------------
1 | //
2 | // CLLocation+APCAdditions.h
3 | // APCAppCore
4 | //
5 | // Copyright (c) 2015, Apple Inc. All rights reserved.
6 | //
7 | // Redistribution and use in source and binary forms, with or without modification,
8 | // are permitted provided that the following conditions are met:
9 | //
10 | // 1. Redistributions of source code must retain the above copyright notice, this
11 | // list of conditions and the following disclaimer.
12 | //
13 | // 2. Redistributions in binary form must reproduce the above copyright notice,
14 | // this list of conditions and the following disclaimer in the documentation and/or
15 | // other materials provided with the distribution.
16 | //
17 | // 3. Neither the name of the copyright holder(s) nor the names of any contributors
18 | // may be used to endorse or promote products derived from this software without
19 | // specific prior written permission. No license is granted to the trademarks of
20 | // the copyright holders even if such marks are included in this software.
21 | //
22 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23 | // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 | // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 | // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
26 | // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29 | // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30 | // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 | //
33 |
34 | #import
35 |
36 | @interface CLLocation (APCAdditions)
37 |
38 | - (double)bearingToLocation:(CLLocation*)destinationLocation;
39 | - (double)calculateDirectionFromLocation:(CLLocation*)destinationLocation;
40 |
41 | @end
42 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Library/Categories/HKWorkout+APCHelper.h:
--------------------------------------------------------------------------------
1 | //
2 | // HKWorkout+APCHelper.h
3 | // APCAppCore
4 | //
5 | // Copyright (c) 2015, Apple Inc. All rights reserved.
6 | //
7 | // Redistribution and use in source and binary forms, with or without modification,
8 | // are permitted provided that the following conditions are met:
9 | //
10 | // 1. Redistributions of source code must retain the above copyright notice, this
11 | // list of conditions and the following disclaimer.
12 | //
13 | // 2. Redistributions in binary form must reproduce the above copyright notice,
14 | // this list of conditions and the following disclaimer in the documentation and/or
15 | // other materials provided with the distribution.
16 | //
17 | // 3. Neither the name of the copyright holder(s) nor the names of any contributors
18 | // may be used to endorse or promote products derived from this software without
19 | // specific prior written permission. No license is granted to the trademarks of
20 | // the copyright holders even if such marks are included in this software.
21 | //
22 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23 | // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 | // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 | // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
26 | // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29 | // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30 | // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 | //
33 |
34 | #import
35 |
36 | @interface HKWorkout (APCHelper)
37 |
38 | + (NSString*)apc_workoutActivityTypeStringRepresentation:(int)num;
39 |
40 | @end
41 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Library/Categories/NSBundle+Helper.h:
--------------------------------------------------------------------------------
1 | //
2 | // NSBundle+Helper.h
3 | // APCAppCore
4 | //
5 | // Copyright (c) 2015, Apple Inc. All rights reserved.
6 | //
7 | // Redistribution and use in source and binary forms, with or without modification,
8 | // are permitted provided that the following conditions are met:
9 | //
10 | // 1. Redistributions of source code must retain the above copyright notice, this
11 | // list of conditions and the following disclaimer.
12 | //
13 | // 2. Redistributions in binary form must reproduce the above copyright notice,
14 | // this list of conditions and the following disclaimer in the documentation and/or
15 | // other materials provided with the distribution.
16 | //
17 | // 3. Neither the name of the copyright holder(s) nor the names of any contributors
18 | // may be used to endorse or promote products derived from this software without
19 | // specific prior written permission. No license is granted to the trademarks of
20 | // the copyright holders even if such marks are included in this software.
21 | //
22 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23 | // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 | // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 | // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
26 | // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29 | // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30 | // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 | //
33 |
34 | @import Foundation;
35 |
36 | @interface NSBundle (Helper)
37 |
38 | + (NSBundle *) appleCoreBundle;
39 |
40 | @end
41 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Library/Categories/NSDictionary+APCStringify.h:
--------------------------------------------------------------------------------
1 | //
2 | // NSDictionary+APCStringify.h
3 | // APCAppCore
4 | //
5 | // Copyright (c) 2015, Apple Inc. All rights reserved.
6 | //
7 | // Redistribution and use in source and binary forms, with or without modification,
8 | // are permitted provided that the following conditions are met:
9 | //
10 | // 1. Redistributions of source code must retain the above copyright notice, this
11 | // list of conditions and the following disclaimer.
12 | //
13 | // 2. Redistributions in binary form must reproduce the above copyright notice,
14 | // this list of conditions and the following disclaimer in the documentation and/or
15 | // other materials provided with the distribution.
16 | //
17 | // 3. Neither the name of the copyright holder(s) nor the names of any contributors
18 | // may be used to endorse or promote products derived from this software without
19 | // specific prior written permission. No license is granted to the trademarks of
20 | // the copyright holders even if such marks are included in this software.
21 | //
22 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23 | // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 | // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 | // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
26 | // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29 | // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30 | // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 | //
33 |
34 | #import
35 |
36 | @interface NSDictionary (APCStringify)
37 |
38 | + (NSString*)apc_stringFromDictionary:(NSDictionary*)dict error:(NSError* __autoreleasing*)error;
39 |
40 | @end
41 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Library/Categories/NSError+Bridge.h:
--------------------------------------------------------------------------------
1 | //
2 | // NSError+Bridge.h
3 | // APCAppCore
4 | //
5 | // Copyright (c) 2015, Apple Inc. All rights reserved.
6 | //
7 | // Redistribution and use in source and binary forms, with or without modification,
8 | // are permitted provided that the following conditions are met:
9 | //
10 | // 1. Redistributions of source code must retain the above copyright notice, this
11 | // list of conditions and the following disclaimer.
12 | //
13 | // 2. Redistributions in binary form must reproduce the above copyright notice,
14 | // this list of conditions and the following disclaimer in the documentation and/or
15 | // other materials provided with the distribution.
16 | //
17 | // 3. Neither the name of the copyright holder(s) nor the names of any contributors
18 | // may be used to endorse or promote products derived from this software without
19 | // specific prior written permission. No license is granted to the trademarks of
20 | // the copyright holders even if such marks are included in this software.
21 | //
22 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23 | // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 | // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 | // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
26 | // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29 | // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30 | // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 | //
33 |
34 | #import "NSError+APCAdditions.h"
35 |
36 | @interface NSError (Bridge)
37 |
38 | - (NSString*)bridgeErrorMessage;
39 |
40 | @end
41 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Library/Categories/NSString+Helper.h:
--------------------------------------------------------------------------------
1 | //
2 | // NSString+Helper.h
3 | // APCAppCore
4 | //
5 | // Copyright (c) 2015, Apple Inc. All rights reserved.
6 | //
7 | // Redistribution and use in source and binary forms, with or without modification,
8 | // are permitted provided that the following conditions are met:
9 | //
10 | // 1. Redistributions of source code must retain the above copyright notice, this
11 | // list of conditions and the following disclaimer.
12 | //
13 | // 2. Redistributions in binary form must reproduce the above copyright notice,
14 | // this list of conditions and the following disclaimer in the documentation and/or
15 | // other materials provided with the distribution.
16 | //
17 | // 3. Neither the name of the copyright holder(s) nor the names of any contributors
18 | // may be used to endorse or promote products derived from this software without
19 | // specific prior written permission. No license is granted to the trademarks of
20 | // the copyright holders even if such marks are included in this software.
21 | //
22 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23 | // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 | // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 | // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
26 | // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29 | // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30 | // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 | //
33 |
34 | @import Foundation;
35 |
36 | @interface NSString (Helper)
37 |
38 | - (BOOL) isValidForRegex:(NSString *)regex;
39 |
40 | @end
41 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Library/Categories/NewDataCollector/APCPassiveDisplacementTrackingDataUploader.h:
--------------------------------------------------------------------------------
1 | //
2 | // APCPassiveDisplacementTrackingSink.h
3 | // APCAppCore
4 | //
5 | // Copyright (c) 2015, Apple Inc. All rights reserved.
6 | //
7 | // Redistribution and use in source and binary forms, with or without modification,
8 | // are permitted provided that the following conditions are met:
9 | //
10 | // 1. Redistributions of source code must retain the above copyright notice, this
11 | // list of conditions and the following disclaimer.
12 | //
13 | // 2. Redistributions in binary form must reproduce the above copyright notice,
14 | // this list of conditions and the following disclaimer in the documentation and/or
15 | // other materials provided with the distribution.
16 | //
17 | // 3. Neither the name of the copyright holder(s) nor the names of any contributors
18 | // may be used to endorse or promote products derived from this software without
19 | // specific prior written permission. No license is granted to the trademarks of
20 | // the copyright holders even if such marks are included in this software.
21 | //
22 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23 | // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 | // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 | // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
26 | // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29 | // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30 | // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 | //
33 |
34 | #import
35 |
36 | @interface APCPassiveDisplacementTrackingDataUploader : APCPassiveDataSink
37 |
38 | @end
39 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Library/Categories/NewDataCollector/Collectors/APCCoreMotionBackgroundDataCollector.h:
--------------------------------------------------------------------------------
1 | //
2 | // APCCoreMotionBackgroundDataCollector.h
3 | // APCAppCore
4 | //
5 | // Copyright (c) 2015, Apple Inc. All rights reserved.
6 | //
7 | // Redistribution and use in source and binary forms, with or without modification,
8 | // are permitted provided that the following conditions are met:
9 | //
10 | // 1. Redistributions of source code must retain the above copyright notice, this
11 | // list of conditions and the following disclaimer.
12 | //
13 | // 2. Redistributions in binary form must reproduce the above copyright notice,
14 | // this list of conditions and the following disclaimer in the documentation and/or
15 | // other materials provided with the distribution.
16 | //
17 | // 3. Neither the name of the copyright holder(s) nor the names of any contributors
18 | // may be used to endorse or promote products derived from this software without
19 | // specific prior written permission. No license is granted to the trademarks of
20 | // the copyright holders even if such marks are included in this software.
21 | //
22 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23 | // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 | // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 | // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
26 | // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29 | // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30 | // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 | //
33 |
34 | #import
35 |
36 | @interface APCCoreMotionBackgroundDataCollector : APCDataCollector
37 |
38 | @end
39 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Library/Categories/ORKQuestionResult+APCHelper.h:
--------------------------------------------------------------------------------
1 | //
2 | // ORKQuestionResult+APCHelper.h
3 | // APCAppCore
4 | //
5 | // Copyright (c) 2015, Apple Inc. All rights reserved.
6 | //
7 | // Redistribution and use in source and binary forms, with or without modification,
8 | // are permitted provided that the following conditions are met:
9 | //
10 | // 1. Redistributions of source code must retain the above copyright notice, this
11 | // list of conditions and the following disclaimer.
12 | //
13 | // 2. Redistributions in binary form must reproduce the above copyright notice,
14 | // this list of conditions and the following disclaimer in the documentation and/or
15 | // other materials provided with the distribution.
16 | //
17 | // 3. Neither the name of the copyright holder(s) nor the names of any contributors
18 | // may be used to endorse or promote products derived from this software without
19 | // specific prior written permission. No license is granted to the trademarks of
20 | // the copyright holders even if such marks are included in this software.
21 | //
22 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23 | // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 | // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 | // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
26 | // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29 | // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30 | // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 | //
33 |
34 | #import
35 |
36 | @interface ORKQuestionResult (APCHelper)
37 |
38 | - (id) consolidatedAnswer;
39 | - (BOOL) validForApplyingRule;
40 |
41 | @end
42 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Library/Categories/UIAlertController+Helper.h:
--------------------------------------------------------------------------------
1 | //
2 | // UIAlertController+Helper.h
3 | // APCAppCore
4 | //
5 | // Copyright (c) 2015, Apple Inc. All rights reserved.
6 | //
7 | // Redistribution and use in source and binary forms, with or without modification,
8 | // are permitted provided that the following conditions are met:
9 | //
10 | // 1. Redistributions of source code must retain the above copyright notice, this
11 | // list of conditions and the following disclaimer.
12 | //
13 | // 2. Redistributions in binary form must reproduce the above copyright notice,
14 | // this list of conditions and the following disclaimer in the documentation and/or
15 | // other materials provided with the distribution.
16 | //
17 | // 3. Neither the name of the copyright holder(s) nor the names of any contributors
18 | // may be used to endorse or promote products derived from this software without
19 | // specific prior written permission. No license is granted to the trademarks of
20 | // the copyright holders even if such marks are included in this software.
21 | //
22 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23 | // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 | // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 | // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
26 | // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29 | // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30 | // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 | //
33 |
34 | #import
35 |
36 | @interface UIAlertController (Helper)
37 |
38 | + (UIAlertController *)simpleAlertWithTitle:(NSString *)title message:(NSString *)message;
39 |
40 | @end
41 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Library/Categories/UIImage+APCHelper.h:
--------------------------------------------------------------------------------
1 | //
2 | // UIImage+APCHelper.h
3 | // APCAppCore
4 | //
5 | // Copyright (c) 2015, Apple Inc. All rights reserved.
6 | //
7 | // Redistribution and use in source and binary forms, with or without modification,
8 | // are permitted provided that the following conditions are met:
9 | //
10 | // 1. Redistributions of source code must retain the above copyright notice, this
11 | // list of conditions and the following disclaimer.
12 | //
13 | // 2. Redistributions in binary form must reproduce the above copyright notice,
14 | // this list of conditions and the following disclaimer in the documentation and/or
15 | // other materials provided with the distribution.
16 | //
17 | // 3. Neither the name of the copyright holder(s) nor the names of any contributors
18 | // may be used to endorse or promote products derived from this software without
19 | // specific prior written permission. No license is granted to the trademarks of
20 | // the copyright holders even if such marks are included in this software.
21 | //
22 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23 | // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 | // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 | // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
26 | // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29 | // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30 | // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 | //
33 |
34 | #import
35 |
36 | @interface UIImage (APCHelper)
37 | + (UIImage *)imageWithColor:(UIColor *)color;
38 |
39 | @end
40 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Library/Categories/UIScrollView+Helper.h:
--------------------------------------------------------------------------------
1 | //
2 | // UIScrollView+Helper.h
3 | // APCAppCore
4 | //
5 | // Copyright (c) 2015, Apple Inc. All rights reserved.
6 | //
7 | // Redistribution and use in source and binary forms, with or without modification,
8 | // are permitted provided that the following conditions are met:
9 | //
10 | // 1. Redistributions of source code must retain the above copyright notice, this
11 | // list of conditions and the following disclaimer.
12 | //
13 | // 2. Redistributions in binary form must reproduce the above copyright notice,
14 | // this list of conditions and the following disclaimer in the documentation and/or
15 | // other materials provided with the distribution.
16 | //
17 | // 3. Neither the name of the copyright holder(s) nor the names of any contributors
18 | // may be used to endorse or promote products derived from this software without
19 | // specific prior written permission. No license is granted to the trademarks of
20 | // the copyright holders even if such marks are included in this software.
21 | //
22 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23 | // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 | // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 | // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
26 | // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29 | // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30 | // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 | //
33 |
34 | @import UIKit;
35 |
36 | @interface UIScrollView (Helper)
37 |
38 | - (void) reduceSizeForKeyboardShowNotification:(NSNotification *)notification;
39 |
40 | - (void) resizeForKeyboardHideNotification:(NSNotification *)notification;
41 |
42 | @end
43 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Library/DataArchiverAndUploader/APCDataVerificationDaemon.h:
--------------------------------------------------------------------------------
1 | //
2 | // APCDataVerificationDaemon.h
3 | // APCAppCore
4 | //
5 | // Copyright (c) 2015, Apple Inc. All rights reserved.
6 | //
7 | // Redistribution and use in source and binary forms, with or without modification,
8 | // are permitted provided that the following conditions are met:
9 | //
10 | // 1. Redistributions of source code must retain the above copyright notice, this
11 | // list of conditions and the following disclaimer.
12 | //
13 | // 2. Redistributions in binary form must reproduce the above copyright notice,
14 | // this list of conditions and the following disclaimer in the documentation and/or
15 | // other materials provided with the distribution.
16 | //
17 | // 3. Neither the name of the copyright holder(s) nor the names of any contributors
18 | // may be used to endorse or promote products derived from this software without
19 | // specific prior written permission. No license is granted to the trademarks of
20 | // the copyright holders even if such marks are included in this software.
21 | //
22 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23 | // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 | // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 | // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
26 | // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29 | // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30 | // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 | //
33 |
34 | #import
35 |
36 | @interface APCDataVerificationDaemon : NSObject
37 |
38 | - (void) queueURL : (NSURL *)url;
39 |
40 | @end
41 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Library/MedicationTrackerStorageClasses/APCMedTrackerDailyDosageRecord+Helper.h:
--------------------------------------------------------------------------------
1 | //
2 | // APCMedTrackerDailyDosageRecord+Helper.h
3 | // APCAppCore
4 | //
5 | // Copyright (c) 2015, Apple Inc. All rights reserved.
6 | //
7 | // Redistribution and use in source and binary forms, with or without modification,
8 | // are permitted provided that the following conditions are met:
9 | //
10 | // 1. Redistributions of source code must retain the above copyright notice, this
11 | // list of conditions and the following disclaimer.
12 | //
13 | // 2. Redistributions in binary form must reproduce the above copyright notice,
14 | // this list of conditions and the following disclaimer in the documentation and/or
15 | // other materials provided with the distribution.
16 | //
17 | // 3. Neither the name of the copyright holder(s) nor the names of any contributors
18 | // may be used to endorse or promote products derived from this software without
19 | // specific prior written permission. No license is granted to the trademarks of
20 | // the copyright holders even if such marks are included in this software.
21 | //
22 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23 | // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 | // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 | // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
26 | // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29 | // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30 | // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 | //
33 |
34 | #import "APCMedTrackerDailyDosageRecord.h"
35 |
36 | @interface APCMedTrackerDailyDosageRecord (Helper)
37 |
38 | @end
39 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Library/MedicationTrackerStorageClasses/APCMedTrackerDailyDosageRecord+Helper.m:
--------------------------------------------------------------------------------
1 | //
2 | // APCMedTrackerDailyDosageRecord+Helper.m
3 | // APCAppCore
4 | //
5 | // Copyright (c) 2015, Apple Inc. All rights reserved.
6 | //
7 | // Redistribution and use in source and binary forms, with or without modification,
8 | // are permitted provided that the following conditions are met:
9 | //
10 | // 1. Redistributions of source code must retain the above copyright notice, this
11 | // list of conditions and the following disclaimer.
12 | //
13 | // 2. Redistributions in binary form must reproduce the above copyright notice,
14 | // this list of conditions and the following disclaimer in the documentation and/or
15 | // other materials provided with the distribution.
16 | //
17 | // 3. Neither the name of the copyright holder(s) nor the names of any contributors
18 | // may be used to endorse or promote products derived from this software without
19 | // specific prior written permission. No license is granted to the trademarks of
20 | // the copyright holders even if such marks are included in this software.
21 | //
22 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23 | // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 | // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 | // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
26 | // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29 | // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30 | // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 | //
33 |
34 | #import "APCMedTrackerDailyDosageRecord+Helper.h"
35 |
36 | @implementation APCMedTrackerDailyDosageRecord (Helper)
37 |
38 | @end
39 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Library/MedicationTrackerStorageClasses/APCMedTrackerInflatableItem.h:
--------------------------------------------------------------------------------
1 | //
2 | // APCMedTrackerInflatableItem.h
3 | // APCAppCore
4 | //
5 | // Copyright (c) 2015, Apple Inc. All rights reserved.
6 | //
7 | // Redistribution and use in source and binary forms, with or without modification,
8 | // are permitted provided that the following conditions are met:
9 | //
10 | // 1. Redistributions of source code must retain the above copyright notice, this
11 | // list of conditions and the following disclaimer.
12 | //
13 | // 2. Redistributions in binary form must reproduce the above copyright notice,
14 | // this list of conditions and the following disclaimer in the documentation and/or
15 | // other materials provided with the distribution.
16 | //
17 | // 3. Neither the name of the copyright holder(s) nor the names of any contributors
18 | // may be used to endorse or promote products derived from this software without
19 | // specific prior written permission. No license is granted to the trademarks of
20 | // the copyright holders even if such marks are included in this software.
21 | //
22 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23 | // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 | // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 | // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
26 | // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29 | // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30 | // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 | //
33 |
34 | #import
35 | #import
36 |
37 |
38 | @interface APCMedTrackerInflatableItem : NSManagedObject
39 |
40 | @property (nonatomic, retain) NSString * name;
41 |
42 | @end
43 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Library/MedicationTrackerStorageClasses/APCMedTrackerInflatableItem.m:
--------------------------------------------------------------------------------
1 | //
2 | // APCMedTrackerInflatableItem.m
3 | // APCAppCore
4 | //
5 | // Copyright (c) 2015, Apple Inc. All rights reserved.
6 | //
7 | // Redistribution and use in source and binary forms, with or without modification,
8 | // are permitted provided that the following conditions are met:
9 | //
10 | // 1. Redistributions of source code must retain the above copyright notice, this
11 | // list of conditions and the following disclaimer.
12 | //
13 | // 2. Redistributions in binary form must reproduce the above copyright notice,
14 | // this list of conditions and the following disclaimer in the documentation and/or
15 | // other materials provided with the distribution.
16 | //
17 | // 3. Neither the name of the copyright holder(s) nor the names of any contributors
18 | // may be used to endorse or promote products derived from this software without
19 | // specific prior written permission. No license is granted to the trademarks of
20 | // the copyright holders even if such marks are included in this software.
21 | //
22 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23 | // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 | // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 | // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
26 | // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29 | // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30 | // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 | //
33 |
34 | #import "APCMedTrackerInflatableItem.h"
35 |
36 |
37 | @implementation APCMedTrackerInflatableItem
38 |
39 | @dynamic name;
40 |
41 | @end
42 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Library/MedicationTrackerStorageClasses/APCMedTrackerMedication+Helper.h:
--------------------------------------------------------------------------------
1 | //
2 | // APCMedTrackerMedication+Helper.h
3 | // APCAppCore
4 | //
5 | // Copyright (c) 2015, Apple Inc. All rights reserved.
6 | //
7 | // Redistribution and use in source and binary forms, with or without modification,
8 | // are permitted provided that the following conditions are met:
9 | //
10 | // 1. Redistributions of source code must retain the above copyright notice, this
11 | // list of conditions and the following disclaimer.
12 | //
13 | // 2. Redistributions in binary form must reproduce the above copyright notice,
14 | // this list of conditions and the following disclaimer in the documentation and/or
15 | // other materials provided with the distribution.
16 | //
17 | // 3. Neither the name of the copyright holder(s) nor the names of any contributors
18 | // may be used to endorse or promote products derived from this software without
19 | // specific prior written permission. No license is granted to the trademarks of
20 | // the copyright holders even if such marks are included in this software.
21 | //
22 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23 | // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 | // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 | // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
26 | // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29 | // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30 | // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 | //
33 |
34 | #import "APCMedTrackerMedication.h"
35 |
36 | @interface APCMedTrackerMedication (Helper)
37 |
38 | @end
39 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Library/MedicationTrackerStorageClasses/APCMedTrackerMedication+Helper.m:
--------------------------------------------------------------------------------
1 | //
2 | // APCMedTrackerMedication+Helper.m
3 | // APCAppCore
4 | //
5 | // Copyright (c) 2015, Apple Inc. All rights reserved.
6 | //
7 | // Redistribution and use in source and binary forms, with or without modification,
8 | // are permitted provided that the following conditions are met:
9 | //
10 | // 1. Redistributions of source code must retain the above copyright notice, this
11 | // list of conditions and the following disclaimer.
12 | //
13 | // 2. Redistributions in binary form must reproduce the above copyright notice,
14 | // this list of conditions and the following disclaimer in the documentation and/or
15 | // other materials provided with the distribution.
16 | //
17 | // 3. Neither the name of the copyright holder(s) nor the names of any contributors
18 | // may be used to endorse or promote products derived from this software without
19 | // specific prior written permission. No license is granted to the trademarks of
20 | // the copyright holders even if such marks are included in this software.
21 | //
22 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23 | // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 | // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 | // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
26 | // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29 | // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30 | // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 | //
33 |
34 | #import "APCMedTrackerMedication+Helper.h"
35 |
36 | @implementation APCMedTrackerMedication (Helper)
37 |
38 | @end
39 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Library/MedicationTrackerStorageClasses/APCMedTrackerMedication.m:
--------------------------------------------------------------------------------
1 | //
2 | // APCMedTrackerMedication.m
3 | // APCAppCore
4 | //
5 | // Copyright (c) 2015, Apple Inc. All rights reserved.
6 | //
7 | // Redistribution and use in source and binary forms, with or without modification,
8 | // are permitted provided that the following conditions are met:
9 | //
10 | // 1. Redistributions of source code must retain the above copyright notice, this
11 | // list of conditions and the following disclaimer.
12 | //
13 | // 2. Redistributions in binary form must reproduce the above copyright notice,
14 | // this list of conditions and the following disclaimer in the documentation and/or
15 | // other materials provided with the distribution.
16 | //
17 | // 3. Neither the name of the copyright holder(s) nor the names of any contributors
18 | // may be used to endorse or promote products derived from this software without
19 | // specific prior written permission. No license is granted to the trademarks of
20 | // the copyright holders even if such marks are included in this software.
21 | //
22 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23 | // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 | // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 | // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
26 | // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29 | // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30 | // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 | //
33 |
34 | #import "APCMedTrackerMedication.h"
35 | #import "APCMedTrackerPrescription.h"
36 |
37 |
38 | @implementation APCMedTrackerMedication
39 |
40 | @dynamic prescriptionsWhereIAmUsed;
41 |
42 | @end
43 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Library/MedicationTrackerStorageClasses/APCMedTrackerPossibleDosage+Helper.h:
--------------------------------------------------------------------------------
1 | //
2 | // APCMedTrackerPossibleDosage+Helper.h
3 | // APCAppCore
4 | //
5 | // Copyright (c) 2015, Apple Inc. All rights reserved.
6 | //
7 | // Redistribution and use in source and binary forms, with or without modification,
8 | // are permitted provided that the following conditions are met:
9 | //
10 | // 1. Redistributions of source code must retain the above copyright notice, this
11 | // list of conditions and the following disclaimer.
12 | //
13 | // 2. Redistributions in binary form must reproduce the above copyright notice,
14 | // this list of conditions and the following disclaimer in the documentation and/or
15 | // other materials provided with the distribution.
16 | //
17 | // 3. Neither the name of the copyright holder(s) nor the names of any contributors
18 | // may be used to endorse or promote products derived from this software without
19 | // specific prior written permission. No license is granted to the trademarks of
20 | // the copyright holders even if such marks are included in this software.
21 | //
22 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23 | // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 | // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 | // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
26 | // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29 | // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30 | // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 | //
33 |
34 | #import "APCMedTrackerPossibleDosage.h"
35 |
36 | @interface APCMedTrackerPossibleDosage (Helper)
37 |
38 | @end
39 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Library/MedicationTrackerStorageClasses/APCMedTrackerPossibleDosage+Helper.m:
--------------------------------------------------------------------------------
1 | //
2 | // APCMedTrackerPossibleDosage+Helper.m
3 | // APCAppCore
4 | //
5 | // Copyright (c) 2015, Apple Inc. All rights reserved.
6 | //
7 | // Redistribution and use in source and binary forms, with or without modification,
8 | // are permitted provided that the following conditions are met:
9 | //
10 | // 1. Redistributions of source code must retain the above copyright notice, this
11 | // list of conditions and the following disclaimer.
12 | //
13 | // 2. Redistributions in binary form must reproduce the above copyright notice,
14 | // this list of conditions and the following disclaimer in the documentation and/or
15 | // other materials provided with the distribution.
16 | //
17 | // 3. Neither the name of the copyright holder(s) nor the names of any contributors
18 | // may be used to endorse or promote products derived from this software without
19 | // specific prior written permission. No license is granted to the trademarks of
20 | // the copyright holders even if such marks are included in this software.
21 | //
22 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23 | // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 | // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 | // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
26 | // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29 | // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30 | // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 | //
33 |
34 | #import "APCMedTrackerPossibleDosage+Helper.h"
35 |
36 | @implementation APCMedTrackerPossibleDosage (Helper)
37 |
38 | @end
39 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Library/MedicationTrackerStorageClasses/APCMedTrackerPossibleDosage.m:
--------------------------------------------------------------------------------
1 | //
2 | // APCMedTrackerPossibleDosage.m
3 | // APCAppCore
4 | //
5 | // Copyright (c) 2015, Apple Inc. All rights reserved.
6 | //
7 | // Redistribution and use in source and binary forms, with or without modification,
8 | // are permitted provided that the following conditions are met:
9 | //
10 | // 1. Redistributions of source code must retain the above copyright notice, this
11 | // list of conditions and the following disclaimer.
12 | //
13 | // 2. Redistributions in binary form must reproduce the above copyright notice,
14 | // this list of conditions and the following disclaimer in the documentation and/or
15 | // other materials provided with the distribution.
16 | //
17 | // 3. Neither the name of the copyright holder(s) nor the names of any contributors
18 | // may be used to endorse or promote products derived from this software without
19 | // specific prior written permission. No license is granted to the trademarks of
20 | // the copyright holders even if such marks are included in this software.
21 | //
22 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23 | // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 | // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 | // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
26 | // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29 | // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30 | // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 | //
33 |
34 | #import "APCMedTrackerPossibleDosage.h"
35 | #import "APCMedTrackerPrescription.h"
36 |
37 |
38 | @implementation APCMedTrackerPossibleDosage
39 |
40 | @dynamic amount;
41 | @dynamic prescriptionsWhereIAmUsed;
42 |
43 | @end
44 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Library/MedicationTrackerStorageClasses/APCMedTrackerPredefinedMedications.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | name
7 | Amantadine (Symmetrel)
8 |
9 |
10 | name
11 | Apomorphine (Apokyn)
12 |
13 |
14 | name
15 | Benztropine (Cogentin)
16 |
17 |
18 | name
19 | Bromocriptine (Parlodel)
20 |
21 |
22 | name
23 | Carbidopa, levodopa, entacapone (Stalevo)
24 |
25 |
26 | name
27 | Carbidopa-Levodopa (Sinemet, Sinemet CR)
28 |
29 |
30 | name
31 | Entacapone (Comtan)
32 |
33 |
34 | name
35 | Levodopa-Benserazide (Madopar)
36 |
37 |
38 | name
39 | Melevodopa (Sirio)
40 |
41 |
42 | name
43 | Pramipexole (Mirapex, Mirapex ER, Mirapexin,Sifrol)
44 |
45 |
46 | name
47 | Rasagiline (Azilect)
48 |
49 |
50 | name
51 | Ropinirole (Adartel, Requip, Requip XL, Ropark)
52 |
53 |
54 | name
55 | Rotigotine (Neupro)
56 |
57 |
58 | name
59 | Selegiline (l-deprenyl, Eldepryl, Zelapar)
60 |
61 |
62 | name
63 | Tolacapone (Tasmar)
64 |
65 |
66 | name
67 | Trihexyphenidyl (Apo-Trihex, Artane)
68 |
69 |
70 | name
71 | Other
72 |
73 |
74 |
75 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Library/MedicationTrackerStorageClasses/APCMedTrackerPredefinedPossibleDosages.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | name
7 | Other
8 | amount
9 | 1000000.0
10 |
11 |
12 | name
13 | 1/2 mg
14 | amount
15 | 0.5
16 |
17 |
18 | name
19 | 1/2 mg
20 | amount
21 | 0.5
22 |
23 |
24 | name
25 | 1 mg
26 | amount
27 | 1
28 |
29 |
30 | name
31 | 2-1/2 mg
32 | amount
33 | 2.5
34 |
35 |
36 | name
37 | 5 mg
38 | amount
39 | 5
40 |
41 |
42 | name
43 | 10 mg
44 | amount
45 | 10
46 |
47 |
48 | name
49 | 20 mg
50 | amount
51 | 20
52 |
53 |
54 | name
55 | 25 mg
56 | amount
57 | 25
58 |
59 |
60 | name
61 | 50 mg
62 | amount
63 | 50
64 |
65 |
66 | name
67 | 75 mg
68 | amount
69 | 75
70 |
71 |
72 | name
73 | 100 mg
74 | amount
75 | 100
76 |
77 |
78 |
79 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Library/MedicationTrackerStorageClasses/APCMedTrackerPrescriptionColor+Helper.h:
--------------------------------------------------------------------------------
1 | //
2 | // APCMedTrackerPrescriptionColor+Helper.h
3 | // APCAppCore
4 | //
5 | // Copyright (c) 2015, Apple Inc. All rights reserved.
6 | //
7 | // Redistribution and use in source and binary forms, with or without modification,
8 | // are permitted provided that the following conditions are met:
9 | //
10 | // 1. Redistributions of source code must retain the above copyright notice, this
11 | // list of conditions and the following disclaimer.
12 | //
13 | // 2. Redistributions in binary form must reproduce the above copyright notice,
14 | // this list of conditions and the following disclaimer in the documentation and/or
15 | // other materials provided with the distribution.
16 | //
17 | // 3. Neither the name of the copyright holder(s) nor the names of any contributors
18 | // may be used to endorse or promote products derived from this software without
19 | // specific prior written permission. No license is granted to the trademarks of
20 | // the copyright holders even if such marks are included in this software.
21 | //
22 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23 | // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 | // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 | // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
26 | // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29 | // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30 | // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 | //
33 |
34 | #import "APCMedTrackerPrescriptionColor.h"
35 | @class UIColor;
36 |
37 | @interface APCMedTrackerPrescriptionColor (Helper)
38 |
39 | @property (readonly) UIColor *UIColor;
40 |
41 | @end
42 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Library/MedicationTrackerStorageClasses/APCMedicationActualMedicine.h:
--------------------------------------------------------------------------------
1 | //
2 | // APCMedicationActualMedicine.h
3 | // APCAppCore
4 | //
5 | // Copyright (c) 2015, Apple Inc. All rights reserved.
6 | //
7 | // Redistribution and use in source and binary forms, with or without modification,
8 | // are permitted provided that the following conditions are met:
9 | //
10 | // 1. Redistributions of source code must retain the above copyright notice, this
11 | // list of conditions and the following disclaimer.
12 | //
13 | // 2. Redistributions in binary form must reproduce the above copyright notice,
14 | // this list of conditions and the following disclaimer in the documentation and/or
15 | // other materials provided with the distribution.
16 | //
17 | // 3. Neither the name of the copyright holder(s) nor the names of any contributors
18 | // may be used to endorse or promote products derived from this software without
19 | // specific prior written permission. No license is granted to the trademarks of
20 | // the copyright holders even if such marks are included in this software.
21 | //
22 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23 | // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 | // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 | // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
26 | // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29 | // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30 | // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 | //
33 |
34 | #import "APCMedicationUltraSimpleSelfInflator.h"
35 |
36 | @interface APCMedicationActualMedicine : APCMedicationUltraSimpleSelfInflator
37 |
38 | @property (nonatomic, strong) NSString *name;
39 |
40 | @end
41 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Library/MedicationTrackerStorageClasses/APCMedicationSampleDosesTaken.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | uniqueId
7 | 1
8 | uniqueIdOfScheduleIAmBasedOn
9 | 1
10 | dateAndTimeDosageWasTaken
11 | 2015-02-16T18:07:46Z
12 |
13 |
14 | uniqueId
15 | 2
16 | uniqueIdOfScheduleIAmBasedOn
17 | 1
18 | dateAndTimeDosageWasTaken
19 | 2014-02-21T17:08:07Z
20 |
21 |
22 | uniqueId
23 | 3
24 | uniqueIdOfScheduleIAmBasedOn
25 | 2
26 | dateAndTimeDosageWasTaken
27 | 2015-02-16T18:07:46Z
28 |
29 |
30 | uniqueId
31 | 4
32 | uniqueIdOfScheduleIAmBasedOn
33 | 3
34 | dateAndTimeDosageWasTaken
35 | 2015-02-16T18:07:46Z
36 |
37 |
38 |
39 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Library/MedicationTrackerStorageClasses/APCMedicationSampleSchedules.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | uniqueId
7 | 1
8 | uniqueIdOfMedication
9 | 1
10 | uniqueIdOfDosage
11 | 4
12 | uniqueIdOfColor
13 | 3
14 | numberOfTimesPerDay
15 | 2
16 | zeroBasedDaysOfTheWeek
17 |
18 | 2
19 | 3
20 |
21 |
22 |
23 | uniqueId
24 | 2
25 | uniqueIdOfMedication
26 | 2
27 | uniqueIdOfDosage
28 | 3
29 | uniqueIdOfColor
30 | 1
31 | numberOfTimesPerDay
32 | 3
33 | zeroBasedDaysOfTheWeek
34 |
35 | 0
36 |
37 |
38 |
39 | uniqueId
40 | 3
41 | uniqueIdOfMedication
42 | 5
43 | uniqueIdOfDosage
44 | 3
45 | uniqueIdOfColor
46 | 5
47 | numberOfTimesPerDay
48 | 4
49 | zeroBasedDaysOfTheWeek
50 |
51 | 4
52 | 2
53 | 3
54 |
55 |
56 |
57 |
58 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Library/MedicationTrackingAppComponent/APCMedicationTrackerDayTitleLabel.h:
--------------------------------------------------------------------------------
1 | //
2 | // APCMedicationTrackerDayTitleLabel.h
3 | // APCAppCore
4 | //
5 | // Copyright (c) 2015, Apple Inc. All rights reserved.
6 | //
7 | // Redistribution and use in source and binary forms, with or without modification,
8 | // are permitted provided that the following conditions are met:
9 | //
10 | // 1. Redistributions of source code must retain the above copyright notice, this
11 | // list of conditions and the following disclaimer.
12 | //
13 | // 2. Redistributions in binary form must reproduce the above copyright notice,
14 | // this list of conditions and the following disclaimer in the documentation and/or
15 | // other materials provided with the distribution.
16 | //
17 | // 3. Neither the name of the copyright holder(s) nor the names of any contributors
18 | // may be used to endorse or promote products derived from this software without
19 | // specific prior written permission. No license is granted to the trademarks of
20 | // the copyright holders even if such marks are included in this software.
21 | //
22 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23 | // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 | // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 | // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
26 | // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29 | // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30 | // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 | //
33 |
34 | #import
35 |
36 | @interface APCMedicationTrackerDayTitleLabel : UILabel
37 |
38 | @property (nonatomic, strong) NSDate *date;
39 |
40 | @end
41 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Library/MedicationTrackingAppComponent/APCMedicationTrackerDayTitleLabel.m:
--------------------------------------------------------------------------------
1 | //
2 | // APCMedicationTrackerDayTitleLabel.m
3 | // APCAppCore
4 | //
5 | // Copyright (c) 2015, Apple Inc. All rights reserved.
6 | //
7 | // Redistribution and use in source and binary forms, with or without modification,
8 | // are permitted provided that the following conditions are met:
9 | //
10 | // 1. Redistributions of source code must retain the above copyright notice, this
11 | // list of conditions and the following disclaimer.
12 | //
13 | // 2. Redistributions in binary form must reproduce the above copyright notice,
14 | // this list of conditions and the following disclaimer in the documentation and/or
15 | // other materials provided with the distribution.
16 | //
17 | // 3. Neither the name of the copyright holder(s) nor the names of any contributors
18 | // may be used to endorse or promote products derived from this software without
19 | // specific prior written permission. No license is granted to the trademarks of
20 | // the copyright holders even if such marks are included in this software.
21 | //
22 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23 | // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 | // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 | // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
26 | // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29 | // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30 | // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 | //
33 |
34 | #import "APCMedicationTrackerDayTitleLabel.h"
35 |
36 | @implementation APCMedicationTrackerDayTitleLabel
37 |
38 | @end
39 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Library/MedicationTrackingAppComponent/NSDictionary+MedicationTracker.h:
--------------------------------------------------------------------------------
1 | //
2 | // NSDictionary+MedicationTracker.h
3 | // APCAppCore
4 | //
5 | // Copyright (c) 2015, Apple Inc. All rights reserved.
6 | //
7 | // Redistribution and use in source and binary forms, with or without modification,
8 | // are permitted provided that the following conditions are met:
9 | //
10 | // 1. Redistributions of source code must retain the above copyright notice, this
11 | // list of conditions and the following disclaimer.
12 | //
13 | // 2. Redistributions in binary form must reproduce the above copyright notice,
14 | // this list of conditions and the following disclaimer in the documentation and/or
15 | // other materials provided with the distribution.
16 | //
17 | // 3. Neither the name of the copyright holder(s) nor the names of any contributors
18 | // may be used to endorse or promote products derived from this software without
19 | // specific prior written permission. No license is granted to the trademarks of
20 | // the copyright holders even if such marks are included in this software.
21 | //
22 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23 | // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 | // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 | // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
26 | // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29 | // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30 | // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 | //
33 |
34 | #import
35 |
36 | @interface NSDictionary (MedicationTracker)
37 |
38 | - (id)objectForKeyWithNil:(id)aKey;
39 |
40 | @end
41 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Library/MedicationTrackingSetup/MedicationFrequency/APCFrequencyDayTableViewCell.h:
--------------------------------------------------------------------------------
1 | //
2 | // APCFrequencyDayTableViewCell.h
3 | // APCAppCore
4 | //
5 | // Copyright (c) 2015, Apple Inc. All rights reserved.
6 | //
7 | // Redistribution and use in source and binary forms, with or without modification,
8 | // are permitted provided that the following conditions are met:
9 | //
10 | // 1. Redistributions of source code must retain the above copyright notice, this
11 | // list of conditions and the following disclaimer.
12 | //
13 | // 2. Redistributions in binary form must reproduce the above copyright notice,
14 | // this list of conditions and the following disclaimer in the documentation and/or
15 | // other materials provided with the distribution.
16 | //
17 | // 3. Neither the name of the copyright holder(s) nor the names of any contributors
18 | // may be used to endorse or promote products derived from this software without
19 | // specific prior written permission. No license is granted to the trademarks of
20 | // the copyright holders even if such marks are included in this software.
21 | //
22 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23 | // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 | // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 | // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
26 | // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29 | // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30 | // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 | //
33 |
34 | #import
35 |
36 | @interface APCFrequencyDayTableViewCell : UITableViewCell
37 |
38 | @property (nonatomic, weak) IBOutlet UILabel *dayTitle;
39 |
40 | @end
41 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Library/MedicationTrackingSetup/MedicationFrequency/APCFrequencyEverydayTableViewCell.h:
--------------------------------------------------------------------------------
1 | //
2 | // APCFrequencyEverydayTableViewCell.h
3 | // APCAppCore
4 | //
5 | // Copyright (c) 2015, Apple Inc. All rights reserved.
6 | //
7 | // Redistribution and use in source and binary forms, with or without modification,
8 | // are permitted provided that the following conditions are met:
9 | //
10 | // 1. Redistributions of source code must retain the above copyright notice, this
11 | // list of conditions and the following disclaimer.
12 | //
13 | // 2. Redistributions in binary form must reproduce the above copyright notice,
14 | // this list of conditions and the following disclaimer in the documentation and/or
15 | // other materials provided with the distribution.
16 | //
17 | // 3. Neither the name of the copyright holder(s) nor the names of any contributors
18 | // may be used to endorse or promote products derived from this software without
19 | // specific prior written permission. No license is granted to the trademarks of
20 | // the copyright holders even if such marks are included in this software.
21 | //
22 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23 | // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 | // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 | // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
26 | // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29 | // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30 | // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 | //
33 |
34 | #import
35 |
36 | @interface APCFrequencyEverydayTableViewCell : UITableViewCell
37 |
38 | @property (nonatomic, weak) IBOutlet UILabel *everydayTitle;
39 |
40 | @end
41 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Library/MedicationTrackingSetup/MedicationFrequency/APCFrequencyTableViewTimesCell.h:
--------------------------------------------------------------------------------
1 | //
2 | // APCFrequencyTableViewTimesCell.h
3 | // APCAppCore
4 | //
5 | // Copyright (c) 2015, Apple Inc. All rights reserved.
6 | //
7 | // Redistribution and use in source and binary forms, with or without modification,
8 | // are permitted provided that the following conditions are met:
9 | //
10 | // 1. Redistributions of source code must retain the above copyright notice, this
11 | // list of conditions and the following disclaimer.
12 | //
13 | // 2. Redistributions in binary form must reproduce the above copyright notice,
14 | // this list of conditions and the following disclaimer in the documentation and/or
15 | // other materials provided with the distribution.
16 | //
17 | // 3. Neither the name of the copyright holder(s) nor the names of any contributors
18 | // may be used to endorse or promote products derived from this software without
19 | // specific prior written permission. No license is granted to the trademarks of
20 | // the copyright holders even if such marks are included in this software.
21 | //
22 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23 | // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 | // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 | // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
26 | // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29 | // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30 | // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 | //
33 |
34 | #import
35 |
36 | @interface APCFrequencyTableViewTimesCell : UITableViewCell
37 |
38 | @end
39 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Library/MedicationTrackingSetup/MedicationSetup/APCSetupButtonTableViewCell.h:
--------------------------------------------------------------------------------
1 | //
2 | // APCSetupButtonTableViewCell.h
3 | // APCAppCore
4 | //
5 | // Copyright (c) 2015, Apple Inc. All rights reserved.
6 | //
7 | // Redistribution and use in source and binary forms, with or without modification,
8 | // are permitted provided that the following conditions are met:
9 | //
10 | // 1. Redistributions of source code must retain the above copyright notice, this
11 | // list of conditions and the following disclaimer.
12 | //
13 | // 2. Redistributions in binary form must reproduce the above copyright notice,
14 | // this list of conditions and the following disclaimer in the documentation and/or
15 | // other materials provided with the distribution.
16 | //
17 | // 3. Neither the name of the copyright holder(s) nor the names of any contributors
18 | // may be used to endorse or promote products derived from this software without
19 | // specific prior written permission. No license is granted to the trademarks of
20 | // the copyright holders even if such marks are included in this software.
21 | //
22 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23 | // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 | // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 | // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
26 | // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29 | // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30 | // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 | //
33 |
34 | #import
35 |
36 | @class APCButton;
37 |
38 | @interface APCSetupButtonTableViewCell : UITableViewCell
39 |
40 | @property (nonatomic, weak) IBOutlet APCButton *doneButton;
41 |
42 | @end
43 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Library/Objects/APCDeviceHardware.h:
--------------------------------------------------------------------------------
1 | //
2 | // APCDeviceHardware.h
3 | // APCAppCore
4 | //
5 | // Copyright (c) 2015, Apple Inc. All rights reserved.
6 | //
7 | // Redistribution and use in source and binary forms, with or without modification,
8 | // are permitted provided that the following conditions are met:
9 | //
10 | // 1. Redistributions of source code must retain the above copyright notice, this
11 | // list of conditions and the following disclaimer.
12 | //
13 | // 2. Redistributions in binary form must reproduce the above copyright notice,
14 | // this list of conditions and the following disclaimer in the documentation and/or
15 | // other materials provided with the distribution.
16 | //
17 | // 3. Neither the name of the copyright holder(s) nor the names of any contributors
18 | // may be used to endorse or promote products derived from this software without
19 | // specific prior written permission. No license is granted to the trademarks of
20 | // the copyright holders even if such marks are included in this software.
21 | //
22 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23 | // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 | // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 | // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
26 | // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29 | // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30 | // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 | //
33 |
34 | #import
35 |
36 | @interface APCDeviceHardware : NSObject
37 |
38 | + (NSString *) platform;
39 |
40 | + (NSString *) platformString;
41 |
42 | + (BOOL)isMotionActivityAvailable;
43 |
44 | @end
45 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Library/Parameters/APCDebugWindow.h:
--------------------------------------------------------------------------------
1 | //
2 | // APCDebugWindow.h
3 | // APCAppCore
4 | //
5 | // Copyright (c) 2015, Apple Inc. All rights reserved.
6 | //
7 | // Redistribution and use in source and binary forms, with or without modification,
8 | // are permitted provided that the following conditions are met:
9 | //
10 | // 1. Redistributions of source code must retain the above copyright notice, this
11 | // list of conditions and the following disclaimer.
12 | //
13 | // 2. Redistributions in binary form must reproduce the above copyright notice,
14 | // this list of conditions and the following disclaimer in the documentation and/or
15 | // other materials provided with the distribution.
16 | //
17 | // 3. Neither the name of the copyright holder(s) nor the names of any contributors
18 | // may be used to endorse or promote products derived from this software without
19 | // specific prior written permission. No license is granted to the trademarks of
20 | // the copyright holders even if such marks are included in this software.
21 | //
22 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23 | // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 | // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 | // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
26 | // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29 | // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30 | // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 | //
33 |
34 | #import
35 |
36 | @interface APCDebugWindow : UIWindow
37 |
38 | @property (nonatomic) BOOL enableDebuggerWindow;
39 | @property (nonatomic) BOOL toggleDebugWindow;
40 |
41 | @end
42 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Library/Parameters/APCParameters+Settings.h:
--------------------------------------------------------------------------------
1 | //
2 | // APCParameters+Settings.h
3 | // APCAppCore
4 | //
5 | // Copyright (c) 2015, Apple Inc. All rights reserved.
6 | //
7 | // Redistribution and use in source and binary forms, with or without modification,
8 | // are permitted provided that the following conditions are met:
9 | //
10 | // 1. Redistributions of source code must retain the above copyright notice, this
11 | // list of conditions and the following disclaimer.
12 | //
13 | // 2. Redistributions in binary form must reproduce the above copyright notice,
14 | // this list of conditions and the following disclaimer in the documentation and/or
15 | // other materials provided with the distribution.
16 | //
17 | // 3. Neither the name of the copyright holder(s) nor the names of any contributors
18 | // may be used to endorse or promote products derived from this software without
19 | // specific prior written permission. No license is granted to the trademarks of
20 | // the copyright holders even if such marks are included in this software.
21 | //
22 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23 | // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 | // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 | // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
26 | // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29 | // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30 | // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 | //
33 |
34 | #import "APCParameters.h"
35 |
36 |
37 | @interface APCParameters (Settings)
38 |
39 | + (NSArray *)autoLockValues;
40 |
41 | + (NSArray *)autoLockOptionStrings;
42 |
43 | @end
44 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Library/ScheduleImporter/Documentation/ScheduleImportProcess-fourPages.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ResearchKit/AppCore/9a7f1f46eb404e53a88cd7f974cdd526cd1f66f3/APCAppCore/APCAppCore/Library/ScheduleImporter/Documentation/ScheduleImportProcess-fourPages.pdf
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Library/ScheduleImporter/Documentation/ScheduleImportProcess.graffle:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ResearchKit/AppCore/9a7f1f46eb404e53a88cd7f974cdd526cd1f66f3/APCAppCore/APCAppCore/Library/ScheduleImporter/Documentation/ScheduleImportProcess.graffle
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Library/ScheduleImporter/Documentation/ScheduleImportProcess.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ResearchKit/AppCore/9a7f1f46eb404e53a88cd7f974cdd526cd1f66f3/APCAppCore/APCAppCore/Library/ScheduleImporter/Documentation/ScheduleImportProcess.pdf
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Library/Scheduler/APCActivitiesDateState.h:
--------------------------------------------------------------------------------
1 | //
2 | // APCActivitiesDateState.h
3 | // APCAppCore
4 | //
5 | // Copyright (c) 2015, Apple Inc. All rights reserved.
6 | //
7 | // Redistribution and use in source and binary forms, with or without modification,
8 | // are permitted provided that the following conditions are met:
9 | //
10 | // 1. Redistributions of source code must retain the above copyright notice, this
11 | // list of conditions and the following disclaimer.
12 | //
13 | // 2. Redistributions in binary form must reproduce the above copyright notice,
14 | // this list of conditions and the following disclaimer in the documentation and/or
15 | // other materials provided with the distribution.
16 | //
17 | // 3. Neither the name of the copyright holder(s) nor the names of any contributors
18 | // may be used to endorse or promote products derived from this software without
19 | // specific prior written permission. No license is granted to the trademarks of
20 | // the copyright holders even if such marks are included in this software.
21 | //
22 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23 | // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 | // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 | // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
26 | // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29 | // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30 | // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 | //
33 |
34 | #import
35 |
36 | @interface APCActivitiesDateState : NSObject
37 |
38 | - (NSDictionary *)activitiesStateForDate:(NSDate *)date;
39 |
40 | @end
41 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Library/Stack/APCStack.h:
--------------------------------------------------------------------------------
1 | //
2 | // APCStack.h
3 | // APCAppCore
4 | //
5 | // Copyright (c) 2015, Apple Inc. All rights reserved.
6 | //
7 | // Redistribution and use in source and binary forms, with or without modification,
8 | // are permitted provided that the following conditions are met:
9 | //
10 | // 1. Redistributions of source code must retain the above copyright notice, this
11 | // list of conditions and the following disclaimer.
12 | //
13 | // 2. Redistributions in binary form must reproduce the above copyright notice,
14 | // this list of conditions and the following disclaimer in the documentation and/or
15 | // other materials provided with the distribution.
16 | //
17 | // 3. Neither the name of the copyright holder(s) nor the names of any contributors
18 | // may be used to endorse or promote products derived from this software without
19 | // specific prior written permission. No license is granted to the trademarks of
20 | // the copyright holders even if such marks are included in this software.
21 | //
22 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23 | // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 | // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 | // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
26 | // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29 | // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30 | // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 | //
33 |
34 | #import
35 |
36 | @interface APCStack : NSObject
37 |
38 | - (NSUInteger)count;
39 | - (void)push:(id)element;
40 | - (id)pop;
41 | - (id)peek
42 | ;
43 | @end
44 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Resources/Assets/consent/phone-667h@2x/consent_01@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ResearchKit/AppCore/9a7f1f46eb404e53a88cd7f974cdd526cd1f66f3/APCAppCore/APCAppCore/Resources/Assets/consent/phone-667h@2x/consent_01@2x.png
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Resources/Assets/consent/phone-667h@2x/consent_02@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ResearchKit/AppCore/9a7f1f46eb404e53a88cd7f974cdd526cd1f66f3/APCAppCore/APCAppCore/Resources/Assets/consent/phone-667h@2x/consent_02@2x.png
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Resources/Assets/consent/phone-667h@2x/consent_03@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ResearchKit/AppCore/9a7f1f46eb404e53a88cd7f974cdd526cd1f66f3/APCAppCore/APCAppCore/Resources/Assets/consent/phone-667h@2x/consent_03@2x.png
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Resources/Assets/consent/phone-667h@2x/consent_04@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ResearchKit/AppCore/9a7f1f46eb404e53a88cd7f974cdd526cd1f66f3/APCAppCore/APCAppCore/Resources/Assets/consent/phone-667h@2x/consent_04@2x.png
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Resources/Assets/consent/phone-667h@2x/consent_05@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ResearchKit/AppCore/9a7f1f46eb404e53a88cd7f974cdd526cd1f66f3/APCAppCore/APCAppCore/Resources/Assets/consent/phone-667h@2x/consent_05@2x.png
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Resources/Assets/consent/phone-667h@2x/consent_06@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ResearchKit/AppCore/9a7f1f46eb404e53a88cd7f974cdd526cd1f66f3/APCAppCore/APCAppCore/Resources/Assets/consent/phone-667h@2x/consent_06@2x.png
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Resources/Assets/consent/phone-667h@2x/consent_07@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ResearchKit/AppCore/9a7f1f46eb404e53a88cd7f974cdd526cd1f66f3/APCAppCore/APCAppCore/Resources/Assets/consent/phone-667h@2x/consent_07@2x.png
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Resources/Assets/consent/phone-736h@3x/consent_01@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ResearchKit/AppCore/9a7f1f46eb404e53a88cd7f974cdd526cd1f66f3/APCAppCore/APCAppCore/Resources/Assets/consent/phone-736h@3x/consent_01@3x.png
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Resources/Assets/consent/phone-736h@3x/consent_02@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ResearchKit/AppCore/9a7f1f46eb404e53a88cd7f974cdd526cd1f66f3/APCAppCore/APCAppCore/Resources/Assets/consent/phone-736h@3x/consent_02@3x.png
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Resources/Assets/consent/phone-736h@3x/consent_03@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ResearchKit/AppCore/9a7f1f46eb404e53a88cd7f974cdd526cd1f66f3/APCAppCore/APCAppCore/Resources/Assets/consent/phone-736h@3x/consent_03@3x.png
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Resources/Assets/consent/phone-736h@3x/consent_04@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ResearchKit/AppCore/9a7f1f46eb404e53a88cd7f974cdd526cd1f66f3/APCAppCore/APCAppCore/Resources/Assets/consent/phone-736h@3x/consent_04@3x.png
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Resources/Assets/consent/phone-736h@3x/consent_05@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ResearchKit/AppCore/9a7f1f46eb404e53a88cd7f974cdd526cd1f66f3/APCAppCore/APCAppCore/Resources/Assets/consent/phone-736h@3x/consent_05@3x.png
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Resources/Assets/consent/phone-736h@3x/consent_06@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ResearchKit/AppCore/9a7f1f46eb404e53a88cd7f974cdd526cd1f66f3/APCAppCore/APCAppCore/Resources/Assets/consent/phone-736h@3x/consent_06@3x.png
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Resources/Assets/consent/phone-736h@3x/consent_07@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ResearchKit/AppCore/9a7f1f46eb404e53a88cd7f974cdd526cd1f66f3/APCAppCore/APCAppCore/Resources/Assets/consent/phone-736h@3x/consent_07@3x.png
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Resources/Assets/tasks/phone-667h@2x/handtapping01@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ResearchKit/AppCore/9a7f1f46eb404e53a88cd7f974cdd526cd1f66f3/APCAppCore/APCAppCore/Resources/Assets/tasks/phone-667h@2x/handtapping01@2x.png
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Resources/Assets/tasks/phone-667h@2x/handtapping02@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ResearchKit/AppCore/9a7f1f46eb404e53a88cd7f974cdd526cd1f66f3/APCAppCore/APCAppCore/Resources/Assets/tasks/phone-667h@2x/handtapping02@2x.png
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Resources/Assets/tasks/phone-667h@2x/heart-fitness@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ResearchKit/AppCore/9a7f1f46eb404e53a88cd7f974cdd526cd1f66f3/APCAppCore/APCAppCore/Resources/Assets/tasks/phone-667h@2x/heart-fitness@2x.png
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Resources/Assets/tasks/phone-667h@2x/heartbeat@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ResearchKit/AppCore/9a7f1f46eb404e53a88cd7f974cdd526cd1f66f3/APCAppCore/APCAppCore/Resources/Assets/tasks/phone-667h@2x/heartbeat@2x.png
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Resources/Assets/tasks/phone-667h@2x/phonesoundwaves@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ResearchKit/AppCore/9a7f1f46eb404e53a88cd7f974cdd526cd1f66f3/APCAppCore/APCAppCore/Resources/Assets/tasks/phone-667h@2x/phonesoundwaves@2x.png
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Resources/Assets/tasks/phone-667h@2x/phonetapping@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ResearchKit/AppCore/9a7f1f46eb404e53a88cd7f974cdd526cd1f66f3/APCAppCore/APCAppCore/Resources/Assets/tasks/phone-667h@2x/phonetapping@2x.png
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Resources/Assets/tasks/phone-667h@2x/phonewaves@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ResearchKit/AppCore/9a7f1f46eb404e53a88cd7f974cdd526cd1f66f3/APCAppCore/APCAppCore/Resources/Assets/tasks/phone-667h@2x/phonewaves@2x.png
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Resources/Assets/tasks/phone-667h@2x/pocket@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ResearchKit/AppCore/9a7f1f46eb404e53a88cd7f974cdd526cd1f66f3/APCAppCore/APCAppCore/Resources/Assets/tasks/phone-667h@2x/pocket@2x.png
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Resources/Assets/tasks/phone-667h@2x/sittingman@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ResearchKit/AppCore/9a7f1f46eb404e53a88cd7f974cdd526cd1f66f3/APCAppCore/APCAppCore/Resources/Assets/tasks/phone-667h@2x/sittingman@2x.png
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Resources/Assets/tasks/phone-667h@2x/walkingman@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ResearchKit/AppCore/9a7f1f46eb404e53a88cd7f974cdd526cd1f66f3/APCAppCore/APCAppCore/Resources/Assets/tasks/phone-667h@2x/walkingman@2x.png
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Resources/Assets/tasks/phone-667h@2x/walkingman_monitor@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ResearchKit/AppCore/9a7f1f46eb404e53a88cd7f974cdd526cd1f66f3/APCAppCore/APCAppCore/Resources/Assets/tasks/phone-667h@2x/walkingman_monitor@2x.png
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Resources/Assets/tasks/phone-736h@3x/handtapping01@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ResearchKit/AppCore/9a7f1f46eb404e53a88cd7f974cdd526cd1f66f3/APCAppCore/APCAppCore/Resources/Assets/tasks/phone-736h@3x/handtapping01@3x.png
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Resources/Assets/tasks/phone-736h@3x/handtapping02@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ResearchKit/AppCore/9a7f1f46eb404e53a88cd7f974cdd526cd1f66f3/APCAppCore/APCAppCore/Resources/Assets/tasks/phone-736h@3x/handtapping02@3x.png
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Resources/Assets/tasks/phone-736h@3x/heart-fitness@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ResearchKit/AppCore/9a7f1f46eb404e53a88cd7f974cdd526cd1f66f3/APCAppCore/APCAppCore/Resources/Assets/tasks/phone-736h@3x/heart-fitness@3x.png
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Resources/Assets/tasks/phone-736h@3x/heartbeat@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ResearchKit/AppCore/9a7f1f46eb404e53a88cd7f974cdd526cd1f66f3/APCAppCore/APCAppCore/Resources/Assets/tasks/phone-736h@3x/heartbeat@3x.png
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Resources/Assets/tasks/phone-736h@3x/phonesoundwaves@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ResearchKit/AppCore/9a7f1f46eb404e53a88cd7f974cdd526cd1f66f3/APCAppCore/APCAppCore/Resources/Assets/tasks/phone-736h@3x/phonesoundwaves@3x.png
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Resources/Assets/tasks/phone-736h@3x/phonetapping@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ResearchKit/AppCore/9a7f1f46eb404e53a88cd7f974cdd526cd1f66f3/APCAppCore/APCAppCore/Resources/Assets/tasks/phone-736h@3x/phonetapping@3x.png
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Resources/Assets/tasks/phone-736h@3x/phonewaves@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ResearchKit/AppCore/9a7f1f46eb404e53a88cd7f974cdd526cd1f66f3/APCAppCore/APCAppCore/Resources/Assets/tasks/phone-736h@3x/phonewaves@3x.png
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Resources/Assets/tasks/phone-736h@3x/pocket@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ResearchKit/AppCore/9a7f1f46eb404e53a88cd7f974cdd526cd1f66f3/APCAppCore/APCAppCore/Resources/Assets/tasks/phone-736h@3x/pocket@3x.png
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Resources/Assets/tasks/phone-736h@3x/sittingman@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ResearchKit/AppCore/9a7f1f46eb404e53a88cd7f974cdd526cd1f66f3/APCAppCore/APCAppCore/Resources/Assets/tasks/phone-736h@3x/sittingman@3x.png
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Resources/Assets/tasks/phone-736h@3x/walkingman@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ResearchKit/AppCore/9a7f1f46eb404e53a88cd7f974cdd526cd1f66f3/APCAppCore/APCAppCore/Resources/Assets/tasks/phone-736h@3x/walkingman@3x.png
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Resources/Assets/tasks/phone-736h@3x/walkingman_monitor@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ResearchKit/AppCore/9a7f1f46eb404e53a88cd7f974cdd526cd1f66f3/APCAppCore/APCAppCore/Resources/Assets/tasks/phone-736h@3x/walkingman_monitor@3x.png
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Resources/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | org.researchkit.$(PRODUCT_NAME:rfc1034identifier)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | FMWK
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | $(CURRENT_PROJECT_VERSION)
23 | NSPrincipalClass
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Resources/Licenses/License_ZipZap.txt:
--------------------------------------------------------------------------------
1 | Copyright (c) 2012, Pixelglow Software.
2 | All rights reserved.
3 |
4 | Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
5 |
6 | * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
7 |
8 | * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
9 |
10 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
11 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Resources/bridge_framework_switcher.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | rm -f "${SRCROOT}/BridgeSDK/BridgeSDK.framework"
3 | if [[ "$ARCHS" == "x86_64" ]];then
4 | echo "------Linking x86 Framework-------"
5 | ln -s "x86/BridgeSDK.framework" "BridgeSDK/BridgeSDK.framework"
6 | elif [[ "$ARCHS" == "i386" ]]; then
7 | echo "------Linking x86 Framework-------"
8 | ln -s "x86/BridgeSDK.framework" "BridgeSDK/BridgeSDK.framework"
9 | else
10 | echo "------Linking ARM Framework-------"
11 | ln -s "arm/BridgeSDK.framework" "BridgeSDK/BridgeSDK.framework"
12 | fi
13 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Resources/rk_framework_switcher.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | rm -f "${SRCROOT}/ResearchKit/ResearchKit.framework"
3 | if [[ "$ARCHS" == "x86_64" ]];then
4 | echo "------Linking x86 Framework-------"
5 | ln -s "x86/ResearchKit.framework" "ResearchKit/ResearchKit.framework"
6 | elif [[ "$ARCHS" == "i386" ]]; then
7 | echo "------Linking x86 Framework-------"
8 | ln -s "x86/ResearchKit.framework" "ResearchKit/ResearchKit.framework"
9 | else
10 | echo "------Linking ARM Framework-------"
11 | ln -s "arm/ResearchKit.framework" "ResearchKit/ResearchKit.framework"
12 | fi
13 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Resources/update_version.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | #
3 | # update_version.sh
4 | # AppCore
5 | #
6 | # Copyright (c) 2015 Apple, Inc. All rights reserved.
7 | #
8 | # Generates a version number and build number for this
9 | # app, and stores them in a pseudo-environment variable
10 | # which is loaded at run time.
11 | #
12 | # This file is used by the main apps, but is stored in AppCore.
13 | # Each main app has a build script which runs this file.
14 | #
15 | #
16 | # Original documentation for this script:
17 | # ---
18 | # In order to use a git-based versioning, do the following:
19 | #
20 | # 1) Copy this file to ${SRCROOT}
21 | #
22 | # 2) Ensure it has execute privileges. Execute
23 | # `chmod a+x update_version.sh` from the command
24 | # line to give the file execute privileges.
25 | #
26 | # 3) Add a `Run Script` build phase to the
27 | # project and paste in the script
28 | # `${SRCROOT}/update_version.sh`
29 | #
30 |
31 | # Debugging tools:
32 | set -o nounset # Make the script exit if an undeclared variable is used
33 | set -o errexit # Make the script exit if a command fails
34 |
35 | if git symbolic-ref HEAD 2>/dev/null # Are we in a git repository?
36 | then
37 | VERSION=`git describe --tags --always --dirty`
38 | BUILD=`git rev-list HEAD | wc -l | tr -d ' '`
39 |
40 | echo " Updating version to: ${VERSION}"
41 | echo "Updating build number to: ${BUILD}"
42 |
43 | defaults write "${BUILT_PRODUCTS_DIR}/${INFOPLIST_PATH%.*}" "CFBundleShortVersionString" "${VERSION}"
44 | defaults write "${BUILT_PRODUCTS_DIR}/${INFOPLIST_PATH%.*}" "CFBundleVersion" "${BUILD}"
45 | else
46 | echo "git repository was not detected"
47 | echo "Version and build numbers were not automatically set."
48 | fi
49 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/UI/Components/APCBadgeLabel.h:
--------------------------------------------------------------------------------
1 | //
2 | // APCBadgeLabel.h
3 | // APCAppCore
4 | //
5 | // Copyright (c) 2015, Apple Inc. All rights reserved.
6 | //
7 | // Redistribution and use in source and binary forms, with or without modification,
8 | // are permitted provided that the following conditions are met:
9 | //
10 | // 1. Redistributions of source code must retain the above copyright notice, this
11 | // list of conditions and the following disclaimer.
12 | //
13 | // 2. Redistributions in binary form must reproduce the above copyright notice,
14 | // this list of conditions and the following disclaimer in the documentation and/or
15 | // other materials provided with the distribution.
16 | //
17 | // 3. Neither the name of the copyright holder(s) nor the names of any contributors
18 | // may be used to endorse or promote products derived from this software without
19 | // specific prior written permission. No license is granted to the trademarks of
20 | // the copyright holders even if such marks are included in this software.
21 | //
22 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23 | // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 | // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 | // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
26 | // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29 | // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30 | // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 | //
33 |
34 | #import
35 |
36 | @interface APCBadgeLabel : UILabel
37 |
38 | @property (nonatomic, strong) UIColor *tintColor;
39 |
40 | @property (nonatomic) CGFloat lineWidth;
41 |
42 | @end
43 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/UI/Components/APCButton.h:
--------------------------------------------------------------------------------
1 | //
2 | // APCButton.h
3 | // APCAppCore
4 | //
5 | // Copyright (c) 2015, Apple Inc. All rights reserved.
6 | //
7 | // Redistribution and use in source and binary forms, with or without modification,
8 | // are permitted provided that the following conditions are met:
9 | //
10 | // 1. Redistributions of source code must retain the above copyright notice, this
11 | // list of conditions and the following disclaimer.
12 | //
13 | // 2. Redistributions in binary form must reproduce the above copyright notice,
14 | // this list of conditions and the following disclaimer in the documentation and/or
15 | // other materials provided with the distribution.
16 | //
17 | // 3. Neither the name of the copyright holder(s) nor the names of any contributors
18 | // may be used to endorse or promote products derived from this software without
19 | // specific prior written permission. No license is granted to the trademarks of
20 | // the copyright holders even if such marks are included in this software.
21 | //
22 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23 | // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 | // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 | // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
26 | // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29 | // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30 | // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 | //
33 |
34 | #import
35 |
36 | @interface APCButton : UIButton
37 |
38 | @end
39 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/UI/Components/APCHorizontalBottomThinLineView.h:
--------------------------------------------------------------------------------
1 | //
2 | // APCHorizontalBottomThinLineView.h
3 | // APCAppCore
4 | //
5 | // Copyright (c) 2015, Apple Inc. All rights reserved.
6 | //
7 | // Redistribution and use in source and binary forms, with or without modification,
8 | // are permitted provided that the following conditions are met:
9 | //
10 | // 1. Redistributions of source code must retain the above copyright notice, this
11 | // list of conditions and the following disclaimer.
12 | //
13 | // 2. Redistributions in binary form must reproduce the above copyright notice,
14 | // this list of conditions and the following disclaimer in the documentation and/or
15 | // other materials provided with the distribution.
16 | //
17 | // 3. Neither the name of the copyright holder(s) nor the names of any contributors
18 | // may be used to endorse or promote products derived from this software without
19 | // specific prior written permission. No license is granted to the trademarks of
20 | // the copyright holders even if such marks are included in this software.
21 | //
22 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23 | // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 | // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 | // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
26 | // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29 | // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30 | // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 | //
33 |
34 | #import
35 |
36 | @interface APCHorizontalBottomThinLineView : UIView
37 |
38 | @end
39 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/UI/Components/APCHorizontalThinLineView.h:
--------------------------------------------------------------------------------
1 | //
2 | // APCHorizontalThinLineView.h
3 | // APCAppCore
4 | //
5 | // Copyright (c) 2015, Apple Inc. All rights reserved.
6 | //
7 | // Redistribution and use in source and binary forms, with or without modification,
8 | // are permitted provided that the following conditions are met:
9 | //
10 | // 1. Redistributions of source code must retain the above copyright notice, this
11 | // list of conditions and the following disclaimer.
12 | //
13 | // 2. Redistributions in binary form must reproduce the above copyright notice,
14 | // this list of conditions and the following disclaimer in the documentation and/or
15 | // other materials provided with the distribution.
16 | //
17 | // 3. Neither the name of the copyright holder(s) nor the names of any contributors
18 | // may be used to endorse or promote products derived from this software without
19 | // specific prior written permission. No license is granted to the trademarks of
20 | // the copyright holders even if such marks are included in this software.
21 | //
22 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23 | // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 | // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 | // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
26 | // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29 | // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30 | // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 | //
33 |
34 | #import
35 |
36 | @interface APCHorizontalThinLineView : UIView
37 |
38 | @end
39 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/UI/Components/APCInsightBarView.h:
--------------------------------------------------------------------------------
1 | //
2 | // APCInsightBarView.h
3 | // APCAppCore
4 | //
5 | // Copyright (c) 2015, Apple Inc. All rights reserved.
6 | //
7 | // Redistribution and use in source and binary forms, with or without modification,
8 | // are permitted provided that the following conditions are met:
9 | //
10 | // 1. Redistributions of source code must retain the above copyright notice, this
11 | // list of conditions and the following disclaimer.
12 | //
13 | // 2. Redistributions in binary form must reproduce the above copyright notice,
14 | // this list of conditions and the following disclaimer in the documentation and/or
15 | // other materials provided with the distribution.
16 | //
17 | // 3. Neither the name of the copyright holder(s) nor the names of any contributors
18 | // may be used to endorse or promote products derived from this software without
19 | // specific prior written permission. No license is granted to the trademarks of
20 | // the copyright holders even if such marks are included in this software.
21 | //
22 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23 | // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 | // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 | // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
26 | // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29 | // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30 | // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 | //
33 |
34 | #import
35 |
36 | @interface APCInsightBarView : UIView
37 |
38 | @property (nonatomic, strong) NSNumber *goodDayValue;
39 | @property (nonatomic, strong) NSNumber *badDayValue;
40 |
41 | @end
42 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/UI/Components/APCVerticalThinLineView.h:
--------------------------------------------------------------------------------
1 | //
2 | // APCVerticalThinLineView.h
3 | // APCAppCore
4 | //
5 | // Copyright (c) 2015, Apple Inc. All rights reserved.
6 | //
7 | // Redistribution and use in source and binary forms, with or without modification,
8 | // are permitted provided that the following conditions are met:
9 | //
10 | // 1. Redistributions of source code must retain the above copyright notice, this
11 | // list of conditions and the following disclaimer.
12 | //
13 | // 2. Redistributions in binary form must reproduce the above copyright notice,
14 | // this list of conditions and the following disclaimer in the documentation and/or
15 | // other materials provided with the distribution.
16 | //
17 | // 3. Neither the name of the copyright holder(s) nor the names of any contributors
18 | // may be used to endorse or promote products derived from this software without
19 | // specific prior written permission. No license is granted to the trademarks of
20 | // the copyright holders even if such marks are included in this software.
21 | //
22 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23 | // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 | // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 | // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
26 | // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29 | // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30 | // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 | //
33 |
34 | #import
35 |
36 | @interface APCVerticalThinLineView : UIView
37 |
38 | @end
39 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/UI/Components/GraphCharts/APCCircleView.h:
--------------------------------------------------------------------------------
1 | //
2 | // APCCircleView.h
3 | // APCAppCore
4 | //
5 | // Copyright (c) 2015, Apple Inc. All rights reserved.
6 | //
7 | // Redistribution and use in source and binary forms, with or without modification,
8 | // are permitted provided that the following conditions are met:
9 | //
10 | // 1. Redistributions of source code must retain the above copyright notice, this
11 | // list of conditions and the following disclaimer.
12 | //
13 | // 2. Redistributions in binary form must reproduce the above copyright notice,
14 | // this list of conditions and the following disclaimer in the documentation and/or
15 | // other materials provided with the distribution.
16 | //
17 | // 3. Neither the name of the copyright holder(s) nor the names of any contributors
18 | // may be used to endorse or promote products derived from this software without
19 | // specific prior written permission. No license is granted to the trademarks of
20 | // the copyright holders even if such marks are included in this software.
21 | //
22 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23 | // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 | // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 | // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
26 | // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29 | // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30 | // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 | //
33 |
34 | #import
35 |
36 | @interface APCCircleView : UIView
37 |
38 | @property (nonatomic, strong) UIColor *tintColor;
39 |
40 | @property (nonatomic) CGFloat value;
41 |
42 | - (CAShapeLayer *)shapeLayer;
43 |
44 | @end
45 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/UI/Components/GraphCharts/APCGraph.h:
--------------------------------------------------------------------------------
1 | //
2 | // APCGraph.h
3 | // APCAppCore
4 | //
5 | // Copyright (c) 2015, Apple Inc. All rights reserved.
6 | //
7 | // Redistribution and use in source and binary forms, with or without modification,
8 | // are permitted provided that the following conditions are met:
9 | //
10 | // 1. Redistributions of source code must retain the above copyright notice, this
11 | // list of conditions and the following disclaimer.
12 | //
13 | // 2. Redistributions in binary form must reproduce the above copyright notice,
14 | // this list of conditions and the following disclaimer in the documentation and/or
15 | // other materials provided with the distribution.
16 | //
17 | // 3. Neither the name of the copyright holder(s) nor the names of any contributors
18 | // may be used to endorse or promote products derived from this software without
19 | // specific prior written permission. No license is granted to the trademarks of
20 | // the copyright holders even if such marks are included in this software.
21 | //
22 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23 | // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 | // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 | // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
26 | // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29 | // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30 | // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 | //
33 |
34 | #import "APCAxisView.h"
35 | #import "APCCircleView.h"
36 | #import "APCLineGraphView.h"
37 | #import "APCDiscreteGraphView.h"
38 | #import "APCNormalDistributionGraphView.h"
39 |
40 | #import "APCCubicCurveAlgorithm.h"
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/UI/Errors/APCCatastrophicErrorViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // APCCatastrophicErrorViewController.h
3 | // APCAppCore
4 | //
5 | // Copyright (c) 2015, Apple Inc. All rights reserved.
6 | //
7 | // Redistribution and use in source and binary forms, with or without modification,
8 | // are permitted provided that the following conditions are met:
9 | //
10 | // 1. Redistributions of source code must retain the above copyright notice, this
11 | // list of conditions and the following disclaimer.
12 | //
13 | // 2. Redistributions in binary form must reproduce the above copyright notice,
14 | // this list of conditions and the following disclaimer in the documentation and/or
15 | // other materials provided with the distribution.
16 | //
17 | // 3. Neither the name of the copyright holder(s) nor the names of any contributors
18 | // may be used to endorse or promote products derived from this software without
19 | // specific prior written permission. No license is granted to the trademarks of
20 | // the copyright holders even if such marks are included in this software.
21 | //
22 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23 | // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 | // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 | // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
26 | // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29 | // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30 | // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 | //
33 |
34 | #import
35 |
36 | @interface APCCatastrophicErrorViewController : UIViewController
37 |
38 | @end
39 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/UI/Model/APCSignInTask.h:
--------------------------------------------------------------------------------
1 | //
2 | // APCSignInTask.h
3 | // APCAppCore
4 | //
5 | // Copyright (c) 2015, Apple Inc. All rights reserved.
6 | //
7 | // Redistribution and use in source and binary forms, with or without modification,
8 | // are permitted provided that the following conditions are met:
9 | //
10 | // 1. Redistributions of source code must retain the above copyright notice, this
11 | // list of conditions and the following disclaimer.
12 | //
13 | // 2. Redistributions in binary form must reproduce the above copyright notice,
14 | // this list of conditions and the following disclaimer in the documentation and/or
15 | // other materials provided with the distribution.
16 | //
17 | // 3. Neither the name of the copyright holder(s) nor the names of any contributors
18 | // may be used to endorse or promote products derived from this software without
19 | // specific prior written permission. No license is granted to the trademarks of
20 | // the copyright holders even if such marks are included in this software.
21 | //
22 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23 | // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 | // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 | // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
26 | // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29 | // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30 | // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 | //
33 |
34 | #import "APCOnboardingTask.h"
35 |
36 | @interface APCSignInTask : APCOnboardingTask
37 |
38 |
39 | @end
40 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/UI/Model/APCSignUpTask.h:
--------------------------------------------------------------------------------
1 | //
2 | // APCSignUpTask.h
3 | // APCAppCore
4 | //
5 | // Copyright (c) 2015, Apple Inc. All rights reserved.
6 | //
7 | // Redistribution and use in source and binary forms, with or without modification,
8 | // are permitted provided that the following conditions are met:
9 | //
10 | // 1. Redistributions of source code must retain the above copyright notice, this
11 | // list of conditions and the following disclaimer.
12 | //
13 | // 2. Redistributions in binary form must reproduce the above copyright notice,
14 | // this list of conditions and the following disclaimer in the documentation and/or
15 | // other materials provided with the distribution.
16 | //
17 | // 3. Neither the name of the copyright holder(s) nor the names of any contributors
18 | // may be used to endorse or promote products derived from this software without
19 | // specific prior written permission. No license is granted to the trademarks of
20 | // the copyright holders even if such marks are included in this software.
21 | //
22 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23 | // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 | // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 | // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
26 | // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29 | // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30 | // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 | //
33 |
34 |
35 | #import "APCOnboardingTask.h"
36 |
37 | @interface APCSignUpTask : APCOnboardingTask
38 |
39 |
40 | @end
41 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/UI/Onboarding/APCIntroVideoViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // APCIntroVideoViewController.h
3 | // APCAppCore
4 | //
5 | // Copyright (c) 2015, Apple Inc. All rights reserved.
6 | //
7 | // Redistribution and use in source and binary forms, with or without modification,
8 | // are permitted provided that the following conditions are met:
9 | //
10 | // 1. Redistributions of source code must retain the above copyright notice, this
11 | // list of conditions and the following disclaimer.
12 | //
13 | // 2. Redistributions in binary form must reproduce the above copyright notice,
14 | // this list of conditions and the following disclaimer in the documentation and/or
15 | // other materials provided with the distribution.
16 | //
17 | // 3. Neither the name of the copyright holder(s) nor the names of any contributors
18 | // may be used to endorse or promote products derived from this software without
19 | // specific prior written permission. No license is granted to the trademarks of
20 | // the copyright holders even if such marks are included in this software.
21 | //
22 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23 | // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 | // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 | // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
26 | // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29 | // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30 | // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 | //
33 |
34 | @import MediaPlayer;
35 |
36 | @interface APCIntroVideoViewController : MPMoviePlayerViewController
37 |
38 | - (void)dismiss;
39 |
40 | @end
41 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/UI/Onboarding/SignUp/APCAllSetContentViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // APCAllSetContentViewController.h
3 | // APCAppCore
4 | //
5 | // Copyright (c) 2015, Apple Inc. All rights reserved.
6 | //
7 | // Redistribution and use in source and binary forms, with or without modification,
8 | // are permitted provided that the following conditions are met:
9 | //
10 | // 1. Redistributions of source code must retain the above copyright notice, this
11 | // list of conditions and the following disclaimer.
12 | //
13 | // 2. Redistributions in binary form must reproduce the above copyright notice,
14 | // this list of conditions and the following disclaimer in the documentation and/or
15 | // other materials provided with the distribution.
16 | //
17 | // 3. Neither the name of the copyright holder(s) nor the names of any contributors
18 | // may be used to endorse or promote products derived from this software without
19 | // specific prior written permission. No license is granted to the trademarks of
20 | // the copyright holders even if such marks are included in this software.
21 | //
22 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23 | // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 | // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 | // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
26 | // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29 | // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30 | // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 | //
33 |
34 | #import
35 |
36 | @interface APCAllSetContentViewController : UITableViewController
37 |
38 | @end
39 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/UI/Onboarding/SignUp/APCConsentTaskViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // APCConsentTaskViewController.h
3 | // APCAppCore
4 | //
5 | // Copyright (c) 2015, Apple Inc. All rights reserved.
6 | //
7 | // Redistribution and use in source and binary forms, with or without modification,
8 | // are permitted provided that the following conditions are met:
9 | //
10 | // 1. Redistributions of source code must retain the above copyright notice, this
11 | // list of conditions and the following disclaimer.
12 | //
13 | // 2. Redistributions in binary form must reproduce the above copyright notice,
14 | // this list of conditions and the following disclaimer in the documentation and/or
15 | // other materials provided with the distribution.
16 | //
17 | // 3. Neither the name of the copyright holder(s) nor the names of any contributors
18 | // may be used to endorse or promote products derived from this software without
19 | // specific prior written permission. No license is granted to the trademarks of
20 | // the copyright holders even if such marks are included in this software.
21 | //
22 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23 | // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 | // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 | // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
26 | // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29 | // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30 | // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 | //
33 |
34 | #import
35 |
36 | @interface APCConsentTaskViewController : ORKTaskViewController
37 | @property (strong, nonatomic) ORKConsentSignatureResult *signatureResult;
38 | @end
39 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/UI/Onboarding/SignUp/APCInclusionCriteriaViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // APCInclusionCriteriaViewController.h
3 | // APCAppCore
4 | //
5 | // Copyright (c) 2015, Apple Inc. All rights reserved.
6 | //
7 | // Redistribution and use in source and binary forms, with or without modification,
8 | // are permitted provided that the following conditions are met:
9 | //
10 | // 1. Redistributions of source code must retain the above copyright notice, this
11 | // list of conditions and the following disclaimer.
12 | //
13 | // 2. Redistributions in binary form must reproduce the above copyright notice,
14 | // this list of conditions and the following disclaimer in the documentation and/or
15 | // other materials provided with the distribution.
16 | //
17 | // 3. Neither the name of the copyright holder(s) nor the names of any contributors
18 | // may be used to endorse or promote products derived from this software without
19 | // specific prior written permission. No license is granted to the trademarks of
20 | // the copyright holders even if such marks are included in this software.
21 | //
22 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23 | // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 | // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 | // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
26 | // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29 | // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30 | // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 | //
33 |
34 | #import
35 |
36 | @interface APCInclusionCriteriaViewController : UITableViewController
37 |
38 | //Abstract Implementations
39 | - (void) next;
40 | - (BOOL) isContentValid;
41 |
42 | @end
43 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/UI/Onboarding/SignUp/APCSignUpGeneralInfoViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // APCSignUpGeneralInfoViewController.h
3 | // APCAppCore
4 | //
5 | // Copyright (c) 2015, Apple Inc. All rights reserved.
6 | //
7 | // Redistribution and use in source and binary forms, with or without modification,
8 | // are permitted provided that the following conditions are met:
9 | //
10 | // 1. Redistributions of source code must retain the above copyright notice, this
11 | // list of conditions and the following disclaimer.
12 | //
13 | // 2. Redistributions in binary form must reproduce the above copyright notice,
14 | // this list of conditions and the following disclaimer in the documentation and/or
15 | // other materials provided with the distribution.
16 | //
17 | // 3. Neither the name of the copyright holder(s) nor the names of any contributors
18 | // may be used to endorse or promote products derived from this software without
19 | // specific prior written permission. No license is granted to the trademarks of
20 | // the copyright holders even if such marks are included in this software.
21 | //
22 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23 | // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 | // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 | // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
26 | // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29 | // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30 | // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 | //
33 |
34 | #import
35 | #import "APCSignUpInfoViewController.h"
36 |
37 | @interface APCSignUpGeneralInfoViewController : APCSignUpInfoViewController
38 |
39 | - (NSArray *)prepareContent;
40 |
41 | @end
42 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/UI/Onboarding/SignUp/APCSignUpMedicalInfoViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // APCSignUpMedicalInfoViewController.h
3 | // APCAppCore
4 | //
5 | // Copyright (c) 2015, Apple Inc. All rights reserved.
6 | //
7 | // Redistribution and use in source and binary forms, with or without modification,
8 | // are permitted provided that the following conditions are met:
9 | //
10 | // 1. Redistributions of source code must retain the above copyright notice, this
11 | // list of conditions and the following disclaimer.
12 | //
13 | // 2. Redistributions in binary form must reproduce the above copyright notice,
14 | // this list of conditions and the following disclaimer in the documentation and/or
15 | // other materials provided with the distribution.
16 | //
17 | // 3. Neither the name of the copyright holder(s) nor the names of any contributors
18 | // may be used to endorse or promote products derived from this software without
19 | // specific prior written permission. No license is granted to the trademarks of
20 | // the copyright holders even if such marks are included in this software.
21 | //
22 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23 | // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 | // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 | // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
26 | // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29 | // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30 | // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 | //
33 |
34 | #import
35 | #import "APCSignUpInfoViewController.h"
36 |
37 | @interface APCSignUpMedicalInfoViewController : APCSignUpInfoViewController
38 |
39 | - (NSArray *)prepareContent;
40 |
41 | @end
42 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/UI/Onboarding/SignUp/APCSignUpProgressing.h:
--------------------------------------------------------------------------------
1 | //
2 | // APCSignUpProgressing.h
3 | // APCAppCore
4 | //
5 | // Copyright (c) 2015, Apple Inc. All rights reserved.
6 | //
7 | // Redistribution and use in source and binary forms, with or without modification,
8 | // are permitted provided that the following conditions are met:
9 | //
10 | // 1. Redistributions of source code must retain the above copyright notice, this
11 | // list of conditions and the following disclaimer.
12 | //
13 | // 2. Redistributions in binary form must reproduce the above copyright notice,
14 | // this list of conditions and the following disclaimer in the documentation and/or
15 | // other materials provided with the distribution.
16 | //
17 | // 3. Neither the name of the copyright holder(s) nor the names of any contributors
18 | // may be used to endorse or promote products derived from this software without
19 | // specific prior written permission. No license is granted to the trademarks of
20 | // the copyright holders even if such marks are included in this software.
21 | //
22 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23 | // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 | // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 | // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
26 | // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29 | // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30 | // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 | //
33 |
34 | @import Foundation;
35 |
36 | @class APCUser, APCStepProgressBar;
37 |
38 | @protocol APCSignUpProgressing
39 |
40 | @property (nonatomic, strong) APCStepProgressBar *stepProgressBar;
41 |
42 | @end
43 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/UI/Onboarding/SignUp/APCSignupPasscodeViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // APCSignupPasscodeViewController.h
3 | // APCAppCore
4 | //
5 | // Copyright (c) 2015, Apple Inc. All rights reserved.
6 | //
7 | // Redistribution and use in source and binary forms, with or without modification,
8 | // are permitted provided that the following conditions are met:
9 | //
10 | // 1. Redistributions of source code must retain the above copyright notice, this
11 | // list of conditions and the following disclaimer.
12 | //
13 | // 2. Redistributions in binary form must reproduce the above copyright notice,
14 | // this list of conditions and the following disclaimer in the documentation and/or
15 | // other materials provided with the distribution.
16 | //
17 | // 3. Neither the name of the copyright holder(s) nor the names of any contributors
18 | // may be used to endorse or promote products derived from this software without
19 | // specific prior written permission. No license is granted to the trademarks of
20 | // the copyright holders even if such marks are included in this software.
21 | //
22 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23 | // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 | // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 | // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
26 | // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29 | // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30 | // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 | //
33 |
34 | #import
35 | #import "APCSignUpProgressing.h"
36 | #import "APCUserInfoConstants.h"
37 |
38 | @interface APCSignupPasscodeViewController : UIViewController
39 |
40 | @end
41 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/UI/Onboarding/SignUp/APCThankYouViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // APCThankYouViewController.h
3 | // APCAppCore
4 | //
5 | // Copyright (c) 2015, Apple Inc. All rights reserved.
6 | //
7 | // Redistribution and use in source and binary forms, with or without modification,
8 | // are permitted provided that the following conditions are met:
9 | //
10 | // 1. Redistributions of source code must retain the above copyright notice, this
11 | // list of conditions and the following disclaimer.
12 | //
13 | // 2. Redistributions in binary form must reproduce the above copyright notice,
14 | // this list of conditions and the following disclaimer in the documentation and/or
15 | // other materials provided with the distribution.
16 | //
17 | // 3. Neither the name of the copyright holder(s) nor the names of any contributors
18 | // may be used to endorse or promote products derived from this software without
19 | // specific prior written permission. No license is granted to the trademarks of
20 | // the copyright holders even if such marks are included in this software.
21 | //
22 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23 | // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 | // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 | // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
26 | // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29 | // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30 | // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 | //
33 |
34 | #import
35 | #import "APCSignUpProgressing.h"
36 |
37 | @interface APCThankYouViewController : UIViewController
38 |
39 | @property (nonatomic) BOOL emailVerified;
40 |
41 | @end
42 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/UI/TabBarControllers/Learn/APCLearnStudyDetailsViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // APCLearnStudyDetailsViewController.h
3 | // APCAppCore
4 | //
5 | // Copyright (c) 2015, Apple Inc. All rights reserved.
6 | //
7 | // Redistribution and use in source and binary forms, with or without modification,
8 | // are permitted provided that the following conditions are met:
9 | //
10 | // 1. Redistributions of source code must retain the above copyright notice, this
11 | // list of conditions and the following disclaimer.
12 | //
13 | // 2. Redistributions in binary form must reproduce the above copyright notice,
14 | // this list of conditions and the following disclaimer in the documentation and/or
15 | // other materials provided with the distribution.
16 | //
17 | // 3. Neither the name of the copyright holder(s) nor the names of any contributors
18 | // may be used to endorse or promote products derived from this software without
19 | // specific prior written permission. No license is granted to the trademarks of
20 | // the copyright holders even if such marks are included in this software.
21 | //
22 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23 | // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 | // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 | // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
26 | // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29 | // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30 | // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 | //
33 |
34 | #import "APCStudyOverviewViewController.h"
35 |
36 | @interface APCLearnStudyDetailsViewController : APCStudyOverviewViewController
37 |
38 | @end
39 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/UI/TabBarControllers/NewsFeed/APCNewsFeedViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // APCNewsFeedViewController.h
3 | // APCAppCore
4 | //
5 | // Copyright (c) 2015, Apple Inc. All rights reserved.
6 | //
7 | // Redistribution and use in source and binary forms, with or without modification,
8 | // are permitted provided that the following conditions are met:
9 | //
10 | // 1. Redistributions of source code must retain the above copyright notice, this
11 | // list of conditions and the following disclaimer.
12 | //
13 | // 2. Redistributions in binary form must reproduce the above copyright notice,
14 | // this list of conditions and the following disclaimer in the documentation and/or
15 | // other materials provided with the distribution.
16 | //
17 | // 3. Neither the name of the copyright holder(s) nor the names of any contributors
18 | // may be used to endorse or promote products derived from this software without
19 | // specific prior written permission. No license is granted to the trademarks of
20 | // the copyright holders even if such marks are included in this software.
21 | //
22 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23 | // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 | // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 | // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
26 | // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29 | // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30 | // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 | //
33 |
34 | #import
35 |
36 | @interface APCNewsFeedViewController : UITableViewController
37 |
38 | @end
39 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/UI/TabBarControllers/Profile/APCDemographicUploader.h:
--------------------------------------------------------------------------------
1 | //
2 | // APCDemographicUploader.h
3 | // APCAppCore
4 | //
5 | // Copyright (c) 2015, Apple Inc. All rights reserved.
6 | //
7 | // Redistribution and use in source and binary forms, with or without modification,
8 | // are permitted provided that the following conditions are met:
9 | //
10 | // 1. Redistributions of source code must retain the above copyright notice, this
11 | // list of conditions and the following disclaimer.
12 | //
13 | // 2. Redistributions in binary form must reproduce the above copyright notice,
14 | // this list of conditions and the following disclaimer in the documentation and/or
15 | // other materials provided with the distribution.
16 | //
17 | // 3. Neither the name of the copyright holder(s) nor the names of any contributors
18 | // may be used to endorse or promote products derived from this software without
19 | // specific prior written permission. No license is granted to the trademarks of
20 | // the copyright holders even if such marks are included in this software.
21 | //
22 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23 | // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 | // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 | // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
26 | // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29 | // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30 | // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 | //
33 |
34 | #import
35 |
36 | @class APCUser;
37 |
38 | @interface APCDemographicUploader : NSObject
39 |
40 | - (instancetype)initWithUser:(APCUser *)user;
41 |
42 | - (void)uploadNonIdentifiableDemographicData;
43 |
44 | @end
45 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/UI/TabBarControllers/Profile/APCLicenseInfoViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // APCLicenseInfoViewController.h
3 | // APCAppCore
4 | //
5 | // Copyright (c) 2015, Apple Inc. All rights reserved.
6 | //
7 | // Redistribution and use in source and binary forms, with or without modification,
8 | // are permitted provided that the following conditions are met:
9 | //
10 | // 1. Redistributions of source code must retain the above copyright notice, this
11 | // list of conditions and the following disclaimer.
12 | //
13 | // 2. Redistributions in binary form must reproduce the above copyright notice,
14 | // this list of conditions and the following disclaimer in the documentation and/or
15 | // other materials provided with the distribution.
16 | //
17 | // 3. Neither the name of the copyright holder(s) nor the names of any contributors
18 | // may be used to endorse or promote products derived from this software without
19 | // specific prior written permission. No license is granted to the trademarks of
20 | // the copyright holders even if such marks are included in this software.
21 | //
22 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23 | // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 | // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 | // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
26 | // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29 | // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30 | // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 | //
33 |
34 | #import
35 |
36 | @interface APCLicenseInfoViewController : UITableViewController
37 |
38 | @property (nonatomic, strong) NSArray *items;
39 |
40 | @end
41 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/UI/TabBarControllers/Profile/APCProfileViewController+Bridge.h:
--------------------------------------------------------------------------------
1 | //
2 | // APCProfileViewController+Bridge.h
3 | // APCAppCore
4 | //
5 | // Copyright (c) 2015, Apple Inc. All rights reserved.
6 | //
7 | // Redistribution and use in source and binary forms, with or without modification,
8 | // are permitted provided that the following conditions are met:
9 | //
10 | // 1. Redistributions of source code must retain the above copyright notice, this
11 | // list of conditions and the following disclaimer.
12 | //
13 | // 2. Redistributions in binary form must reproduce the above copyright notice,
14 | // this list of conditions and the following disclaimer in the documentation and/or
15 | // other materials provided with the distribution.
16 | //
17 | // 3. Neither the name of the copyright holder(s) nor the names of any contributors
18 | // may be used to endorse or promote products derived from this software without
19 | // specific prior written permission. No license is granted to the trademarks of
20 | // the copyright holders even if such marks are included in this software.
21 | //
22 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23 | // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 | // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 | // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
26 | // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29 | // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30 | // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 | //
33 |
34 | #import
35 |
36 | @interface APCProfileViewController (Bridge)
37 |
38 | - (void)logOut;
39 |
40 | @end
41 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/UI/TasksAndSteps/APCStepViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // APCStepViewController.h
3 | // APCAppCore
4 | //
5 | // Copyright (c) 2015, Apple Inc. All rights reserved.
6 | //
7 | // Redistribution and use in source and binary forms, with or without modification,
8 | // are permitted provided that the following conditions are met:
9 | //
10 | // 1. Redistributions of source code must retain the above copyright notice, this
11 | // list of conditions and the following disclaimer.
12 | //
13 | // 2. Redistributions in binary form must reproduce the above copyright notice,
14 | // this list of conditions and the following disclaimer in the documentation and/or
15 | // other materials provided with the distribution.
16 | //
17 | // 3. Neither the name of the copyright holder(s) nor the names of any contributors
18 | // may be used to endorse or promote products derived from this software without
19 | // specific prior written permission. No license is granted to the trademarks of
20 | // the copyright holders even if such marks are included in this software.
21 | //
22 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23 | // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 | // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 | // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
26 | // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29 | // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30 | // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 | //
33 |
34 | #import
35 |
36 | @interface APCStepViewController : ORKStepViewController
37 |
38 | @end
39 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/UI/TasksAndSteps/CommonTaskVCs/GenericSurveyTaskViewController/APCGenericSurveyTaskViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // APCGenericSurveyTaskViewController.h
3 | // APCAppCore
4 | //
5 | // Copyright (c) 2015, Apple Inc. All rights reserved.
6 | //
7 | // Redistribution and use in source and binary forms, with or without modification,
8 | // are permitted provided that the following conditions are met:
9 | //
10 | // 1. Redistributions of source code must retain the above copyright notice, this
11 | // list of conditions and the following disclaimer.
12 | //
13 | // 2. Redistributions in binary form must reproduce the above copyright notice,
14 | // this list of conditions and the following disclaimer in the documentation and/or
15 | // other materials provided with the distribution.
16 | //
17 | // 3. Neither the name of the copyright holder(s) nor the names of any contributors
18 | // may be used to endorse or promote products derived from this software without
19 | // specific prior written permission. No license is granted to the trademarks of
20 | // the copyright holders even if such marks are included in this software.
21 | //
22 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23 | // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 | // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 | // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
26 | // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29 | // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30 | // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 | //
33 |
34 | #import "APCBaseWithProgressTaskViewController.h"
35 |
36 | @interface APCGenericSurveyTaskViewController : APCBaseWithProgressTaskViewController
37 |
38 | @end
39 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/UI/TransitionAnimators/APCFadeAnimator.h:
--------------------------------------------------------------------------------
1 | //
2 | // APCFadeAnimator.h
3 | // APCAppCore
4 | //
5 | // Copyright (c) 2015, Apple Inc. All rights reserved.
6 | //
7 | // Redistribution and use in source and binary forms, with or without modification,
8 | // are permitted provided that the following conditions are met:
9 | //
10 | // 1. Redistributions of source code must retain the above copyright notice, this
11 | // list of conditions and the following disclaimer.
12 | //
13 | // 2. Redistributions in binary form must reproduce the above copyright notice,
14 | // this list of conditions and the following disclaimer in the documentation and/or
15 | // other materials provided with the distribution.
16 | //
17 | // 3. Neither the name of the copyright holder(s) nor the names of any contributors
18 | // may be used to endorse or promote products derived from this software without
19 | // specific prior written permission. No license is granted to the trademarks of
20 | // the copyright holders even if such marks are included in this software.
21 | //
22 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23 | // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 | // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 | // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
26 | // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29 | // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30 | // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 | //
33 |
34 | #import
35 | #import
36 |
37 | @interface APCFadeAnimator : NSObject
38 |
39 | @property (nonatomic, getter=isPresenting) BOOL presenting;
40 |
41 | @end
42 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/UI/ViewControllers/Activity Tracking/APCActivityTrackingStepViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // Activity
3 | // APCAppCore
4 | //
5 | // Copyright (c) 2015, Apple Inc. All rights reserved.
6 | //
7 | // Redistribution and use in source and binary forms, with or without modification,
8 | // are permitted provided that the following conditions are met:
9 | //
10 | // 1. Redistributions of source code must retain the above copyright notice, this
11 | // list of conditions and the following disclaimer.
12 | //
13 | // 2. Redistributions in binary form must reproduce the above copyright notice,
14 | // this list of conditions and the following disclaimer in the documentation and/or
15 | // other materials provided with the distribution.
16 | //
17 | // 3. Neither the name of the copyright holder(s) nor the names of any contributors
18 | // may be used to endorse or promote products derived from this software without
19 | // specific prior written permission. No license is granted to the trademarks of
20 | // the copyright holders even if such marks are included in this software.
21 | //
22 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23 | // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 | // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 | // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
26 | // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29 | // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30 | // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 | //
33 |
34 | #import "APCAppCore.h"
35 |
36 | @interface APCActivityTrackingStepViewController : APCStepViewController
37 |
38 | @end
39 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/UI/Views/APCExampleLabel.h:
--------------------------------------------------------------------------------
1 | //
2 | // APCExampleLabel.h
3 | // APCAppCore
4 | //
5 | // Copyright (c) 2015, Apple Inc. All rights reserved.
6 | //
7 | // Redistribution and use in source and binary forms, with or without modification,
8 | // are permitted provided that the following conditions are met:
9 | //
10 | // 1. Redistributions of source code must retain the above copyright notice, this
11 | // list of conditions and the following disclaimer.
12 | //
13 | // 2. Redistributions in binary form must reproduce the above copyright notice,
14 | // this list of conditions and the following disclaimer in the documentation and/or
15 | // other materials provided with the distribution.
16 | //
17 | // 3. Neither the name of the copyright holder(s) nor the names of any contributors
18 | // may be used to endorse or promote products derived from this software without
19 | // specific prior written permission. No license is granted to the trademarks of
20 | // the copyright holders even if such marks are included in this software.
21 | //
22 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23 | // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 | // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 | // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
26 | // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29 | // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30 | // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 | //
33 |
34 | #import
35 |
36 | @interface APCExampleLabel : UILabel
37 |
38 | + (UILabel *)watermarkInRect:(CGRect)rect withCenter:(CGPoint)center;
39 |
40 | @end
41 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/UI/Views/APCImageButton.h:
--------------------------------------------------------------------------------
1 | //
2 | // APCImageButton.h
3 | // APCAppCore
4 | //
5 | // Copyright (c) 2015, Apple Inc. All rights reserved.
6 | //
7 | // Redistribution and use in source and binary forms, with or without modification,
8 | // are permitted provided that the following conditions are met:
9 | //
10 | // 1. Redistributions of source code must retain the above copyright notice, this
11 | // list of conditions and the following disclaimer.
12 | //
13 | // 2. Redistributions in binary form must reproduce the above copyright notice,
14 | // this list of conditions and the following disclaimer in the documentation and/or
15 | // other materials provided with the distribution.
16 | //
17 | // 3. Neither the name of the copyright holder(s) nor the names of any contributors
18 | // may be used to endorse or promote products derived from this software without
19 | // specific prior written permission. No license is granted to the trademarks of
20 | // the copyright holders even if such marks are included in this software.
21 | //
22 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23 | // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 | // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 | // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
26 | // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29 | // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30 | // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 | //
33 |
34 | #import
35 |
36 | @interface APCImageButton : UIButton
37 |
38 | @end
39 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Vendor/Zipzap/ZZAESDecryptInputStream.h:
--------------------------------------------------------------------------------
1 | //
2 | // ZZAESDecryptInputStream.h
3 | // zipzap
4 | //
5 | // Created by Daniel Cohen Gindi on 1/6/14.
6 | //
7 | //
8 |
9 | #import
10 |
11 | #import "ZZConstants.h"
12 |
13 | @interface ZZAESDecryptInputStream : NSInputStream
14 |
15 | - (id)initWithStream:(NSInputStream*)upstream
16 | password:(NSString*)password
17 | header:(uint8_t*)header
18 | strength:(ZZAESEncryptionStrength)strength
19 | error:(out NSError**)error;
20 |
21 | - (void)open;
22 | - (void)close;
23 |
24 | - (NSInteger)read:(uint8_t*)buffer maxLength:(NSUInteger)len;
25 | - (BOOL)getBuffer:(uint8_t**)buffer length:(NSUInteger*)len;
26 | - (BOOL)hasBytesAvailable;
27 |
28 | - (void)dealloc;
29 |
30 | @end
31 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Vendor/Zipzap/ZZArchiveEntryWriter.h:
--------------------------------------------------------------------------------
1 | //
2 | // ZZZipEntryWriter.h
3 | // zipzap
4 | //
5 | // Created by Glen Low on 6/10/12.
6 | // Copyright (c) 2012, Pixelglow Software. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @protocol ZZChannelOutput;
12 |
13 | @protocol ZZArchiveEntryWriter
14 |
15 | - (uint32_t)offsetToLocalFileEnd;
16 | - (BOOL)writeLocalFileToChannelOutput:(id)channelOutput
17 | withInitialSkip:(uint32_t)initialSkip
18 | error:(out NSError**)error;
19 | - (BOOL)writeCentralFileHeaderToChannelOutput:(id)channelOutput
20 | error:(out NSError**)error;
21 | @end
22 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Vendor/Zipzap/ZZChannel.h:
--------------------------------------------------------------------------------
1 | //
2 | // ZZChannel.h
3 | // zipzap
4 | //
5 | // Created by Glen Low on 12/01/13.
6 | //
7 | //
8 |
9 | #import
10 |
11 | @protocol ZZChannelOutput;
12 |
13 | @protocol ZZChannel
14 |
15 | @property (readonly, nonatomic) NSURL* URL;
16 |
17 | - (instancetype)temporaryChannel:(out NSError**)error;
18 | - (BOOL)replaceWithChannel:(id)channel
19 | error:(out NSError**)error;
20 | - (void)removeAsTemporary;
21 |
22 | - (NSData*)newInput:(out NSError**)error;
23 | - (id)newOutput:(out NSError**)error;
24 |
25 | @end
26 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Vendor/Zipzap/ZZChannelOutput.h:
--------------------------------------------------------------------------------
1 | //
2 | // ZZChannelOutput.h
3 | // zipzap
4 | //
5 | // Created by Glen Low on 12/01/13.
6 | //
7 | //
8 |
9 | #import
10 |
11 | @protocol ZZChannelOutput
12 |
13 | - (uint32_t)offset;
14 | - (BOOL)seekToOffset:(uint32_t)offset
15 | error:(out NSError**)error;
16 |
17 | - (BOOL)writeData:(NSData*)data
18 | error:(out NSError**)error;
19 | - (BOOL)truncateAtOffset:(uint32_t)offset
20 | error:(out NSError**)error;
21 | - (void)close;
22 |
23 | @end
24 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Vendor/Zipzap/ZZConstants.m:
--------------------------------------------------------------------------------
1 | //
2 | // ZZConstants.m
3 | // zipzap
4 | //
5 | // Created by Glen Low on 2/09/14.
6 | //
7 | //
8 |
9 | #import "ZZConstants.h"
10 |
11 | NSString* const ZZOpenOptionsEncodingKey = @"ZZOpenOptionsEncodingKey";
12 |
13 | NSString* const ZZOpenOptionsCreateIfMissingKey = @"ZZOpenOptionsCreateIfMissingKey";
14 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Vendor/Zipzap/ZZDataChannel.h:
--------------------------------------------------------------------------------
1 | //
2 | // ZZDataChannel.h
3 | // zipzap
4 | //
5 | // Created by Glen Low on 12/01/13.
6 | //
7 | //
8 |
9 | #import
10 |
11 | #import "ZZChannel.h"
12 |
13 | @interface ZZDataChannel : NSObject
14 |
15 | @property (readonly, nonatomic) NSURL* URL;
16 |
17 | - (id)initWithData:(NSData*)data;
18 |
19 | - (instancetype)temporaryChannel:(out NSError**)error;
20 | - (BOOL)replaceWithChannel:(id)channel
21 | error:(out NSError**)error;
22 | - (void)removeAsTemporary;
23 |
24 | - (NSData*)newInput:(out NSError**)error;
25 | - (id)newOutput:(out NSError**)error;
26 |
27 | @end
28 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Vendor/Zipzap/ZZDataChannel.m:
--------------------------------------------------------------------------------
1 | //
2 | // ZZDataChannel.m
3 | // zipzap
4 | //
5 | // Created by Glen Low on 12/01/13.
6 | //
7 | //
8 |
9 | #import "ZZDataChannel.h"
10 | #import "ZZDataChannelOutput.h"
11 |
12 | @implementation ZZDataChannel
13 | {
14 | NSData* _allData;
15 | }
16 |
17 | - (id)initWithData:(NSData*)data
18 | {
19 | if ((self = [super init]))
20 | _allData = data;
21 | return self;
22 | }
23 |
24 | - (NSURL*)URL
25 | {
26 | return nil;
27 | }
28 |
29 | - (instancetype)temporaryChannel:(out NSError**) __unused error
30 | {
31 | return [[ZZDataChannel alloc] initWithData:[NSMutableData data]];
32 | }
33 |
34 | - (BOOL)replaceWithChannel:(id)channel
35 | error:(out NSError**) __unused error
36 | {
37 | [(NSMutableData*)_allData setData:((ZZDataChannel*)channel)->_allData];
38 | return YES;
39 | }
40 |
41 | - (void)removeAsTemporary
42 | {
43 | _allData = nil;
44 | }
45 |
46 | - (NSData*)newInput:(out NSError**)error
47 | {
48 | if (_allData.length == 0)
49 | {
50 | // no data available: consider it as file not found
51 | if (error)
52 | *error = [NSError errorWithDomain:NSCocoaErrorDomain
53 | code:NSFileReadNoSuchFileError
54 | userInfo:@{}];
55 | return nil;
56 | }
57 | return _allData;
58 | }
59 |
60 | - (id)newOutput:(out NSError**) __unused error
61 | {
62 | return [[ZZDataChannelOutput alloc] initWithData:(NSMutableData*)_allData];
63 | }
64 |
65 | @end
66 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Vendor/Zipzap/ZZDataChannelOutput.h:
--------------------------------------------------------------------------------
1 | //
2 | // ZZDataChannelOutput.h
3 | // zipzap
4 | //
5 | // Created by Glen Low on 12/01/13.
6 | //
7 | //
8 |
9 | #import
10 |
11 | #import "ZZChannelOutput.h"
12 |
13 | @interface ZZDataChannelOutput : NSObject
14 |
15 | - (id)initWithData:(NSMutableData*)data;
16 |
17 | - (uint32_t)offset;
18 | - (BOOL)seekToOffset:(uint32_t)offset
19 | error:(out NSError**)error;
20 |
21 | - (BOOL)writeData:(NSData*)data
22 | error:(out NSError**)error;
23 | - (BOOL)truncateAtOffset:(uint32_t)offset
24 | error:(out NSError**)error;
25 | - (void)close;
26 |
27 | @end
28 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Vendor/Zipzap/ZZDataChannelOutput.m:
--------------------------------------------------------------------------------
1 | //
2 | // ZZDataChannelOutput.m
3 | // zipzap
4 | //
5 | // Created by Glen Low on 12/01/13.
6 | //
7 | //
8 |
9 | #import "ZZDataChannelOutput.h"
10 |
11 | @implementation ZZDataChannelOutput
12 | {
13 | NSMutableData* _allData;
14 | uint32_t _offset;
15 | }
16 |
17 | - (id)initWithData:(NSMutableData*)data
18 | {
19 | if ((self = [super init]))
20 | {
21 | _allData = data;
22 | _offset = 0U;
23 | }
24 | return self;
25 | }
26 |
27 | - (uint32_t)offset
28 | {
29 | return _offset;
30 | }
31 |
32 | - (BOOL)seekToOffset:(uint32_t)offset
33 | error:(out NSError**) __unused error
34 | {
35 | _offset = offset;
36 | return YES;
37 | }
38 |
39 | - (BOOL)writeData:(NSData*)data
40 | error:(out NSError**) __unused error
41 | {
42 | NSUInteger allDataLength = _allData.length;
43 | NSUInteger dataLength = data.length;
44 | uint32_t newOffset = _offset + (uint32_t)dataLength;
45 |
46 | if (_offset == allDataLength)
47 | // write at the end: just append
48 | [_allData appendData:data];
49 | else
50 | {
51 | // write in the middle: ensure enough space and copy over bytes
52 | if (allDataLength < newOffset)
53 | _allData.length = newOffset;
54 | memcpy(_allData.mutableBytes + _offset, data.bytes, dataLength);
55 | }
56 |
57 | _offset = newOffset;
58 | return YES;
59 | }
60 |
61 | - (BOOL)truncateAtOffset:(uint32_t)offset
62 | error:(out NSError**) __unused error
63 | {
64 | _allData.length = offset;
65 | return YES;
66 | }
67 |
68 | - (void)close
69 | {
70 | }
71 |
72 | @end
73 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Vendor/Zipzap/ZZDeflateOutputStream.h:
--------------------------------------------------------------------------------
1 | //
2 | // ZZDeflateOutputStream.h
3 | // zipzap
4 | //
5 | // Created by Glen Low on 9/10/12.
6 | // Copyright (c) 2012, Pixelglow Software. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @protocol ZZChannelOutput;
12 |
13 | @interface ZZDeflateOutputStream : NSOutputStream
14 |
15 | @property (readonly, nonatomic) uint32_t crc32;
16 | @property (readonly, nonatomic) uint32_t compressedSize;
17 | @property (readonly, nonatomic) uint32_t uncompressedSize;
18 |
19 | - (id)initWithChannelOutput:(id)channelOutput
20 | compressionLevel:(NSUInteger)compressionLevel;
21 |
22 | - (NSStreamStatus)streamStatus;
23 | - (NSError*)streamError;
24 |
25 | - (void)open;
26 | - (void)close;
27 |
28 | - (NSInteger)write:(const uint8_t*)buffer maxLength:(NSUInteger)length;
29 | - (BOOL)hasSpaceAvailable;
30 |
31 | @end
32 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Vendor/Zipzap/ZZError.m:
--------------------------------------------------------------------------------
1 | //
2 | // ZZError.m
3 | // zipzap
4 | //
5 | // Created by Glen Low on 25/01/13.
6 | //
7 | //
8 |
9 | #import "ZZError.h"
10 |
11 | NSString* const ZZErrorDomain = @"com.pixelglow.zipzap";
12 |
13 | NSString* const ZZEntryIndexKey = @"ZZEntryIndexKey";
14 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Vendor/Zipzap/ZZFileChannel.h:
--------------------------------------------------------------------------------
1 | //
2 | // ZZFileChannel.h
3 | // zipzap
4 | //
5 | // Created by Glen Low on 12/01/13.
6 | //
7 | //
8 |
9 | #import
10 |
11 | #import "ZZChannel.h"
12 |
13 | @interface ZZFileChannel : NSObject
14 |
15 | @property (readonly, nonatomic) NSURL* URL;
16 |
17 | - (id)initWithURL:(NSURL*)URL;
18 |
19 | - (instancetype)temporaryChannel:(out NSError**)error;
20 | - (BOOL)replaceWithChannel:(id)channel
21 | error:(out NSError**)error;
22 | - (void)removeAsTemporary;
23 |
24 | - (NSData*)newInput:(out NSError**)error;
25 | - (id)newOutput:(out NSError**)error;
26 |
27 | @end
28 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Vendor/Zipzap/ZZFileChannelOutput.h:
--------------------------------------------------------------------------------
1 | //
2 | // ZZFileChannelOutput.h
3 | // zipzap
4 | //
5 | // Created by Glen Low on 12/01/13.
6 | //
7 | //
8 |
9 | #import
10 |
11 | #import "ZZChannelOutput.h"
12 |
13 | @interface ZZFileChannelOutput : NSObject
14 |
15 | @property (nonatomic, readonly) uint32_t offset;
16 |
17 | - (id)initWithFileDescriptor:(int)fileDescriptor;
18 |
19 | - (uint32_t)offset;
20 | - (BOOL)seekToOffset:(uint32_t)offset
21 | error:(out NSError**)error;
22 |
23 | - (BOOL)writeData:(NSData*)data
24 | error:(out NSError**)error;
25 | - (BOOL)truncateAtOffset:(uint32_t)offset
26 | error:(out NSError**)error;
27 |
28 | - (void)close;
29 |
30 | @end
31 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Vendor/Zipzap/ZZFileChannelOutput.m:
--------------------------------------------------------------------------------
1 | //
2 | // ZZFileChannelOutput.m
3 | // zipzap
4 | //
5 | // Created by Glen Low on 12/01/13.
6 | //
7 | //
8 |
9 | #import "ZZFileChannelOutput.h"
10 |
11 | @implementation ZZFileChannelOutput
12 | {
13 | int _fileDescriptor;
14 | }
15 |
16 | - (id)initWithFileDescriptor:(int)fileDescriptor
17 | {
18 | if ((self = [super init]))
19 | _fileDescriptor = fileDescriptor;
20 | return self;
21 | }
22 |
23 | - (uint32_t)offset
24 | {
25 | return (uint32_t)lseek(_fileDescriptor, 0, SEEK_CUR);
26 | }
27 |
28 | - (BOOL)seekToOffset:(uint32_t)offset
29 | error:(out NSError**)error
30 | {
31 | if (lseek(_fileDescriptor, offset, SEEK_SET) == -1)
32 | {
33 | if (error)
34 | *error = [NSError errorWithDomain:NSPOSIXErrorDomain code:errno userInfo:nil];
35 | return NO;
36 | }
37 | else
38 | return YES;
39 | }
40 |
41 | - (BOOL)writeData:(NSData*)data
42 | error:(out NSError**)error
43 | {
44 | // output up to INT_MAX bytes at a time: Darwin errors with EINVAL if we write > INT_MAX bytes
45 | const uint8_t* bytes;
46 | NSInteger bytesLeft;
47 | NSInteger bytesWritten;
48 | for (bytes = (const uint8_t*)data.bytes, bytesLeft = data.length;
49 | bytesLeft > 0;
50 | bytes += bytesWritten, bytesLeft -= bytesWritten)
51 | {
52 | bytesWritten = write(_fileDescriptor, bytes, MIN(bytesLeft, INT_MAX));
53 | if (bytesWritten == -1)
54 | {
55 | if (error)
56 | *error = [NSError errorWithDomain:NSPOSIXErrorDomain code:errno userInfo:nil];
57 | return NO;
58 | }
59 | }
60 | return YES;
61 | }
62 |
63 | - (BOOL)truncateAtOffset:(uint32_t)offset
64 | error:(out NSError**)error
65 | {
66 | if (ftruncate(_fileDescriptor, offset) == -1)
67 | {
68 | if (error)
69 | *error = [NSError errorWithDomain:NSPOSIXErrorDomain code:errno userInfo:nil];
70 | return NO;
71 | }
72 | else
73 | return YES;
74 | }
75 |
76 | - (void)close
77 | {
78 | close(_fileDescriptor);
79 | }
80 |
81 | @end
82 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Vendor/Zipzap/ZZInflateInputStream.h:
--------------------------------------------------------------------------------
1 | //
2 | // ZZInflateInputStream.h
3 | // zipzap
4 | //
5 | // Created by Glen Low on 29/09/12.
6 | // Copyright (c) 2012, Pixelglow Software. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface ZZInflateInputStream : NSInputStream
12 |
13 | + (NSData*)decompressData:(NSData*)data
14 | withUncompressedSize:(NSUInteger)uncompressedSize;
15 |
16 | - (id)initWithStream:(NSInputStream*)upstream;
17 |
18 | - (NSStreamStatus)streamStatus;
19 | - (NSError*)streamError;
20 |
21 | - (void)open;
22 | - (void)close;
23 |
24 | - (NSInteger)read:(uint8_t*)buffer maxLength:(NSUInteger)len;
25 | - (BOOL)getBuffer:(uint8_t**)buffer length:(NSUInteger*)len;
26 | - (BOOL)hasBytesAvailable;
27 |
28 | @end
29 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Vendor/Zipzap/ZZNewArchiveEntry.h:
--------------------------------------------------------------------------------
1 | //
2 | // ZZNewArchiveEntry.h
3 | // zipzap
4 | //
5 | // Created by Glen Low on 8/10/12.
6 | // Copyright (c) 2012, Pixelglow Software. All rights reserved.
7 | //
8 |
9 | #if defined(__IPHONE_OS_VERSION_MIN_REQUIRED)
10 | #include
11 | #elif defined(__MAC_OS_X_VERSION_MIN_REQUIRED)
12 | #include
13 | #endif
14 |
15 | #import
16 |
17 | #import "ZZArchiveEntry.h"
18 |
19 | @interface ZZNewArchiveEntry : ZZArchiveEntry
20 |
21 | @property (readonly, nonatomic) BOOL compressed;
22 | @property (readonly, nonatomic) NSDate* lastModified;
23 | @property (readonly, nonatomic) mode_t fileMode;
24 | @property (readonly, nonatomic) NSString* fileName;
25 |
26 | - (id)initWithFileName:(NSString*)fileName
27 | fileMode:(mode_t)fileMode
28 | lastModified:(NSDate*)lastModified
29 | compressionLevel:(NSInteger)compressionLevel
30 | dataBlock:(NSData*(^)(NSError** error))dataBlock
31 | streamBlock:(BOOL(^)(NSOutputStream* stream, NSError** error))streamBlock
32 | dataConsumerBlock:(BOOL(^)(CGDataConsumerRef dataConsumer, NSError** error))dataConsumerBlock;
33 |
34 | @end
35 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Vendor/Zipzap/ZZNewArchiveEntry.mm:
--------------------------------------------------------------------------------
1 | //
2 | // ZZNewArchiveEntry.m
3 | // zipzap
4 | //
5 | // Created by Glen Low on 8/10/12.
6 | // Copyright (c) 2012, Pixelglow Software. All rights reserved.
7 | //
8 |
9 | #import "ZZNewArchiveEntry.h"
10 | #import "ZZNewArchiveEntryWriter.h"
11 |
12 | @implementation ZZNewArchiveEntry
13 | {
14 | NSString* _fileName;
15 | mode_t _fileMode;
16 | NSDate* _lastModified;
17 | NSInteger _compressionLevel;
18 | NSData* (^_dataBlock)(NSError** error);
19 | BOOL (^_streamBlock)(NSOutputStream* stream, NSError** error);
20 | BOOL (^_dataConsumerBlock)(CGDataConsumerRef dataConsumer, NSError** error);
21 | }
22 |
23 | - (id)initWithFileName:(NSString*)fileName
24 | fileMode:(mode_t)fileMode
25 | lastModified:(NSDate*)lastModified
26 | compressionLevel:(NSInteger)compressionLevel
27 | dataBlock:(NSData*(^)(NSError** error))dataBlock
28 | streamBlock:(BOOL(^)(NSOutputStream* stream, NSError** error))streamBlock
29 | dataConsumerBlock:(BOOL(^)(CGDataConsumerRef dataConsumer, NSError** error))dataConsumerBlock
30 | {
31 | if ((self = [super init]))
32 | {
33 | _fileName = fileName;
34 | _fileMode = fileMode;
35 | _lastModified = lastModified;
36 | _compressionLevel = compressionLevel;
37 | _dataBlock = dataBlock;
38 | _streamBlock = streamBlock;
39 | _dataConsumerBlock = dataConsumerBlock;
40 | }
41 | return self;
42 | }
43 |
44 | - (BOOL)compressed
45 | {
46 | return _compressionLevel != 0;
47 | }
48 |
49 | - (NSDate*)lastModified
50 | {
51 | return _lastModified;
52 | }
53 |
54 | - (mode_t)fileMode
55 | {
56 | return _fileMode;
57 | }
58 |
59 | - (NSString*)fileName
60 | {
61 | return _fileName;
62 | }
63 |
64 | - (id)newWriterCanSkipLocalFile:(BOOL) __unused canSkipLocalFile
65 | {
66 | return [[ZZNewArchiveEntryWriter alloc] initWithFileName:_fileName
67 | fileMode:_fileMode
68 | lastModified:_lastModified
69 | compressionLevel:_compressionLevel
70 | dataBlock:_dataBlock
71 | streamBlock:_streamBlock
72 | dataConsumerBlock:_dataConsumerBlock];
73 | }
74 |
75 | @end
76 |
77 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Vendor/Zipzap/ZZNewArchiveEntryWriter.h:
--------------------------------------------------------------------------------
1 | //
2 | // ZZNewArchiveEntryWriter.h
3 | // zipzap
4 | //
5 | // Created by Glen Low on 9/10/12.
6 | // Copyright (c) 2012, Pixelglow Software. All rights reserved.
7 | //
8 |
9 | #import
10 | #import
11 |
12 | #import "ZZArchiveEntryWriter.h"
13 |
14 | @interface ZZNewArchiveEntryWriter : NSObject
15 |
16 | - (id)initWithFileName:(NSString*)fileName
17 | fileMode:(mode_t)fileMode
18 | lastModified:(NSDate*)lastModified
19 | compressionLevel:(NSInteger)compressionLevel
20 | dataBlock:(NSData*(^)(NSError** error))dataBlock
21 | streamBlock:(BOOL(^)(NSOutputStream* stream, NSError** error))streamBlock
22 | dataConsumerBlock:(BOOL(^)(CGDataConsumerRef dataConsumer, NSError** error))dataConsumerBlock;
23 |
24 | - (uint32_t)offsetToLocalFileEnd;
25 | - (BOOL)writeLocalFileToChannelOutput:(id)channelOutput
26 | withInitialSkip:(uint32_t)initialSkip
27 | error:(out NSError**)error;
28 | - (BOOL)writeCentralFileHeaderToChannelOutput:(id)channelOutput
29 | error:(out NSError**)error;
30 |
31 | @end
32 |
33 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Vendor/Zipzap/ZZOldArchiveEntry.h:
--------------------------------------------------------------------------------
1 | //
2 | // ZZOldArchiveEntry.h
3 | // zipzap
4 | //
5 | // Created by Glen Low on 24/10/12.
6 | // Copyright (c) 2012, Pixelglow Software. All rights reserved.
7 | //
8 | //
9 |
10 | #if defined(__IPHONE_OS_VERSION_MIN_REQUIRED)
11 | #include
12 | #elif defined(__MAC_OS_X_VERSION_MIN_REQUIRED)
13 | #include
14 | #endif
15 |
16 | #import
17 |
18 | #import "ZZArchiveEntry.h"
19 | #import "ZZHeaders.h"
20 |
21 | @interface ZZOldArchiveEntry : ZZArchiveEntry
22 |
23 | @property (readonly, nonatomic) BOOL compressed;
24 | @property (readonly, nonatomic) BOOL encrypted;
25 | @property (readonly, nonatomic) NSDate* lastModified;
26 | @property (readonly, nonatomic) NSUInteger crc32;
27 | @property (readonly, nonatomic) NSUInteger compressedSize;
28 | @property (readonly, nonatomic) NSUInteger uncompressedSize;
29 | @property (readonly, nonatomic) mode_t fileMode;
30 | @property (readonly, nonatomic) NSString* fileName;
31 |
32 | - (id)initWithCentralFileHeader:(struct ZZCentralFileHeader*)centralFileHeader
33 | localFileHeader:(struct ZZLocalFileHeader*)localFileHeader
34 | encoding:(NSStringEncoding)encoding;
35 |
36 | @end
37 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Vendor/Zipzap/ZZOldArchiveEntryWriter.h:
--------------------------------------------------------------------------------
1 | //
2 | // ZZOldArchiveEntryWriter.h
3 | // zipzap
4 | //
5 | // Created by Glen Low on 9/10/12.
6 | // Copyright (c) 2012, Pixelglow Software. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | #import "ZZArchiveEntryWriter.h"
12 |
13 | @interface ZZOldArchiveEntryWriter : NSObject
14 |
15 | - (id)initWithCentralFileHeader:(struct ZZCentralFileHeader*)centralFileHeader
16 | localFileHeader:(struct ZZLocalFileHeader*)localFileHeader
17 | shouldSkipLocalFile:(BOOL)shouldSkipLocalFile;
18 |
19 | - (uint32_t)offsetToLocalFileEnd;
20 | - (BOOL)writeLocalFileToChannelOutput:(id)channelOutput
21 | withInitialSkip:(uint32_t)initialSkip
22 | error:(out NSError**)error;
23 | - (BOOL)writeCentralFileHeaderToChannelOutput:(id)channelOutput
24 | error:(out NSError**)error;
25 |
26 |
27 | @end
28 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Vendor/Zipzap/ZZScopeGuard.h:
--------------------------------------------------------------------------------
1 | //
2 | // ZZScopeGuard.h
3 | // zipzap
4 | //
5 | // Created by Glen Low on 30/12/13.
6 | //
7 | //
8 |
9 | class ZZScopeGuard
10 | {
11 | public:
12 | ZZScopeGuard(void(^exit)()): _exit(exit)
13 | {
14 | }
15 |
16 | ~ZZScopeGuard()
17 | {
18 | _exit();
19 | }
20 |
21 | private:
22 | void(^_exit)();
23 | };
24 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Vendor/Zipzap/ZZStandardCryptoEngine.h:
--------------------------------------------------------------------------------
1 | //
2 | // ZZStandardCryptoEngine.h
3 | // zipzap
4 | //
5 | // Created by Daniel Cohen Gindi on 12/29/13.
6 | //
7 | //
8 |
9 | class ZZStandardCryptoEngine
10 | {
11 | public:
12 | ZZStandardCryptoEngine()
13 | {
14 | }
15 |
16 | void initKeys(unsigned char *password)
17 | {
18 | keys[0] = 305419896;
19 | keys[1] = 591751049;
20 | keys[2] = 878082192;
21 | while (*password)
22 | {
23 | updateKeys((*password) & 0xff);
24 | password++;
25 | }
26 | }
27 |
28 | void updateKeys(unsigned char charAt)
29 | {
30 | keys[0] = crc32(keys[0], charAt);
31 | keys[1] += keys[0] & 0xff;
32 | keys[1] = keys[1] * 134775813 + 1;
33 | keys[2] = crc32(keys[2], (unsigned char) (keys[1] >> 24));
34 | }
35 |
36 | int crc32(int oldCrc, unsigned char charAt)
37 | {
38 | return (((unsigned int)oldCrc >> 8) ^ CRC_TABLE[(oldCrc ^ charAt) & 0xff]);
39 | }
40 |
41 | unsigned char decryptByte()
42 | {
43 | int temp = keys[2] | 2;
44 | temp *= temp ^ 1;
45 | return (unsigned char) ((*((unsigned int *)&temp)) >> 8);
46 | }
47 |
48 | private:
49 | int keys[3];
50 | static int CRC_TABLE[256];
51 |
52 | };
53 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Vendor/Zipzap/ZZStandardDecryptInputStream.h:
--------------------------------------------------------------------------------
1 | //
2 | // ZZStandardDecryptInputStream.h
3 | // zipzap
4 | //
5 | // Created by Daniel Cohen Gindi on 12/29/13.
6 | //
7 | //
8 |
9 | #import
10 |
11 | @interface ZZStandardDecryptInputStream : NSInputStream
12 |
13 | - (id)initWithStream:(NSInputStream*)upstream
14 | password:(NSString*)password
15 | header:(uint8_t*)header
16 | check:(uint16_t)check
17 | version:(uint8_t)version
18 | error:(out NSError**)error;
19 |
20 | - (void)open;
21 | - (void)close;
22 |
23 | - (NSInteger)read:(uint8_t*)buffer maxLength:(NSUInteger)len;
24 | - (BOOL)getBuffer:(uint8_t**)buffer length:(NSUInteger*)len;
25 | - (BOOL)hasBytesAvailable;
26 |
27 | @end
28 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Vendor/Zipzap/ZZStoreOutputStream.h:
--------------------------------------------------------------------------------
1 | //
2 | // ZZStoreOutputStream.h
3 | // zipzap
4 | //
5 | // Created by Glen Low on 13/10/12.
6 | // Copyright (c) 2012, Pixelglow Software. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @protocol ZZChannelOutput;
12 |
13 | @interface ZZStoreOutputStream : NSOutputStream
14 |
15 | @property (readonly, nonatomic) uint32_t crc32;
16 | @property (readonly, nonatomic) uint32_t size;
17 |
18 | - (id)initWithChannelOutput:(id)channelOutput;
19 |
20 | - (NSStreamStatus)streamStatus;
21 | - (NSError*)streamError;
22 |
23 | - (void)open;
24 | - (void)close;
25 |
26 | - (NSInteger)write:(const uint8_t*)buffer maxLength:(NSUInteger)length;
27 | - (BOOL)hasSpaceAvailable;
28 |
29 | @end
30 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Vendor/Zipzap/ZZStoreOutputStream.m:
--------------------------------------------------------------------------------
1 | //
2 | // ZZStoreOutputStream.m
3 | // zipzap
4 | //
5 | // Created by Glen Low on 13/10/12.
6 | // Copyright (c) 2012, Pixelglow Software. All rights reserved.
7 | //
8 |
9 | #include
10 |
11 | #import "ZZChannelOutput.h"
12 | #import "ZZStoreOutputStream.h"
13 |
14 | @implementation ZZStoreOutputStream
15 | {
16 | id _channelOutput;
17 | NSStreamStatus _status;
18 | NSError* _error;
19 | uint32_t _crc32;
20 | uint32_t _size;
21 | }
22 |
23 | @synthesize crc32 = _crc32;
24 | @synthesize size = _size;
25 |
26 | - (id)initWithChannelOutput:(id)channelOutput
27 | {
28 | if ((self = [super init]))
29 | {
30 | _channelOutput = channelOutput;
31 |
32 | _status = NSStreamStatusNotOpen;
33 | _error = nil;
34 | _crc32 = 0;
35 | _size = 0;
36 | }
37 | return self;
38 | }
39 |
40 | - (NSStreamStatus)streamStatus
41 | {
42 | return _status;
43 | }
44 |
45 | - (NSError*)streamError
46 | {
47 | return _error;
48 | }
49 |
50 | - (void)open
51 | {
52 | _status = NSStreamStatusOpen;
53 | }
54 |
55 | - (void)close
56 | {
57 | _status = NSStreamStatusClosed;
58 | }
59 |
60 | - (NSInteger)write:(const uint8_t*)buffer maxLength:(NSUInteger)length
61 | {
62 | NSError* __autoreleasing writeError;
63 | if (![_channelOutput writeData:[NSData dataWithBytesNoCopy:(void*)buffer
64 | length:length
65 | freeWhenDone:NO]
66 | error:&writeError])
67 | {
68 | _status = NSStreamStatusError;
69 | _error = writeError;
70 | return -1;
71 | }
72 |
73 | // accumulate checksum and size from written bytes
74 | _crc32 = (uint32_t)crc32(_crc32, buffer, (uInt)length);
75 | _size += length;
76 |
77 | return length;
78 | }
79 |
80 | - (BOOL)hasSpaceAvailable
81 | {
82 | return YES;
83 | }
84 |
85 | @end
86 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCore/Vendor/Zipzap/zipzap.h:
--------------------------------------------------------------------------------
1 | //
2 | // zipzap.h
3 | // zipzap
4 | //
5 | // Created by Glen Low on 31/10/12.
6 | // Copyright (c) 2012, Pixelglow Software. All rights reserved.
7 | //
8 |
9 | //
10 | // Redistribution and use in source and binary forms, with or without modification,
11 | // are permitted provided that the following conditions are met:
12 | //
13 | // * Redistributions of source code must retain the above copyright notice,
14 | // this list of conditions and the following disclaimer.
15 | //
16 | // * Redistributions in binary form must reproduce the above copyright notice,
17 | // this list of conditions and the following disclaimer in the documentation
18 | // and/or other materials provided with the distribution.
19 | //
20 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21 | // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
22 | // THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23 | // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS
24 | // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
25 | // OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26 | // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
27 | // OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
28 | // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29 | // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
30 | // THE POSSIBILITY OF SUCH DAMAGE.
31 | //
32 |
33 | #import "ZZArchive.h"
34 | #import "ZZArchiveEntry.h"
35 | #import "ZZConstants.h"
36 | #import "ZZError.h"
37 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCoreTests/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | org.researchkit.$(PRODUCT_NAME:rfc1034identifier)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | BNDL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 |
24 |
25 |
--------------------------------------------------------------------------------
/APCAppCore/APCAppCoreTests/NSDateComponentsHelperTests.m:
--------------------------------------------------------------------------------
1 | //
2 | // NSDateComponentsHelperTests.m
3 | // AppCore
4 | //
5 | // Copyright (c) 2014 Apple Inc. All rights reserved.
6 | //
7 |
8 | #import
9 | #import
10 | #import "NSDateComponents+Helper.h"
11 |
12 |
13 | @interface NSDateComponentsHelperTests : XCTestCase
14 | @property (nonatomic, strong) NSCalendar *calendar;
15 | @end
16 |
17 |
18 | @implementation NSDateComponentsHelperTests
19 |
20 | /** Put setup code here. This method is called before the invocation of each test method in the class. */
21 | - (void) setUp
22 | {
23 | [super setUp];
24 |
25 | self.calendar = [NSCalendar calendarWithIdentifier: NSCalendarIdentifierGregorian];
26 | }
27 |
28 | /** Put teardown code here. This method is called after the invocation of each test method in the class. */
29 | - (void) tearDown
30 | {
31 | [super tearDown];
32 | }
33 |
34 | - (void) testLengthOfMonth
35 | {
36 | // Using February in a non-leap year.
37 | // NSDateComponents *components = [NSDateComponents componentsInGregorianUTCWithMonth: @(2) year: @(2015)];
38 | NSDateComponents *components = [NSDateComponents componentsInGregorianLocalWithMonth: @(2) year: @(2015)];
39 |
40 | XCTAssertEqual(28, components.lastDayOfMonth);
41 | }
42 |
43 | - (void) testArrayOfDaysInMonth
44 | {
45 | // Using February in a non-leap year.
46 | // NSDateComponents *components = [NSDateComponents componentsInGregorianUTCWithMonth: @(2) year: @(2015)];
47 | NSDateComponents *components = [NSDateComponents componentsInGregorianLocalWithMonth: @(2) year: @(2015)];
48 |
49 | XCTAssertEqual(28, components.allDaysInMonth.count);
50 | }
51 |
52 | @end
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (c) 2015, Apple Inc. All rights reserved.
2 |
3 | Redistribution and use in source and binary forms, with or without modification,
4 | are permitted provided that the following conditions are met:
5 |
6 | 1. Redistributions of source code must retain the above copyright notice, this
7 | list of conditions and the following disclaimer.
8 |
9 | 2. Redistributions in binary form must reproduce the above copyright notice,
10 | this list of conditions and the following disclaimer in the documentation and/or
11 | other materials provided with the distribution.
12 |
13 | 3. Neither the name of the copyright holder(s) nor the names of any contributors
14 | may be used to endorse or promote products derived from this software without
15 | specific prior written permission. No license is granted to the trademarks of
16 | the copyright holders even if such marks are included in this software.
17 |
18 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
22 | FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
24 | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
25 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
26 | OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 |
29 |
--------------------------------------------------------------------------------