Merge branch 'master' into 27.1.1
# Conflicts: # arch-lifecycle/viewmodel/source/Arch.Lifecycle.ViewModel.csproj # build.cake # build.sh # cake.packages.config # preference-leanback-v17/source/V17-Preference-Leanback.csproj # support-dynamic-animation/source/Additions/Additions.cs
This commit is contained in:
Коммит
3c370963d1
|
@ -16,6 +16,7 @@
|
|||
<DelaySign>true</DelaySign>
|
||||
<AssemblyOriginatorKeyFile>publickey.snk</AssemblyOriginatorKeyFile> -->
|
||||
<AndroidClassParser>class-parse</AndroidClassParser>
|
||||
<AndroidCodegenTarget>XAJavaInterop1</AndroidCodegenTarget>
|
||||
<ProductVersion>8.0.30703</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
</PropertyGroup>
|
||||
|
|
43
build.cake
43
build.cake
|
@ -66,8 +66,8 @@ var MAVEN_REPO_URL = "https://dl.google.com/dl/android/maven2/";
|
|||
var BUILD_TOOLS_URL = "https://dl-ssl.google.com/android/repository/build-tools_r27-macosx.zip";
|
||||
var ANDROID_SDK_VERSION = IsRunningOnWindows () ? "v8.0" : "android-26";
|
||||
var RENDERSCRIPT_FOLDER = "android-8.1.0";
|
||||
var DOCS_URL = "https://bosstoragemirror.blob.core.windows.net/android-docs-scraper/ea/ea65204c51cf20873c17c32584f3b12ed390ac55/android-support.zip";
|
||||
var REFERENCE_DOCS_URL = "https://developer.android.com/reference/";
|
||||
var REFERENCE_DOCS_PACKAGELIST_URL = REFERENCE_DOCS_URL + "android/support/package-list";
|
||||
|
||||
// We grab the previous release's api-info.xml to use as a comparison for this build's generated info to make an api-diff
|
||||
var BASE_API_INFO_URL = EnvironmentVariable("MONO_API_INFO_XML_URL") ?? API_INFO_URL;
|
||||
|
@ -609,36 +609,23 @@ Task ("buildtasks")
|
|||
Task ("droiddocs")
|
||||
.Does (() =>
|
||||
{
|
||||
EnsureDirectoryExists("./output");
|
||||
EnsureDirectoryExists("./externals/");
|
||||
|
||||
var compressedDocsFile = "./output/docs-" + DOC_VERSION + ".zip";
|
||||
if (!FileExists("./externals/docs.zip"))
|
||||
DownloadFile(DOCS_URL, "./externals/docs.zip");
|
||||
|
||||
if (DirectoryExists("./docs"))
|
||||
DeleteDirectory("./docs", true);
|
||||
|
||||
EnsureDirectoryExists("./docs/");
|
||||
|
||||
if (!FileExists(compressedDocsFile)) {
|
||||
if (IsRunningOnWindows ())
|
||||
StartProcess ("util/droiddocs.exe", "scrape --out ./docs --url " + REFERENCE_DOCS_URL + " --package-list-source " + REFERENCE_DOCS_PACKAGELIST_URL + " --package-filter \"android.support\"");
|
||||
else
|
||||
StartProcess ("mono", "util/droiddocs.exe scrape --out ./docs --url " + REFERENCE_DOCS_URL + " --package-list-source " + REFERENCE_DOCS_PACKAGELIST_URL + " --package-filter \"android.support\"");
|
||||
Unzip("./externals/docs.zip", "./docs");
|
||||
|
||||
// Scraper misses a few files we require
|
||||
EnsureDirectoryExists("./docs/reference");
|
||||
DownloadFile(REFERENCE_DOCS_URL + "classes.html", "./docs/reference/classes.html");
|
||||
CopyFile ("./docs/reference/classes.html", "./docs/reference/index.html");
|
||||
DownloadFile(REFERENCE_DOCS_URL + "packages.html", "./docs/reference/packages.html");
|
||||
|
||||
|
||||
ZipCompress ("./docs", compressedDocsFile);
|
||||
}
|
||||
|
||||
if (!DirectoryExists("./docs"))
|
||||
Unzip (compressedDocsFile, "./docs");
|
||||
|
||||
if (!FileExists("./Metadata.generated.xml")) {
|
||||
// Generate metadata file from docs
|
||||
if (IsRunningOnWindows ())
|
||||
StartProcess ("util/droiddocs.exe", "transform --out ./Metadata.generated.xml --type Metadata --dir ./docs --prefix \"/reference/\" --package-filter \"android.support\"");
|
||||
else
|
||||
StartProcess ("mono", "util/droiddocs.exe transform --out ./Metadata.generated.xml --type Metadata --dir ./docs --prefix \"/reference/\" --package-filter \"android.support\"");
|
||||
}
|
||||
EnsureDirectoryExists("./docs/reference/");
|
||||
|
||||
DownloadFile(REFERENCE_DOCS_URL + "classes.html", "./docs/reference/classes.html");
|
||||
CopyFile ("./docs/reference/classes.html", "./docs/reference/index.html");
|
||||
DownloadFile(REFERENCE_DOCS_URL + "packages.html", "./docs/reference/packages.html");
|
||||
});
|
||||
|
||||
Task ("clean")
|
||||
|
|
18
build.ps1
18
build.ps1
|
@ -106,6 +106,7 @@ $PACKAGES_CONFIG = Join-Path $TOOLS_DIR "packages.config"
|
|||
$PACKAGES_CONFIG_MD5 = Join-Path $TOOLS_DIR "packages.config.md5sum"
|
||||
$ADDINS_PACKAGES_CONFIG = Join-Path $ADDINS_DIR "packages.config"
|
||||
$MODULES_PACKAGES_CONFIG = Join-Path $MODULES_DIR "packages.config"
|
||||
$CAKE_PACKAGES_CONFIG = Join-Path $PSScriptRoot "cake.packages.config"
|
||||
|
||||
# Make sure tools folder exists
|
||||
if ((Test-Path $PSScriptRoot) -and !(Test-Path $TOOLS_DIR)) {
|
||||
|
@ -115,11 +116,16 @@ if ((Test-Path $PSScriptRoot) -and !(Test-Path $TOOLS_DIR)) {
|
|||
|
||||
# Make sure that packages.config exist.
|
||||
if (!(Test-Path $PACKAGES_CONFIG)) {
|
||||
Write-Verbose -Message "Downloading packages.config..."
|
||||
try {
|
||||
$wc = GetProxyEnabledWebClient
|
||||
$wc.DownloadFile("https://cakebuild.net/download/bootstrapper/packages", $PACKAGES_CONFIG) } catch {
|
||||
Throw "Could not download packages.config."
|
||||
if (!(Test-Path $CAKE_PACKAGES_CONFIG)) {
|
||||
Write-Verbose -Message "Downloading packages.config..."
|
||||
try {
|
||||
$wc = GetProxyEnabledWebClient
|
||||
$wc.DownloadFile("https://cakebuild.net/download/bootstrapper/packages", $PACKAGES_CONFIG) } catch {
|
||||
Throw "Could not download packages.config."
|
||||
}
|
||||
} else {
|
||||
Write-Verbose -Message "using local cake.packages.config..."
|
||||
Copy-Item $CAKE_PACKAGES_CONFIG $PACKAGES_CONFIG
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -232,4 +238,4 @@ $cakeArguments += $ScriptArgs
|
|||
# Start Cake
|
||||
Write-Host "Running build script..."
|
||||
&$CAKE_EXE $cakeArguments
|
||||
exit $LASTEXITCODE
|
||||
exit $LASTEXITCODE
|
17
build.sh
17
build.sh
|
@ -46,12 +46,17 @@ if [ ! -d "$TOOLS_DIR" ]; then
|
|||
fi
|
||||
|
||||
# Make sure that packages.config exist.
|
||||
if [ ! -f "$SCRIPT_DIR/cake.packages.config" ]; then
|
||||
echo "Downloading packages.config..."
|
||||
curl -Lsfo "$TOOLS_DIR/packages.config" https://cakebuild.net/download/bootstrapper/packages
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "An error occurred while downloading packages.config."
|
||||
exit 1
|
||||
if [ ! -f "$TOOLS_DIR/packages.config" ]; then
|
||||
if [ ! -f "$SCRIPT_DIR/cake.packages.config" ]; then
|
||||
echo "Downloading packages.config..."
|
||||
curl -Lsfo "$TOOLS_DIR/packages.config" https://cakebuild.net/download/bootstrapper/packages
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "An error occurred while downloading packages.config."
|
||||
exit 1
|
||||
fi
|
||||
else
|
||||
echo "using local cake.packages.config..."
|
||||
cp "$SCRIPT_DIR/cake.packages.config" "$TOOLS_DIR/packages.config"
|
||||
fi
|
||||
else
|
||||
echo "using local cake.packages.config..."
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
<ProductVersion>8.0.30703</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<AndroidClassParser>class-parse</AndroidClassParser>
|
||||
<AndroidCodegenTarget>XAJavaInterop1</AndroidCodegenTarget>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
|
|
|
@ -19,8 +19,8 @@
|
|||
<ProductVersion>8.0.30703</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<AndroidClassParser>class-parse</AndroidClassParser>
|
||||
<AndroidCodegenTarget>XAJavaInterop1</AndroidCodegenTarget>
|
||||
</PropertyGroup>
|
||||
<AndroidCodegenTarget>XAJavaInterop1</AndroidCodegenTarget>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
<ProductVersion>8.0.30703</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<AndroidClassParser>class-parse</AndroidClassParser>
|
||||
<AndroidCodegenTarget>XAJavaInterop1</AndroidCodegenTarget>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
<dependencies>
|
||||
<group targetFramework="MonoAndroid81">
|
||||
<dependency id="Xamarin.Android.Support.Annotations" version="[$version$]" />
|
||||
<dependency id="Xamarin.Android.Arch.Lifecycle.Runtime" version="1.0.3" />
|
||||
<dependency id="Xamarin.Android.Arch.Lifecycle.Runtime" version="$android.arch.lifecycle.runtime$" />
|
||||
</group>
|
||||
</dependencies>
|
||||
</metadata>
|
||||
|
|
|
@ -1,36 +1,86 @@
|
|||
using System;
|
||||
using Android.Runtime;
|
||||
// using System;
|
||||
// using Android.Runtime;
|
||||
|
||||
namespace Android.Support.Animation
|
||||
{
|
||||
internal static class __JniCtorUtil
|
||||
{
|
||||
internal static unsafe void CtorImpl(Java.Lang.Object sender, Type classType, IntPtr classRef, IntPtr methodId, string jniSignature, JValue* args, Action<IntPtr, JniHandleOwnership> setHandle)
|
||||
{
|
||||
if (sender.Handle != IntPtr.Zero)
|
||||
return;
|
||||
// namespace Android.Support.Animation
|
||||
// {
|
||||
// internal static class __JniCtorUtil
|
||||
// {
|
||||
// internal static unsafe void CtorImpl(Java.Lang.Object sender, Type classType, IntPtr classRef, IntPtr methodId, string jniSignature, JValue* args, Action<IntPtr, JniHandleOwnership> setHandle)
|
||||
// {
|
||||
// if (sender.Handle != IntPtr.Zero)
|
||||
// return;
|
||||
|
||||
try
|
||||
{
|
||||
if (((object)sender).GetType() != classType)
|
||||
{
|
||||
setHandle(
|
||||
global::Android.Runtime.JNIEnv.StartCreateInstance(((object)sender).GetType(), jniSignature, args),
|
||||
JniHandleOwnership.TransferLocalRef);
|
||||
global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object)sender).Handle, jniSignature, args);
|
||||
return;
|
||||
}
|
||||
// try
|
||||
// {
|
||||
// if (((object)sender).GetType() != classType)
|
||||
// {
|
||||
// setHandle(
|
||||
// global::Android.Runtime.JNIEnv.StartCreateInstance(((object)sender).GetType(), jniSignature, args),
|
||||
// JniHandleOwnership.TransferLocalRef);
|
||||
// global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object)sender).Handle, jniSignature, args);
|
||||
// return;
|
||||
// }
|
||||
|
||||
if (methodId == IntPtr.Zero)
|
||||
methodId = JNIEnv.GetMethodID(classRef, "<init>", jniSignature);
|
||||
setHandle(
|
||||
global::Android.Runtime.JNIEnv.StartCreateInstance(classRef, methodId, args),
|
||||
JniHandleOwnership.TransferLocalRef);
|
||||
JNIEnv.FinishCreateInstance(((global::Java.Lang.Object)sender).Handle, classRef, methodId, args);
|
||||
}
|
||||
finally
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// if (methodId == IntPtr.Zero)
|
||||
// methodId = JNIEnv.GetMethodID(classRef, "<init>", jniSignature);
|
||||
// setHandle(
|
||||
// global::Android.Runtime.JNIEnv.StartCreateInstance(classRef, methodId, args),
|
||||
// JniHandleOwnership.TransferLocalRef);
|
||||
// JNIEnv.FinishCreateInstance(((global::Java.Lang.Object)sender).Handle, classRef, methodId, args);
|
||||
// }
|
||||
// finally
|
||||
// {
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
// public partial class SpringAnimation
|
||||
// {
|
||||
// private const string CTOR_1 = "(Ljava/lang/Object;Landroid/support/animation/FloatPropertyCompat;)V";
|
||||
// static IntPtr id_ctor_1;
|
||||
|
||||
// [Register(".ctor", CTOR_1, "")]
|
||||
// public unsafe SpringAnimation(global::Java.Lang.Object @object, FloatPropertyCompat @property)
|
||||
// : base (IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
|
||||
// {
|
||||
// JValue* __args = stackalloc JValue[2];
|
||||
// __args[0] = new JValue(@object);
|
||||
// __args[1] = new JValue(@property);
|
||||
|
||||
// __JniCtorUtil.CtorImpl(this, typeof(SpringAnimation), class_ref, id_ctor_1, CTOR_1, __args, SetHandle);
|
||||
// }
|
||||
|
||||
|
||||
// private const string JNI_CTOR_2 = "(Ljava/lang/Object;Landroid/support/animation/FloatPropertyCompat;F)V";
|
||||
// static IntPtr id_ctor_2;
|
||||
|
||||
// [Register(".ctor", JNI_CTOR_2, "")]
|
||||
// public unsafe SpringAnimation(global::Java.Lang.Object @object, FloatPropertyCompat @property, float finalPosition)
|
||||
// : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
|
||||
// {
|
||||
// JValue* __args = stackalloc JValue[3];
|
||||
// __args[0] = new JValue(@object);
|
||||
// __args[1] = new JValue(@property);
|
||||
// __args[2] = new JValue(finalPosition);
|
||||
|
||||
// __JniCtorUtil.CtorImpl(this, typeof(SpringAnimation), class_ref, id_ctor_2, JNI_CTOR_2, __args, SetHandle);
|
||||
// }
|
||||
// }
|
||||
|
||||
// public partial class FlingAnimation
|
||||
// {
|
||||
// private const string JNI_CTOR_1 = "(Ljava/lang/Object;Landroid/support/animation/FloatPropertyCompat;)V";
|
||||
// static IntPtr id_ctor_1;
|
||||
|
||||
// [Register(".ctor", JNI_CTOR_1, "")]
|
||||
// public unsafe FlingAnimation(global::Java.Lang.Object @object, FloatPropertyCompat @property)
|
||||
// : base (IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
|
||||
// {
|
||||
// JValue* __args = stackalloc JValue[2];
|
||||
// __args[0] = new JValue(@object);
|
||||
// __args[1] = new JValue(@property);
|
||||
|
||||
// __JniCtorUtil.CtorImpl(this, typeof(FlingAnimation), class_ref, id_ctor_1, JNI_CTOR_1, __args, SetHandle);
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
<DelaySign>true</DelaySign>
|
||||
<AssemblyOriginatorKeyFile>publickey.snk</AssemblyOriginatorKeyFile> -->
|
||||
<AndroidClassParser>class-parse</AndroidClassParser>
|
||||
<AndroidCodegenTarget>XAJavaInterop1</AndroidCodegenTarget>
|
||||
<ProductVersion>8.0.30703</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
</PropertyGroup>
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<AndroidFragmentType>Android.Support.V4.App.Fragment</AndroidFragmentType>
|
||||
</PropertyGroup>
|
||||
</Project>
|
|
@ -16,6 +16,7 @@
|
|||
<DelaySign>true</DelaySign>
|
||||
<AssemblyOriginatorKeyFile>publickey.snk</AssemblyOriginatorKeyFile> -->
|
||||
<AndroidClassParser>class-parse</AndroidClassParser>
|
||||
<AndroidCodegenTarget>XAJavaInterop1</AndroidCodegenTarget>
|
||||
<ProductVersion>8.0.30703</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
</PropertyGroup>
|
||||
|
|
Загрузка…
Ссылка в новой задаче