From d7206117a756eefd2c982e0b88daefaafc448b2a Mon Sep 17 00:00:00 2001 From: Tim Oliver Date: Thu, 20 Apr 2023 14:26:11 -0700 Subject: [PATCH] Add IGListBindingSingleSectionController to public headers Summary: While the `IGListBindingSingleSectionController` class and a nearly complete test suite were present in the IGListKit repo, they weren't imported into Xcode, and so they weren't part of the public release or the test CI. Since the class looks like it's being used within Instagram, it's clear that it's not deprecated. I'm assuming it was added for a specific use-case in Instagram, and integrating it with the public Xcode project was still pending. This diff integrates the class back into the public framework. Reviewed By: candance Differential Revision: D45147758 fbshipit-source-id: b0a84a2909635a4448480246f315243f4fcac134 --- Source/IGListKit/IGListBindingSingleSectionController.h | 3 +-- Source/IGListKit/IGListKit.h | 1 + scripts/generate_spm_sources_layout.sh | 2 -- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Source/IGListKit/IGListBindingSingleSectionController.h b/Source/IGListKit/IGListBindingSingleSectionController.h index 0d0a4b77..b8679ebc 100644 --- a/Source/IGListKit/IGListBindingSingleSectionController.h +++ b/Source/IGListKit/IGListBindingSingleSectionController.h @@ -7,8 +7,7 @@ #import -#import -#import +#import "IGListSectionController.h" NS_ASSUME_NONNULL_BEGIN diff --git a/Source/IGListKit/IGListKit.h b/Source/IGListKit/IGListKit.h index 8116cf3e..2f395bed 100644 --- a/Source/IGListKit/IGListKit.h +++ b/Source/IGListKit/IGListKit.h @@ -36,6 +36,7 @@ FOUNDATION_EXPORT const unsigned char IGListKitVersionString[]; #import "IGListBindingSectionController.h" #import "IGListBindingSectionControllerDataSource.h" #import "IGListBindingSectionControllerSelectionDelegate.h" +#import "IGListBindingSingleSectionController.h" #import "IGListCollectionContext.h" #import "IGListCollectionView.h" #import "IGListCollectionViewLayout.h" diff --git a/scripts/generate_spm_sources_layout.sh b/scripts/generate_spm_sources_layout.sh index 25e7ec64..60ebb22e 100755 --- a/scripts/generate_spm_sources_layout.sh +++ b/scripts/generate_spm_sources_layout.sh @@ -114,7 +114,6 @@ function generate_ig_list_kit_spm_public_headers() { public_headers_list=$( find "Source/IGListKit" \ - \! -name "IGListBindingSingleSectionController.[hm]" \ -name "*.[h]" \ -type f -not -path "spm/*" \ -not -path "Source/IGListKit/Internal/*" \ @@ -177,7 +176,6 @@ function generate_ig_list_kit_spm_sources() { sources_list=$( find "Source/IGListKit" \ - \! -name "IGListBindingSingleSectionController.[hm]" \ -name "*.m" -o -name "*.mm" \ -type f -not -path "spm/*" \ -not -path "Examples/*" | sed "s| \([^/]\)|:\1|g")