Skip to content

Commit b2c82d7

Browse files
committed
Revert "Rolling back CI to known version for now (#585)"
This reverts commit 40551c7.
1 parent a419b18 commit b2c82d7

File tree

7 files changed

+45
-26
lines changed

7 files changed

+45
-26
lines changed

Source/Details/_ASDisplayViewAccessiblity.mm

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ + (ASAccessibilityElement *)accessibilityElementWithContainer:(UIView *)containe
8484
accessibilityElement.accessibilityHint = node.accessibilityHint;
8585
accessibilityElement.accessibilityValue = node.accessibilityValue;
8686
accessibilityElement.accessibilityTraits = node.accessibilityTraits;
87-
if (@available(iOS 11, *)) {
87+
if (AS_AT_LEAST_IOS11) {
8888
[accessibilityElement setValue:node.accessibilityAttributedLabel forKey:@"accessibilityAttributedLabel"];
8989
[accessibilityElement setValue:node.accessibilityAttributedHint forKey:@"accessibilityAttributedHint"];
9090
[accessibilityElement setValue:node.accessibilityAttributedValue forKey:@"accessibilityAttributedValue"];

Source/Private/_ASPendingState.mm

+1-1
Original file line numberDiff line numberDiff line change
@@ -1216,7 +1216,7 @@ + (_ASPendingState *)pendingViewStateFromView:(UIView *)view
12161216
pendingState.accessibilityLabel = view.accessibilityLabel;
12171217
pendingState.accessibilityHint = view.accessibilityHint;
12181218
pendingState.accessibilityValue = view.accessibilityValue;
1219-
if (@available(iOS 11, *)) {
1219+
if (AS_AT_LEAST_IOS11) {
12201220
pendingState.accessibilityAttributedLabel = [view valueForKey: @"accessibilityAttributedLabel"];
12211221
pendingState.accessibilityAttributedHint = [view valueForKey: @"accessibilityAttributedHint"];
12221222
pendingState.accessibilityAttributedValue = [view valueForKey: @"accessibilityAttributedValue"];

Tests/ASDisplayNodeTests.mm

+10-10
Original file line numberDiff line numberDiff line change
@@ -353,11 +353,11 @@ - (void)checkValuesMatchDefaults:(ASDisplayNode *)node isLayerBacked:(BOOL)isLay
353353
XCTAssertEqual((id)nil, node.accessibilityLabel, @"default accessibilityLabel is broken %@", hasLoadedView);
354354
XCTAssertEqual((id)nil, node.accessibilityHint, @"default accessibilityHint is broken %@", hasLoadedView);
355355
XCTAssertEqual((id)nil, node.accessibilityValue, @"default accessibilityValue is broken %@", hasLoadedView);
356-
// if (AS_AT_LEAST_IOS11) {
357-
// XCTAssertEqual((id)nil, node.accessibilityAttributedLabel, @"default accessibilityAttributedLabel is broken %@", hasLoadedView);
358-
// XCTAssertEqual((id)nil, node.accessibilityAttributedHint, @"default accessibilityAttributedHint is broken %@", hasLoadedView);
359-
// XCTAssertEqual((id)nil, node.accessibilityAttributedValue, @"default accessibilityAttributedValue is broken %@", hasLoadedView);
360-
// }
356+
if (AS_AT_LEAST_IOS11) {
357+
XCTAssertEqual((id)nil, node.accessibilityAttributedLabel, @"default accessibilityAttributedLabel is broken %@", hasLoadedView);
358+
XCTAssertEqual((id)nil, node.accessibilityAttributedHint, @"default accessibilityAttributedHint is broken %@", hasLoadedView);
359+
XCTAssertEqual((id)nil, node.accessibilityAttributedValue, @"default accessibilityAttributedValue is broken %@", hasLoadedView);
360+
}
361361
XCTAssertEqual(UIAccessibilityTraitNone, node.accessibilityTraits, @"default accessibilityTraits is broken %@", hasLoadedView);
362362
XCTAssertTrue(CGRectEqualToRect(CGRectZero, node.accessibilityFrame), @"default accessibilityFrame is broken %@", hasLoadedView);
363363
XCTAssertEqual((id)nil, node.accessibilityLanguage, @"default accessibilityLanguage is broken %@", hasLoadedView);
@@ -458,11 +458,11 @@ - (void)checkValuesMatchSetValues:(ASDisplayNode *)node isLayerBacked:(BOOL)isLa
458458
XCTAssertEqualObjects(@"1 of 2", node.accessibilityValue, @"accessibilityValue broken %@", hasLoadedView);
459459

460460
// setting the accessibilityLabel, accessibilityHint and accessibilityValue is supposed to be bridged to the attributed versions
461-
// if (AS_AT_LEAST_IOS11) {
462-
// XCTAssertEqualObjects(@"Ship love", node.accessibilityAttributedLabel.string, @"accessibilityAttributedLabel is broken %@", hasLoadedView);
463-
// XCTAssertEqualObjects(@"Awesome things will happen", node.accessibilityAttributedHint.string, @"accessibilityAttributedHint is broken %@", hasLoadedView);
464-
// XCTAssertEqualObjects(@"1 of 2", node.accessibilityAttributedValue.string, @"accessibilityAttributedValue is broken %@", hasLoadedView);
465-
// }
461+
if (AS_AT_LEAST_IOS11) {
462+
XCTAssertEqualObjects(@"Ship love", node.accessibilityAttributedLabel.string, @"accessibilityAttributedLabel is broken %@", hasLoadedView);
463+
XCTAssertEqualObjects(@"Awesome things will happen", node.accessibilityAttributedHint.string, @"accessibilityAttributedHint is broken %@", hasLoadedView);
464+
XCTAssertEqualObjects(@"1 of 2", node.accessibilityAttributedValue.string, @"accessibilityAttributedValue is broken %@", hasLoadedView);
465+
}
466466
XCTAssertEqual(UIAccessibilityTraitSelected | UIAccessibilityTraitButton, node.accessibilityTraits, @"accessibilityTraits broken %@", hasLoadedView);
467467
XCTAssertTrue(CGRectEqualToRect(CGRectMake(1, 2, 3, 4), node.accessibilityFrame), @"accessibilityFrame broken %@", hasLoadedView);
468468
XCTAssertEqualObjects(@"mas", node.accessibilityLanguage, @"accessibilityLanguage broken %@", hasLoadedView);

build.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

3-
PLATFORM="platform=iOS Simulator,OS=10.2,name=iPhone 7"
4-
SDK="iphonesimulator11.0"
3+
PLATFORM="platform=iOS Simulator,name=iPhone 7"
4+
SDK="iphonesimulator"
55
DERIVED_DATA_PATH="~/ASDKDerivedData"
66

77

smoke-tests/Framework/Sample.xcodeproj/project.pbxproj

+24-5
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
050E7C7419D22E19004363C2 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 050E7C7319D22E19004363C2 /* AppDelegate.swift */; };
1111
050E7C7619D22E19004363C2 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 050E7C7519D22E19004363C2 /* ViewController.swift */; };
1212
05DDD8DB19D2336300013C30 /* [email protected] in Resources */ = {isa = PBXBuildFile; fileRef = 05DDD8DA19D2336300013C30 /* [email protected] */; };
13+
34566CAA1BC1204100715E6B /* AsyncDisplayKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 34566CA91BC1202A00715E6B /* AsyncDisplayKit.framework */; };
14+
34566CAB1BC1204100715E6B /* AsyncDisplayKit.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 34566CA91BC1202A00715E6B /* AsyncDisplayKit.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
1315
6C5053DB19EE266A00E385DE /* [email protected] in Resources */ = {isa = PBXBuildFile; fileRef = 6C5053D919EE266A00E385DE /* [email protected] */; };
1416
6C5053DC19EE266A00E385DE /* [email protected] in Resources */ = {isa = PBXBuildFile; fileRef = 6C5053DA19EE266A00E385DE /* [email protected] */; };
1517
/* End PBXBuildFile section */
@@ -36,6 +38,13 @@
3638
remoteGlobalIDString = 057D02BF1AC0A66700C7AC3C;
3739
remoteInfo = AsyncDisplayKitTestHost;
3840
};
41+
34566CA81BC1202A00715E6B /* PBXContainerItemProxy */ = {
42+
isa = PBXContainerItemProxy;
43+
containerPortal = 34566C9B1BC1202A00715E6B /* AsyncDisplayKit.xcodeproj */;
44+
proxyType = 2;
45+
remoteGlobalIDString = B35061DA1B010EDF0018CF92;
46+
remoteInfo = "AsyncDisplayKit-iOS";
47+
};
3948
34566CAC1BC1204100715E6B /* PBXContainerItemProxy */ = {
4049
isa = PBXContainerItemProxy;
4150
containerPortal = 34566C9B1BC1202A00715E6B /* AsyncDisplayKit.xcodeproj */;
@@ -52,6 +61,7 @@
5261
dstPath = "";
5362
dstSubfolderSpec = 10;
5463
files = (
64+
34566CAB1BC1204100715E6B /* AsyncDisplayKit.framework in Embed Frameworks */,
5565
);
5666
name = "Embed Frameworks";
5767
runOnlyForDeploymentPostprocessing = 0;
@@ -76,6 +86,7 @@
7686
isa = PBXFrameworksBuildPhase;
7787
buildActionMask = 2147483647;
7888
files = (
89+
34566CAA1BC1204100715E6B /* AsyncDisplayKit.framework in Frameworks */,
7990
);
8091
runOnlyForDeploymentPostprocessing = 0;
8192
};
@@ -139,6 +150,7 @@
139150
34566CA31BC1202A00715E6B /* libAsyncDisplayKit.a */,
140151
34566CA51BC1202A00715E6B /* AsyncDisplayKitTests.xctest */,
141152
34566CA71BC1202A00715E6B /* AsyncDisplayKitTestHost.app */,
153+
34566CA91BC1202A00715E6B /* AsyncDisplayKit.framework */,
142154
);
143155
name = Products;
144156
sourceTree = "<group>";
@@ -177,7 +189,7 @@
177189
TargetAttributes = {
178190
050E7C6D19D22E19004363C2 = {
179191
CreatedOnToolsVersion = 6.0.1;
180-
LastSwiftMigration = 0830;
192+
LastSwiftMigration = 0800;
181193
};
182194
};
183195
};
@@ -208,8 +220,8 @@
208220
/* Begin PBXReferenceProxy section */
209221
34566CA31BC1202A00715E6B /* libAsyncDisplayKit.a */ = {
210222
isa = PBXReferenceProxy;
211-
fileType = wrapper.framework;
212-
path = AsyncDisplayKit.framework;
223+
fileType = archive.ar;
224+
path = libAsyncDisplayKit.a;
213225
remoteRef = 34566CA21BC1202A00715E6B /* PBXContainerItemProxy */;
214226
sourceTree = BUILT_PRODUCTS_DIR;
215227
};
@@ -227,6 +239,13 @@
227239
remoteRef = 34566CA61BC1202A00715E6B /* PBXContainerItemProxy */;
228240
sourceTree = BUILT_PRODUCTS_DIR;
229241
};
242+
34566CA91BC1202A00715E6B /* AsyncDisplayKit.framework */ = {
243+
isa = PBXReferenceProxy;
244+
fileType = wrapper.framework;
245+
path = AsyncDisplayKit.framework;
246+
remoteRef = 34566CA81BC1202A00715E6B /* PBXContainerItemProxy */;
247+
sourceTree = BUILT_PRODUCTS_DIR;
248+
};
230249
/* End PBXReferenceProxy section */
231250

