Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
<!-- Default TFM's we build for -->
<_DefaultTargetFrameworks>MonoAndroid12.0;net6.0-android;net7.0-android</_DefaultTargetFrameworks>

<!-- Use an updated 'generator' -->
<!-- It's ok to use "Windows" here because we only use managed code from this package -->
<_BindingsToolsLocation>$(MSBuildThisFileDirectory)/tools/Microsoft.Android.Sdk.Windows.34.0.43/tools/</_BindingsToolsLocation>

<!-- Enable DIM/SIM for Classic (defaults to true on .NET) -->
<AndroidBoundInterfacesContainStaticAndDefaultInterfaceMethods>true</AndroidBoundInterfacesContainStaticAndDefaultInterfaceMethods>

Expand Down Expand Up @@ -37,8 +41,11 @@
<Copyright>© Microsoft Corporation. All rights reserved.</Copyright>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<PackageProjectUrl>https://aka.ms/androidx</PackageProjectUrl>
</PropertyGroup>

<!-- Exclude TF-specific transform files by default -->
<DefaultTransformExcludes>**/*.MonoAndroid*.0.xml;**/*.net*.0-android.xml</DefaultTransformExcludes>
</PropertyGroup>

<!-- Folders that .targets files need to go into -->
<ItemGroup>
<AndroidXNuGetTargetFolders Include="build\monoandroid12.0" />
Expand Down
1 change: 1 addition & 0 deletions build.cake
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Tools needed by cake addins
#tool nuget:?package=Cake.CoreCLR
#tool nuget:?package=vswhere&version=3.1.7
#tool nuget:?package=Microsoft.Android.Sdk.Windows&version=34.0.43

// Cake Addins
#addin nuget:?package=Cake.FileHelpers&version=6.1.3
Expand Down
5 changes: 4 additions & 1 deletion source/AndroidXProject.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,10 @@
<TransformFile Include="..\..\source\Metadata.common.xml" >
<Link>Transforms/Metadata.common.xml</Link>
</TransformFile>
<TransformFile Include="..\..\source\@(Model.MavenGroupId)\@(Model.Name)\Transforms\*.xml">
<TransformFile Include="..\..\source\@(Model.MavenGroupId)\@(Model.Name)\Transforms\*.xml" Exclude="$(DefaultTransformExcludes)">
<Link>Transforms/%(RecursiveDir)/%(Filename)%(Extension)</Link>
</TransformFile>
<TransformFile Include="..\..\source\@(Model.MavenGroupId)\@(Model.Name)\Transforms\*.$(TargetFramework).xml">
<Link>Transforms/%(RecursiveDir)/%(Filename)%(Extension)</Link>
</TransformFile>
<AndroidJavaSource
Expand Down
24 changes: 23 additions & 1 deletion source/Xamarin.Kotlin.StdLib/Additions/InterfacesFixups.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
namespace Kotlin.Collections
using Java.Lang;
using Java.Util;

namespace Kotlin.Collections
{
// TODO: Remove these fixes when this bug is fixed:
// https://github.com/xamarin/java.interop/issues/470
Expand All @@ -11,3 +14,22 @@ partial class AbstractListInvoker : Java.Util.IList
{
}
}

