Skip to content

Commit

Permalink
[Nimbus collections] Change deprecation warning to point at migration…
Browse files Browse the repository at this point in the history
… guide.

PiperOrigin-RevId: 490492017
  • Loading branch information
randallli authored and material-automation committed Nov 23, 2022
1 parent 1ab6361 commit e660d27
Show file tree
Hide file tree
Showing 11 changed files with 33 additions and 11 deletions.
4 changes: 3 additions & 1 deletion src/collections/src/NICollectionViewCellFactory.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@

#import "NICollectionViewModel.h"

API_DEPRECATED_BEGIN("Follow go/material-ios-lists for list guidance instead.",
API_DEPRECATED_BEGIN("🕘 Schedule time to migrate. "
"Use branded UITableView or UICollectionView instead: go/material-ios-lists. "
"This is go/material-ios-migrations#not-scriptable 🕘",
ios(12, API_TO_BE_DEPRECATED))

/**
Expand Down
4 changes: 3 additions & 1 deletion src/collections/src/NICollectionViewModel+Private.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@

#import "NICollectionViewModel.h"

API_DEPRECATED_BEGIN("Follow go/material-ios-lists for list guidance instead.",
API_DEPRECATED_BEGIN("🕘 Schedule time to migrate. "
"Use branded UITableView or UICollectionView instead: go/material-ios-lists. "
"This is go/material-ios-migrations#not-scriptable 🕘",
ios(12, API_TO_BE_DEPRECATED))

@interface NICollectionViewModelSection : NSObject
Expand Down
4 changes: 3 additions & 1 deletion src/collections/src/NICollectionViewModel.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
#import "NIActions.h" /* for NIActionsDataSource */
#import "NIPreprocessorMacros.h" /* for weak */

API_DEPRECATED_BEGIN("Follow go/material-ios-lists for list guidance instead.",
API_DEPRECATED_BEGIN("🕘 Schedule time to migrate. "
"Use branded UITableView or UICollectionView instead: go/material-ios-lists. "
"This is go/material-ios-migrations#not-scriptable 🕘",
ios(12, API_TO_BE_DEPRECATED))

@protocol NICollectionViewModelDelegate;
Expand Down
4 changes: 3 additions & 1 deletion src/core/src/NIActions+Subclassing.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@

#import "NIActions.h"

API_DEPRECATED_BEGIN("Follow go/material-ios-lists for list guidance instead.",
API_DEPRECATED_BEGIN("🕘 Schedule time to migrate. "
"Use branded UITableView or UICollectionView instead: go/material-ios-lists. "
"This is go/material-ios-migrations#not-scriptable 🕘",
ios(12, API_TO_BE_DEPRECATED))

@interface NIObjectActions : NSObject
Expand Down
4 changes: 3 additions & 1 deletion src/core/src/NIActions.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@

#import <Foundation/Foundation.h>

API_DEPRECATED_BEGIN("Follow go/material-ios-lists for list guidance instead.",
API_DEPRECATED_BEGIN("🕘 Schedule time to migrate. "
"Use branded UITableView or UICollectionView instead: go/material-ios-lists. "
"This is go/material-ios-migrations#not-scriptable 🕘",
ios(12, API_TO_BE_DEPRECATED))

/**
Expand Down
4 changes: 3 additions & 1 deletion src/models/src/NICellBackgrounds.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@

#import "NIPreprocessorMacros.h" /* for weak */

API_DEPRECATED_BEGIN("Follow go/material-ios-lists for list guidance instead.",
API_DEPRECATED_BEGIN("🕘 Schedule time to migrate. "
"Use branded UITableView or UICollectionView instead: go/material-ios-lists. "
"This is go/material-ios-migrations#not-scriptable 🕘",
ios(12, API_TO_BE_DEPRECATED))

/**
Expand Down
4 changes: 3 additions & 1 deletion src/models/src/NICellFactory+Private.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@

#import "NICellFactory.h"

API_DEPRECATED_BEGIN("Follow go/material-ios-lists for list guidance instead.",
API_DEPRECATED_BEGIN("🕘 Schedule time to migrate. "
"Use branded UITableView or UICollectionView instead: go/material-ios-lists. "
"This is go/material-ios-migrations#not-scriptable 🕘",
ios(12, API_TO_BE_DEPRECATED))

// Private classes for use in Nimbus.
Expand Down
4 changes: 3 additions & 1 deletion src/models/src/NIMutableTableViewModel+Private.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
#import "NIMutableTableViewModel.h"
#import "NITableViewModel+Private.h"

API_DEPRECATED_BEGIN("Follow go/material-ios-lists for list guidance instead.",
API_DEPRECATED_BEGIN("🕘 Schedule time to migrate. "
"Use branded UITableView or UICollectionView instead: go/material-ios-lists. "
"This is go/material-ios-migrations#not-scriptable 🕘",
ios(12, API_TO_BE_DEPRECATED))

@interface NIMutableTableViewModel (Private)
Expand Down
4 changes: 3 additions & 1 deletion src/models/src/NIMutableTableViewModel.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@

#import "NITableViewModel.h"

API_DEPRECATED_BEGIN("Follow go/material-ios-lists for list guidance instead.",
API_DEPRECATED_BEGIN("🕘 Schedule time to migrate. "
"Use branded UITableView or UICollectionView instead: go/material-ios-lists. "
"This is go/material-ios-migrations#not-scriptable 🕘",
ios(12, API_TO_BE_DEPRECATED))

@class NIMutableTableViewModel;
Expand Down
4 changes: 3 additions & 1 deletion src/models/src/NITableViewActions.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@

#import "NimbusCore.h"

API_DEPRECATED_BEGIN("Follow go/material-ios-lists for list guidance instead.",
API_DEPRECATED_BEGIN("🕘 Schedule time to migrate. "
"Use branded UITableView or UICollectionView instead: go/material-ios-lists. "
"This is go/material-ios-migrations#not-scriptable 🕘",
ios(12, API_TO_BE_DEPRECATED))

/**
Expand Down
4 changes: 3 additions & 1 deletion src/models/src/NITableViewModel.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
#import "NIActions.h" /* for NIActionsDataSource */
#import "NIPreprocessorMacros.h" /* for weak */

API_DEPRECATED_BEGIN("Follow go/material-ios-lists for list guidance instead.",
API_DEPRECATED_BEGIN("🕘 Schedule time to migrate. "
"Use branded UITableView or UICollectionView instead: go/material-ios-lists. "
"This is go/material-ios-migrations#not-scriptable 🕘",
ios(12, API_TO_BE_DEPRECATED))

#if NS_BLOCKS_AVAILABLE
Expand Down

0 comments on commit e660d27

Please sign in to comment.