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

Commit da537b1

Browse files
committed
update Xamarin unified support for Xamarin.iOS 8.6
1 parent d778c60 commit da537b1

File tree

16 files changed

+30
-28
lines changed

16 files changed

+30
-28
lines changed

sdk/Managed/src/Microsoft.WindowsAzure.MobileServices.iOS/Push/ApnsRegistration.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
using Newtonsoft.Json;
66
using System;
77
using System.Collections.Generic;
8-
using MonoTouch.Foundation;
8+
using Foundation;
99

1010
namespace Microsoft.WindowsAzure.MobileServices
1111
{

sdk/Managed/src/Microsoft.WindowsAzure.MobileServices.iOS/Push/ApnsTemplateRegistration.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
using System.Collections.Generic;
77
using System.Collections.ObjectModel;
88
using System.Globalization;
9-
using MonoTouch.Foundation;
9+
using Foundation;
1010
using Newtonsoft.Json;
1111

1212
namespace Microsoft.WindowsAzure.MobileServices

sdk/Managed/src/Microsoft.WindowsAzure.MobileServices.iOS/Push/Push.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace Microsoft.WindowsAzure.MobileServices
99
using System.Collections.Generic;
1010
using System.Linq;
1111
using System.Threading.Tasks;
12-
using MonoTouch.Foundation;
12+
using Foundation;
1313

1414
/// <summary>
1515
/// Define a class help to create/update/delete notification registrations

sdk/Managed/test/Microsoft.WindowsAzure.MobileServices.WindowsStore.Test/Functional/PushFunctional.Test.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// ----------------------------------------------------------------------------
1+
// ----------------------------------------------------------------------------
22
// Copyright (c) Microsoft Corporation. All rights reserved.
33
// ----------------------------------------------------------------------------
44

sdk/Managed/test/Microsoft.WindowsAzure.MobileServices.WindowsStore.Test/TestPlatform/CurrentTestPlatform.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// ----------------------------------------------------------------------------
1+
// ----------------------------------------------------------------------------
22
// Copyright (c) Microsoft Corporation. All rights reserved.
33
// ----------------------------------------------------------------------------
44

sdk/Managed/test/Microsoft.WindowsAzure.MobileServices.iOS.Test/AppDelegate.cs

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1-
using System.Reflection;
1+
using System.Reflection;
22
using Microsoft.WindowsAzure.MobileServices;
33
using Microsoft.WindowsAzure.MobileServices.Test;
44
using Microsoft.WindowsAzure.MobileServices.TestFramework;
5-
using MonoTouch.Foundation;
6-
using MonoTouch.UIKit;
5+
using Foundation;
6+
using UIKit;
7+
using CoreGraphics;
78

89
namespace MicrosoftWindowsAzureMobileiOSTest
910
{
10-
[Register("AppDelegate")]
11+
[Foundation.Register("AppDelegate")]
1112
public partial class AppDelegate : UIApplicationDelegate
1213
{
1314
UIWindow window;
@@ -25,7 +26,7 @@ static AppDelegate()
2526

2627
public override bool FinishedLaunching (UIApplication app, NSDictionary options)
2728
{
28-
window = new UIWindow (UIScreen.MainScreen.Bounds);
29+
window = new UIWindow ((CGRect)UIScreen.MainScreen.Bounds);
2930
window.RootViewController = new UINavigationController (new LoginViewController());
3031
window.MakeKeyAndVisible();
3132

sdk/Managed/test/Microsoft.WindowsAzure.MobileServices.iOS.Test/Info.plist

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<string>UIInterfaceOrientationPortrait</string>
1212
</array>
1313
<key>MinimumOSVersion</key>
14-
<string>3.2</string>
14+
<string>5.2</string>
1515
<key>NSMainNibFile</key>
1616
<string></string>
1717
<key>UIStatusBarTintParameters</key>

sdk/Managed/test/Microsoft.WindowsAzure.MobileServices.iOS.Test/Main.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using MonoTouch.UIKit;
1+
using UIKit;
22

33
namespace MicrosoftWindowsAzureMobileiOSTest
44
{

sdk/Managed/test/Microsoft.WindowsAzure.MobileServices.iOS.Test/Microsoft.WindowsAzure.Mobile.iOS.Test.csproj

+6-5
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<ProductVersion>8.0.30703</ProductVersion>
77
<SchemaVersion>2.0</SchemaVersion>
88
<ProjectGuid>{977A5F48-B0F3-4860-AA1A-5B3081ED7D98}</ProjectGuid>
9-
<ProjectTypeGuids>{6BC8ED88-2882-458C-8E55-DFD12B67127B};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
9+
<ProjectTypeGuids>{FEACFBD2-3405-455C-9665-78FE426C6842};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
1010
<OutputType>Exe</OutputType>
1111
<RootNamespace>Microsoft.WindowsAzure.Mobile.iOS.Test</RootNamespace>
1212
<IPhoneResourcePrefix>Resources</IPhoneResourcePrefix>
@@ -126,7 +126,7 @@
126126
</Reference>
127127
<Reference Include="System.Xml" />
128128
<Reference Include="System.Core" />
129-
<Reference Include="monotouch" />
129+
<Reference Include="Xamarin.iOS" />
130130
</ItemGroup>
131131
<ItemGroup>
132132
<BundleResource Include="Resources\Default%402x.png" />
@@ -135,9 +135,10 @@
135135
<BundleResource Include="Resources\Default-568h%402x.png" />
136136
</ItemGroup>
137137
<ItemGroup>
138-
<ProjectReference Include="..\..\src\Microsoft.WindowsAzure.MobileServices.iOS\Microsoft.WindowsAzure.Mobile.Ext.iOS-Classic.csproj">
138+
<ProjectReference Include="..\..\src\Microsoft.WindowsAzure.MobileServices.iOS\Microsoft.WindowsAzure.Mobile.Ext.iOS.csproj">
139139
<Project>{a871b137-83a8-4e9b-913d-30ee0288e161}</Project>
140-
<Name>Microsoft.WindowsAzure.Mobile.Ext.iOS-Classic</Name>
140+
<Name>Microsoft.WindowsAzure.Mobile.Ext.iOS</Name>
141+
<IsAppExtension>false</IsAppExtension>
141142
</ProjectReference>
142143
<ProjectReference Include="..\..\src\Microsoft.WindowsAzure.MobileServices\Microsoft.WindowsAzure.Mobile.csproj">
143144
<Project>{75557793-e36e-4190-8714-5bd2665859fb}</Project>
@@ -153,7 +154,7 @@
153154
</ProjectReference>
154155
</ItemGroup>
155156
<ItemGroup />
156-
<Import Project="$(MSBuildExtensionsPath)\Xamarin\iOS\Xamarin.MonoTouch.CSharp.targets" />
157+
<Import Project="$(MSBuildExtensionsPath)\Xamarin\iOS\Xamarin.iOS.CSharp.targets" />
157158
<Import Project="..\..\packages\Microsoft.Bcl.Build.1.0.14\tools\Microsoft.Bcl.Build.targets" Condition="Exists('..\..\packages\Microsoft.Bcl.Build.1.0.14\tools\Microsoft.Bcl.Build.targets')" />
158159
<Target Name="EnsureBclBuildImported" BeforeTargets="BeforeBuild" Condition="'$(BclBuildImported)' == ''">
159160
<Error Condition="!Exists('..\..\packages\Microsoft.Bcl.Build.1.0.14\tools\Microsoft.Bcl.Build.targets')" Text="This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=317567." HelpKeyword="BCLBUILD2001" />

sdk/Managed/test/Microsoft.WindowsAzure.MobileServices.iOS.Test/Properties/AssemblyInfo.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System.Reflection;
1+
using System.Reflection;
22
using System.Runtime.CompilerServices;
33
using System.Runtime.InteropServices;
44

sdk/Managed/test/Microsoft.WindowsAzure.MobileServices.iOS.Test/TestPlatform/PushTestUtility.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// ----------------------------------------------------------------------------
1+
// ----------------------------------------------------------------------------
22
// Copyright (c) Microsoft Corporation. All rights reserved.
33
// ----------------------------------------------------------------------------
44

sdk/Managed/test/Microsoft.WindowsAzure.MobileServices.iOS.Test/UI/HarnessViewController.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
using System;
2-
using System.Drawing;
2+
using CoreGraphics;
33
using System.Text;
44
using System.Threading.Tasks;
55
using Microsoft.WindowsAzure.MobileServices.TestFramework;
66
using MonoTouch.Dialog;
7-
using MonoTouch.UIKit;
7+
using UIKit;
88

99
namespace MicrosoftWindowsAzureMobileiOSTest
1010
{
@@ -14,7 +14,7 @@ public class HarnessViewController
1414
public HarnessViewController()
1515
: base (UITableViewStyle.Grouped, null, pushing: true)
1616
{
17-
this.progress = new UIProgressView (new RectangleF (0, 0, View.Bounds.Width, 5)) {
17+
this.progress = new UIProgressView (new CGRect (0, 0, View.Bounds.Width, 5)) {
1818
AutoresizingMask = UIViewAutoresizing.FlexibleWidth
1919
};
2020

sdk/Managed/test/Microsoft.WindowsAzure.MobileServices.iOS.Test/UI/LoginViewController.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
using Microsoft.WindowsAzure.MobileServices;
1+
using Microsoft.WindowsAzure.MobileServices;
22
using MonoTouch.Dialog;
3-
using MonoTouch.Foundation;
4-
using MonoTouch.UIKit;
3+
using Foundation;
4+
using UIKit;
55

66
namespace MicrosoftWindowsAzureMobileiOSTest
77
{

sdk/Managed/test/Microsoft.WindowsAzure.MobileServices.iOS.Test/UI/TestViewController.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using System;
22
using Microsoft.WindowsAzure.MobileServices.TestFramework;
33
using MonoTouch.Dialog;
4-
using MonoTouch.UIKit;
4+
using UIKit;
55

66
namespace MicrosoftWindowsAzureMobileiOSTest
77
{

sdk/Managed/test/Microsoft.WindowsAzure.MobileServices.iOS.Test/UnitTests/PushPlatformTest.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
using System.Linq;
88
using System.Threading.Tasks;
99
using Microsoft.WindowsAzure.MobileServices.TestFramework;
10-
using MonoTouch.Foundation;
10+
using Foundation;
1111

1212
namespace Microsoft.WindowsAzure.MobileServices.Test
1313
{

0 commit comments

Comments
 (0)