mirror of
https://github.com/Instagram/IGListKit
synced 2026-05-14 21:08:48 +00:00
Summary: We constantly have random bugs pop up when mutations are made outside of a batch update. This change restricts the mutation API to a batch context object (which is just an `IGListAdapter`) so they can only be done **inside an update block**. - Fixed open source project - Confirmed open source examples build - Updated all of Instagram.app to use this API - Changelog breaking changes entry Fixes #392 Reviewed By: jessesquires Differential Revision: D4754129 fbshipit-source-id: 11d32a0fac3e50c9edbb01e92a8a0c7b8a43cf2d
66 lines
2.3 KiB
Objective-C
66 lines
2.3 KiB
Objective-C
/**
|
|
* Copyright (c) 2016-present, Facebook, Inc.
|
|
* All rights reserved.
|
|
*
|
|
* This source code is licensed under the BSD-style license found in the
|
|
* LICENSE file in the root directory of this source tree. An additional grant
|
|
* of patent rights can be found in the PATENTS file in the same directory.
|
|
*/
|
|
|
|
#import <IGListKit/IGListCompatibility.h>
|
|
|
|
/**
|
|
* Project version number for IGListKit.
|
|
*/
|
|
FOUNDATION_EXPORT double IGListKitVersionNumber;
|
|
|
|
/**
|
|
* Project version string for IGListKit.
|
|
*/
|
|
FOUNDATION_EXPORT const unsigned char IGListKitVersionString[];
|
|
|
|
#if TARGET_OS_EMBEDDED || TARGET_OS_SIMULATOR
|
|
|
|
// iOS and tvOS only:
|
|
|
|
#import <IGListKit/IGListAdapter.h>
|
|
#import <IGListKit/IGListAdapterDataSource.h>
|
|
#import <IGListKit/IGListAdapterDelegate.h>
|
|
#import <IGListKit/IGListAdapterUpdater.h>
|
|
#import <IGListKit/IGListAdapterUpdaterDelegate.h>
|
|
#import <IGListKit/IGListBatchContext.h>
|
|
#import <IGListKit/IGListBindable.h>
|
|
#import <IGListKit/IGListBindingSectionController.h>
|
|
#import <IGListKit/IGListBindingSectionControllerSelectionDelegate.h>
|
|
#import <IGListKit/IGListBindingSectionControllerDataSource.h>
|
|
#import <IGListKit/IGListBindable.h>
|
|
#import <IGListKit/IGListCollectionContext.h>
|
|
#import <IGListKit/IGListCollectionView.h>
|
|
#import <IGListKit/IGListDisplayDelegate.h>
|
|
#import <IGListKit/IGListExperiments.h>
|
|
#import <IGListKit/IGListSectionController.h>
|
|
#import <IGListKit/IGListSectionType.h>
|
|
#import <IGListKit/IGListReloadDataUpdater.h>
|
|
#import <IGListKit/IGListScrollDelegate.h>
|
|
#import <IGListKit/IGListSingleSectionController.h>
|
|
#import <IGListKit/IGListStackedSectionController.h>
|
|
#import <IGListKit/IGListSupplementaryViewSource.h>
|
|
#import <IGListKit/IGListUpdatingDelegate.h>
|
|
#import <IGListKit/IGListCollectionViewLayout.h>
|
|
#import <IGListKit/IGListWorkingRangeDelegate.h>
|
|
|
|
#endif
|
|
|
|
// Shared (iOS, tvOS, macOS compatible):
|
|
|
|
#import <IGListKit/IGListAssert.h>
|
|
#import <IGListKit/IGListBatchUpdateData.h>
|
|
#import <IGListKit/IGListDiff.h>
|
|
#import <IGListKit/IGListDiffable.h>
|
|
#import <IGListKit/IGListExperiments.h>
|
|
#import <IGListKit/IGListIndexPathResult.h>
|
|
#import <IGListKit/IGListIndexSetResult.h>
|
|
#import <IGListKit/IGListMoveIndex.h>
|
|
#import <IGListKit/IGListMoveIndexPath.h>
|
|
#import <IGListKit/NSNumber+IGListDiffable.h>
|
|
#import <IGListKit/NSString+IGListDiffable.h>
|