Convert the codebase to Objective-C++ (#1206)

* Convert the codebase to Objective-C++ throughout. One language is better than two.

* Put it back

* Fix linker

* Point explicitly to updated Weaver to unblock build

* Revert "Point explicitly to updated Weaver to unblock build"

This reverts commit fdc25296e8794d4e6e56c35f5fe6da2be3f71dbc.

* Revert "Fix linker"

This reverts commit 7be25f91519b8497ef42de79f115bcfbdb965c39.

* Add in the frameworks

* no message

* Address spec lint warnings

* Fix tvos build

* Put that back

* Address Michael's review

* Add comment to kick CI
This commit is contained in:
Adlai Holler 2018-11-02 12:04:14 -07:00 committed by GitHub
parent 7ccdcb9472
commit d0ba092a77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
155 changed files with 841 additions and 846 deletions

File diff suppressed because it is too large Load Diff

View File

@ -70,6 +70,7 @@
- Correct linePositionModifier behavior [Michael Schneider](https://github.com/maicki)[#1192] (https://github.com/TextureGroup/Texture/pull/1192) - Correct linePositionModifier behavior [Michael Schneider](https://github.com/maicki)[#1192] (https://github.com/TextureGroup/Texture/pull/1192)
- Tweak a11y label aggregation behavior to enable container label overrides [Michael Schneider](https://github.com/maicki)[#1199] (https://github.com/TextureGroup/Texture/pull/1199) - Tweak a11y label aggregation behavior to enable container label overrides [Michael Schneider](https://github.com/maicki)[#1199] (https://github.com/TextureGroup/Texture/pull/1199)
- Fix logic cleaning data if delegate / dataSource changes and bring over logic to ASTableView [Michael Schneider](https://github.com/maicki)[#1200] (https://github.com/TextureGroup/Texture/pull/1200) - Fix logic cleaning data if delegate / dataSource changes and bring over logic to ASTableView [Michael Schneider](https://github.com/maicki)[#1200] (https://github.com/TextureGroup/Texture/pull/1200)
- Standardize the code base on Objective-C++. We will still not leak any C++ into public headers, however. [Adlai Holler](https://github.com/Adlai-Holler)
## 2.7 ## 2.7
- Fix pager node for interface coalescing. [Max Wang](https://github.com/wsdwsd0829) [#877](https://github.com/TextureGroup/Texture/pull/877) - Fix pager node for interface coalescing. [Max Wang](https://github.com/wsdwsd0829) [#877](https://github.com/TextureGroup/Texture/pull/877)

View File

@ -1,5 +1,5 @@
// //
// ASCGImageBuffer.m // ASCGImageBuffer.mm
// Texture // Texture
// //
// Copyright (c) Pinterest, Inc. All rights reserved. // Copyright (c) Pinterest, Inc. All rights reserved.

View File

@ -1,12 +1,12 @@
// //
// ASCollections.m // ASCollections.mm
// Texture // Texture
// //
// Copyright (c) Pinterest, Inc. All rights reserved. // Copyright (c) Pinterest, Inc. All rights reserved.
// Licensed under Apache 2.0: http://www.apache.org/licenses/LICENSE-2.0 // Licensed under Apache 2.0: http://www.apache.org/licenses/LICENSE-2.0
// //
#import "ASCollections.h" #import <AsyncDisplayKit/ASCollections.h>
/** /**
* A private allocator that signals to our retain callback to skip the retain. * A private allocator that signals to our retain callback to skip the retain.

View File

@ -1,5 +1,5 @@
// //
// ASConfiguration.m // ASConfiguration.mm
// Texture // Texture
// //
// Copyright (c) Pinterest, Inc. All rights reserved. // Copyright (c) Pinterest, Inc. All rights reserved.

View File

@ -1,5 +1,5 @@
// //
// ASConfigurationInternal.m // ASConfigurationInternal.mm
// Texture // Texture
// //
// Copyright (c) Pinterest, Inc. All rights reserved. // Copyright (c) Pinterest, Inc. All rights reserved.

View File

@ -1,5 +1,5 @@
// //
// ASDisplayNode+Convenience.m // ASDisplayNode+Convenience.mm
// Texture // Texture
// //
// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. // Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.

View File

@ -1,5 +1,5 @@
// //
// ASExperimentalFeatures.m // ASExperimentalFeatures.mm
// Texture // Texture
// //
// Copyright (c) Pinterest, Inc. All rights reserved. // Copyright (c) Pinterest, Inc. All rights reserved.

View File

@ -1,5 +1,5 @@
// //
// ASNavigationController.m // ASNavigationController.mm
// Texture // Texture
// //
// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. // Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.

View File

@ -1,5 +1,5 @@
// //
// ASNetworkImageLoadInfo.m // ASNetworkImageLoadInfo.mm
// Texture // Texture
// //
// Copyright (c) Pinterest, Inc. All rights reserved. // Copyright (c) Pinterest, Inc. All rights reserved.

View File

@ -1,5 +1,5 @@
// //
// ASPagerFlowLayout.m // ASPagerFlowLayout.mm
// Texture // Texture
// //
// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. // Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.

View File

@ -1,5 +1,5 @@
// //
// ASPagerNode.m // ASPagerNode.mm
// Texture // Texture
// //
// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. // Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.

View File

@ -1,5 +1,5 @@
// //
// ASTabBarController.m // ASTabBarController.mm
// Texture // Texture
// //
// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. // Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.

View File

@ -216,4 +216,4 @@ NS_ASSUME_NONNULL_BEGIN
@end @end
NS_ASSUME_NONNULL_END NS_ASSUME_NONNULL_END
#endif #endif // TARGET_OS_IOS

View File

@ -1,5 +1,5 @@
// //
// ASVisibilityProtocols.m // ASVisibilityProtocols.mm
// Texture // Texture
// //
// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. // Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.

View File

@ -1,5 +1,5 @@
// //
// ASAssert.m // ASAssert.mm
// Texture // Texture
// //
// Copyright (c) Pinterest, Inc. All rights reserved. // Copyright (c) Pinterest, Inc. All rights reserved.
@ -39,19 +39,19 @@ static pthread_key_t ASMainThreadAssertionsDisabledKey() {
} }
BOOL ASMainThreadAssertionsAreDisabled() { BOOL ASMainThreadAssertionsAreDisabled() {
return (pthread_getspecific(ASMainThreadAssertionsDisabledKey()) > 0); return (nullptr != pthread_getspecific(ASMainThreadAssertionsDisabledKey()));
} }
void ASPushMainThreadAssertionsDisabled() { void ASPushMainThreadAssertionsDisabled() {
let key = ASMainThreadAssertionsDisabledKey(); let key = ASMainThreadAssertionsDisabledKey();
let oldVal = pthread_getspecific(key); let oldVal = (intptr_t)pthread_getspecific(key);
pthread_setspecific(key, oldVal + 1); pthread_setspecific(key, (void *)(oldVal + 1));
} }
void ASPopMainThreadAssertionsDisabled() { void ASPopMainThreadAssertionsDisabled() {
let key = ASMainThreadAssertionsDisabledKey(); let key = ASMainThreadAssertionsDisabledKey();
let oldVal = pthread_getspecific(key); let oldVal = (intptr_t)pthread_getspecific(key);
pthread_setspecific(key, oldVal - 1); pthread_setspecific(key, (void *)(oldVal - 1));
ASDisplayNodeCAssert(oldVal > 0, @"Attempt to pop thread assertion-disabling without corresponding push."); ASDisplayNodeCAssert(oldVal > 0, @"Attempt to pop thread assertion-disabling without corresponding push.");
} }

View File

@ -12,6 +12,7 @@
#define AS_EXTERN FOUNDATION_EXTERN #define AS_EXTERN FOUNDATION_EXTERN
#define unowned __unsafe_unretained #define unowned __unsafe_unretained
// TODO: Remove these now that we're all-C++.
#if defined(__cplusplus) #if defined(__cplusplus)
# define var auto # define var auto
# define let const auto # define let const auto

View File

@ -1,5 +1,5 @@
// //
// ASDisplayNode+Ancestry.m // ASDisplayNode+Ancestry.mm
// Texture // Texture
// //
// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. // Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.

View File

@ -1,5 +1,5 @@
// //
// ASLog.m // ASLog.mm
// Texture // Texture
// //
// Copyright (c) Pinterest, Inc. All rights reserved. // Copyright (c) Pinterest, Inc. All rights reserved.

View File

@ -1,5 +1,5 @@
// //
// AsyncDisplayKit+Debug.m // AsyncDisplayKit+Debug.mm
// Texture // Texture
// //
// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. // Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.

View File

@ -1,5 +1,5 @@
// //
// AsyncDisplayKit+Tips.m // AsyncDisplayKit+Tips.mm
// Texture // Texture
// //
// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. // Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
@ -7,7 +7,7 @@
// Licensed under Apache 2.0: http://www.apache.org/licenses/LICENSE-2.0 // Licensed under Apache 2.0: http://www.apache.org/licenses/LICENSE-2.0
// //
#import "AsyncDisplayKit+Tips.h" #import <AsyncDisplayKit/AsyncDisplayKit+Tips.h>
#import <AsyncDisplayKit/ASDisplayNode+Ancestry.h> #import <AsyncDisplayKit/ASDisplayNode+Ancestry.h>
@implementation ASDisplayNode (Tips) @implementation ASDisplayNode (Tips)

View File

@ -1,5 +1,5 @@
// //
// ASBatchContext.m // ASBatchContext.mm
// Texture // Texture
// //
// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. // Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.

View File

@ -1,5 +1,5 @@
// //
// ASCollectionFlowLayoutDelegate.m // ASCollectionFlowLayoutDelegate.mm
// Texture // Texture
// //
// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. // Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.

View File

@ -1,5 +1,5 @@
// //
// ASCollectionLayoutContext.m // ASCollectionLayoutContext.mm
// Texture // Texture
// //
// Copyright (c) Pinterest, Inc. All rights reserved. // Copyright (c) Pinterest, Inc. All rights reserved.

View File

@ -1,5 +1,5 @@
// //
// ASCollectionViewLayoutController.m // ASCollectionViewLayoutController.mm
// Texture // Texture
// //
// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. // Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.

View File

@ -1,5 +1,5 @@
// //
// ASCollectionViewLayoutInspector.m // ASCollectionViewLayoutInspector.mm
// Texture // Texture
// //
// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. // Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.

View File

@ -1,5 +1,5 @@
// //
// ASDelegateProxy.m // ASDelegateProxy.mm
// Texture // Texture
// //
// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. // Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.

View File

@ -1,5 +1,5 @@
// //
// ASElementMap.m // ASElementMap.mm
// Texture // Texture
// //
// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. // Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
@ -7,7 +7,7 @@
// Licensed under Apache 2.0: http://www.apache.org/licenses/LICENSE-2.0 // Licensed under Apache 2.0: http://www.apache.org/licenses/LICENSE-2.0
// //
#import "ASElementMap.h" #import <AsyncDisplayKit/ASElementMap.h>
#import <UIKit/UIKit.h> #import <UIKit/UIKit.h>
#import <AsyncDisplayKit/ASCollectionElement.h> #import <AsyncDisplayKit/ASCollectionElement.h>
#import <AsyncDisplayKit/ASTwoDimensionalArrayUtils.h> #import <AsyncDisplayKit/ASTwoDimensionalArrayUtils.h>

View File

@ -1,12 +1,12 @@
// //
// ASGraphicsContext.m // ASGraphicsContext.mm
// Texture // Texture
// //
// Copyright (c) Pinterest, Inc. All rights reserved. // Copyright (c) Pinterest, Inc. All rights reserved.
// Licensed under Apache 2.0: http://www.apache.org/licenses/LICENSE-2.0 // Licensed under Apache 2.0: http://www.apache.org/licenses/LICENSE-2.0
// //
#import "ASGraphicsContext.h" #import <AsyncDisplayKit/ASGraphicsContext.h>
#import <AsyncDisplayKit/ASCGImageBuffer.h> #import <AsyncDisplayKit/ASCGImageBuffer.h>
#import <AsyncDisplayKit/ASAssert.h> #import <AsyncDisplayKit/ASAssert.h>
#import <AsyncDisplayKit/ASConfigurationInternal.h> #import <AsyncDisplayKit/ASConfigurationInternal.h>

View File

@ -1,5 +1,5 @@
// //
// ASHashing.m // ASHashing.mm
// Texture // Texture
// //
// Copyright (c) Pinterest, Inc. All rights reserved. // Copyright (c) Pinterest, Inc. All rights reserved.

View File

@ -1,5 +1,5 @@
// //
// ASImageContainerProtocolCategories.m // ASImageContainerProtocolCategories.mm
// Texture // Texture
// //
// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. // Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.

View File

@ -1,5 +1,5 @@
// //
// ASMutableAttributedStringBuilder.m // ASMutableAttributedStringBuilder.mm
// Texture // Texture
// //
// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. // Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.

View File

@ -1,5 +1,5 @@
// //
// ASObjectDescriptionHelpers.m // ASObjectDescriptionHelpers.mm
// Texture // Texture
// //
// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. // Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.

View File

@ -1,5 +1,5 @@
// //
// ASPINRemoteImageDownloader.m // ASPINRemoteImageDownloader.mm
// Texture // Texture
// //
// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. // Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.

View File

@ -1,5 +1,5 @@
// //
// ASPageTable.m // ASPageTable.mm
// Texture // Texture
// //
// Copyright (c) Pinterest, Inc. All rights reserved. // Copyright (c) Pinterest, Inc. All rights reserved.

View File

@ -1,5 +1,5 @@
// //
// ASPhotosFrameworkImageRequest.m // ASPhotosFrameworkImageRequest.mm
// Texture // Texture
// //
// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. // Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.

View File

@ -1,5 +1,5 @@
// //
// ASRecursiveUnfairLock.m // ASRecursiveUnfairLock.mm
// Texture // Texture
// //
// Copyright (c) Pinterest, Inc. All rights reserved. // Copyright (c) Pinterest, Inc. All rights reserved.

View File

@ -1,5 +1,5 @@
// //
// ASScrollDirection.m // ASScrollDirection.mm
// Texture // Texture
// //
// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. // Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.

View File

@ -1,5 +1,5 @@
// //
// ASTableLayoutController.m // ASTableLayoutController.mm
// Texture // Texture
// //
// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. // Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.

View File

@ -1,5 +1,5 @@
// //
// ASTraceEvent.m // ASTraceEvent.mm
// Texture // Texture
// //
// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. // Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.

View File

@ -1,5 +1,5 @@
// //
// ASTraitCollection.m // ASTraitCollection.mm
// Texture // Texture
// //
// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. // Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.

View File

@ -1,5 +1,5 @@
// //
// ASWeakProxy.m // ASWeakProxy.mm
// Texture // Texture
// //
// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. // Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.

View File

@ -1,5 +1,5 @@
// //
// ASWeakSet.m // ASWeakSet.mm
// Texture // Texture
// //
// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. // Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.

View File

@ -1,11 +0,0 @@
//
// CoreGraphics+ASConvenience.m
// Texture
//
// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
// Changes after 4/13/2017 are: Copyright (c) Pinterest, Inc. All rights reserved.
// Licensed under Apache 2.0: http://www.apache.org/licenses/LICENSE-2.0
//
#import <AsyncDisplayKit/CoreGraphics+ASConvenience.h>

View File

@ -1,5 +1,5 @@
// //
// NSIndexSet+ASHelpers.m // NSIndexSet+ASHelpers.mm
// Texture // Texture
// //
// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. // Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.

View File

@ -1,5 +1,5 @@
// //
// NSMutableAttributedString+TextKitAdditions.m // NSMutableAttributedString+TextKitAdditions.mm
// Texture // Texture
// //
// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. // Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.

View File

@ -1,5 +1,5 @@
// //
// _ASAsyncTransactionContainer.m // _ASAsyncTransactionContainer.mm
// Texture // Texture
// //
// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. // Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.

View File

@ -1,5 +1,5 @@
// //
// _ASAsyncTransactionGroup.m // _ASAsyncTransactionGroup.mm
// Texture // Texture
// //
// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. // Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.

View File

@ -1,5 +1,5 @@
// //
// UICollectionViewLayout+ASConvenience.m // UICollectionViewLayout+ASConvenience.mm
// Texture // Texture
// //
// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. // Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.

View File

@ -1,5 +1,5 @@
// //
// _ASCollectionReusableView.m // _ASCollectionReusableView.mm
// Texture // Texture
// //
// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. // Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
@ -7,7 +7,8 @@
// Licensed under Apache 2.0: http://www.apache.org/licenses/LICENSE-2.0 // Licensed under Apache 2.0: http://www.apache.org/licenses/LICENSE-2.0
// //
#import "_ASCollectionReusableView.h" #import <AsyncDisplayKit/_ASCollectionReusableView.h>
#import <AsyncDisplayKit/ASCellNode+Internal.h> #import <AsyncDisplayKit/ASCellNode+Internal.h>
#import <AsyncDisplayKit/ASCollectionElement.h> #import <AsyncDisplayKit/ASCollectionElement.h>

View File

@ -1,5 +1,5 @@
// //
// _ASCollectionViewCell.m // _ASCollectionViewCell.mm
// Texture // Texture
// //
// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. // Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
@ -7,7 +7,8 @@
// Licensed under Apache 2.0: http://www.apache.org/licenses/LICENSE-2.0 // Licensed under Apache 2.0: http://www.apache.org/licenses/LICENSE-2.0
// //
#import "_ASCollectionViewCell.h" #import <AsyncDisplayKit/_ASCollectionViewCell.h>
#import <AsyncDisplayKit/ASCellNode+Internal.h> #import <AsyncDisplayKit/ASCellNode+Internal.h>
#import <AsyncDisplayKit/ASCollectionElement.h> #import <AsyncDisplayKit/ASCollectionElement.h>
#import <AsyncDisplayKit/ASInternalHelpers.h> #import <AsyncDisplayKit/ASInternalHelpers.h>

View File

@ -1,5 +1,5 @@
// //
// IGListAdapter+AsyncDisplayKit.m // IGListAdapter+AsyncDisplayKit.mm
// Texture // Texture
// //
// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. // Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
@ -11,9 +11,9 @@
#if AS_IG_LIST_KIT #if AS_IG_LIST_KIT
#import "IGListAdapter+AsyncDisplayKit.h" #import <AsyncDisplayKit/IGListAdapter+AsyncDisplayKit.h>
#import "ASIGListAdapterBasedDataSource.h" #import <AsyncDisplayKit/ASIGListAdapterBasedDataSource.h>
#import "ASAssert.h" #import <AsyncDisplayKit/ASAssert.h>
#import <objc/runtime.h> #import <objc/runtime.h>
@implementation IGListAdapter (AsyncDisplayKit) @implementation IGListAdapter (AsyncDisplayKit)

View File

@ -1,5 +1,5 @@
// //
// ASAsciiArtBoxCreator.m // ASAsciiArtBoxCreator.mm
// Texture // Texture
// //
// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. // Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
@ -10,7 +10,7 @@
#import <AsyncDisplayKit/ASAsciiArtBoxCreator.h> #import <AsyncDisplayKit/ASAsciiArtBoxCreator.h>
#import <CoreGraphics/CoreGraphics.h> #import <CoreGraphics/CoreGraphics.h>
#import <tgmath.h> #import <cmath>
static const NSUInteger kDebugBoxPadding = 2; static const NSUInteger kDebugBoxPadding = 2;

View File

@ -1,5 +1,5 @@
// //
// ASBatchFetching.m // ASBatchFetching.mm
// Texture // Texture
// //
// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. // Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.

View File

@ -1,5 +1,5 @@
// //
// ASCollectionLayoutDefines.m // ASCollectionLayoutDefines.mm
// Texture // Texture
// //
// Copyright (c) Pinterest, Inc. All rights reserved. // Copyright (c) Pinterest, Inc. All rights reserved.

View File

@ -1,5 +1,5 @@
// //
// ASCollectionViewFlowLayoutInspector.m // ASCollectionViewFlowLayoutInspector.mm
// Texture // Texture
// //
// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. // Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.

View File

@ -1,5 +1,5 @@
// //
// ASControlTargetAction.m // ASControlTargetAction.mm
// Texture // Texture
// //
// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. // Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.

View File

@ -1,5 +1,5 @@
// //
// ASDefaultPlayButton.m // ASDefaultPlayButton.mm
// Texture // Texture
// //
// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. // Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.

View File

@ -1,5 +1,5 @@
// //
// ASDefaultPlaybackButton.m // ASDefaultPlaybackButton.mm
// Texture // Texture
// //
// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. // Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.

View File

@ -1,5 +1,5 @@
// //
// ASDispatch.m // ASDispatch.mm
// Texture // Texture
// //
// Copyright (c) Pinterest, Inc. All rights reserved. // Copyright (c) Pinterest, Inc. All rights reserved.
@ -7,6 +7,8 @@
// //
#import <AsyncDisplayKit/ASDispatch.h> #import <AsyncDisplayKit/ASDispatch.h>
// Prefer C atomics in this file because ObjC blocks can't capture C++ atomics well.
#import <stdatomic.h> #import <stdatomic.h>
/** /**

View File

@ -1,5 +1,5 @@
// //
// ASDisplayNodeCornerLayerDelegate.m // ASDisplayNodeCornerLayerDelegate.mm
// Texture // Texture
// //
// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. // Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.

View File

@ -1,5 +1,5 @@
// //
// ASDisplayNodeTipState.m // ASDisplayNodeTipState.mm
// Texture // Texture
// //
// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. // Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.

View File

@ -1,5 +1,5 @@
// //
// ASIGListAdapterBasedDataSource.m // ASIGListAdapterBasedDataSource.mm
// Texture // Texture
// //
// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. // Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.

View File

@ -1,5 +1,5 @@
// //
// ASImageNode+CGExtras.m // ASImageNode+CGExtras.mm
// Texture // Texture
// //
// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. // Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
@ -9,7 +9,7 @@
#import <AsyncDisplayKit/ASImageNode+CGExtras.h> #import <AsyncDisplayKit/ASImageNode+CGExtras.h>
#import <tgmath.h> #import <cmath>
// TODO rewrite these to be closer to the intended use -- take UIViewContentMode as param, CGRect destinationBounds, CGSize sourceSize. // TODO rewrite these to be closer to the intended use -- take UIViewContentMode as param, CGRect destinationBounds, CGSize sourceSize.
static CGSize _ASSizeFillWithAspectRatio(CGFloat aspectRatio, CGSize constraints); static CGSize _ASSizeFillWithAspectRatio(CGFloat aspectRatio, CGSize constraints);

View File

@ -1,5 +1,5 @@
// //
// ASInternalHelpers.m // ASInternalHelpers.mm
// Texture // Texture
// //
// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. // Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
@ -12,7 +12,7 @@
#import <UIKit/UIKit.h> #import <UIKit/UIKit.h>
#import <objc/runtime.h> #import <objc/runtime.h>
#import <tgmath.h> #import <cmath>
#import <AsyncDisplayKit/ASConfigurationInternal.h> #import <AsyncDisplayKit/ASConfigurationInternal.h>
#import <AsyncDisplayKit/ASRunLoopQueue.h> #import <AsyncDisplayKit/ASRunLoopQueue.h>

View File

@ -1,5 +1,5 @@
// //
// ASLayerBackingTipProvider.m // ASLayerBackingTipProvider.mm
// Texture // Texture
// //
// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. // Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.

View File

@ -1,5 +1,5 @@
// //
// ASMutableElementMap.m // ASMutableElementMap.mm
// Texture // Texture
// //
// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. // Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
@ -7,7 +7,7 @@
// Licensed under Apache 2.0: http://www.apache.org/licenses/LICENSE-2.0 // Licensed under Apache 2.0: http://www.apache.org/licenses/LICENSE-2.0
// //
#import "ASMutableElementMap.h" #import <AsyncDisplayKit/ASMutableElementMap.h>
#import <AsyncDisplayKit/ASCollectionElement.h> #import <AsyncDisplayKit/ASCollectionElement.h>
#import <AsyncDisplayKit/ASDataController.h> #import <AsyncDisplayKit/ASDataController.h>

View File

@ -1,5 +1,5 @@
// //
// ASResponderChainEnumerator.m // ASResponderChainEnumerator.mm
// Texture // Texture
// //
// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. // Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
@ -7,7 +7,7 @@
// Licensed under Apache 2.0: http://www.apache.org/licenses/LICENSE-2.0 // Licensed under Apache 2.0: http://www.apache.org/licenses/LICENSE-2.0
// //
#import "ASResponderChainEnumerator.h" #import <AsyncDisplayKit/ASResponderChainEnumerator.h>
#import <AsyncDisplayKit/ASAssert.h> #import <AsyncDisplayKit/ASAssert.h>
@implementation ASResponderChainEnumerator { @implementation ASResponderChainEnumerator {

View File

@ -1,5 +1,5 @@
// //
// ASSection.m // ASSection.mm
// Texture // Texture
// //
// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. // Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.

View File

@ -1,5 +1,5 @@
// //
// ASTip.m // ASTip.mm
// Texture // Texture
// //
// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. // Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
@ -7,7 +7,7 @@
// Licensed under Apache 2.0: http://www.apache.org/licenses/LICENSE-2.0 // Licensed under Apache 2.0: http://www.apache.org/licenses/LICENSE-2.0
// //
#import "ASTip.h" #import <AsyncDisplayKit/ASTip.h>
#if AS_ENABLE_TIPS #if AS_ENABLE_TIPS

View File

@ -1,5 +1,5 @@
// //
// ASTipNode.m // ASTipNode.mm
// Texture // Texture
// //
// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. // Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.

View File

@ -1,5 +1,5 @@
// //
// ASTipProvider.m // ASTipProvider.mm
// Texture // Texture
// //
// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. // Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
@ -7,7 +7,7 @@
// Licensed under Apache 2.0: http://www.apache.org/licenses/LICENSE-2.0 // Licensed under Apache 2.0: http://www.apache.org/licenses/LICENSE-2.0
// //
#import "ASTipProvider.h" #import <AsyncDisplayKit/ASTipProvider.h>
#if AS_ENABLE_TIPS #if AS_ENABLE_TIPS

View File

@ -1,5 +1,5 @@
// //
// ASTipsController.m // ASTipsController.mm
// Texture // Texture
// //
// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. // Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
@ -7,7 +7,7 @@
// Licensed under Apache 2.0: http://www.apache.org/licenses/LICENSE-2.0 // Licensed under Apache 2.0: http://www.apache.org/licenses/LICENSE-2.0
// //
#import "ASTipsController.h" #import <AsyncDisplayKit/ASTipsController.h>
#if AS_ENABLE_TIPS #if AS_ENABLE_TIPS

View File

@ -1,5 +1,5 @@
// //
// ASTipsWindow.m // ASTipsWindow.mm
// Texture // Texture
// //
// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. // Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
@ -7,7 +7,7 @@
// Licensed under Apache 2.0: http://www.apache.org/licenses/LICENSE-2.0 // Licensed under Apache 2.0: http://www.apache.org/licenses/LICENSE-2.0
// //
#import "ASTipsWindow.h" #import <AsyncDisplayKit/ASTipsWindow.h>
#if AS_ENABLE_TIPS #if AS_ENABLE_TIPS
#import <AsyncDisplayKit/ASDisplayNodeTipState.h> #import <AsyncDisplayKit/ASDisplayNodeTipState.h>

View File

@ -1,5 +1,5 @@
// //
// ASTwoDimensionalArrayUtils.m // ASTwoDimensionalArrayUtils.mm
// Texture // Texture
// //
// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. // Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.

View File

@ -1,5 +1,5 @@
// //
// ASWeakMap.m // ASWeakMap.mm
// Texture // Texture
// //
// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. // Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.

View File

@ -1,5 +1,5 @@
// //
// ASTextDebugOption.m // ASTextDebugOption.mm
// Texture // Texture
// //
// Copyright (c) Pinterest, Inc. All rights reserved. // Copyright (c) Pinterest, Inc. All rights reserved.

View File

@ -1,5 +1,5 @@
// //
// ASTextInput.m // ASTextInput.mm
// Texture // Texture
// //
// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. // Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.

View File

@ -1,5 +1,5 @@
// //
// ASTextLayout.m // ASTextLayout.mm
// Texture // Texture
// //
// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. // Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.

View File

@ -1,5 +1,5 @@
// //
// ASTextLine.m // ASTextLine.mm
// Texture // Texture
// //
// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. // Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.

View File

@ -1,5 +1,5 @@
// //
// ASTextAttribute.m // ASTextAttribute.mm
// Texture // Texture
// //
// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. // Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.

View File

@ -1,5 +1,5 @@
// //
// ASTextRunDelegate.m // ASTextRunDelegate.mm
// Texture // Texture
// //
// Copyright (c) Pinterest, Inc. All rights reserved. // Copyright (c) Pinterest, Inc. All rights reserved.

View File

@ -1,5 +1,5 @@
// //
// ASTextUtilities.m // ASTextUtilities.mm
// Texture // Texture
// //
// Copyright (c) Pinterest, Inc. All rights reserved. // Copyright (c) Pinterest, Inc. All rights reserved.

View File

@ -1,5 +1,5 @@
// //
// NSAttributedString+ASText.m // NSAttributedString+ASText.mm
// Texture // Texture
// //
// Copyright (c) Pinterest, Inc. All rights reserved. // Copyright (c) Pinterest, Inc. All rights reserved.

View File

@ -1,5 +1,5 @@
// //
// NSParagraphStyle+ASText.m // NSParagraphStyle+ASText.mm
// Texture // Texture
// //
// Copyright (c) Pinterest, Inc. All rights reserved. // Copyright (c) Pinterest, Inc. All rights reserved.

View File

@ -1,5 +1,5 @@
// //
// _ASCollectionGalleryLayoutInfo.m // _ASCollectionGalleryLayoutInfo.mm
// Texture // Texture
// //
// Copyright (c) Pinterest, Inc. All rights reserved. // Copyright (c) Pinterest, Inc. All rights reserved.

View File

@ -1,5 +1,5 @@
// //
// ASLayoutManager.m // ASLayoutManager.mm
// Texture // Texture
// //
// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. // Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.

View File

@ -1,5 +1,5 @@
// //
// ASTextKitCoreTextAdditions.m // ASTextKitCoreTextAdditions.mm
// Texture // Texture
// //
// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. // Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.

View File

@ -1,5 +1,5 @@
// //
// ASTextKitEntityAttribute.m // ASTextKitEntityAttribute.mm
// Texture // Texture
// //
// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. // Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.

View File

@ -1,5 +1,5 @@
// //
// ASTextNodeWordKerner.m // ASTextNodeWordKerner.mm
// Texture // Texture
// //
// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. // Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.

View File

@ -1,5 +1,5 @@
// //
// UIImage+ASConvenience.m // UIImage+ASConvenience.mm
// Texture // Texture
// //
// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. // Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.

View File

@ -1,5 +1,5 @@
// //
// _ASTransitionContext.m // _ASTransitionContext.mm
// Texture // Texture
// //
// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. // Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.

View File

@ -1,5 +1,5 @@
// //
// ASControlNode+tvOS.m // ASControlNode+tvOS.mm
// Texture // Texture
// //
// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. // Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.

View File

@ -1,5 +1,5 @@
// //
// ASImageNode+tvOS.m // ASImageNode+tvOS.mm
// Texture // Texture
// //
// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. // Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
@ -12,6 +12,7 @@
#import <AsyncDisplayKit/ASImageNode.h> #import <AsyncDisplayKit/ASImageNode.h>
#import <AsyncDisplayKit/ASDisplayNode+Subclasses.h> #import <AsyncDisplayKit/ASDisplayNode+Subclasses.h>
// TODO: Remove this we don't need to link GLKit just to convert degrees to radians.
#import <GLKit/GLKit.h> #import <GLKit/GLKit.h>
#import <tgmath.h> #import <tgmath.h>

View File

@ -1,5 +1,5 @@
// //
// ASAbsoluteLayoutSpecSnapshotTests.m // ASAbsoluteLayoutSpecSnapshotTests.mm
// Texture // Texture
// //
// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. // Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.

View File

@ -1,5 +1,5 @@
// //
// ASBasicImageDownloaderContextTests.m // ASBasicImageDownloaderContextTests.mm
// Texture // Texture
// //
// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. // Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.

View File

@ -1,5 +1,5 @@
// //
// ASBasicImageDownloaderTests.m // ASBasicImageDownloaderTests.mm
// Texture // Texture
// //
// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. // Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.

View File

@ -1,5 +1,5 @@
// //
// ASBatchFetchingTests.m // ASBatchFetchingTests.mm
// Texture // Texture
// //
// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. // Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.

Some files were not shown because too many files have changed in this diff Show More