Skip to content

Commit

Permalink
Merge branch 'main' into tvos-workaround-reverted
Browse files Browse the repository at this point in the history
  • Loading branch information
rolfbjarne authored Jul 29, 2021
2 parents 3d3c108 + ebc3d5c commit 0595a76
Show file tree
Hide file tree
Showing 282 changed files with 3,474 additions and 2,427 deletions.
9 changes: 9 additions & 0 deletions Localize/loc/de/tools/mtouch/Errors.resx.lcl
Original file line number Diff line number Diff line change
Expand Up @@ -3592,6 +3592,15 @@
</Str>
<Disp Icon="Str" />
</Item>
<Item ItemId=";MX8041" ItemType="0;.resx" PsrId="211" Leaf="true">
<Str Cat="Text">
<Val><![CDATA[Unable to create an instance of the type {0}.]]></Val>
<Tgt Cat="Text" Stat="Loc" Orig="New">
<Val><![CDATA[Es kann keine Instanz des Typs {0}erstellt werden.]]></Val>
</Tgt>
</Str>
<Disp Icon="Str" />
</Item>
<Item ItemId=";MX_ConfigurationAwareStep" ItemType="0;.resx" PsrId="211" InstFlg="true" Leaf="true">
<Str Cat="Text">
<Val><![CDATA[The linker step '{0}' failed during processing: {1}]]></Val>
Expand Down
9 changes: 9 additions & 0 deletions Localize/loc/es/tools/mtouch/Errors.resx.lcl
Original file line number Diff line number Diff line change
Expand Up @@ -3592,6 +3592,15 @@
</Str>
<Disp Icon="Str" />
</Item>
<Item ItemId=";MX8041" ItemType="0;.resx" PsrId="211" Leaf="true">
<Str Cat="Text">
<Val><![CDATA[Unable to create an instance of the type {0}.]]></Val>
<Tgt Cat="Text" Stat="Loc" Orig="New">
<Val><![CDATA[No se puede crear una instancia de tipo {0}.]]></Val>
</Tgt>
</Str>
<Disp Icon="Str" />
</Item>
<Item ItemId=";MX_ConfigurationAwareStep" ItemType="0;.resx" PsrId="211" InstFlg="true" Leaf="true">
<Str Cat="Text">
<Val><![CDATA[The linker step '{0}' failed during processing: {1}]]></Val>
Expand Down
9 changes: 9 additions & 0 deletions Localize/loc/fr/tools/mtouch/Errors.resx.lcl
Original file line number Diff line number Diff line change
Expand Up @@ -3592,6 +3592,15 @@
</Str>
<Disp Icon="Str" />
</Item>
<Item ItemId=";MX8041" ItemType="0;.resx" PsrId="211" Leaf="true">
<Str Cat="Text">
<Val><![CDATA[Unable to create an instance of the type {0}.]]></Val>
<Tgt Cat="Text" Stat="Loc" Orig="New">
<Val><![CDATA[Impossible de créer une instance du type {0}.]]></Val>
</Tgt>
</Str>
<Disp Icon="Str" />
</Item>
<Item ItemId=";MX_ConfigurationAwareStep" ItemType="0;.resx" PsrId="211" InstFlg="true" Leaf="true">
<Str Cat="Text">
<Val><![CDATA[The linker step '{0}' failed during processing: {1}]]></Val>
Expand Down
9 changes: 9 additions & 0 deletions Localize/loc/it/tools/mtouch/Errors.resx.lcl
Original file line number Diff line number Diff line change
Expand Up @@ -3592,6 +3592,15 @@
</Str>
<Disp Icon="Str" />
</Item>
<Item ItemId=";MX8041" ItemType="0;.resx" PsrId="211" Leaf="true">
<Str Cat="Text">
<Val><![CDATA[Unable to create an instance of the type {0}.]]></Val>
<Tgt Cat="Text" Stat="Loc" Orig="New">
<Val><![CDATA[Impossibile creare un'istanza del tipo di {0}.]]></Val>
</Tgt>
</Str>
<Disp Icon="Str" />
</Item>
<Item ItemId=";MX_ConfigurationAwareStep" ItemType="0;.resx" PsrId="211" InstFlg="true" Leaf="true">
<Str Cat="Text">
<Val><![CDATA[The linker step '{0}' failed during processing: {1}]]></Val>
Expand Down
9 changes: 9 additions & 0 deletions Localize/loc/ja/tools/mtouch/Errors.resx.lcl
Original file line number Diff line number Diff line change
Expand Up @@ -3592,6 +3592,15 @@
</Str>
<Disp Icon="Str" />
</Item>
<Item ItemId=";MX8041" ItemType="0;.resx" PsrId="211" Leaf="true">
<Str Cat="Text">
<Val><![CDATA[Unable to create an instance of the type {0}.]]></Val>
<Tgt Cat="Text" Stat="Loc" Orig="New">
<Val><![CDATA[型 {0} のインスタンスを作成できません。]]></Val>
</Tgt>
</Str>
<Disp Icon="Str" />
</Item>
<Item ItemId=";MX_ConfigurationAwareStep" ItemType="0;.resx" PsrId="211" InstFlg="true" Leaf="true">
<Str Cat="Text">
<Val><![CDATA[The linker step '{0}' failed during processing: {1}]]></Val>
Expand Down
9 changes: 9 additions & 0 deletions Localize/loc/zh-Hans/tools/mtouch/Errors.resx.lcl
Original file line number Diff line number Diff line change
Expand Up @@ -3592,6 +3592,15 @@
</Str>
<Disp Icon="Str" />
</Item>
<Item ItemId=";MX8041" ItemType="0;.resx" PsrId="211" Leaf="true">
<Str Cat="Text">
<Val><![CDATA[Unable to create an instance of the type {0}.]]></Val>
<Tgt Cat="Text" Stat="Loc" Orig="New">
<Val><![CDATA[无法创建类型 {0} 的实例。]]></Val>
</Tgt>
</Str>
<Disp Icon="Str" />
</Item>
<Item ItemId=";MX_ConfigurationAwareStep" ItemType="0;.resx" PsrId="211" InstFlg="true" Leaf="true">
<Str Cat="Text">
<Val><![CDATA[The linker step '{0}' failed during processing: {1}]]></Val>
Expand Down
9 changes: 9 additions & 0 deletions Localize/loc/zh-Hant/tools/mtouch/Errors.resx.lcl
Original file line number Diff line number Diff line change
Expand Up @@ -3592,6 +3592,15 @@
</Str>
<Disp Icon="Str" />
</Item>
<Item ItemId=";MX8041" ItemType="0;.resx" PsrId="211" Leaf="true">
<Str Cat="Text">
<Val><![CDATA[Unable to create an instance of the type {0}.]]></Val>
<Tgt Cat="Text" Stat="Loc" Orig="New">
<Val><![CDATA[無法建立 {0} 類型的執行個體。]]></Val>
</Tgt>
</Str>
<Disp Icon="Str" />
</Item>
<Item ItemId=";MX_ConfigurationAwareStep" ItemType="0;.resx" PsrId="211" InstFlg="true" Leaf="true">
<Str Cat="Text">
<Val><![CDATA[The linker step '{0}' failed during processing: {1}]]></Val>
Expand Down
4 changes: 2 additions & 2 deletions Make.config
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ MACCATALYST_NUGET_VERSION_FULL=$(MACCATALYST_NUGET_VERSION_NO_METADATA)+$(NUGET_

# Xcode version should have both a major and a minor version (even if the minor version is 0)
XCODE_VERSION=13.0
XCODE_URL=https://dl.internalx.com/internal-files/xcodes/Xcode_13_beta_3.xip
XCODE_DEVELOPER_ROOT=/Applications/Xcode_13.0.0-beta3.app/Contents/Developer
XCODE_URL=https://dl.internalx.com/internal-files/xcodes/Xcode_13_beta_4.xip
XCODE_DEVELOPER_ROOT=/Applications/Xcode_13.0.0-beta4.app/Contents/Developer
XCODE_PRODUCT_BUILD_VERSION:=$(shell /usr/libexec/PlistBuddy -c 'Print :ProductBuildVersion' $(XCODE_DEVELOPER_ROOT)/../version.plist)

# Mono version embedded in XI/XM (NEEDED_MONO_VERSION/BRANCH) are specified in mk/mono.mk
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<PackageReference Include="Mono.Cecil" Version="0.11.3" />
<PackageReference Include="Mono.Cecil" Version="0.11.4" />
</ItemGroup>
<ItemGroup>
<Compile Include="Program.cs" />
Expand Down
4 changes: 3 additions & 1 deletion dotnet/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ $(1)_NUGET_TARGETS = \
$(DOTNET_DESTDIR)/Microsoft.$(1).Sdk/data/UnixFilePermissions.xml \
$(DOTNET_DESTDIR)/Microsoft.$(1).Sdk/Sdk/AutoImport.props \
$(DOTNET_DESTDIR)/Microsoft.$(1).Sdk/Sdk/Sdk.props \
$(DOTNET_DESTDIR)/Microsoft.$(1).Sdk/targets/Microsoft.$(1).Sdk.ImplicitNamespaceImports.props \
$(DOTNET_DESTDIR)/Microsoft.$(1).Sdk/targets/Microsoft.$(1).Sdk.SupportedTargetPlatforms.props \
$(DOTNET_DESTDIR)/Microsoft.$(1).Sdk/targets/Microsoft.$(1).Sdk.DefaultItems.props \
$(DOTNET_DESTDIR)/Microsoft.$(1).Sdk/targets/Microsoft.$(1).Sdk.props \
Expand Down Expand Up @@ -355,8 +356,9 @@ $(foreach platform,$(DOTNET_WINDOWS_PLATFORMS),$(eval $(call CreateMsi,$(platfor
export DOTNETSDK_WORKLOAD_MANIFEST_ROOTS:=$(abspath ./Workloads)

.stamp-install-workloads: Makefile Workloads/NuGet.config $(WORKLOAD_TARGETS) $(RUNTIME_PACKS) $(REF_PACKS) $(SDK_PACKS) $(TEMPLATE_PACKS) $(WORKLOAD_PACKS)
@# The microsoft.net.sdk.maui workload has a reference to the microsoft-ios-sdk-full workload, which has been renamed, so 'dotnet workload install' fails. Just remove the maui workload, we don't need it here.
$(Q) rm -Rf $(DOTNET6_DIR)/sdk-manifests/6.0.100/microsoft.net.sdk.maui
$(Q) cd Workloads && $(DOTNET6) workload install --skip-manifest-update \
microsoft-net-runtime-ios microsoft-net-runtime-tvos microsoft-net-runtime-maccatalyst \
$(foreach platform,$(DOTNET_PLATFORMS),$(shell echo $(platform) | tr A-Z a-z))
$(Q) touch $@

Expand Down
Original file line number Diff line number Diff line change
@@ -1,32 +1,29 @@
using Foundation;
using UIKit;
namespace MacCatalystApp1;

namespace MacCatalystApp1 {
[Register ("AppDelegate")]
public class AppDelegate : UIApplicationDelegate {
public override UIWindow? Window {
get;
set;
}
[Register ("AppDelegate")]
public class AppDelegate : UIApplicationDelegate {
public override UIWindow? Window {
get;
set;
}

public override bool FinishedLaunching (UIApplication application, NSDictionary launchOptions)
{
// create a new window instance based on the screen size
Window = new UIWindow (UIScreen.MainScreen.Bounds);
public override bool FinishedLaunching (UIApplication application, NSDictionary launchOptions)
{
// create a new window instance based on the screen size
Window = new UIWindow (UIScreen.MainScreen.Bounds);

// create a UIViewController with a single UILabel
var vc = new UIViewController ();
vc.View!.AddSubview (new UILabel (Window!.Frame) {
BackgroundColor = UIColor.White,
TextAlignment = UITextAlignment.Center,
Text = "Hello, Catalyst!"
});
Window.RootViewController = vc;
// create a UIViewController with a single UILabel
var vc = new UIViewController ();
vc.View!.AddSubview (new UILabel (Window!.Frame) {
BackgroundColor = UIColor.White,
TextAlignment = UITextAlignment.Center,
Text = "Hello, Catalyst!"
});
Window.RootViewController = vc;

// make the window visible
Window.MakeKeyAndVisible ();
// make the window visible
Window.MakeKeyAndVisible ();

return true;
}
return true;
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using UIKit;

using MacCatalystApp1;

// This is the main entry point of the application.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,57 +1,55 @@
using Foundation;
using UIKit;

namespace MacCatalystApp1 {
[Register ("SceneDelegate")]
public class SceneDelegate : UIResponder, IUIWindowSceneDelegate {

[Export ("window")]
public UIWindow? Window { get; set; }

[Export ("scene:willConnectToSession:options:")]
public void WillConnect (UIScene scene, UISceneSession session, UISceneConnectionOptions connectionOptions)
{
// Use this method to optionally configure and attach the UIWindow `window` to the provided UIWindowScene `scene`.
// If using a storyboard, the `window` property will automatically be initialized and attached to the scene.
// This delegate does not imply the connecting scene or session are new (see UIApplicationDelegate `GetConfiguration` instead).
}

[Export ("sceneDidDisconnect:")]
public void DidDisconnect (UIScene scene)
{
// Called as the scene is being released by the system.
// This occurs shortly after the scene enters the background, or when its session is discarded.
// Release any resources associated with this scene that can be re-created the next time the scene connects.
// The scene may re-connect later, as its session was not neccessarily discarded (see UIApplicationDelegate `DidDiscardSceneSessions` instead).
}

[Export ("sceneDidBecomeActive:")]
public void DidBecomeActive (UIScene scene)
{
// Called when the scene has moved from an inactive state to an active state.
// Use this method to restart any tasks that were paused (or not yet started) when the scene was inactive.
}

[Export ("sceneWillResignActive:")]
public void WillResignActive (UIScene scene)
{
// Called when the scene will move from an active state to an inactive state.
// This may occur due to temporary interruptions (ex. an incoming phone call).
}

[Export ("sceneWillEnterForeground:")]
public void WillEnterForeground (UIScene scene)
{
// Called as the scene transitions from the background to the foreground.
// Use this method to undo the changes made on entering the background.
}

[Export ("sceneDidEnterBackground:")]
public void DidEnterBackground (UIScene scene)
{
// Called as the scene transitions from the foreground to the background.
// Use this method to save data, release shared resources, and store enough scene-specific state information
// to restore the scene back to its current state.
}
namespace MacCatalystApp1;

[Register ("SceneDelegate")]
public class SceneDelegate : UIResponder, IUIWindowSceneDelegate {

[Export ("window")]
public UIWindow? Window { get; set; }

[Export ("scene:willConnectToSession:options:")]
public void WillConnect (UIScene scene, UISceneSession session, UISceneConnectionOptions connectionOptions)
{
// Use this method to optionally configure and attach the UIWindow `window` to the provided UIWindowScene `scene`.
// If using a storyboard, the `window` property will automatically be initialized and attached to the scene.
// This delegate does not imply the connecting scene or session are new (see UIApplicationDelegate `GetConfiguration` instead).
}

[Export ("sceneDidDisconnect:")]
public void DidDisconnect (UIScene scene)
{
// Called as the scene is being released by the system.
// This occurs shortly after the scene enters the background, or when its session is discarded.
// Release any resources associated with this scene that can be re-created the next time the scene connects.
// The scene may re-connect later, as its session was not neccessarily discarded (see UIApplicationDelegate `DidDiscardSceneSessions` instead).
}

[Export ("sceneDidBecomeActive:")]
public void DidBecomeActive (UIScene scene)
{
// Called when the scene has moved from an inactive state to an active state.
// Use this method to restart any tasks that were paused (or not yet started) when the scene was inactive.
}

[Export ("sceneWillResignActive:")]
public void WillResignActive (UIScene scene)
{
// Called when the scene will move from an active state to an inactive state.
// This may occur due to temporary interruptions (ex. an incoming phone call).
}

[Export ("sceneWillEnterForeground:")]
public void WillEnterForeground (UIScene scene)
{
// Called as the scene transitions from the background to the foreground.
// Use this method to undo the changes made on entering the background.
}

[Export ("sceneDidEnterBackground:")]
public void DidEnterBackground (UIScene scene)
{
// Called as the scene transitions from the foreground to the background.
// Use this method to save data, release shared resources, and store enough scene-specific state information
// to restore the scene back to its current state.
}
}

Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
using Foundation;
using UIKit;
namespace iOSApp1;

namespace iOSApp1 {
[Register ("Controller1")]
public class Controller1 : UIViewController {
public override void ViewDidLoad ()
{
View = new UIView {
BackgroundColor = UIColor.Red,
};
[Register ("Controller1")]
public class Controller1 : UIViewController {
public override void ViewDidLoad ()
{
View = new UIView {
BackgroundColor = UIColor.Red,
};

base.ViewDidLoad ();
base.ViewDidLoad ();

// Perform any additional setup after loading the view
}
// Perform any additional setup after loading the view
}
}
Loading

0 comments on commit 0595a76

Please sign in to comment.