Skip to content

Commit de5ba66

Browse files
remove platform filers
1 parent 1042a81 commit de5ba66

File tree

7 files changed

+174
-167
lines changed

7 files changed

+174
-167
lines changed

ResearchKit.xcodeproj/project.pbxproj

+165-161
Large diffs are not rendered by default.

ResearchKit/Common/ORKAnswerFormat.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ ORK_CLASS_AVAILABLE
524524
maximumValue:(double)maximumValue
525525
defaultValue:(double)defaultValue;
526526

527-
#if ORK_FEATURE_CLLOCATIONMANAGER_AUTHORIZATION && TARGET_OS_IOS && !TARGET_OS_VISION
527+
#if ORK_FEATURE_CLLOCATIONMANAGER_AUTHORIZATION && TARGET_OS_IOS
528528
+ (ORKLocationAnswerFormat *)locationAnswerFormat;
529529
#endif
530530

ResearchKit/Common/ORKAnswerFormat.m

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
4141
#import "ORKHelpers_Internal.h"
4242
#if TARGET_OS_IOS || TARGET_OS_VISION
4343
#import "ORKHealthAnswerFormat.h"
44+
#import "ResearchKit/ResearchKit-Swift.h"
4445
#endif
4546

4647
#if ORK_FEATURE_HEALTHKIT_AUTHORIZATION

ResearchKit/Common/ORKFormStep.m

+2-2
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ - (void)setFormItems:(NSArray<ORKFormItem *> *)formItems {
185185
}
186186
}
187187

188-
#if ORK_FEATURE_HEALTHKIT_AUTHORIZATION && TARGET_OS_IOS
188+
#if ORK_FEATURE_HEALTHKIT_AUTHORIZATION
189189
- (NSSet<HKObjectType *> *)requestedHealthKitTypesForReading {
190190
NSMutableSet<HKObjectType *> *healthTypes = [NSMutableSet set];
191191

@@ -265,7 +265,7 @@ - (instancetype)initWithSectionTitle:(nullable NSString *)sectionTitle detailTex
265265
return self;
266266
}
267267

268-
#if TARGET_OS_IOS
268+
#if TARGET_OS_IOS || TARGET_OS_VISION
269269
- (ORKFormItem *)confirmationAnswerFormItemWithIdentifier:(NSString *)identifier
270270
text:(nullable NSString *)text
271271
errorMessage:(NSString *)errorMessage {

ResearchKit/Common/ORKHealthAnswerFormat.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
#import <ResearchKit/ORKAnswerFormat.h>
3333

34-
#if ORK_FEATURE_HEALTHKIT_AUTHORIZATION && TARGET_OS_IOS
34+
#if ORK_FEATURE_HEALTHKIT_AUTHORIZATION
3535
#import <HealthKit/HealthKit.h>
3636
#endif
3737

@@ -74,7 +74,7 @@ ORK_EXTERN ORKBloodTypeIdentifier const ORKBloodTypeIdentifierONegative;
7474
You can use the HealthKit characteristic answer format to let users autofill information, such as their blood type or date of birth.
7575
*/
7676

77-
#if ORK_FEATURE_HEALTHKIT_AUTHORIZATION && TARGET_OS_IOS
77+
#if ORK_FEATURE_HEALTHKIT_AUTHORIZATION
7878
ORK_CLASS_AVAILABLE
7979
@interface ORKHealthKitCharacteristicTypeAnswerFormat : ORKAnswerFormat
8080

ResearchKit/Common/ORKHealthSampleQueryOperation.m

+2
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
2828
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2929
*/
3030

31+
#if TARGET_OS_IOS
3132

3233
#import "ORKHealthSampleQueryOperation.h"
3334
#import "ORKCollector.h"
@@ -246,3 +247,4 @@ - (void)handleResults:(NSArray<HKSample *> *)results
246247

247248
@end
248249
#endif
250+
#endif

ResearchKitUI/Common/Answer Format/Question Step Views/ORKSurveyAnswerCellForLocation.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
2929
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3030
*/
3131

32-
#if ORK_FEATURE_CLLOCATIONMANAGER_AUTHORIZATION
32+
#if ORK_FEATURE_CLLOCATIONMANAGER_AUTHORIZATION && !TARGET_OS_VISION
3333

3434
#import "ORKSurveyAnswerCellForLocation.h"
3535

0 commit comments

Comments
 (0)