From f50f3c7ef6020a295ab5c0aa8cfeb3b13340e8b7 Mon Sep 17 00:00:00 2001 From: Jefferson Setiawan Date: Mon, 25 Nov 2019 10:48:44 -0800 Subject: [PATCH] Support Project Catalyst (#1398) Summary: ## Changes in this pull request Add support when compile Catalyst. Fix this error: `Cannot define category for undefined class 'IGListAdapter'` ![Screenshot 2019-11-22 at 22 35 31](https://user-images.githubusercontent.com/14871122/69440931-49979c80-0d7c-11ea-8673-f9b8a60441f0.jpg) ## Step To Reproduce In the Main target, check the Mac under Deployment Info, more Info in [here](https://developer.apple.com/documentation/uikit/mac_catalyst?language=objc) ### Checklist - [x] All tests pass. Demo project builds and runs. - [x] I added tests, an experiment, or detailed why my change isn't tested. - [ ] I added an entry to the `CHANGELOG.md` for any breaking changes, enhancements, or bug fixes. - [x] I have reviewed the [contributing guide](https://github.com/Instagram/IGListKit/blob/master/.github/CONTRIBUTING.md) Pull Request resolved: https://github.com/Instagram/IGListKit/pull/1398 Differential Revision: D18687673 Pulled By: lorixx fbshipit-source-id: b5b9aa60406c9b66a48abbdfeea2bc5f44c9ca66 --- Source/IGListKit/Internal/IGListAdapter+DebugDescription.h | 2 +- .../Internal/IGListAdapterUpdater+DebugDescription.h | 2 +- .../Internal/IGListBatchUpdateData+DebugDescription.h | 4 +++- .../IGListBindingSectionController+DebugDescription.h | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Source/IGListKit/Internal/IGListAdapter+DebugDescription.h b/Source/IGListKit/Internal/IGListAdapter+DebugDescription.h index e5474dfb..d2655431 100644 --- a/Source/IGListKit/Internal/IGListAdapter+DebugDescription.h +++ b/Source/IGListKit/Internal/IGListAdapter+DebugDescription.h @@ -5,7 +5,7 @@ * LICENSE file in the root directory of this source tree. */ -#import +#import @interface IGListAdapter (DebugDescription) diff --git a/Source/IGListKit/Internal/IGListAdapterUpdater+DebugDescription.h b/Source/IGListKit/Internal/IGListAdapterUpdater+DebugDescription.h index b7ee299e..8f06deab 100644 --- a/Source/IGListKit/Internal/IGListAdapterUpdater+DebugDescription.h +++ b/Source/IGListKit/Internal/IGListAdapterUpdater+DebugDescription.h @@ -5,7 +5,7 @@ * LICENSE file in the root directory of this source tree. */ -#import +#import @interface IGListAdapterUpdater (DebugDescription) diff --git a/Source/IGListKit/Internal/IGListBatchUpdateData+DebugDescription.h b/Source/IGListKit/Internal/IGListBatchUpdateData+DebugDescription.h index 095e2216..f35fa7c6 100644 --- a/Source/IGListKit/Internal/IGListBatchUpdateData+DebugDescription.h +++ b/Source/IGListKit/Internal/IGListBatchUpdateData+DebugDescription.h @@ -5,7 +5,9 @@ * LICENSE file in the root directory of this source tree. */ -#import +#import + +#import @interface IGListBatchUpdateData (DebugDescription) diff --git a/Source/IGListKit/Internal/IGListBindingSectionController+DebugDescription.h b/Source/IGListKit/Internal/IGListBindingSectionController+DebugDescription.h index f49a8d37..d3ea1a96 100644 --- a/Source/IGListKit/Internal/IGListBindingSectionController+DebugDescription.h +++ b/Source/IGListKit/Internal/IGListBindingSectionController+DebugDescription.h @@ -5,7 +5,7 @@ * LICENSE file in the root directory of this source tree. */ -#import +#import @interface IGListBindingSectionController (DebugDescription)