APCDataArchiver contains Parkinson specific code which should be in subclasses of APCBaseTaskViewController. APCDataArchiver does not use new upload components, and relies upon generating filenames by extracting arguments from [ORKFileResult fileURL] which no longer supports containing a resultIdentifier or stepIdentifier.
Actions
Deprecate all public methods in APCDataArchiver.
Move any code to retain from APCDataArchiver to APCBaseTaskViewController.
Make ORKFileResult+Filename public in case of use by subclasses of APCBaseTaskViewController.
Update APCDataArchive method signatures to remove extension parameters. Pass a complete filename instead.
Remove methods in APCDataArchive which were intended to handle extracting filenames from a fileURL.
Use APCDataArchiveUploader in APCBaseTaskViewController to upload APCDataArchive instances.
Tests
Tested by running all activities in Parkinson, Cardio, and Diabetes and confirming successful data upload compliant to database scheme using APCDataVerificationDaemon. Some changes are required at the app level which will be supplied in forthcoming pull requests.
Overview
APCDataArchiver contains Parkinson specific code which should be in subclasses of APCBaseTaskViewController. APCDataArchiver does not use new upload components, and relies upon generating filenames by extracting arguments from [ORKFileResult fileURL] which no longer supports containing a resultIdentifier or stepIdentifier.
Actions
Tests
Tested by running all activities in Parkinson, Cardio, and Diabetes and confirming successful data upload compliant to database scheme using APCDataVerificationDaemon. Some changes are required at the app level which will be supplied in forthcoming pull requests.