From ff8bf6758eb64844b18c8c4f830807d3f7c867cc Mon Sep 17 00:00:00 2001 From: Oleg Kornienko Date: Tue, 30 Jan 2024 12:15:41 +0300 Subject: [PATCH 1/2] Update iglistkit version --- Package.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Package.swift b/Package.swift index 435f18cb6..7b2748f37 100644 --- a/Package.swift +++ b/Package.swift @@ -61,7 +61,7 @@ let package = Package( ], dependencies: [ .package(url: "https://github.com/appintheair/PINRemoteImage.git", from: "3.0.4"), - .package(url: "https://github.com/appintheair/IGListKit.git", from: "4.0.2") + .package(url: "https://github.com/appintheair/IGListKit.git", from: "4.0.3") ], targets: [ .target( From 68d2f019cfab3e5464c3aa1ce110f97a224f9c0c Mon Sep 17 00:00:00 2001 From: Oleg Kornienko Date: Tue, 30 Jan 2024 12:46:16 +0300 Subject: [PATCH 2/2] Remove configureUpdater --- Source/Private/ASIGListAdapterBasedDataSource.mm | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/Source/Private/ASIGListAdapterBasedDataSource.mm b/Source/Private/ASIGListAdapterBasedDataSource.mm index 6a981f236..bb5653127 100644 --- a/Source/Private/ASIGListAdapterBasedDataSource.mm +++ b/Source/Private/ASIGListAdapterBasedDataSource.mm @@ -59,8 +59,6 @@ - (instancetype)initWithListAdapter:(IGListAdapter *)listAdapter collectionDeleg #if IG_LIST_COLLECTION_VIEW [ASIGListAdapterBasedDataSource setASCollectionViewSuperclass]; #endif - [ASIGListAdapterBasedDataSource configureUpdater:listAdapter.updater]; - ASDisplayNodeAssert([listAdapter conformsToProtocol:@protocol(UICollectionViewDataSource)], @"Expected IGListAdapter to conform to UICollectionViewDataSource."); ASDisplayNodeAssert([listAdapter conformsToProtocol:@protocol(UICollectionViewDelegateFlowLayout)], @"Expected IGListAdapter to conform to UICollectionViewDelegateFlowLayout."); _listAdapter = listAdapter; @@ -346,20 +344,6 @@ + (void)setASCollectionViewSuperclass } #endif -/// Ensure updater won't call reloadData on us. -+ (void)configureUpdater:(id)updater -{ - // Cast to NSObject will be removed after https://github.com/Instagram/IGListKit/pull/435 - if ([(id)updater isKindOfClass:[IGListAdapterUpdater class]]) { - [(IGListAdapterUpdater *)updater setAllowsBackgroundReloading:NO]; - } else { - static dispatch_once_t onceToken; - dispatch_once(&onceToken, ^{ - NSLog(@"WARNING: Use of non-%@ updater with AsyncDisplayKit is discouraged. Updater: %@", NSStringFromClass([IGListAdapterUpdater class]), updater); - }); - } -} - + (ASSupplementarySourceOverrides)overridesForSupplementarySourceClass:(Class)c { static NSCache *cache;