Files
Texture/Source/Layout/ASLayout+IGListDiffKit.mm
Huy Nguyen cfaa55cdb4 Link to IGListDiffKit in our IGListKit subspec (#1756)
- In IGListDiff is no longer part of IGListKit as of 4.0. It has its own podspec now. After bumping our IGListKit dependency of our subspec, we got an "Undefined symbol: _IGListDiff" error which breaks podspec linting CI job (as well as some of our clients as reported in #1749).
- To fix it, we can either remove the IGListDiff dependency since it's used once in the entire project, or link to IGListDiffKit. I opt for the latter because I imagine many IGListKit users would have IGListDiffKit anyway so we can still take advantage of it (it's faster than our built in diffing algorithm). Plus, it's not a big dependency.
2020-01-03 11:55:11 -08:00

31 lines
600 B
Plaintext

//
// ASLayout+IGListDiffKit.mm
// Texture
//
// Copyright (c) Pinterest, Inc. All rights reserved.
// Licensed under Apache 2.0: http://www.apache.org/licenses/LICENSE-2.0
//
#import <AsyncDisplayKit/ASAvailability.h>
#if AS_IG_LIST_DIFF_KIT
#import "ASLayout+IGListDiffKit.h"
@interface ASLayout() {
@public
id<ASLayoutElement> _layoutElement;
}
@end
@implementation ASLayout(IGListDiffKit)
- (id <NSObject>)diffIdentifier
{
return self->_layoutElement;
}
- (BOOL)isEqualToDiffableObject:(id <IGListDiffable>)other
{
return [self isEqual:other];
}
@end
#endif // AS_IG_LIST_DIFF_KIT