Skip to content

Commit

Permalink
Mark symbols to be deprecated
Browse files Browse the repository at this point in the history
Use Foundation APIs instead.

PiperOrigin-RevId: 458515210
  • Loading branch information
CGRect authored and material-automation committed Jul 1, 2022
1 parent d0fbad6 commit 67963ae
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/src/NIDebuggingTools.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

#import <Foundation/Foundation.h>

API_DEPRECATED_BEGIN("Use Foundation APIs instead.", ios(12, API_TO_BE_DEPRECATED))
/**
* For inspecting code and writing to logs in debug builds.
*
Expand Down Expand Up @@ -190,3 +191,5 @@ xx, ##__VA_ARGS__)
#define NIDINFO(xx, ...) NIDCONDITIONLOG((NILOGLEVEL_INFO <= NIMaxLogLevel), xx, ##__VA_ARGS__)

/**@}*/// End of Debugging Tools //////////////////////////////////////////////////////////////////

API_DEPRECATED_END
3 changes: 3 additions & 0 deletions src/core/src/NIError.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

API_DEPRECATED_BEGIN("Use NSError instead.", ios(12, API_TO_BE_DEPRECATED))
/**
* For defining various error types used throughout the Nimbus framework.
*
Expand Down Expand Up @@ -52,3 +53,5 @@ typedef enum {
*
* @enum NINimbusErrorDomainCode
*/

API_DEPRECATED_END
4 changes: 4 additions & 0 deletions src/core/src/NIInMemoryCache.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@

#import "NIPreprocessorMacros.h"

API_DEPRECATED_BEGIN("Use NSCache instead.", ios(12, API_TO_BE_DEPRECATED))

/**
* For storing and accessing objects in memory.
*
Expand Down Expand Up @@ -314,3 +316,5 @@
* to reduceMemoryUsage.
* @fn NIImageMemoryCache::maxNumberOfPixelsUnderStress
*/

API_DEPRECATED_END

0 comments on commit 67963ae

Please sign in to comment.