#if NET7_0_OR_GREATER
namespace Kotlin.Collections.Builders
{
public partial class MapBuilder
{
int IMap.Size () => Size;

global::System.Collections.ICollection IMap.Values () => Values;
}

public partial class MapBuilderEntries
{
public override bool Add (Object? element) => Add ((IMapEntry) element!);

public override int GetSize () => Size;
}
}
#endif
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<metadata>
<remove-node path="/api/package[@name='kotlin.collections.builders']/class[@name='AbstractMapBuilderEntrySet']/method[@name='contains' and count(parameter)=1 and parameter[1][@type='java.lang.Object']]" />
</metadata>
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
<metadata>
<add-node
path="/api/package[@name='com.google.crypto.tink.signature']/class[@name='EcdsaPrivateKey']"
>
<method
visibility="public" static="false" abstract="false" return="com.google.crypto.tink.Key" name="getPublicKey"
deprecated="not deprecated" final="false" bridge="false" native="false"
synchronized="false" synthetic="false"
/>
</add-node>
<add-node
path="/api/package[@name='com.google.crypto.tink.signature']/class[@name='EcdsaPublicKey']"
>
<method
visibility="public" static="false" abstract="false" return="com.google.crypto.tink.Parameters" name="getParameters"
deprecated="not deprecated" final="false" bridge="false" native="false"
synchronized="false" synthetic="false"
/>
</add-node>
<add-node
path="/api/package[@name='com.google.crypto.tink.prf']/class[@name='HkdfPrfKey']"
>
<method
visibility="public" static="false" abstract="false" return="com.google.crypto.tink.Parameters" name="getParameters"
deprecated="not deprecated" final="false" bridge="false" native="false"
synchronized="false" synthetic="false"
/>
</add-node>
<add-node
path="/api/package[@name='com.google.crypto.tink.streamingaead']/class[@name='AesGcmHkdfStreamingKey']"
>
<method
visibility="public" static="false" abstract="false" return="com.google.crypto.tink.Parameters" name="getParameters"
deprecated="not deprecated" final="false" bridge="false" native="false"
synchronized="false" synthetic="false"
/>
</add-node>
<add-node
path="/api/package[@name='com.google.crypto.tink.streamingaead']/class[@name='AesCtrHmacStreamingKey']"
>
<method
visibility="public" static="false" abstract="false" return="com.google.crypto.tink.Parameters" name="getParameters"
deprecated="not deprecated" final="false" bridge="false" native="false"
synchronized="false" synthetic="false"
/>
</add-node>
<add-node
path="/api/package[@name='com.google.crypto.tink.signature']/class[@name='RsaSsaPkcs1PublicKey']"
>
<method
visibility="public" static="false" abstract="false" return="com.google.crypto.tink.Parameters" name="getParameters"
deprecated="not deprecated" final="false" bridge="false" native="false"
synchronized="false" synthetic="false"
/>
</add-node>
<add-node
path="/api/package[@name='com.google.crypto.tink.signature']/class[@name='Ed25519PublicKey']"
>
<method
visibility="public" static="false" abstract="false" return="com.google.crypto.tink.Parameters" name="getParameters"
deprecated="not deprecated" final="false" bridge="false" native="false"
synchronized="false" synthetic="false"
/>
</add-node>
<add-node
path="/api/package[@name='com.google.crypto.tink.prf']/class[@name='AesCmacPrfKey']"
>
<method
visibility="public" static="false" abstract="false" return="com.google.crypto.tink.Parameters" name="getParameters"
deprecated="not deprecated" final="false" bridge="false" native="false"
synchronized="false" synthetic="false"
/>
</add-node>
<add-node
path="/api/package[@name='com.google.crypto.tink.prf']/class[@name='HmacPrfKey']"
>
<method
visibility="public" static="false" abstract="false" return="com.google.crypto.tink.Parameters" name="getParameters"
deprecated="not deprecated" final="false" bridge="false" native="false"
synchronized="false" synthetic="false"
/>
</add-node>
<add-node
path="/api/package[@name='com.google.crypto.tink.signature']/class[@name='Ed25519PrivateKey']"
>
<method
visibility="public" static="false" abstract="false" return="com.google.crypto.tink.Key" name="getPublicKey"
deprecated="not deprecated" final="false" bridge="false" native="false"
synchronized="false" synthetic="false"
/>
</add-node>
<add-node
path="/api/package[@name='com.google.crypto.tink.signature']/class[@name='RsaSsaPkcs1PrivateKey']"
>
<method
visibility="public" static="false" abstract="false" return="com.google.crypto.tink.Key" name="getPublicKey"
deprecated="not deprecated" final="false" bridge="false" native="false"
synchronized="false" synthetic="false"
/>
</add-node>
<add-node
path="/api/package[@name='com.google.crypto.tink.signature']/class[@name='RsaSsaPssPrivateKey']"
>
<method
visibility="public" static="false" abstract="false" return="com.google.crypto.tink.Key" name="getPublicKey"
deprecated="not deprecated" final="false" bridge="false" native="false"
synchronized="false" synthetic="false"
/>
</add-node>
<add-node
path="/api/package[@name='com.google.crypto.tink.signature']/class[@name='RsaSsaPssPublicKey']"
>
<method
visibility="public" static="false" abstract="false" return="com.google.crypto.tink.Parameters" name="getParameters"
deprecated="not deprecated" final="false" bridge="false" native="false"
synchronized="false" synthetic="false"
/>
</add-node>
</metadata>
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
<metadata>
<add-node
path="/api/package[@name='com.google.crypto.tink.signature']/class[@name='EcdsaPrivateKey']"
>
<method
visibility="public" static="false" abstract="false" return="com.google.crypto.tink.Key" name="getPublicKey"
deprecated="not deprecated" final="false" bridge="false" native="false"
synchronized="false" synthetic="false"
/>
</add-node>
<add-node
path="/api/package[@name='com.google.crypto.tink.signature']/class[@name='EcdsaPublicKey']"
>
<method
visibility="public" static="false" abstract="false" return="com.google.crypto.tink.Parameters" name="getParameters"
deprecated="not deprecated" final="false" bridge="false" native="false"
synchronized="false" synthetic="false"
/>
</add-node>
<add-node
path="/api/package[@name='com.google.crypto.tink.prf']/class[@name='HkdfPrfKey']"
>
<method
visibility="public" static="false" abstract="false" return="com.google.crypto.tink.Parameters" name="getParameters"
deprecated="not deprecated" final="false" bridge="false" native="false"
synchronized="false" synthetic="false"
/>
</add-node>
<add-node
path="/api/package[@name='com.google.crypto.tink.streamingaead']/class[@name='AesGcmHkdfStreamingKey']"
>
<method
visibility="public" static="false" abstract="false" return="com.google.crypto.tink.Parameters" name="getParameters"
deprecated="not deprecated" final="false" bridge="false" native="false"
synchronized="false" synthetic="false"
/>
</add-node>
<add-node
path="/api/package[@name='com.google.crypto.tink.streamingaead']/class[@name='AesCtrHmacStreamingKey']"
>
<method
visibility="public" static="false" abstract="false" return="com.google.crypto.tink.Parameters" name="getParameters"
deprecated="not deprecated" final="false" bridge="false" native="false"
synchronized="false" synthetic="false"
/>
</add-node>
<add-node
path="/api/package[@name='com.google.crypto.tink.signature']/class[@name='RsaSsaPkcs1PublicKey']"
>
<method
visibility="public" static="false" abstract="false" return="com.google.crypto.tink.Parameters" name="getParameters"
deprecated="not deprecated" final="false" bridge="false" native="false"
synchronized="false" synthetic="false"
/>
</add-node>
<add-node
path="/api/package[@name='com.google.crypto.tink.signature']/class[@name='Ed25519PublicKey']"
>
<method
visibility="public" static="false" abstract="false" return="com.google.crypto.tink.Parameters" name="getParameters"
deprecated="not deprecated" final="false" bridge="false" native="false"
synchronized="false" synthetic="false"
/>
</add-node>
<add-node
path="/api/package[@name='com.google.crypto.tink.prf']/class[@name='AesCmacPrfKey']"
>
<method
visibility="public" static="false" abstract="false" return="com.google.crypto.tink.Parameters" name="getParameters"
deprecated="not deprecated" final="false" bridge="false" native="false"
synchronized="false" synthetic="false"
/>
</add-node>
<add-node
path="/api/package[@name='com.google.crypto.tink.prf']/class[@name='HmacPrfKey']"
>
<method
visibility="public" static="false" abstract="false" return="com.google.crypto.tink.Parameters" name="getParameters"
deprecated="not deprecated" final="false" bridge="false" native="false"
synchronized="false" synthetic="false"
/>
</add-node>
<add-node
path="/api/package[@name='com.google.crypto.tink.signature']/class[@name='Ed25519PrivateKey']"
>
<method
visibility="public" static="false" abstract="false" return="com.google.crypto.tink.Key" name="getPublicKey"
deprecated="not deprecated" final="false" bridge="false" native="false"
synchronized="false" synthetic="false"
/>
</add-node>
<add-node
path="/api/package[@name='com.google.crypto.tink.signature']/class[@name='RsaSsaPkcs1PrivateKey']"
>
<method
visibility="public" static="false" abstract="false" return="com.google.crypto.tink.Key" name="getPublicKey"
deprecated="not deprecated" final="false" bridge="false" native="false"
synchronized="false" synthetic="false"
/>
</add-node>
<add-node
path="/api/package[@name='com.google.crypto.tink.signature']/class[@name='RsaSsaPssPrivateKey']"
>
<method
visibility="public" static="false" abstract="false" return="com.google.crypto.tink.Key" name="getPublicKey"
deprecated="not deprecated" final="false" bridge="false" native="false"
synchronized="false" synthetic="false"
/>
</add-node>
<add-node
path="/api/package[@name='com.google.crypto.tink.signature']/class[@name='RsaSsaPssPublicKey']"
>
<method
visibility="public" static="false" abstract="false" return="com.google.crypto.tink.Parameters" name="getParameters"
deprecated="not deprecated" final="false" bridge="false" native="false"
synchronized="false" synthetic="false"
/>
</add-node>
</metadata>
Loading