-
Notifications
You must be signed in to change notification settings - Fork 536
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into dev/grendel/clr-host
* main: [NativeAOT] Add support for `Application` subclasses (#9716) Bump to dotnet/sdk@d6bc7918c0 10.0.100-preview.2.25102.3 (#9726) [xa-prep-tasks] fix build errors for long `darc-` branch names (#9740)
- Loading branch information
Showing
19 changed files
with
513 additions
and
45 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using Android.Runtime; | ||
using Android.Util; | ||
|
||
/// <summary> | ||
/// NOTE: This class is not required, but used for testing Android.App.Application subclasses. | ||
/// Name required for typemap in NativeAotTypeManager | ||
/// </summary> | ||
[Application (Name = "my.MainApplication")] | ||
public class MainApplication : Application | ||
{ | ||
public MainApplication (IntPtr handle, JniHandleOwnership transfer) | ||
: base (handle, transfer) | ||
{ | ||
Log.Debug ("NativeAOT", $"Application..ctor({handle.ToString ("x2")}, {transfer})"); | ||
} | ||
|
||
public override void OnCreate () | ||
{ | ||
Log.Debug ("NativeAOT", "Application.OnCreate()"); | ||
|
||
base.OnCreate (); | ||
} | ||
} |
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
Oops, something went wrong.