* Update dependencies from https://github.com/xamarin/xamarin-macios build 20220110.9
Microsoft.tvOS.Sdk , Microsoft.macOS.Sdk , Microsoft.MacCatalyst.Sdk , Microsoft.iOS.Sdk
From Version 15.2.100-preview.13.8 -> To Version 15.2.100-preview.13.15
* Update dependencies from https://github.com/xamarin/xamarin-macios build 20220111.5
Microsoft.tvOS.Sdk , Microsoft.macOS.Sdk , Microsoft.MacCatalyst.Sdk , Microsoft.iOS.Sdk
From Version 15.2.100-preview.13.8 -> To Version 15.2.100-preview.13.19
* Update dependencies from https://github.com/xamarin/xamarin-macios build 20220112.10
Microsoft.tvOS.Sdk , Microsoft.macOS.Sdk , Microsoft.MacCatalyst.Sdk , Microsoft.iOS.Sdk
From Version 15.2.100-preview.13.8 -> To Version 15.2.100-preview.13.24
* Update dependencies from https://github.com/xamarin/xamarin-macios build 20220112.43
Microsoft.tvOS.Sdk , Microsoft.macOS.Sdk , Microsoft.MacCatalyst.Sdk , Microsoft.iOS.Sdk
From Version 15.2.100-preview.13.8 -> To Version 15.2.100-preview.13.35
* Update dependencies from https://github.com/xamarin/xamarin-macios build 20220113.15
Microsoft.tvOS.Sdk , Microsoft.macOS.Sdk , Microsoft.MacCatalyst.Sdk , Microsoft.iOS.Sdk
From Version 15.2.100-preview.13.8 -> To Version 15.2.100-preview.13.39
* Update dependencies from https://github.com/xamarin/xamarin-macios build 20220114.33
Microsoft.tvOS.Sdk , Microsoft.macOS.Sdk , Microsoft.MacCatalyst.Sdk , Microsoft.iOS.Sdk
From Version 15.2.100-preview.13.8 -> To Version 15.2.100-preview.13.54
* Fix API changes from iOS
Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: redth <jondick@gmail.com>
The source generator was doing:
using (var reader = File.OpenText(projItem.AdditionalText.Path))
The problem with this, is you don't actually have to hit Ctrl+S in
Visual Studio to save the files. This is potentially loading stale
files on disk.
Instead we can use:
projItem.AdditionalText.GetText().ToString();
And this will give us the string contents of the file from the
in-memory Roslyn state.
This might solve some of the weird issues in the IDE such as:
https://github.com/dotnet/maui/issues/4098
However, I'm still able to reproduce #4098 after making this change.
This is one idea from dotnet/maui#3249, that I abandoned (for now)
because making `Microsoft.Maui.dll` fully trimmable is a larger task
that I realized.
These two APIs are problematic for dotnet/linker to be able to
statically analyze `Microsoft.Maui.dll`:
public static partial class MauiHandlersCollectionExtensions
{
public static IMauiHandlersCollection AddHandlers(this IMauiHandlersCollection handlersCollection, Dictionary<Type, Type> handlers)
public static IMauiHandlersCollection TryAddHandlers(this IMauiHandlersCollection handlersCollection, Dictionary<Type, Type> handlers)
Usage of this in `AddMauiControlsHandlers` should just call
`AddHandler()` for each type? No need for a `Dictionary`?
I loosened the generic constrains on one other method:
public static IMauiHandlersCollection AddHandler<TType, TTypeRender>(this IMauiHandlersCollection handlersCollection)
-- where TType : IView
-- where TTypeRender : IViewHandler
++ where TType : IElement
++ where TTypeRender : IElementHandler
This allowed its usage for `Application` and `Window`.
This would probably have a tiny performance improvement, as we no
longer create a `Dictionary<Type,Type>` with 41 elements. This change
is more about changing a public-facing API, before MAUI is stable. It
will help us make `Microsoft.Maui.dll` fully trimmable one day.
Changes: 9c82662...a533652
Updates: Microsoft.Android.Sdk.Windows: from 31.0.200-preview.13.8 to 31.0.200-preview.13.11
The Android workload now ships with "manifestmerger" 30.x:
a533652fa6
This causes Essentials samples to fail to build with:
android:exported needs to be explicitly specified for <activity>.
Apps targeting Android 12 and higher are required to specify an explicit value for `android:exported` when the corresponding component has an intent filter defined.
See https://developer.android.com/guide/topics/manifest/activity-element#exported for details.
The fix here is various activities should define `Exported=true`. The
Android workload does this by default for the main activity, but not
every activity. This appears to solve the build error.
Co-authored-by: Jonathan Peppers <jonathan.peppers@microsoft.com>
Fixes: https://dev.azure.com/devdiv/DevDiv/_workitems/edit/1413769
Fixes: https://github.com/dotnet/maui/issues/3967
Adding a new class to `Platforms\Android` results in:
<ItemGroup>
<_MauiCompileToAdd Remove="Platforms\Android\AnotherAndroid.cs" />
</ItemGroup>
<ItemGroup>
<None Include="Platforms\Android\AnotherAndroid.cs" />
</ItemGroup>
That's weird!
There might be an IDE / ProjectSystem here, but I think we should
change the MSBuild includes to workaround this problem.
Reviewing the existing `.targets`:
1. We don't need to add `.cs` files to `@(None)`? It doesn't not
appear that `dotnet new console` adds `.cs` files to `@(None)`.
2. We can completely get rid of `@(_MauiCompileToAdd)` and just add
files to `@(Compile)` directly.
After these changes, a `dotnet new maui` app still works. And when I
add new `.cs` files in a `Platforms\*\` folder, the `.csproj` file
remains unchanged. Yay!
* Update dependencies from https://github.com/xamarin/xamarin-macios build 20220106.11
Microsoft.tvOS.Sdk , Microsoft.macOS.Sdk , Microsoft.MacCatalyst.Sdk , Microsoft.iOS.Sdk
From Version 15.0.101-preview.12.777 -> To Version 15.2.100-preview.13.8
Dependency coherency updates
Microsoft.Extensions.Hosting,Microsoft.Extensions.Hosting.Abstractions,Microsoft.Extensions.DependencyInjection.Abstractions,Microsoft.Extensions.DependencyInjection,Microsoft.Extensions.Configuration.Abstractions,Microsoft.Extensions.Configuration.Binder,Microsoft.Extensions.Configuration,Microsoft.Extensions.Logging.Abstractions,Microsoft.Extensions.Logging,Microsoft.Extensions.Logging.Console,Microsoft.Extensions.Logging.Debug,Microsoft.Extensions.Configuration.CommandLine,Microsoft.Extensions.Configuration.EnvironmentVariables,Microsoft.Extensions.Configuration.FileExtensions,Microsoft.Extensions.Configuration.Json,Microsoft.Extensions.Configuration.UserSecrets,Microsoft.Extensions.FileProviders.Abstractions,Microsoft.Extensions.FileProviders.Composite,Microsoft.Extensions.FileProviders.Physical,Microsoft.Extensions.FileSystemGlobbing,Microsoft.Extensions.Logging.Configuration,Microsoft.Extensions.Logging.EventLog,Microsoft.Extensions.Logging.EventSource,Microsoft.Extensions.Options,Microsoft.Extensions.Options.ConfigurationExtensions,System.CodeDom,System.Runtime.CompilerServices.Unsafe,System.Diagnostics.DiagnosticSource,System.Diagnostics.EventLog,System.IO.Pipelines,System.Text.Encodings.Web,System.Text.Json
From Version 6.0.0 -> To Version 6.0.2-mauipre.1.22054.8 (parent: Microsoft.AspNetCore.App.Runtime.win-x64
* Update variables.yml
Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: Redth <jondick@gmail.com>
Co-authored-by: Matthew Leibowitz <mattleibow@live.com>
Microsoft.Android.Sdk.Windows
From Version 31.0.101-preview.12.171 -> To Version 31.0.200-preview.13.8
Dependency coherency updates
Microsoft.Dotnet.Sdk.Internal
From Version 6.0.200-preview.22054.7 -> To Version 6.0.200-preview.22055.18 (parent: Microsoft.Android.Sdk.Windows
Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: Jonathan Dick <jodick@microsoft.com>
With the visual diagnostics overlay being a native control drawn on the screen, it would break the in-app selector from selecting any elements under it. We can hide the layer until you draw on it, which will then let you use the in app selector again.
* iOS handle ctor is now NativeHandle not IntPtr
* [main] Update dependencies from xamarin/xamarin-android (#3974)
* Update dependencies from https://github.com/xamarin/xamarin-android build main-05b7dbb2b4b9863793a4f41e8436514edba5f3b8-1
Microsoft.Android.Sdk.Windows
From Version 31.0.101-preview.12.163 -> To Version 31.0.101-preview.12.171
Dependency coherency updates
Microsoft.NET.Workload.Emscripten.Manifest-6.0.100,Microsoft.NETCore.App.Ref,Microsoft.Extensions.Primitives,Microsoft.Dotnet.Sdk.Internal
From Version 6.0.0 -> To Version 6.0.0 (parent: Microsoft.NETCore.App.Ref
* dotnet/runtime packs are not 6.0.100 anymore
Context: https://github.com/dotnet/runtime/pull/62787
* emsdk still on 6.0.100
Co-authored-by: Jonathan Peppers <jonathan.peppers@microsoft.com>
* More IntPtr -> NativeHandle
* Update GitInfo.txt
* Update variables.yml
* Update provision.yml
* Update MAUI Graphics version
* Add in auth token to the environment to prevent provisionator from hanging
* Update GitInfo.txt
* XCode 13.2
Co-authored-by: Redth <jondick@gmail.com>
Co-authored-by: dotnet-maestro[bot] <42748379+dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: Jonathan Peppers <jonathan.peppers@microsoft.com>
Co-authored-by: Jonathan Dick <jodick@microsoft.com>
Our managed code builds fine it seems against 13.1.0 XCode and we believe this is ok as we ship no native iOS libraries as part of MAUI. We have issues provisioning 13.2.0 currently that this will alleviate.
//cc @dalexsoto
* Update dependencies from https://github.com/xamarin/xamarin-macios build 20220106.2
Microsoft.tvOS.Sdk , Microsoft.macOS.Sdk , Microsoft.MacCatalyst.Sdk , Microsoft.iOS.Sdk
From Version 15.0.101-preview.12.777 -> To Version 15.2.200-preview.12.1
Dependency coherency updates
Microsoft.Extensions.Hosting,Microsoft.Extensions.Hosting.Abstractions,Microsoft.Extensions.DependencyInjection.Abstractions,Microsoft.Extensions.DependencyInjection,Microsoft.Extensions.Configuration.Abstractions,Microsoft.Extensions.Configuration.Binder,Microsoft.Extensions.Configuration,Microsoft.Extensions.Logging.Abstractions,Microsoft.Extensions.Logging,Microsoft.Extensions.Logging.Console,Microsoft.Extensions.Logging.Debug,Microsoft.Extensions.Configuration.CommandLine,Microsoft.Extensions.Configuration.EnvironmentVariables,Microsoft.Extensions.Configuration.FileExtensions,Microsoft.Extensions.Configuration.Json,Microsoft.Extensions.Configuration.UserSecrets,Microsoft.Extensions.FileProviders.Abstractions,Microsoft.Extensions.FileProviders.Composite,Microsoft.Extensions.FileProviders.Physical,Microsoft.Extensions.FileSystemGlobbing,Microsoft.Extensions.Logging.Configuration,Microsoft.Extensions.Logging.EventLog,Microsoft.Extensions.Logging.EventSource,Microsoft.Extensions.Options,Microsoft.Extensions.Options.ConfigurationExtensions,System.CodeDom,System.Runtime.CompilerServices.Unsafe,System.Diagnostics.DiagnosticSource,System.Diagnostics.EventLog,System.IO.Pipelines,System.Text.Encodings.Web,System.Text.Json
From Version 6.0.2-mauipre.1.21622.4 -> To Version 6.0.2-mauipre.1.22054.8 (parent: Microsoft.AspNetCore.App.Runtime.win-x64
* Update GitInfo.txt
* Update variables.yml
* Fix version from rebase
Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: Jonathan Dick <jodick@microsoft.com>
* Update dependencies from https://github.com/xamarin/xamarin-android build 6.0.2xx-preview12-c0114c982361c94eefe100da965969ed2dd2e9bb-1
Microsoft.Android.Sdk.Windows
From Version 31.0.101-preview.12.163 -> To Version 31.0.200-preview.12.0
Dependency coherency updates
Microsoft.NET.Workload.Emscripten.Manifest-6.0.100,Microsoft.Extensions.Primitives,Microsoft.Extensions.Hosting,Microsoft.Extensions.Hosting.Abstractions,Microsoft.Extensions.DependencyInjection.Abstractions,Microsoft.Extensions.DependencyInjection,Microsoft.Extensions.Configuration.Abstractions,Microsoft.Extensions.Configuration.Binder,Microsoft.Extensions.Configuration,Microsoft.Extensions.Logging.Abstractions,Microsoft.Extensions.Logging,Microsoft.Extensions.Logging.Console,Microsoft.Extensions.Logging.Debug,Microsoft.Extensions.Configuration.CommandLine,Microsoft.Extensions.Configuration.EnvironmentVariables,Microsoft.Extensions.Configuration.FileExtensions,Microsoft.Extensions.Configuration.Json,Microsoft.Extensions.Configuration.UserSecrets,Microsoft.Extensions.FileProviders.Abstractions,Microsoft.Extensions.FileProviders.Composite,Microsoft.Extensions.FileProviders.Physical,Microsoft.Extensions.FileSystemGlobbing,Microsoft.Extensions.Logging.Configuration,Microsoft.Extensions.Logging.EventLog,Microsoft.Extensions.Logging.EventSource,Microsoft.Extensions.Options,Microsoft.Extensions.Options.ConfigurationExtensions,System.CodeDom,System.Runtime.CompilerServices.Unsafe,System.Diagnostics.DiagnosticSource,System.Diagnostics.EventLog,System.IO.Pipelines,System.Text.Encodings.Web,System.Text.Json
From Version 6.0.0 -> To Version 6.0.0 (parent: Microsoft.NETCore.App.Ref
* Update dependencies from https://github.com/xamarin/xamarin-android build 6.0.2xx-preview12-c420be59b42d5b53bf8706dd3c56a0205b664e53-1
Microsoft.Android.Sdk.Windows
From Version 31.0.101-preview.12.163 -> To Version 31.0.200-preview.12.2
Dependency coherency updates
Microsoft.NET.Workload.Emscripten.Manifest-6.0.100,Microsoft.NETCore.App.Ref,Microsoft.Extensions.Primitives,Microsoft.Dotnet.Sdk.Internal
From Version 6.0.0 -> To Version 6.0.0 (parent: Microsoft.NETCore.App.Ref
* dotnet/runtime packs are not 6.0.100 anymore
Context: https://github.com/dotnet/runtime/pull/62787
* emsdk still on 6.0.100
Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: Jonathan Peppers <jonathan.peppers@microsoft.com>
* Update dependencies from https://github.com/xamarin/xamarin-android build main-05b7dbb2b4b9863793a4f41e8436514edba5f3b8-1
Microsoft.Android.Sdk.Windows
From Version 31.0.101-preview.12.163 -> To Version 31.0.101-preview.12.171
Dependency coherency updates
Microsoft.NET.Workload.Emscripten.Manifest-6.0.100,Microsoft.NETCore.App.Ref,Microsoft.Extensions.Primitives,Microsoft.Dotnet.Sdk.Internal
From Version 6.0.0 -> To Version 6.0.0 (parent: Microsoft.NETCore.App.Ref
* dotnet/runtime packs are not 6.0.100 anymore
Context: https://github.com/dotnet/runtime/pull/62787
* emsdk still on 6.0.100
Co-authored-by: Jonathan Peppers <jonathan.peppers@microsoft.com>