From ad9a32da081226c742872f874d904b1cb8a28bcb Mon Sep 17 00:00:00 2001 From: Redth Date: Sun, 3 Jun 2018 11:27:21 -0400 Subject: [PATCH 1/8] Use XAJavaInterop1 Codegen target --- animated-vector-drawable/source/Animated-Vector-Drawable.csproj | 1 + appcompat-v7/source/V7-AppCompat.csproj | 1 + arch-core/common/source/Arch.Core.Common.csproj | 1 + arch-core/runtime/source/Arch.Core.Runtime.csproj | 1 + arch-lifecycle/common/source/Arch.Lifecycle.Common.csproj | 1 + .../extensions/source/Arch.Lifecycle.Extensions.csproj | 1 + arch-lifecycle/runtime/source/Arch.Lifecycle.Runtime.csproj | 1 + cardview-v7/source/V7-CardView.csproj | 1 + constraint-layout/source/ConstraintLayout.csproj | 1 + customtabs/source/CustomTabs.csproj | 1 + design/source/Design.csproj | 1 + exifinterface/source/Exif.csproj | 1 + gridlayout-v7/source/V7-GridLayout.csproj | 1 + leanback-v17/source/V17-Leanback.csproj | 1 + mediarouter-v7/source/V7-MediaRouter.csproj | 1 + palette-v7/source/V7-Palette.csproj | 1 + percent/source/Percent.csproj | 1 + preference-leanback-v17/source/V17-Preference-Leanback.csproj | 1 + preference-v14/source/V14-Preference.csproj | 1 + preference-v7/source/V7-Preference.csproj | 1 + recommendation/source/Recommendation.csproj | 1 + recyclerview-v7/source/V7-RecyclerView.csproj | 1 + renderscript-v8/source/V8-RenderScript.csproj | 1 + support-annotations/source/Annotations.csproj | 1 + support-compat/source/Compat.csproj | 1 + support-content/source/Content.csproj | 1 + support-core-ui/source/Core-UI.csproj | 1 + support-core-utils/source/Core-Utils.csproj | 1 + support-dynamic-animation/source/DynamicAnimation.csproj | 1 + support-emoji-appcompat/source/Emoji-AppCompat.csproj | 1 + support-emoji-bundled/source/Emoji-Bundled.csproj | 1 + support-emoji/source/Emoji.csproj | 1 + support-fragment/source/Fragment.csproj | 1 + support-media-compat/source/Media-Compat.csproj | 1 + support-tv-provider/source/TV-Provider.csproj | 1 + support-v13/source/V13.csproj | 1 + support-v4/source/V4.csproj | 1 + support-vector-drawable/source/Vector-Drawable.csproj | 1 + transition/source/Transition.csproj | 1 + wear/source/Wear.csproj | 1 + 40 files changed, 40 insertions(+) diff --git a/animated-vector-drawable/source/Animated-Vector-Drawable.csproj b/animated-vector-drawable/source/Animated-Vector-Drawable.csproj index 209a9278..359759a1 100644 --- a/animated-vector-drawable/source/Animated-Vector-Drawable.csproj +++ b/animated-vector-drawable/source/Animated-Vector-Drawable.csproj @@ -19,6 +19,7 @@ 8.0.30703 2.0 class-parse + XAJavaInterop1 true diff --git a/appcompat-v7/source/V7-AppCompat.csproj b/appcompat-v7/source/V7-AppCompat.csproj index 2d2cff1a..e086a67a 100644 --- a/appcompat-v7/source/V7-AppCompat.csproj +++ b/appcompat-v7/source/V7-AppCompat.csproj @@ -19,6 +19,7 @@ 8.0.30703 2.0 class-parse + XAJavaInterop1 true diff --git a/arch-core/common/source/Arch.Core.Common.csproj b/arch-core/common/source/Arch.Core.Common.csproj index be85961b..8870bb3d 100644 --- a/arch-core/common/source/Arch.Core.Common.csproj +++ b/arch-core/common/source/Arch.Core.Common.csproj @@ -16,6 +16,7 @@ true publickey.snk --> class-parse + XAJavaInterop1 8.0.30703 2.0 diff --git a/arch-core/runtime/source/Arch.Core.Runtime.csproj b/arch-core/runtime/source/Arch.Core.Runtime.csproj index d4b87265..13a9f9ee 100644 --- a/arch-core/runtime/source/Arch.Core.Runtime.csproj +++ b/arch-core/runtime/source/Arch.Core.Runtime.csproj @@ -16,6 +16,7 @@ true publickey.snk --> class-parse + XAJavaInterop1 8.0.30703 2.0 diff --git a/arch-lifecycle/common/source/Arch.Lifecycle.Common.csproj b/arch-lifecycle/common/source/Arch.Lifecycle.Common.csproj index dc7f4328..850501ec 100644 --- a/arch-lifecycle/common/source/Arch.Lifecycle.Common.csproj +++ b/arch-lifecycle/common/source/Arch.Lifecycle.Common.csproj @@ -16,6 +16,7 @@ true publickey.snk --> class-parse + XAJavaInterop1 8.0.30703 2.0 diff --git a/arch-lifecycle/extensions/source/Arch.Lifecycle.Extensions.csproj b/arch-lifecycle/extensions/source/Arch.Lifecycle.Extensions.csproj index b1d99bb5..1816286e 100644 --- a/arch-lifecycle/extensions/source/Arch.Lifecycle.Extensions.csproj +++ b/arch-lifecycle/extensions/source/Arch.Lifecycle.Extensions.csproj @@ -13,6 +13,7 @@ Assets true class-parse + XAJavaInterop1 true diff --git a/arch-lifecycle/runtime/source/Arch.Lifecycle.Runtime.csproj b/arch-lifecycle/runtime/source/Arch.Lifecycle.Runtime.csproj index 34892840..77e04388 100644 --- a/arch-lifecycle/runtime/source/Arch.Lifecycle.Runtime.csproj +++ b/arch-lifecycle/runtime/source/Arch.Lifecycle.Runtime.csproj @@ -16,6 +16,7 @@ true publickey.snk --> class-parse + XAJavaInterop1 8.0.30703 2.0 diff --git a/cardview-v7/source/V7-CardView.csproj b/cardview-v7/source/V7-CardView.csproj index 0c8165f2..f9e49aff 100644 --- a/cardview-v7/source/V7-CardView.csproj +++ b/cardview-v7/source/V7-CardView.csproj @@ -18,6 +18,7 @@ 8.0.30703 2.0 class-parse + XAJavaInterop1 true diff --git a/constraint-layout/source/ConstraintLayout.csproj b/constraint-layout/source/ConstraintLayout.csproj index f99cf4ca..d8508ae8 100644 --- a/constraint-layout/source/ConstraintLayout.csproj +++ b/constraint-layout/source/ConstraintLayout.csproj @@ -13,6 +13,7 @@ Assets false class-parse + XAJavaInterop1 true diff --git a/customtabs/source/CustomTabs.csproj b/customtabs/source/CustomTabs.csproj index b6a58145..81ae4e8b 100644 --- a/customtabs/source/CustomTabs.csproj +++ b/customtabs/source/CustomTabs.csproj @@ -17,6 +17,7 @@ true publickey.snk --> class-parse + XAJavaInterop1 true diff --git a/design/source/Design.csproj b/design/source/Design.csproj index 7756a4f7..bb7a900a 100644 --- a/design/source/Design.csproj +++ b/design/source/Design.csproj @@ -17,6 +17,7 @@ true publickey.snk --> class-parse + XAJavaInterop1 true diff --git a/exifinterface/source/Exif.csproj b/exifinterface/source/Exif.csproj index ed64cc30..86f54215 100644 --- a/exifinterface/source/Exif.csproj +++ b/exifinterface/source/Exif.csproj @@ -16,6 +16,7 @@ true publickey.snk --> class-parse + XAJavaInterop1 true diff --git a/gridlayout-v7/source/V7-GridLayout.csproj b/gridlayout-v7/source/V7-GridLayout.csproj index 4e374afb..779e52d2 100644 --- a/gridlayout-v7/source/V7-GridLayout.csproj +++ b/gridlayout-v7/source/V7-GridLayout.csproj @@ -19,6 +19,7 @@ 8.0.30703 2.0 class-parse + XAJavaInterop1 true diff --git a/leanback-v17/source/V17-Leanback.csproj b/leanback-v17/source/V17-Leanback.csproj index 6f36b325..cab615d6 100644 --- a/leanback-v17/source/V17-Leanback.csproj +++ b/leanback-v17/source/V17-Leanback.csproj @@ -18,6 +18,7 @@ 8.0.30703 2.0 class-parse + XAJavaInterop1 true diff --git a/mediarouter-v7/source/V7-MediaRouter.csproj b/mediarouter-v7/source/V7-MediaRouter.csproj index cefc267b..f710fdd3 100644 --- a/mediarouter-v7/source/V7-MediaRouter.csproj +++ b/mediarouter-v7/source/V7-MediaRouter.csproj @@ -19,6 +19,7 @@ 8.0.30703 2.0 class-parse + XAJavaInterop1 true diff --git a/palette-v7/source/V7-Palette.csproj b/palette-v7/source/V7-Palette.csproj index 21750523..67a0ab23 100644 --- a/palette-v7/source/V7-Palette.csproj +++ b/palette-v7/source/V7-Palette.csproj @@ -19,6 +19,7 @@ 8.0.30703 2.0 class-parse + XAJavaInterop1 true diff --git a/percent/source/Percent.csproj b/percent/source/Percent.csproj index 5bbe92d4..e7f4702d 100644 --- a/percent/source/Percent.csproj +++ b/percent/source/Percent.csproj @@ -19,6 +19,7 @@ 8.0.30703 2.0 class-parse + XAJavaInterop1 true diff --git a/preference-leanback-v17/source/V17-Preference-Leanback.csproj b/preference-leanback-v17/source/V17-Preference-Leanback.csproj index 3e461d24..2098ae35 100644 --- a/preference-leanback-v17/source/V17-Preference-Leanback.csproj +++ b/preference-leanback-v17/source/V17-Preference-Leanback.csproj @@ -19,6 +19,7 @@ 8.0.30703 2.0 class-parse + XAJavaInterop1 true diff --git a/preference-v14/source/V14-Preference.csproj b/preference-v14/source/V14-Preference.csproj index 9a41c77a..cb388f45 100644 --- a/preference-v14/source/V14-Preference.csproj +++ b/preference-v14/source/V14-Preference.csproj @@ -20,6 +20,7 @@ 8.0.30703 2.0 class-parse + XAJavaInterop1 true diff --git a/preference-v7/source/V7-Preference.csproj b/preference-v7/source/V7-Preference.csproj index 1780f60c..50ed0e3e 100644 --- a/preference-v7/source/V7-Preference.csproj +++ b/preference-v7/source/V7-Preference.csproj @@ -20,6 +20,7 @@ 8.0.30703 2.0 class-parse + XAJavaInterop1 true diff --git a/recommendation/source/Recommendation.csproj b/recommendation/source/Recommendation.csproj index f87bbcf1..ab5be4a4 100644 --- a/recommendation/source/Recommendation.csproj +++ b/recommendation/source/Recommendation.csproj @@ -19,6 +19,7 @@ 8.0.30703 2.0 class-parse + XAJavaInterop1 true diff --git a/recyclerview-v7/source/V7-RecyclerView.csproj b/recyclerview-v7/source/V7-RecyclerView.csproj index cbf43062..36452132 100644 --- a/recyclerview-v7/source/V7-RecyclerView.csproj +++ b/recyclerview-v7/source/V7-RecyclerView.csproj @@ -19,6 +19,7 @@ 8.0.30703 2.0 class-parse + XAJavaInterop1 true diff --git a/renderscript-v8/source/V8-RenderScript.csproj b/renderscript-v8/source/V8-RenderScript.csproj index a8dd06c4..b0859d8b 100644 --- a/renderscript-v8/source/V8-RenderScript.csproj +++ b/renderscript-v8/source/V8-RenderScript.csproj @@ -18,6 +18,7 @@ 8.0.30703 2.0 class-parse + XAJavaInterop1 true diff --git a/support-annotations/source/Annotations.csproj b/support-annotations/source/Annotations.csproj index ee104f9e..b706272b 100644 --- a/support-annotations/source/Annotations.csproj +++ b/support-annotations/source/Annotations.csproj @@ -16,6 +16,7 @@ true publickey.snk --> class-parse + XAJavaInterop1 8.0.30703 2.0 diff --git a/support-compat/source/Compat.csproj b/support-compat/source/Compat.csproj index 036e5f93..f6fdbffb 100644 --- a/support-compat/source/Compat.csproj +++ b/support-compat/source/Compat.csproj @@ -16,6 +16,7 @@ true publickey.snk --> class-parse + XAJavaInterop1 8.0.30703 2.0 diff --git a/support-content/source/Content.csproj b/support-content/source/Content.csproj index 94888aa7..4645c558 100644 --- a/support-content/source/Content.csproj +++ b/support-content/source/Content.csproj @@ -16,6 +16,7 @@ true publickey.snk --> class-parse + XAJavaInterop1 8.0.30703 2.0 diff --git a/support-core-ui/source/Core-UI.csproj b/support-core-ui/source/Core-UI.csproj index 58f0e75a..c0272010 100644 --- a/support-core-ui/source/Core-UI.csproj +++ b/support-core-ui/source/Core-UI.csproj @@ -16,6 +16,7 @@ true publickey.snk --> class-parse + XAJavaInterop1 8.0.30703 2.0 diff --git a/support-core-utils/source/Core-Utils.csproj b/support-core-utils/source/Core-Utils.csproj index 81b78edb..301ca9d3 100644 --- a/support-core-utils/source/Core-Utils.csproj +++ b/support-core-utils/source/Core-Utils.csproj @@ -16,6 +16,7 @@ true publickey.snk --> class-parse + XAJavaInterop1 8.0.30703 2.0 diff --git a/support-dynamic-animation/source/DynamicAnimation.csproj b/support-dynamic-animation/source/DynamicAnimation.csproj index b5f85c8c..cf643ad3 100644 --- a/support-dynamic-animation/source/DynamicAnimation.csproj +++ b/support-dynamic-animation/source/DynamicAnimation.csproj @@ -16,6 +16,7 @@ true publickey.snk --> class-parse + XAJavaInterop1 8.0.30703 2.0 diff --git a/support-emoji-appcompat/source/Emoji-AppCompat.csproj b/support-emoji-appcompat/source/Emoji-AppCompat.csproj index 95ddf448..bc84ab8e 100644 --- a/support-emoji-appcompat/source/Emoji-AppCompat.csproj +++ b/support-emoji-appcompat/source/Emoji-AppCompat.csproj @@ -16,6 +16,7 @@ true publickey.snk --> class-parse + XAJavaInterop1 8.0.30703 2.0 diff --git a/support-emoji-bundled/source/Emoji-Bundled.csproj b/support-emoji-bundled/source/Emoji-Bundled.csproj index 7164e4b1..2872da68 100644 --- a/support-emoji-bundled/source/Emoji-Bundled.csproj +++ b/support-emoji-bundled/source/Emoji-Bundled.csproj @@ -16,6 +16,7 @@ true publickey.snk --> class-parse + XAJavaInterop1 8.0.30703 2.0 diff --git a/support-emoji/source/Emoji.csproj b/support-emoji/source/Emoji.csproj index b438dbc6..0e6dae57 100644 --- a/support-emoji/source/Emoji.csproj +++ b/support-emoji/source/Emoji.csproj @@ -16,6 +16,7 @@ true publickey.snk --> class-parse + XAJavaInterop1 8.0.30703 2.0 diff --git a/support-fragment/source/Fragment.csproj b/support-fragment/source/Fragment.csproj index 698e3a78..7eb1fa0b 100644 --- a/support-fragment/source/Fragment.csproj +++ b/support-fragment/source/Fragment.csproj @@ -16,6 +16,7 @@ true publickey.snk --> class-parse + XAJavaInterop1 8.0.30703 2.0 diff --git a/support-media-compat/source/Media-Compat.csproj b/support-media-compat/source/Media-Compat.csproj index 47dcf8be..1239b3bd 100644 --- a/support-media-compat/source/Media-Compat.csproj +++ b/support-media-compat/source/Media-Compat.csproj @@ -16,6 +16,7 @@ true publickey.snk --> class-parse + XAJavaInterop1 8.0.30703 2.0 diff --git a/support-tv-provider/source/TV-Provider.csproj b/support-tv-provider/source/TV-Provider.csproj index 7246ceaf..ed3f99c4 100644 --- a/support-tv-provider/source/TV-Provider.csproj +++ b/support-tv-provider/source/TV-Provider.csproj @@ -16,6 +16,7 @@ true publickey.snk --> class-parse + XAJavaInterop1 true diff --git a/support-v13/source/V13.csproj b/support-v13/source/V13.csproj index ea551eb3..eac9bcd4 100644 --- a/support-v13/source/V13.csproj +++ b/support-v13/source/V13.csproj @@ -16,6 +16,7 @@ true publickey.snk --> class-parse + XAJavaInterop1 8.0.30703 2.0 diff --git a/support-v4/source/V4.csproj b/support-v4/source/V4.csproj index 35788714..20a5b62d 100644 --- a/support-v4/source/V4.csproj +++ b/support-v4/source/V4.csproj @@ -16,6 +16,7 @@ true publickey.snk --> class-parse + XAJavaInterop1 8.0.30703 2.0 diff --git a/support-vector-drawable/source/Vector-Drawable.csproj b/support-vector-drawable/source/Vector-Drawable.csproj index 6b73cb28..c323884c 100644 --- a/support-vector-drawable/source/Vector-Drawable.csproj +++ b/support-vector-drawable/source/Vector-Drawable.csproj @@ -19,6 +19,7 @@ 8.0.30703 2.0 class-parse + XAJavaInterop1 true diff --git a/transition/source/Transition.csproj b/transition/source/Transition.csproj index fb2f0302..b1caac65 100644 --- a/transition/source/Transition.csproj +++ b/transition/source/Transition.csproj @@ -16,6 +16,7 @@ true publickey.snk --> class-parse + XAJavaInterop1 true diff --git a/wear/source/Wear.csproj b/wear/source/Wear.csproj index 0c8ab1a9..c7028d8d 100644 --- a/wear/source/Wear.csproj +++ b/wear/source/Wear.csproj @@ -16,6 +16,7 @@ true publickey.snk --> class-parse + XAJavaInterop1 true From 947513e062e92e0c1f8591aeadeffb0caa74c450 Mon Sep 17 00:00:00 2001 From: Redth Date: Sun, 3 Jun 2018 11:27:26 -0400 Subject: [PATCH 2/8] Bump nuget versions --- build.cake | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/build.cake b/build.cake index 92deb388..7dfd6d51 100644 --- a/build.cake +++ b/build.cake @@ -43,7 +43,7 @@ var BUILD_CONFIG = Argument ("config", "Release"); var NUGET_PRE = ""; -var NUGET_VERSION = "27.0.2" + NUGET_PRE; +var NUGET_VERSION = "27.0.2.1" + NUGET_PRE; var COMPONENT_VERSION = "27.0.2.0"; var AAR_VERSION = "27.0.2"; @@ -53,11 +53,11 @@ var ARCH_LIFECYCLE_COMMON_AAR_VERSION = "1.0.3"; var ARCH_LIFECYCLE_RUNTIME_AAR_VERSION = "1.0.3"; var ARCH_LIFECYCLE_EXTENSIONS_AAR_VERSION = "1.0.0"; -var ARCH_CORE_COMMON_NUGET_VERSION = "1.0.0" + NUGET_PRE; -var ARCH_CORE_RUNTIME_NUGET_VERSION = "1.0.0" + NUGET_PRE; -var ARCH_LIFECYCLE_COMMON_NUGET_VERSION = "1.0.3" + NUGET_PRE; -var ARCH_LIFECYCLE_RUNTIME_NUGET_VERSION = "1.0.3" + NUGET_PRE; -var ARCH_LIFECYCLE_EXTENSIONS_NUGET_VERSION = "1.0.0" + NUGET_PRE; +var ARCH_CORE_COMMON_NUGET_VERSION = "1.0.0.1" + NUGET_PRE; +var ARCH_CORE_RUNTIME_NUGET_VERSION = "1.0.0.1" + NUGET_PRE; +var ARCH_LIFECYCLE_COMMON_NUGET_VERSION = "1.0.3.1" + NUGET_PRE; +var ARCH_LIFECYCLE_RUNTIME_NUGET_VERSION = "1.0.3.1" + NUGET_PRE; +var ARCH_LIFECYCLE_EXTENSIONS_NUGET_VERSION = "1.0.0.1" + NUGET_PRE; var DOC_VERSION = "2017-12-18"; From 653ad51a7e9f3c83175084f472d0a19af072b587 Mon Sep 17 00:00:00 2001 From: Redth Date: Sun, 3 Jun 2018 12:58:46 -0400 Subject: [PATCH 3/8] Use local cake.packages.config --- build.sh | 15 ++++++++++----- cake.packages.config | 4 ++++ 2 files changed, 14 insertions(+), 5 deletions(-) create mode 100644 cake.packages.config diff --git a/build.sh b/build.sh index b9e12527..ff05e89e 100755 --- a/build.sh +++ b/build.sh @@ -47,11 +47,16 @@ fi # Make sure that packages.config exist. if [ ! -f "$TOOLS_DIR/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 "$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 fi diff --git a/cake.packages.config b/cake.packages.config new file mode 100644 index 00000000..ef65880d --- /dev/null +++ b/cake.packages.config @@ -0,0 +1,4 @@ + + + + From a7a641e89130d54d8e861339d404c812fbdbbbf7 Mon Sep 17 00:00:00 2001 From: Redth Date: Mon, 4 Jun 2018 09:57:14 -0700 Subject: [PATCH 4/8] Update some cake dependencies/addins --- build.cake | 36 ++++++++++++++---------------------- 1 file changed, 14 insertions(+), 22 deletions(-) diff --git a/build.cake b/build.cake index 7dfd6d51..a5cc0087 100644 --- a/build.cake +++ b/build.cake @@ -1,34 +1,26 @@ // Tools needed by cake addins #tool nuget:?package=XamarinComponent&version=1.1.0.49 #tool nuget:?package=ILRepack&version=2.0.13 -#tool nuget:?package=Cake.MonoApiTools&version=1.0.10 +#tool nuget:?package=Cake.MonoApiTools&version=2.0.0 #tool nuget:?package=Microsoft.DotNet.BuildTools.GenAPI&version=1.0.0-beta-00081 #tool nuget:?package=NUnit.Runners&version=2.6.4 #tool nuget:?package=Paket -#tool nuget:?package=VSWhere -// Dependencies of Cake Addins - this should be removed once -// Cake 0.23 is out -#addin nuget:?package=SharpZipLib&version=0.86.0 +// Cake Addins +#addin nuget:?package=Cake.FileHelpers&version=3.0.0 +#addin nuget:?package=Cake.Json&version=3.0.1 #addin nuget:?package=Newtonsoft.Json&version=9.0.1 -#addin nuget:?package=semver&version=2.0.4 +#addin nuget:?package=Cake.Yaml&version=2.1.0 #addin nuget:?package=YamlDotNet&version=4.2.1 -#addin nuget:?package=NuGet.Core&version=2.14.0 - -// Cake Addins -#addin nuget:?package=Cake.FileHelpers&version=2.0.0 -#addin nuget:?package=Cake.Json&version=2.0.28 -#addin nuget:?package=Cake.Yaml&version=2.0.0 -#addin nuget:?package=Cake.Xamarin&version=2.0.1 -#addin nuget:?package=Cake.XCode&version=3.0.0 -#addin nuget:?package=Cake.Xamarin.Build&version=3.0.6 -#addin nuget:?package=Cake.Compression&version=0.1.4 -#addin nuget:?package=Cake.Android.SdkManager&version=2.0.1 -#addin nuget:?package=Cake.Android.Adb&version=2.0.4 - -// Not yet cake 0.22+ compatible (requires --settings_skipverification=true) -#addin nuget:?package=Cake.MonoApiTools&version=1.0.10 -#addin nuget:?package=Cake.Xamarin.Binding.Util&version=1.0.2 +#addin nuget:?package=Cake.Xamarin&version=3.0.0 +#addin nuget:?package=Cake.XCode&version=4.0.0 +#addin nuget:?package=Cake.Xamarin.Build&version=4.0.0 +#addin nuget:?package=SharpZipLib&version=0.86.0 +#addin nuget:?package=Cake.Compression&version=0.1.6 +#addin nuget:?package=Cake.Android.SdkManager&version=3.0.0 +#addin nuget:?package=Cake.Android.Adb&version=3.0.0 +#addin nuget:?package=Cake.MonoApiTools&version=2.0.0 +#addin nuget:?package=Cake.Xamarin.Binding.Util&version=2.0.0 // From Cake.Xamarin.Build, dumps out versions of things LogSystemInfo (); From 9bdbd4b98bf2ca8ac7eef9d7836fa43e6419db29 Mon Sep 17 00:00:00 2001 From: Redth Date: Mon, 4 Jun 2018 09:57:34 -0700 Subject: [PATCH 5/8] Disable old binding workarounds --- .../source/Additions/Additions.cs | 146 +++++++++--------- 1 file changed, 73 insertions(+), 73 deletions(-) diff --git a/support-dynamic-animation/source/Additions/Additions.cs b/support-dynamic-animation/source/Additions/Additions.cs index 37bf8546..5ed90950 100644 --- a/support-dynamic-animation/source/Additions/Additions.cs +++ b/support-dynamic-animation/source/Additions/Additions.cs @@ -1,86 +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 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 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, "", 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, "", 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; +// 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); +// [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); - } +// __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; +// 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); +// [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); - } - } +// __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; +// 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); +// [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); - } - } -} +// __JniCtorUtil.CtorImpl(this, typeof(FlingAnimation), class_ref, id_ctor_1, JNI_CTOR_1, __args, SetHandle); +// } +// } +// } From 2957fff62cba4813b55b8a2011205342850368b4 Mon Sep 17 00:00:00 2001 From: Redth Date: Mon, 4 Jun 2018 09:59:04 -0700 Subject: [PATCH 6/8] Diff against 27.0.2 --- build.cake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.cake b/build.cake index a5cc0087..0b82a85e 100644 --- a/build.cake +++ b/build.cake @@ -68,7 +68,7 @@ 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") ?? "https://github.com/xamarin/AndroidSupportComponents/releases/download/26.1.0/api-info.xml"; +var BASE_API_INFO_URL = EnvironmentVariable("MONO_API_INFO_XML_URL") ?? "https://github.com/xamarin/AndroidSupportComponents/releases/download/27.0.2/api-info.xml"; var CPU_COUNT = 1; var USE_MSBUILD_ON_MAC = true; From 53ae09f6fca42f6188468e835affb93e16f59830 Mon Sep 17 00:00:00 2001 From: Redth Date: Mon, 4 Jun 2018 12:58:33 -0700 Subject: [PATCH 7/8] Fix nuspec dep reference version placeholder --- support-compat/nuget/template.nuspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/support-compat/nuget/template.nuspec b/support-compat/nuget/template.nuspec index 6f5b02d0..75c43c8f 100644 --- a/support-compat/nuget/template.nuspec +++ b/support-compat/nuget/template.nuspec @@ -15,7 +15,7 @@ - + From 8c690f3158c14e45435275a9bb41d76bf24af12a Mon Sep 17 00:00:00 2001 From: Redth Date: Mon, 11 Jun 2018 17:01:18 -0400 Subject: [PATCH 8/8] Added `AndroidFragmentType` msbuild property The upcoming code behind generation feature requires knowing the type of `Fragment` to use in some cases. By default it uses `Android.App.Fragment`, but if the user installs the support fragment package, we want to default to use `Android.Support.V4.App.Fragment` instead. This inclusion of a msbuild property should override the default and use the support library version instead. --- support-fragment/nuget/merge.targets | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 support-fragment/nuget/merge.targets diff --git a/support-fragment/nuget/merge.targets b/support-fragment/nuget/merge.targets new file mode 100644 index 00000000..6d66bb81 --- /dev/null +++ b/support-fragment/nuget/merge.targets @@ -0,0 +1,6 @@ + + + + Android.Support.V4.App.Fragment + +