232251
/* Begin PBXResourcesBuildPhase section */
@@ -350,7 +369,7 @@
350369
PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.AsyncDisplayKit.$(PRODUCT_NAME:rfc1034identifier)";
351370
PRODUCT_NAME = "$(TARGET_NAME)";
352371
SWIFT_OBJC_BRIDGING_HEADER = "";
353-
SWIFT_VERSION = 3.0;
372+
SWIFT_VERSION = 2.3;
354373
};
355374
name = Debug;
356375
};
@@ -363,7 +382,7 @@
363382
PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.AsyncDisplayKit.$(PRODUCT_NAME:rfc1034identifier)";
364383
PRODUCT_NAME = "$(TARGET_NAME)";
365384
SWIFT_OBJC_BRIDGING_HEADER = "";
366-
SWIFT_VERSION = 3.0;
385+
SWIFT_VERSION = 2.3;
367386
};
368387
name = Release;
369388
};

smoke-tests/Framework/Sample/AppDelegate.swift

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
2222

2323
var window: UIWindow?
2424

25-
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
26-
let window = UIWindow(frame: UIScreen.main.bounds)
27-
window.backgroundColor = UIColor.white
25+
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
26+
let window = UIWindow(frame: UIScreen.mainScreen().bounds)
27+
window.backgroundColor = UIColor.whiteColor()
2828
window.rootViewController = ViewController(nibName: nil, bundle: nil)
2929
window.makeKeyAndVisible()
3030
self.window = window

