Skip to content

Commit 23a2bbc

Browse files
Merge remote-tracking branch 'upstream/master'
2 parents 882cfb7 + de4e4db commit 23a2bbc

File tree

306 files changed

+14783
-3525
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

306 files changed

+14783
-3525
lines changed

AsyncDisplayKit-iOS/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<key>CFBundleExecutable</key>
88
<string>$(EXECUTABLE_NAME)</string>
99
<key>CFBundleIdentifier</key>
10-
<string>com.facebook.$(PRODUCT_NAME:rfc1034identifier)</string>
10+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
1111
<key>CFBundleInfoDictionaryVersion</key>
1212
<string>6.0</string>
1313
<key>CFBundleName</key>

AsyncDisplayKit.podspec

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,31 @@
11
Pod::Spec.new do |spec|
22
spec.name = 'AsyncDisplayKit'
3-
spec.version = '1.9.5'
3+
spec.version = '1.9.7'
44
spec.license = { :type => 'BSD' }
55
spec.homepage = 'http://asyncdisplaykit.org'
66
spec.authors = { 'Scott Goodson' => 'scottgoodson@gmail.com', 'Ryan Nystrom' => 'rnystrom@fb.com' }
77
spec.summary = 'Smooth asynchronous user interfaces for iOS apps.'
8-
spec.source = { :git => 'https://github.com/facebook/AsyncDisplayKit.git', :tag => '1.9.5' }
8+
spec.source = { :git => 'https://github.com/facebook/AsyncDisplayKit.git', :tag => '1.9.7' }
99

1010
spec.documentation_url = 'http://asyncdisplaykit.org/appledoc/'
1111

1212
spec.public_header_files = [
1313
'AsyncDisplayKit/*.h',
1414
'AsyncDisplayKit/Details/**/*.h',
1515
'AsyncDisplayKit/Layout/*.h',
16-
'Base/*.h'
16+
'Base/*.h',
17+
'AsyncDisplayKit/TextKit/ASTextNodeTypes.h'
1718
]
1819

1920
spec.source_files = [
2021
'AsyncDisplayKit/**/*.{h,m,mm}',
21-
'Base/*.{h,m}'
22+
'Base/*.{h,m}',
23+
24+
# Most TextKit components are not public because the C++ content
25+
# in the headers will cause build errors when using
26+
# `use_frameworks!` on 0.39.0 & Swift 2.1.
27+
# See https://github.com/facebook/AsyncDisplayKit/issues/1153
28+
'AsyncDisplayKit/TextKit/*.h',
2229
]
2330

2431
spec.frameworks = 'AssetsLibrary'
@@ -30,6 +37,9 @@ Pod::Spec.new do |spec|
3037
'AsyncDisplayKit/Details/ASDealloc2MainObject.h',
3138
'AsyncDisplayKit/Details/ASDealloc2MainObject.m',
3239
]
40+
41+
#Subspecs
42+
3343
spec.subspec 'ASDealloc2MainObject' do |mrr|
3444
mrr.requires_arc = false
3545
mrr.source_files = [
@@ -38,6 +48,15 @@ Pod::Spec.new do |spec|
3848
'AsyncDisplayKit/Details/ASDealloc2MainObject.m',
3949
]
4050
end
51+
52+
spec.subspec 'PINRemoteImage' do |pin|
53+
pin.xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) PIN_REMOTE_IMAGE=1' }
54+
pin.dependency 'PINRemoteImage/iOS', '>= 2'
55+
pin.dependency 'AsyncDisplayKit/ASDealloc2MainObject'
56+
end
57+
58+
# Include optional FLAnimatedImage module
59+
spec.default_subspec = 'PINRemoteImage'
4160

4261
spec.social_media_url = 'https://twitter.com/fbOpenSource'
4362
spec.library = 'c++'
@@ -47,4 +66,6 @@ Pod::Spec.new do |spec|
4766
}
4867

4968
spec.ios.deployment_target = '7.0'
69+
# tvOS not recognized by older versions of Cocoapods - add this only after tvOS support complete.
70+
# spec.tvos.deployment_target = '9.0'
5071
end

AsyncDisplayKit.xcodeproj/project.pbxproj

Lines changed: 238 additions & 92 deletions
Large diffs are not rendered by default.

