-
Notifications
You must be signed in to change notification settings - Fork 511
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[EventKitUI] Update to Xcode 9 Beta 1
- Loading branch information
Showing
5 changed files
with
66 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// | ||
// EventKitUIBundle C# bindings | ||
// | ||
// Authors: | ||
// Alex Soto <alexsoto@microsoft.com> | ||
// | ||
// Copyright 2017 Xamarin Inc. All rights reserved. | ||
// | ||
|
||
#if XAMCORE_2_0 | ||
using System; | ||
using System.Runtime.InteropServices; | ||
using XamCore.Foundation; | ||
using XamCore.ObjCRuntime; | ||
|
||
namespace XamCore.EventKitUI { | ||
public static class EKUIBundle { | ||
|
||
[iOS (11,0)] | ||
[DllImport (Constants.EventKitUILibrary)] | ||
static extern IntPtr EventKitUIBundle (); | ||
|
||
[iOS (11,0)] | ||
public static NSBundle UIBundle { get; } = Runtime.GetNSObject<NSBundle> (EventKitUIBundle ()); | ||
} | ||
} | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// | ||
// Unit tests for EKUIBundle | ||
// | ||
// Authors: | ||
// Alex Soto <alexsoto@microsoft.com> | ||
// | ||
// Copyright 2017 Xamarin Inc. All rights reserved. | ||
// | ||
|
||
#if XAMCORE_2_0 && !__TVOS__ && !__WATCHOS__ | ||
|
||
using System; | ||
using EventKitUI; | ||
using Foundation; | ||
using NUnit.Framework; | ||
|
||
namespace MonoTouchFixtures.EventKitUI { | ||
[TestFixture] | ||
[Preserve (AllMembers = true)] | ||
public class EKUIBundleTest { | ||
|
||
[Test] | ||
public void BundleTest () | ||
{ | ||
if (!TestRuntime.CheckXcodeVersion (9, 0)) | ||
Assert.Ignore ("Ignoring tests: Requires iOS11+"); | ||
|
||
var bundle = EKUIBundle.UIBundle; | ||
Assert.NotNull (bundle, "Was Null"); | ||
Assert.AreEqual ("com.apple.eventkitui", bundle.BundleIdentifier, "BundleIdentifier"); | ||
} | ||
} | ||
} | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters