From acc00b258aeef17cff7c8326c28945dd1aec071c Mon Sep 17 00:00:00 2001 From: dmaclach Date: Tue, 13 Nov 2018 14:37:30 -0800 Subject: Add Deprecation Notices to GTMSystemVersion (#202) Move to NSProcessInfo where appropriate. --- Foundation/GTMSystemVersion.h | 1 + Foundation/GTMSystemVersionTest.m | 6 ++++++ 2 files changed, 7 insertions(+) (limited to 'Foundation') diff --git a/Foundation/GTMSystemVersion.h b/Foundation/GTMSystemVersion.h index 2205e42..7147730 100644 --- a/Foundation/GTMSystemVersion.h +++ b/Foundation/GTMSystemVersion.h @@ -20,6 +20,7 @@ #import "GTMDefines.h" // A class for getting information about what system we are running on +NS_DEPRECATED(10_0, 10_10, 1_0, 8_0, "Use NSProcessInfo.operatingSystemVersion.") @interface GTMSystemVersion : NSObject // Returns the current system version major.minor.bugFix diff --git a/Foundation/GTMSystemVersionTest.m b/Foundation/GTMSystemVersionTest.m index 6e46ec5..9cf282b 100644 --- a/Foundation/GTMSystemVersionTest.m +++ b/Foundation/GTMSystemVersionTest.m @@ -19,6 +19,10 @@ #import "GTMSenTestCase.h" #import "GTMSystemVersion.h" +#pragma clang diagnostic push +// Ignore all of the deprecation warnings for GTMSystemVersion +#pragma clang diagnostic ignored "-Wdeprecated-declarations" + @interface GTMSystemVersionTest : GTMTestCase @end @@ -118,3 +122,5 @@ #endif @end + +#pragma clang diagnostic pop -- cgit v1.2.3