AsyncDisplayKit.xcodeproj/xcshareddata/xcschemes/AsyncDisplayKit-iOS.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "0710"
3+
LastUpgradeVersion = "0720"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

AsyncDisplayKit.xcodeproj/xcshareddata/xcschemes/AsyncDisplayKit.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "0710"
3+
LastUpgradeVersion = "0720"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

AsyncDisplayKit/ASButtonNode.h

Lines changed: 67 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@
1111

1212
@interface ASButtonNode : ASControlNode
1313

14-
@property (nonatomic, readonly) ASTextNode *titleNode;
15-
@property (nonatomic, readonly) ASImageNode *imageNode;
14+
@property (nonatomic, readonly) ASTextNode * _Nonnull titleNode;
15+
@property (nonatomic, readonly) ASImageNode * _Nonnull imageNode;
16+
@property (nonatomic, readonly) ASImageNode * _Nonnull backgroundImageNode;
1617

1718
/**
1819
Spacing between image and title. Defaults to 8.0.
@@ -36,11 +37,71 @@
3637
*/
3738
@property (nonatomic, assign) ASVerticalAlignment contentVerticalAlignment;
3839

40+
/**
41+
* @discussion The insets used around the title and image node
42+
*/
43+
@property (nonatomic, assign) UIEdgeInsets contentEdgeInsets;
44+
45+
/**
46+
* Returns the styled title associated with the specified state.
47+
*
48+
* @param state The state that uses the styled title. The possible values are described in ASControlState.
49+
*
50+
* @return The title for the specified state.
51+
*/
52+
- (NSAttributedString * _Nullable)attributedTitleForState:(ASControlState)state;
53+
54+
/**
55+
* Sets the styled title to use for the specified state. This will reset styled title previously set with -setTitle:withFont:withColor:forState.
56+
*
57+
* @param title The styled text string to use for the title.
58+
* @param state The state that uses the specified title. The possible values are described in ASControlState.
59+
*/
60+
- (void)setAttributedTitle:(nullable NSAttributedString *)title forState:(ASControlState)state;
61+
62+
/**
63+
* Sets the title to use for the specified state. This will reset styled title previously set with -setAttributedTitle:forState.
64+
*
65+
* @param title The styled text string to use for the title.
66+
* @param font The font to use for the title.
67+
* @param color The color to use for the title.
68+
* @param state The state that uses the specified title. The possible values are described in ASControlState.
69+
*/
70+
- (void)setTitle:(nonnull NSString *)title withFont:(nullable UIFont *)font withColor:(nullable UIColor *)color forState:(ASControlState)state;
71+
72+
/**
73+
* Returns the image used for a button state.
74+
*
75+
* @param state The state that uses the image. Possible values are described in ASControlState.
76+
*
77+
* @return The image used for the specified state.
78+
*/
79+
- (UIImage * _Nullable)imageForState:(ASControlState)state;
80+
81+
/**
82+
* Sets the image to use for the specified state.
83+
*
84+
* @param image The image to use for the specified state.
85+
* @param state The state that uses the specified title. The values are described in ASControlState.
86+
*/
87+
- (void)setImage:(nullable UIImage *)image forState:(ASControlState)state;
88+
89+
/**
90+
* Sets the background image to use for the specified state.
91+
*
92+
* @param image The image to use for the specified state.
93+
* @param state The state that uses the specified title. The values are described in ASControlState.
94+
*/
95+
- (void)setBackgroundImage:(nullable UIImage *)image forState:(ASControlState)state;
3996

40-
- (NSAttributedString *)attributedTitleForState:(ASControlState)state;
41-
- (void)setAttributedTitle:(NSAttributedString *)title forState:(ASControlState)state;
4297

43-
- (UIImage *)imageForState:(ASControlState)state;
44-
- (void)setImage:(UIImage *)image forState:(ASControlState)state;
98+
/**
99+
* Returns the background image used for a button state.
100+
*
101+
* @param state The state that uses the image. Possible values are described in ASControlState.
102+
*
103+
* @return The background image used for the specified state.
104+
*/
105+
- (UIImage * _Nullable)backgroundImageForState:(ASControlState)state;
45106

46107
@end

0 commit comments

Comments
 (0)