Skip to content

Commit

Permalink
use iOS 13.0 and Xcode 11 on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
vovasty committed Oct 3, 2019
1 parent ee18b9c commit 0a86408
Show file tree
Hide file tree
Showing 56 changed files with 28 additions and 8 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/ci-master-only.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ on:

jobs:
cocoapods-lint:
env:
DEVELOPER_DIR: /Applications/Xcode_11.app/Contents/Developer
name: Verify that podspec lints
runs-on: macOS-10.14
runs-on: macOS-latest
steps:
- name: Checkout the Git repository
uses: actions/checkout@v1
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on: [push, pull_request]

jobs:
buildsh:
env:
DEVELOPER_DIR: /Applications/Xcode_11.app/Contents/Developer
strategy:
matrix:
mode: [tests, framework, life-without-cocoapods, carthage, examples-pt1, examples-pt2, examples-pt3, examples-pt4]
Expand All @@ -25,7 +27,7 @@ jobs:
- mode: examples-pt4
name: Build examples (examples-pt4)
name: ${{ matrix.name }}
runs-on: macOS-10.14
runs-on: macOS-latest
steps:
- name: Checkout the Git repository
uses: actions/checkout@v1
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/danger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,16 @@ on: [pull_request]

jobs:
buildsh:
env:
DEVELOPER_DIR: /Applications/Xcode_11.app/Contents/Developer
strategy:
matrix:
mode: [danger]
include:
- mode: danger
name: Run Danger
name: ${{ matrix.name }}
runs-on: macOS-10.14
runs-on: macOS-latest
steps:
- name: Checkout the Git repository
uses: actions/checkout@v1
Expand Down
6 changes: 6 additions & 0 deletions Tests/ASDisplayNodeAppearanceTests.mm
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ - (void)checkAppearanceMethodsCalledWithRootNodeInWindowLayerBacked:(BOOL)isLaye
{
// ASDisplayNode visibility does not change if modifying a hierarchy that is not in a window. So create one and add the superview to it.
UIWindow *window = [[UIWindow alloc] initWithFrame:CGRectZero];
[window makeKeyAndVisible];

DeclareNodeNamed(n);
DeclareViewNamed(superview);
Expand Down Expand Up @@ -154,6 +155,7 @@ - (void)checkManualAppearanceViewLoaded:(BOOL)isViewLoaded layerBacked:(BOOL)isL
{
// ASDisplayNode visibility does not change if modifying a hierarchy that is not in a window. So create one and add the superview to it.
UIWindow *window = [[UIWindow alloc] initWithFrame:CGRectZero];
[window makeKeyAndVisible];

DeclareNodeNamed(parent);
DeclareNodeNamed(a);
Expand Down Expand Up @@ -253,6 +255,7 @@ - (void)testSynchronousIntermediaryView
layerBackedNode.layerBacked = YES;

UIWindow *window = [[UIWindow alloc] initWithFrame:CGRectZero];
[window makeKeyAndVisible];
[parentSynchronousNode addSubnode:layerBackedNode];
[parentSynchronousNode addSubnode:viewBackedNode];

Expand Down Expand Up @@ -291,6 +294,7 @@ - (void)testSynchronousIntermediaryView
- (void)checkMoveAcrossHierarchyLayerBacked:(BOOL)isLayerBacked useManualCalls:(BOOL)useManualDisable useNodeAPI:(BOOL)useNodeAPI
{
UIWindow *window = [[UIWindow alloc] initWithFrame:CGRectZero];
[window makeKeyAndVisible];

DeclareNodeNamed(parentA);
DeclareNodeNamed(parentB);
Expand Down Expand Up @@ -374,6 +378,8 @@ - (void)checkMoveAcrossHierarchyLayerBacked:(BOOL)isLayerBacked useManualCalls:(
// Make sure that we don't leave these unbalanced
XCTAssertFalse([child __visibilityNotificationsDisabled], @"Unbalanced visibility notifications calls");
XCTAssertFalse([child __selfOrParentHasVisibilityNotificationsDisabled], @"Should not have re-enabled yet");
[parentA removeFromSupernode];
[parentB removeFromSupernode];
}

- (void)testMoveAcrossHierarchyLayer
Expand Down
11 changes: 9 additions & 2 deletions Tests/ASDisplayNodeTests.mm
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,11 @@ - (void)checkValuesMatchDefaults:(ASDisplayNode *)node isLayerBacked:(BOOL)isLay
XCTAssertTrue(CGRectEqualToRect(CGRectZero, node.frame), @"default frame broken %@", hasLoadedView);
XCTAssertTrue(CGPointEqualToPoint(CGPointZero, node.position), @"default position broken %@", hasLoadedView);
XCTAssertEqual((CGFloat)0.0, node.zPosition, @"default zPosition broken %@", hasLoadedView);
XCTAssertEqual(1.0f, node.contentsScale, @"default contentsScale broken %@", hasLoadedView);
if (node.isNodeLoaded && !isLayerBacked) {
XCTAssertEqual(2, node.contentsScale, @"default contentsScale broken %@", hasLoadedView);
} else {
XCTAssertEqual(1, node.contentsScale, @"default contentsScale broken %@", hasLoadedView);
}
XCTAssertEqual([UIScreen mainScreen].scale, node.contentsScaleForDisplay, @"default contentsScaleForDisplay broken %@", hasLoadedView);
XCTAssertTrue(CATransform3DEqualToTransform(CATransform3DIdentity, node.transform), @"default transform broken %@", hasLoadedView);
XCTAssertTrue(CATransform3DEqualToTransform(CATransform3DIdentity, node.subnodeTransform), @"default subnodeTransform broken %@", hasLoadedView);
Expand Down Expand Up @@ -2688,7 +2692,9 @@ - (void)testThatSubnodeSafeAreaInsetsAreCalculatedCorrectly
UIWindow *window = [[UIWindow alloc] init];
window.rootViewController = viewController;
[window setHidden:NO];
[window layoutIfNeeded];

[window.rootViewController.view setNeedsLayout];
[window.rootViewController.view layoutIfNeeded];

UIEdgeInsets expectedRootNodeSafeArea = UIEdgeInsetsMake(10, 10, 10, 10);
UIEdgeInsets expectedSubnodeSafeArea = UIEdgeInsetsMake(9, 8, 7, 6);
Expand Down Expand Up @@ -2747,6 +2753,7 @@ - (void)testCornerRoundingTypeClippingRoundedCornersIsUsingASDisplayNodeCornerLa
- (void)testLayerActionForKeyIsCalled
{
UIWindow *window = [[UIWindow alloc] init];
[window makeKeyAndVisible];
ASDisplayNode *node = [[ASDisplayNode alloc] init];

id mockNode = OCMPartialMock(node);
Expand Down
3 changes: 2 additions & 1 deletion Tests/ASViewControllerTests.mm
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@ - (void)testThatAutomaticSubnodeManagementScrollViewInsetsAreApplied
window.rootViewController = [[UINavigationController alloc] initWithRootViewController:vc];
[window makeKeyAndVisible];
[window layoutIfNeeded];

XCTAssertEqualObjects(NSStringFromCGRect(window.bounds), NSStringFromCGRect(node.frame));
XCTAssertNotEqual(scrollNode.view.contentInset.top, 0);
XCTAssertEqual(scrollNode.view.contentInset.top, 0);
}

- (void)testThatViewControllerFrameIsRightAfterCustomTransitionWithNonextendedEdges
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ...ges_iOS_10/ASButtonNodeSnapshotTests/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ...ges_iOS_10/ASButtonNodeSnapshotTests/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ...deSnapshotTests/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ...NodeSnapshotTests/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ...ges_iOS_10/ASDisplayNodeSnapshotTests/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ...ages_iOS_10/ASDisplayNodeSnapshotTests/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ...ages_iOS_10/ASDisplayNodeSnapshotTests/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ...ages_iOS_10/ASDisplayNodeSnapshotTests/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ..._iOS_10/ASImageNodeSnapshotTests/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ..._10/ASStackLayoutSpecSnapshotTests/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ...10/ASStackLayoutSpecSnapshotTests/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ...OS_10/ASStackLayoutSpecSnapshotTests/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ...iOS_10/ASStackLayoutSpecSnapshotTests/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ...mages_iOS_10/ASStackLayoutSpecSnapshotTests/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ..._10/ASTextNode2SnapshotTests/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ...mages_iOS_10/ASTextNode2SnapshotTests/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ...enceImages_iOS_10/ASTextNode2SnapshotTests/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ..._10/ASTextNode2SnapshotTests/[email protected]
Binary file modified ...nceImages_iOS_10/ASTextNodeSnapshotTests/[email protected]
Binary file modified ...nceImages_iOS_10/ASTextNodeSnapshotTests/[email protected]
Binary file modified ...s_iOS_10/ASTextNodeSnapshotTests/[email protected]
4 changes: 2 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

PLATFORM="${TEXTURE_BUILD_PLATFORM:-platform=iOS Simulator,OS=10.2,name=iPhone 7}"
SDK="${TEXTURE_BUILD_SDK:-iphonesimulator12.2}"
PLATFORM="${TEXTURE_BUILD_PLATFORM:-platform=iOS Simulator,OS=13.0,name=iPhone 7}"
SDK="${TEXTURE_BUILD_SDK:-iphonesimulator13.0}"
DERIVED_DATA_PATH="~/ASDKDerivedData"

# It is pitch black.
Expand Down

0 comments on commit 0a86408

Please sign in to comment.