Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature: Add ReactiveUI.Drawing (#2353)
- Loading branch information
1 parent
ecd1830
commit b7df987
Showing
44 changed files
with
535 additions
and
1,270 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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
#!/usr/bin/env bash | ||
CAKE_VERSION=0.36.0 | ||
CAKE_VERSION=0.37.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
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,19 @@ | ||
<Project Sdk="MSBuild.Sdk.Extras"> | ||
<PropertyGroup> | ||
<TargetFrameworks>MonoAndroid90;Xamarin.iOS10;Xamarin.Mac20;Xamarin.TVOS10;tizen40;netstandard2.0</TargetFrameworks> | ||
<TargetFrameworks Condition=" '$(OS)' == 'Windows_NT' ">$(TargetFrameworks);net461;uap10.0.16299;netcoreapp3.0</TargetFrameworks> | ||
<AssemblyName>ReactiveUI.Drawing</AssemblyName> | ||
<RootNamespace>ReactiveUI.Drawing</RootNamespace> | ||
<PackageDescription>A extension to the ReactiveUI platform that provides Splat bitmap operation support.</PackageDescription> | ||
<PackageId>ReactiveUI.Drawing</PackageId> | ||
<LangVersion>latest</LangVersion> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\ReactiveUI\ReactiveUI.csproj" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Splat.Drawing" Version="9.*" /> | ||
</ItemGroup> | ||
</Project> |
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,32 @@ | ||
// Copyright (c) 2019 .NET Foundation and Contributors. All rights reserved. | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
// See the LICENSE file in the project root for full license information. | ||
|
||
using System; | ||
using System.Reactive.Concurrency; | ||
using ReactiveUI; | ||
using Splat; | ||
|
||
namespace ReactiveUI.Drawing | ||
{ | ||
/// <summary> | ||
/// Splat Drawing platform registrations. | ||
/// </summary> | ||
/// <seealso cref="ReactiveUI.IWantsToRegisterStuff" /> | ||
public class Registrations : IWantsToRegisterStuff | ||
{ | ||
/// <inheritdoc/> | ||
public void Register(Action<Func<object>, Type> registerFunction) | ||
{ | ||
if (registerFunction == null) | ||
{ | ||
throw new ArgumentNullException(nameof(registerFunction)); | ||
} | ||
|
||
#if !NETSTANDARD && !NETCOREAPP2_0 | ||
registerFunction(() => new PlatformBitmapLoader(), typeof(IBitmapLoader)); | ||
#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
22 changes: 11 additions & 11 deletions
22
src/ReactiveUI.Fody.Tests/API/ApiApprovalTests.ReactiveUIFody.net461.approved.txt
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
31 changes: 0 additions & 31 deletions
31
src/ReactiveUI.Fody.Tests/API/ApiApprovalTests.ReactiveUIFody.netcoreapp2.0.approved.txt
This file was deleted.
Oops, something went wrong.
31 changes: 31 additions & 0 deletions
31
src/ReactiveUI.Fody.Tests/API/ApiApprovalTests.ReactiveUIFody.netcoreapp3.1.approved.txt
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,31 @@ | ||
[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.AndroidSupport")] | ||
[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.Tests")] | ||
[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.Winforms")] | ||
[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.Wpf")] | ||
[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.XamForms")] | ||
[assembly: System.Runtime.Versioning.TargetFramework(".NETCoreApp,Version=v2.0", FrameworkDisplayName="")] | ||
namespace ReactiveUI.Fody.Helpers | ||
{ | ||
[System.AttributeUsage(System.AttributeTargets.Method | System.AttributeTargets.Property | System.AttributeTargets.All)] | ||
public class ObservableAsPropertyAttribute : System.Attribute | ||
{ | ||
public ObservableAsPropertyAttribute() { } | ||
} | ||
public static class ObservableAsPropertyExtensions | ||
{ | ||
public static ReactiveUI.ObservableAsPropertyHelper<TRet> ToPropertyEx<TObj, TRet>(this System.IObservable<TRet> item, TObj source, System.Linq.Expressions.Expression<System.Func<TObj, TRet>> property, TRet initialValue = default, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler scheduler = null) | ||
where TObj : ReactiveUI.ReactiveObject { } | ||
} | ||
[System.AttributeUsage(System.AttributeTargets.Property | System.AttributeTargets.All)] | ||
public class ReactiveAttribute : System.Attribute | ||
{ | ||
public ReactiveAttribute() { } | ||
} | ||
[System.AttributeUsage(System.AttributeTargets.Property | System.AttributeTargets.All)] | ||
public class ReactiveDependencyAttribute : System.Attribute | ||
{ | ||
public ReactiveDependencyAttribute(string targetName) { } | ||
public string Target { get; } | ||
public string TargetProperty { get; set; } | ||
} | ||
} |
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
Oops, something went wrong.