Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into mono-2018-08
Browse files Browse the repository at this point in the history
  • Loading branch information
rolfbjarne committed Oct 25, 2018
2 parents 545c7bf + d836c88 commit 0ebc514
Show file tree
Hide file tree
Showing 9 changed files with 29 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Copyright (C) 2015-2016 Xamarin. All rights reserved.
<PropertyGroup>
<IsWatchApp>True</IsWatchApp>
<IsWatch2App>True</IsWatch2App>
<IOSDebugOverWiFi>True</IOSDebugOverWiFi>
</PropertyGroup>

<Import Project="$(MSBuildThisFileDirectory)..\iOS\Xamarin.iOS.Common.targets" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Copyright (C) 2015-2016 Xamarin. All rights reserved.
<PropertyGroup>
<IsAppExtension>True</IsAppExtension>
<IsWatchExtension>True</IsWatchExtension>
<IOSDebugOverWiFi>True</IOSDebugOverWiFi>
<AppBundleExtension>.appex</AppBundleExtension>
<MtouchHttpClientHandler Condition="'$(MtouchHttpClientHandler)' == ''">NSUrlSessionHandler</MtouchHttpClientHandler>

Expand Down
5 changes: 0 additions & 5 deletions src/CoreGraphics/CGAffineTransform.cs
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,6 @@ public void Multiply (CGAffineTransform b)
y0 = a.x0 * b.yx + a.y0 * b.yy + b.y0;
}

public enum MatrixOrder {
Prepend = 0,
Append = 1,
}

public void Scale (nfloat sx, nfloat sy, MatrixOrder order)
{
switch (order) {
Expand Down
16 changes: 16 additions & 0 deletions src/CoreGraphics/CGEnums.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
//
// CGEnums.cs: Enumerations
//
// Author:
// Vincent Dondain (vidondai@microsoft.com)
//
// Copyright 2018 Microsoft
//

namespace CoreGraphics {

public enum MatrixOrder {
Prepend = 0,
Append = 1,
}
}
1 change: 1 addition & 0 deletions src/frameworks.sources
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,7 @@ COREGRAPHICS_CORE_SOURCES = \
CoreGraphics/CGColorSpace.cs \
CoreGraphics/CGContext.cs \
CoreGraphics/CGDisplay.cs \
CoreGraphics/CGEnums.cs \
CoreGraphics/CGGeometry.cs \
CoreGraphics/CGGradient.cs \
CoreGraphics/CGImage.cs \
Expand Down
3 changes: 2 additions & 1 deletion src/metal.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2081,7 +2081,8 @@ partial interface MTLRenderCommandEncoder : MTLCommandEncoder {
[Abstract, Export ("setCullMode:")]
void SetCullMode (MTLCullMode cullMode);

[Mac (10,11, onlyOn64 : true), TV (11,0), iOS (11,0), NoWatch]
[iOS (9,0)] // Current headers claim this member was introduced in iOS 11, but it also shows up in Xcode 7's header (as introduced in iOS 9)
[Mac (10,11, onlyOn64 : true), TV (11,0), NoWatch]
#if XAMCORE_4_0
// Apple added a new required member in iOS 9, but that breaks our binary compat, so we can't do that in our existing code.
[Abstract]
Expand Down
6 changes: 4 additions & 2 deletions src/spritekit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,12 @@ partial interface SKNode : NSSecureCoding, NSCopying {
[return: NullAllowed]
SKNode Create (string filename, IntPtr classesPtr, out NSError error);

#if MONOMAC || WATCH
[Export ("frame")]
CGRect Frame { get; }
#if !(MONOMAC || WATCH)
// For iOS+tvOS we also get this property from the UIFocusItem protocol, but we redefine it here to get the right availability attributes.
new
#endif
CGRect Frame { get; }

[Export ("calculateAccumulatedFrame")]
CGRect CalculateAccumulatedFrame ();
Expand Down
6 changes: 3 additions & 3 deletions tests/monotouch-test/CoreGraphics/AffineTransformTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ public void Scale ()

var transform2 = CGAffineTransform.MakeTranslation (1, 2);
// t' = [ sx 0 0 sy 0 0 ] * t – Swift equivalent
transform2.Scale (3, 4, CGAffineTransform.MatrixOrder.Prepend);
transform2.Scale (3, 4, MatrixOrder.Prepend);

Assert.AreEqual ((nfloat)3, transform2.xx);
Assert.AreEqual ((nfloat)0, transform2.yx);
Expand Down Expand Up @@ -204,7 +204,7 @@ public void Translate ()
Assert.AreEqual ((nfloat)3, transform.y0, "y0");

transform = new CGAffineTransform (1, 2, 3, 4, 5, 6);
transform.Translate (2, -3, CGAffineTransform.MatrixOrder.Prepend);
transform.Translate (2, -3, MatrixOrder.Prepend);

Assert.AreEqual ((nfloat)1, transform.xx, "xx");
Assert.AreEqual ((nfloat)2, transform.yx, "yx");
Expand Down Expand Up @@ -259,7 +259,7 @@ public void Rotate ()
Assert.That ((double) (-6), Is.EqualTo ((double) transform.y0).Within (0.000001), "y0");

transform = new CGAffineTransform (1, 2, 3, 4, 5, 6);
transform.Rotate ((nfloat)Math.PI, CGAffineTransform.MatrixOrder.Prepend);
transform.Rotate ((nfloat)Math.PI, MatrixOrder.Prepend);

Assert.That ((double)(-1), Is.EqualTo ((double)transform.xx).Within (0.000001), "xx");
Assert.That ((double)(-2), Is.EqualTo ((double)transform.yx).Within (0.000001), "yx");
Expand Down
2 changes: 1 addition & 1 deletion tests/xharness/Jenkins.cs
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ IEnumerable<TestData> GetTestData (RunTestTask test)
case "monotouch-test":
yield return new TestData { Variation = "Release (all optimizations)", MTouchExtraArgs = "--registrar:static --optimize:all", Debug = false, Profiling = false, Defines = "OPTIMIZEALL" };
yield return new TestData { Variation = "Debug (all optimizations)", MTouchExtraArgs = "--registrar:static --optimize:all", Debug = true, Profiling = false, Defines = "OPTIMIZEALL" };
yield return new TestData { Variation = "Debug (interpreter)", MTouchExtraArgs = "--interpreter", Debug = true, Profiling = false, Ignored = true, };
yield return new TestData { Variation = "Debug (interpreter)", MTouchExtraArgs = "--interpreter", Debug = true, Profiling = false, };
yield return new TestData { Variation = "Debug (interpreter -mscorlib)", MTouchExtraArgs = "--interpreter=-mscorlib", Debug = true, Profiling = false, Ignored = true, };
break;
case "mscorlib":
Expand Down

0 comments on commit 0ebc514

Please sign in to comment.