smoke-tests/Framework/Sample/ViewController.swift

+4-4
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class ViewController: UIViewController, ASTableDataSource, ASTableDelegate {
2525

2626
// MARK: UIViewController.
2727

28-
override required init(nibName nibNameOrNil: String?, bundle nibBundleOrNil: Bundle?) {
28+
override required init(nibName nibNameOrNil: String?, bundle nibBundleOrNil: NSBundle?) {
2929
self.tableNode = ASTableNode()
3030

3131
super.init(nibName: nil, bundle: nil)
@@ -50,19 +50,19 @@ class ViewController: UIViewController, ASTableDataSource, ASTableDelegate {
5050

5151
// MARK: ASTableView data source and delegate.
5252

53-
func tableNode(_ tableNode: ASTableNode, nodeForRowAt indexPath: IndexPath) -> ASCellNode {
53+
func tableNode(tableNode: ASTableNode, nodeForRowAtIndexPath indexPath: NSIndexPath) -> ASCellNode {
5454
let patter = NSString(format: "[%ld.%ld] says hello!", indexPath.section, indexPath.row)
5555
let node = ASTextCellNode()
5656
node.text = patter as String
5757

5858
return node
5959
}
6060

61-
func numberOfSections(in tableNode: ASTableNode) -> Int {
61+
func numberOfSectionsInTableNode(tableNode: ASTableNode) -> Int {
6262
return 1
6363
}
6464

65-
func tableNode(_ tableNode: ASTableNode, numberOfRowsInSection section: Int) -> Int {
65+
func tableNode(tableNode: ASTableNode, numberOfRowsInSection section: Int) -> Int {
6666
return 20
6767
}
6868

0 commit comments

Comments
 (0)