forked from dotnet/macios
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
566 changed files
with
29,559 additions
and
3,023 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
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
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
Submodule Xamarin.MacDev
updated
from 820873 to e24477
Submodule macios-binaries
updated
23 files
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,28 @@ | ||
#!/usr/bin/env /Library/Frameworks/Mono.framework/Commands/csharp | ||
|
||
using System.IO; | ||
using System.Text; | ||
using System.Xml; | ||
|
||
var args = Environment.GetCommandLineArgs (); | ||
var expectedArgumentCount = 1; | ||
if (args.Length != expectedArgumentCount + 2 /* 2 default arguments (executable + script) + 'expectedArgumentCount' arguments we're interested in */) { | ||
// first arg is "/Library/Frameworks/Mono.framework/Versions/4.8.0/lib/mono/4.5/csharp.exe" | ||
// second arg the script itself | ||
// then comes the ones we care about | ||
Console.WriteLine ($"Need {expectedArgumentCount} arguments, got {args.Length - 2}"); | ||
Environment.Exit (1); | ||
return; | ||
} | ||
|
||
var plistPath = args [2]; | ||
var doc = new XmlDocument (); | ||
doc.Load (plistPath); | ||
var nodes = doc.SelectNodes ($"/plist/dict/key[text()='KnownVersions']/following-sibling::dict[1]/key[text()='macOS']/following-sibling::array[1]/string"); | ||
|
||
var sb = new StringBuilder (); | ||
foreach (XmlNode n in nodes) | ||
sb.Append ($"{n.InnerText} "); | ||
Console.WriteLine (sb); | ||
|
||
Environment.Exit (0); |
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
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,6 @@ | ||
native/build | ||
native/DerivedData | ||
xcshareddata | ||
xcuserdata | ||
bin | ||
obj |
42 changes: 42 additions & 0 deletions
42
msbuild/tests/NativeExtensionEmbedding/managed/ManagedContainer/AppDelegate.cs
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,42 @@ | ||
using Foundation; | ||
using UIKit; | ||
|
||
namespace ManagedContainer | ||
{ | ||
// The UIApplicationDelegate for the application. This class is responsible for launching the | ||
// User Interface of the application, as well as listening (and optionally responding) to application events from iOS. | ||
[Register ("AppDelegate")] | ||
public class AppDelegate : UIResponder, IUIApplicationDelegate | ||
{ | ||
|
||
[Export ("window")] | ||
public UIWindow Window { get; set; } | ||
|
||
[Export ("application:didFinishLaunchingWithOptions:")] | ||
public bool FinishedLaunching (UIApplication application, NSDictionary launchOptions) | ||
{ | ||
// Override point for customization after application launch. | ||
// If not required for your application you can safely delete this method | ||
return true; | ||
} | ||
|
||
// UISceneSession Lifecycle | ||
|
||
[Export ("application:configurationForConnectingSceneSession:options:")] | ||
public UISceneConfiguration GetConfiguration (UIApplication application, UISceneSession connectingSceneSession, UISceneConnectionOptions options) | ||
{ | ||
// Called when a new scene session is being created. | ||
// Use this method to select a configuration to create the new scene with. | ||
return UISceneConfiguration.Create ("Default Configuration", connectingSceneSession.Role); | ||
} | ||
|
||
[Export ("application:didDiscardSceneSessions:")] | ||
public void DidDiscardSceneSessions (UIApplication application, NSSet<UISceneSession> sceneSessions) | ||
{ | ||
// Called when the user discards a scene session. | ||
// If any sessions were discarded while the application was not running, this will be called shortly after `FinishedLaunching`. | ||
// Use this method to release any resources that were specific to the discarded scenes, as they will not return. | ||
} | ||
} | ||
} | ||
|
6 changes: 6 additions & 0 deletions
6
msbuild/tests/NativeExtensionEmbedding/managed/ManagedContainer/Entitlements.plist
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,6 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
</dict> | ||
</plist> |
Oops, something went wrong.