Skip to content
This repository was archived by the owner on Feb 2, 2023. It is now read-only.

Commit 7dff6ff

Browse files
author
Scott Goodson
committed
Re-enable program flow instrumentation for Coveralls. More null-specifiers.
This does cause tests to crash at the end, which unfortunately seems like a known Xcode 7 bug.
1 parent 88bfd3e commit 7dff6ff

5 files changed

Lines changed: 22 additions & 24 deletions

File tree

AsyncDisplayKit-Prefix.gcda

-656 Bytes
Binary file not shown.

AsyncDisplayKit.xcodeproj/project.pbxproj

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1934,7 +1934,7 @@
19341934
CLANG_WARN_UNREACHABLE_CODE = YES;
19351935
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
19361936
ENABLE_STRICT_OBJC_MSGSEND = YES;
1937-
GCC_INSTRUMENT_PROGRAM_FLOW_ARCS = NO;
1937+
GCC_INSTRUMENT_PROGRAM_FLOW_ARCS = YES;
19381938
GCC_PREPROCESSOR_DEFINITIONS = (
19391939
"DEBUG=1",
19401940
"$(inherited)",
@@ -1955,7 +1955,7 @@
19551955
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
19561956
COPY_PHASE_STRIP = NO;
19571957
ENABLE_STRICT_OBJC_MSGSEND = YES;
1958-
GCC_INSTRUMENT_PROGRAM_FLOW_ARCS = NO;
1958+
GCC_INSTRUMENT_PROGRAM_FLOW_ARCS = YES;
19591959
INFOPLIST_FILE = AsyncDisplayKitTestHost/Info.plist;
19601960
IPHONEOS_DEPLOYMENT_TARGET = 7.0;
19611961
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
@@ -2043,7 +2043,7 @@
20432043
APPLICATION_EXTENSION_API_ONLY = YES;
20442044
DSTROOT = /tmp/AsyncDisplayKit.dst;
20452045
GCC_INPUT_FILETYPE = automatic;
2046-
GCC_INSTRUMENT_PROGRAM_FLOW_ARCS = NO;
2046+
GCC_INSTRUMENT_PROGRAM_FLOW_ARCS = YES;
20472047
GCC_PRECOMPILE_PREFIX_HEADER = YES;
20482048
GCC_PREFIX_HEADER = "AsyncDisplayKit/AsyncDisplayKit-Prefix.pch";
20492049
GCC_TREAT_WARNINGS_AS_ERRORS = YES;
@@ -2062,7 +2062,7 @@
20622062
APPLICATION_EXTENSION_API_ONLY = YES;
20632063
DSTROOT = /tmp/AsyncDisplayKit.dst;
20642064
GCC_INPUT_FILETYPE = automatic;
2065-
GCC_INSTRUMENT_PROGRAM_FLOW_ARCS = NO;
2065+
GCC_INSTRUMENT_PROGRAM_FLOW_ARCS = YES;
20662066
GCC_PRECOMPILE_PREFIX_HEADER = YES;
20672067
GCC_PREFIX_HEADER = "AsyncDisplayKit/AsyncDisplayKit-Prefix.pch";
20682068
GCC_TREAT_WARNINGS_AS_ERRORS = YES;
@@ -2085,7 +2085,7 @@
20852085
"$(inherited)",
20862086
"$(DEVELOPER_FRAMEWORKS_DIR)",
20872087
);
2088-
GCC_INSTRUMENT_PROGRAM_FLOW_ARCS = NO;
2088+
GCC_INSTRUMENT_PROGRAM_FLOW_ARCS = YES;
20892089
GCC_PRECOMPILE_PREFIX_HEADER = YES;
20902090
GCC_PREFIX_HEADER = "AsyncDisplayKit/AsyncDisplayKit-Prefix.pch";
20912091
GCC_PREPROCESSOR_DEFINITIONS = (
@@ -2113,7 +2113,7 @@
21132113
"$(inherited)",
21142114
"$(DEVELOPER_FRAMEWORKS_DIR)",
21152115
);
2116-
GCC_INSTRUMENT_PROGRAM_FLOW_ARCS = NO;
2116+
GCC_INSTRUMENT_PROGRAM_FLOW_ARCS = YES;
21172117
GCC_PRECOMPILE_PREFIX_HEADER = YES;
21182118
GCC_PREFIX_HEADER = "AsyncDisplayKit/AsyncDisplayKit-Prefix.pch";
21192119
GCC_PREPROCESSOR_DEFINITIONS = (
@@ -2142,7 +2142,7 @@
21422142
DYLIB_CURRENT_VERSION = 1;
21432143
DYLIB_INSTALL_NAME_BASE = "@rpath";
21442144
ENABLE_STRICT_OBJC_MSGSEND = YES;
2145-
GCC_INSTRUMENT_PROGRAM_FLOW_ARCS = NO;
2145+
GCC_INSTRUMENT_PROGRAM_FLOW_ARCS = YES;
21462146
GCC_NO_COMMON_BLOCKS = YES;
21472147
GCC_PREPROCESSOR_DEFINITIONS = (
21482148
"DEBUG=1",
@@ -2175,7 +2175,7 @@
21752175
DYLIB_CURRENT_VERSION = 1;
21762176
DYLIB_INSTALL_NAME_BASE = "@rpath";
21772177
ENABLE_STRICT_OBJC_MSGSEND = YES;
2178-
GCC_INSTRUMENT_PROGRAM_FLOW_ARCS = NO;
2178+
GCC_INSTRUMENT_PROGRAM_FLOW_ARCS = YES;
21792179
GCC_NO_COMMON_BLOCKS = YES;
21802180
INFOPLIST_FILE = "$(SRCROOT)/AsyncDisplayKit-iOS/Info.plist";
21812181
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";

AsyncDisplayKit/ASDisplayNode.h

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
#import <AsyncDisplayKit/ASAsciiArtBoxCreator.h>
1616
#import <AsyncDisplayKit/ASLayoutable.h>
1717

18-
NS_ASSUME_NONNULL_BEGIN
19-
2018
@class ASDisplayNode;
2119

2220
/**
@@ -37,7 +35,7 @@ typedef CALayer * _Nonnull(^ASDisplayNodeLayerBlock)();
3735
/**
3836
* ASDisplayNode loaded callback block. This block is called BEFORE the -didLoad method and is always called on the main thread.
3937
*/
40-
typedef void (^ASDisplayNodeDidLoadBlock)(ASDisplayNode *node);
38+
typedef void (^ASDisplayNodeDidLoadBlock)(ASDisplayNode * _Nonnull node);
4139

4240
/**
4341
Interface state is available on ASDisplayNode and ASViewController, and
@@ -86,6 +84,7 @@ typedef NS_OPTIONS(NSUInteger, ASInterfaceState)
8684
*
8785
*/
8886

87+
NS_ASSUME_NONNULL_BEGIN
8988
@interface ASDisplayNode : ASDealloc2MainObject <ASLayoutable>
9089

9190

@@ -195,7 +194,7 @@ typedef NS_OPTIONS(NSUInteger, ASInterfaceState)
195194
* @warning The first access to it must be on the main thread, and should only be used on the main thread thereafter as
196195
* well.
197196
*/
198-
@property (nonatomic, readonly, retain) CALayer *layer;
197+
@property (nonatomic, readonly, retain) CALayer * _Nonnull layer;
199198

200199
/**
201200
* @abstract Returns the Interface State of the node.
@@ -568,7 +567,7 @@ typedef NS_OPTIONS(NSUInteger, ASInterfaceState)
568567

569568
@end
570569

571-
570+
NS_ASSUME_NONNULL_END
572571
/**
573572
* ## UIView bridge
574573
*
@@ -599,7 +598,7 @@ typedef NS_OPTIONS(NSUInteger, ASInterfaceState)
599598
*/
600599
- (void)setNeedsLayout;
601600

602-
@property (atomic, retain) id contents; // default=nil
601+
@property (atomic, retain, nullable) id contents; // default=nil
603602
@property (atomic, assign) BOOL clipsToBounds; // default==NO
604603
@property (atomic, getter=isOpaque) BOOL opaque; // default==YES
605604

@@ -644,12 +643,12 @@ typedef NS_OPTIONS(NSUInteger, ASInterfaceState)
644643

645644
@property (atomic, assign, getter=isUserInteractionEnabled) BOOL userInteractionEnabled; // default=YES (NO for layer-backed nodes)
646645
@property (atomic, assign, getter=isExclusiveTouch) BOOL exclusiveTouch; // default=NO
647-
@property (atomic, assign) CGColorRef shadowColor; // default=opaque rgb black
646+
@property (atomic, assign, nullable) CGColorRef shadowColor; // default=opaque rgb black
648647
@property (atomic, assign) CGFloat shadowOpacity; // default=0.0
649648
@property (atomic, assign) CGSize shadowOffset; // default=(0, -3)
650649
@property (atomic, assign) CGFloat shadowRadius; // default=3
651650
@property (atomic, assign) CGFloat borderWidth; // default=0
652-
@property (atomic, assign) CGColorRef borderColor; // default=opaque rgb black
651+
@property (atomic, assign, nullable) CGColorRef borderColor; // default=opaque rgb black
653652

654653
// UIResponder methods
655654
// By default these fall through to the underlying view, but can be overridden.
@@ -658,7 +657,7 @@ typedef NS_OPTIONS(NSUInteger, ASInterfaceState)
658657
- (BOOL)canResignFirstResponder; // default==YES
659658
- (BOOL)resignFirstResponder; // default==NO (no-op)
660659
- (BOOL)isFirstResponder;
661-
- (BOOL)canPerformAction:(SEL)action withSender:(id)sender;
660+
- (BOOL)canPerformAction:(nonnull SEL)action withSender:(nonnull id)sender;
662661

663662
// Accessibility support
664663
@property (atomic, assign) BOOL isAccessibilityElement;
@@ -691,7 +690,7 @@ typedef NS_OPTIONS(NSUInteger, ASInterfaceState)
691690
*
692691
* @param node The node to be added.
693692
*/
694-
- (void)addSubnode:(ASDisplayNode *)node;
693+
- (void)addSubnode:(nonnull ASDisplayNode *)node;
695694
@end
696695

697696
/** CALayer(AsyncDisplayKit) defines convenience method for adding sub-ASDisplayNode to a CALayer. */
@@ -701,7 +700,7 @@ typedef NS_OPTIONS(NSUInteger, ASInterfaceState)
701700
*
702701
* @param node The node to be added.
703702
*/
704-
- (void)addSubnode:(ASDisplayNode *)node;
703+
- (void)addSubnode:(nonnull ASDisplayNode *)node;
705704
@end
706705

707706

@@ -712,5 +711,3 @@ typedef NS_OPTIONS(NSUInteger, ASInterfaceState)
712711
@property (nonatomic, assign) BOOL placeholderFadesOut ASDISPLAYNODE_DEPRECATED;
713712

714713
@end
715-
716-
NS_ASSUME_NONNULL_END

AsyncDisplayKit/ASEditableTextNode.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ NS_ASSUME_NONNULL_BEGIN
3030
@property (nonatomic, readonly, strong) UITextView *textView;
3131

3232
//! @abstract The attributes to apply to new text being entered by the user.
33-
@property (nonatomic, readwrite, strong) NSDictionary<NSString *, id> *typingAttributes;
33+
@property (nonatomic, readwrite, strong, nullable) NSDictionary<NSString *, id> *typingAttributes;
3434

3535
//! @abstract The range of text currently selected. If length is zero, the range is the cursor location.
3636
@property (nonatomic, readwrite, assign) NSRange selectedRange;
@@ -47,14 +47,14 @@ NS_ASSUME_NONNULL_BEGIN
4747
@abstract The styled placeholder text displayed by the text node while no text is entered
4848
@discussion The placeholder is displayed when the user has not entered any text and the keyboard is not visible.
4949
*/
50-
@property (nonatomic, readwrite, strong) NSAttributedString *attributedPlaceholderText;
50+
@property (nonatomic, readwrite, strong, nullable) NSAttributedString *attributedPlaceholderText;
5151

5252
#pragma mark - Modifying User Text
5353
/**
5454
@abstract The styled text displayed by the receiver.
5555
@discussion When the placeholder is displayed (as indicated by -isDisplayingPlaceholder), this value is nil. Otherwise, this value is the attributed text the user has entered. This value can be modified regardless of whether the receiver is the first responder (and thus, editing) or not. Changing this value from nil to non-nil will result in the placeholder being hidden, and the new value being displayed.
5656
*/
57-
@property (nonatomic, readwrite, copy) NSAttributedString *attributedText;
57+
@property (nonatomic, readwrite, copy, nullable) NSAttributedString *attributedText;
5858

5959
#pragma mark - Managing The Keyboard
6060
//! @abstract The text input mode used by the receiver's keyboard, if it is visible. This value is undefined if the receiver is not the first responder.

AsyncDisplayKit/Details/ASDataController.mm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#import "ASMultidimensionalArrayUtils.h"
1818
#import "ASInternalHelpers.h"
1919
#import "ASLayout.h"
20+
#import "ASFlowLayoutController.h"
2021

2122
//#define LOG(...) NSLog(__VA_ARGS__)
2223
#define LOG(...)

0 commit comments

Comments
 (0)