Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into jonp-mono.android-x…
Browse files Browse the repository at this point in the history
  • Loading branch information
jonpryor committed Dec 16, 2020
2 parents 587805a + cbbd853 commit f8c18d3
Show file tree
Hide file tree
Showing 21 changed files with 55 additions and 25 deletions.
4 changes: 2 additions & 2 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
[submodule "external/lz4"]
path = external/lz4
url = https://github.com/lz4/lz4.git
branch = master
branch = release
[submodule "external/mman-win32"]
path = external/mman-win32
url = https://github.com/witwall/mman-win32.git
url = https://github.com/alitrack/mman-win32.git
branch = master
[submodule "external/nrefactory"]
path = external/nrefactory
Expand Down
3 changes: 1 addition & 2 deletions Configuration.props
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,7 @@
<XAPlatformToolsPackagePrefix Condition=" '$(HostOS)' == 'Darwin' ">b2be9c80582174e645d3736daa0d44d8610b38a8.</XAPlatformToolsPackagePrefix>
<XAPlatformToolsVersion>30.0.2</XAPlatformToolsVersion>
<XAIncludeProprietaryBits Condition="'$(XAIncludeProprietaryBits)' == ''">False</XAIncludeProprietaryBits>
<XABundleToolVersion Condition="'$(XABundleToolVersion)' == ''">1.2.0</XABundleToolVersion>
<XAManifestMergerToolVersion Condition="'$(XAManifestMergerToolVersion)' == ''">26.5.0</XAManifestMergerToolVersion>
<XABundleToolVersion Condition="'$(XABundleToolVersion)' == ''">1.4.0</XABundleToolVersion>
<XAPackagesDir Condition=" '$(XAPackagesDir)' == '' And '$(NUGET_PACKAGES)' != '' ">$(NUGET_PACKAGES)</XAPackagesDir>
<XAPackagesDir Condition=" '$(XAPackagesDir)' == '' ">$(XamarinAndroidSourcePath)\packages</XAPackagesDir>
<PathSeparator>$([System.IO.Path]::PathSeparator)</PathSeparator>
Expand Down
4 changes: 4 additions & 0 deletions Documentation/release-notes/aapt2-4.1.1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
### aapt2 update to 4.1.1

The version of the [aapt2](https://developer.android.com/studio/command-line/aapt2)
command-line tool has been updated from 4.0.0 to 4.1.1.
8 changes: 8 additions & 0 deletions Documentation/release-notes/bundletool-1.4.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
### bundletool version update to 1.4.0

The version of the [`bundletool`][bundletool] executable included in
Xamarin.Android has been updated from 1.2.0 to [1.4.0][bundletool-1.4.0],
bringing in several improvements and bug fixes.

[bundletool]: https://developer.android.com/studio/command-line/bundletool
[bundletool-1.4.0]: https://github.com/google/bundletool/releases/tag/1.4.0
6 changes: 6 additions & 0 deletions Documentation/release-notes/manifestmerger-27.1.1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
### manifestmerger.jar version update to 27.1.1

The version of the [manifest merger][0] included in Xamarin.Android
has been updated from 27.0.0 to 27.1.1.

[0]: https://developer.android.com/studio/build/manifest-merge.html
4 changes: 4 additions & 0 deletions Documentation/release-notes/r8-2.1.75.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
### D8/R8 version update to 2.1.75

The version of the [D8 dexer and R8 shrinker](https://r8.googlesource.com/r8)
included in Xamarin.Android has been updated from 2.1.67 to 2.1.75.
8 changes: 4 additions & 4 deletions build-tools/installers/create-installers.targets
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,8 @@
<_MSBuildFiles Include="$(MSBuildSrcDir)\Java.Interop.Tools.Cecil.pdb" />
<_MSBuildFiles Include="$(MSBuildSrcDir)\Java.Interop.Tools.Diagnostics.dll" />
<_MSBuildFiles Include="$(MSBuildSrcDir)\Java.Interop.Tools.Diagnostics.pdb" />
<_MSBuildFiles Include="$(MSBuildSrcDir)\Java.Interop.Tools.Generator.dll" ExcludeFromAndroidNETSdk="true" />
<_MSBuildFiles Include="$(MSBuildSrcDir)\Java.Interop.Tools.Generator.pdb" ExcludeFromAndroidNETSdk="true" />
<_MSBuildFiles Include="$(MSBuildSrcDir)\Java.Interop.Tools.Generator.dll" />
<_MSBuildFiles Include="$(MSBuildSrcDir)\Java.Interop.Tools.Generator.pdb" />
<_MSBuildFiles Include="$(MSBuildSrcDir)\Java.Interop.Tools.JavaCallableWrappers.dll" />
<_MSBuildFiles Include="$(MSBuildSrcDir)\Java.Interop.Tools.JavaCallableWrappers.pdb" />
<_MSBuildFiles Include="$(MSBuildSrcDir)\Java.Interop.Tools.JavaSource.dll" />
Expand Down Expand Up @@ -260,8 +260,8 @@
<_MSBuildFiles Include="$(MSBuildSrcDir)\Xamarin.Android.EmbeddedResource.targets" />
<_MSBuildFiles Include="$(MSBuildSrcDir)\Xamarin.Android.FSharp.targets" ExcludeFromAndroidNETSdk="true" />
<_MSBuildFiles Include="$(MSBuildSrcDir)\Xamarin.Android.Legacy.targets" ExcludeFromAndroidNETSdk="true" />
<_MSBuildFiles Include="$(MSBuildSrcDir)\Xamarin.Android.PCLSupport.props" />
<_MSBuildFiles Include="$(MSBuildSrcDir)\Xamarin.Android.PCLSupport.targets" />
<_MSBuildFiles Include="$(MSBuildSrcDir)\Xamarin.Android.PCLSupport.props" ExcludeFromAndroidNETSdk="true" />
<_MSBuildFiles Include="$(MSBuildSrcDir)\Xamarin.Android.PCLSupport.targets" ExcludeFromAndroidNETSdk="true" />
<_MSBuildFiles Include="$(MSBuildSrcDir)\Xamarin.Android.SkipCases.projitems" />
<_MSBuildFiles Include="$(MSBuildSrcDir)\Xamarin.Android.Tooling.targets" />
<_MSBuildFiles Include="$(MSBuildSrcDir)\Xamarin.Android.Tools.Aidl.dll" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ protected override async Task<bool> Execute (Context context)
// BCL: Runs BCL tests on emulator
// TimeZone: Runs timezone unit tests on emulator
// Designer: Runs designer integration tests
if (file == ".external") {
if (file == ".external" || file == "Configuration.props") {
testAreas.Add ("MSBuild");
testAreas.Add ("MSBuildDevice");
testAreas.Add ("BCL");
Expand All @@ -68,6 +68,11 @@ protected override async Task<bool> Execute (Context context)
testAreas.Add ("Designer");
}

if (file.Contains ("external/proguard")) {
testAreas.Add ("MSBuild");
testAreas.Add ("MSBuildDevice");
}

if (file.Contains ("src/aapt2")) {
testAreas.Add ("MSBuild");
}
Expand Down
2 changes: 1 addition & 1 deletion external/lz4
Submodule lz4 updated 94 files
+5 −0 .cirrus.yml
+32 −0 .github/ISSUE_TEMPLATE/bug_report.md
+20 −0 .github/ISSUE_TEMPLATE/feature_request.md
+3 −0 .gitignore
+25 −9 .travis.yml
+10 −5 Makefile
+36 −0 NEWS
+11 −12 README.md
+21 −15 appveyor.yml
+16 −0 build/.gitignore
+10 −8 build/README.md
+0 −0 build/VS2010/datagen/datagen.vcxproj
+0 −0 build/VS2010/frametest/frametest.vcxproj
+0 −0 build/VS2010/fullbench-dll/fullbench-dll.vcxproj
+0 −0 build/VS2010/fullbench/fullbench.vcxproj
+0 −0 build/VS2010/fuzzer/fuzzer.vcxproj
+0 −0 build/VS2010/liblz4-dll/liblz4-dll.rc
+0 −0 build/VS2010/liblz4-dll/liblz4-dll.vcxproj
+0 −0 build/VS2010/liblz4/liblz4.vcxproj
+0 −0 build/VS2010/lz4.sln
+0 −0 build/VS2010/lz4/lz4.rc
+0 −0 build/VS2010/lz4/lz4.vcxproj
+0 −0 build/VS2017/datagen/datagen.vcxproj
+0 −0 build/VS2017/frametest/frametest.vcxproj
+0 −0 build/VS2017/fullbench-dll/fullbench-dll.vcxproj
+0 −0 build/VS2017/fullbench/fullbench.vcxproj
+0 −0 build/VS2017/fuzzer/fuzzer.vcxproj
+0 −0 build/VS2017/liblz4-dll/liblz4-dll.rc
+0 −0 build/VS2017/liblz4-dll/liblz4-dll.vcxproj
+0 −0 build/VS2017/liblz4/liblz4.vcxproj
+10 −0 build/VS2017/lz4.sln
+51 −0 build/VS2017/lz4/lz4.rc
+164 −0 build/VS2017/lz4/lz4.vcxproj
+0 −0 build/cmake/.gitignore
+13 −6 build/cmake/CMakeLists.txt
+2 −2 contrib/debian/copyright
+1 −2 contrib/debian/rules
+2 −3 contrib/gen_manual/gen_manual.cpp
+5 −109 contrib/meson/meson.build
+0 −0 contrib/meson/meson/GetLz4LibraryVersion.py
+0 −0 contrib/meson/meson/InstallSymlink.py
+1 −1 contrib/meson/meson/contrib/gen_manual/meson.build
+0 −0 contrib/meson/meson/contrib/meson.build
+1 −1 contrib/meson/meson/examples/meson.build
+1 −1 contrib/meson/meson/lib/meson.build
+117 −0 contrib/meson/meson/meson.build
+1 −1 contrib/meson/meson/programs/meson.build
+1 −1 contrib/meson/meson/tests/meson.build
+30 −19 doc/lz4_Frame_format.md
+83 −46 doc/lz4_manual.html
+7 −5 doc/lz4frame_manual.html
+1 −1 examples/Makefile
+2 −2 examples/frameCompress.c
+6 −6 examples/streaming_api_basics.md
+1 −1 lib/Makefile
+27 −10 lib/README.md
+327 −230 lib/lz4.c
+80 −70 lib/lz4.h
+93 −54 lib/lz4frame.c
+22 −14 lib/lz4frame.h
+192 −115 lib/lz4hc.c
+15 −40 lib/lz4hc.h
+12 −8 ossfuzz/Makefile
+11 −5 ossfuzz/compress_frame_fuzzer.c
+9 −2 ossfuzz/compress_fuzzer.c
+10 −3 ossfuzz/compress_hc_fuzzer.c
+11 −3 ossfuzz/decompress_frame_fuzzer.c
+6 −2 ossfuzz/decompress_fuzzer.c
+77 −0 ossfuzz/fuzz_data_producer.c
+36 −0 ossfuzz/fuzz_data_producer.h
+8 −4 ossfuzz/round_trip_frame_fuzzer.c
+9 −2 ossfuzz/round_trip_fuzzer.c
+7 −2 ossfuzz/round_trip_hc_fuzzer.c
+6 −1 ossfuzz/travisoss.sh
+1 −0 programs/.gitignore
+21 −7 programs/Makefile
+233 −43 programs/bench.c
+2 −1 programs/bench.h
+32 −18 programs/lz4cli.c
+316 −248 programs/lz4io.c
+9 −9 programs/lz4io.h
+6 −5 programs/platform.h
+74 −22 programs/util.h
+1 −0 tests/.gitignore
+150 −85 tests/Makefile
+1 −9 tests/checkFrame.c
+49 −0 tests/decompress-partial.c
+60 −24 tests/frametest.c
+64 −15 tests/fullbench.c
+243 −60 tests/fuzzer.c
+8 −0 tests/test_install.sh
+ tmp
+ tmpsparse
+0 −10 visual/.gitignore
2 changes: 1 addition & 1 deletion external/mman-win32
Submodule mman-win32 updated 2 files
+7 −3 configure
+8 −3 mman.c
2 changes: 1 addition & 1 deletion external/opentk
Submodule opentk updated 1 files
+6 −0 CODE-OF-CONDUCT.md
2 changes: 1 addition & 1 deletion external/proguard
Submodule proguard updated 34 files
+35 −25 README.md
+1 −1 base/build.gradle
+2 −3 base/src/proguard/obfuscate/MemberNameCollector.java
+1 −1 build.gradle
+1 −1 docs/md/manual/gradle.md
+2 −2 docs/md/manual/gradleplugin.md
+3 −0 docs/md/releasenotes.md
+1 −1 examples/android-plugin/build.gradle
+1 −1 examples/android/build.gradle
+1 −1 examples/gradle/android.gradle
+1 −1 examples/gradle/applets.gradle
+1 −1 examples/gradle/applications.gradle
+1 −1 examples/gradle/library.gradle
+1 −1 examples/gradle/midlets.gradle
+1 −1 examples/gradle/proguard.gradle
+1 −1 examples/gradle/proguardgui.gradle
+1 −1 examples/gradle/retrace.gradle
+1 −1 examples/gradle/scala.gradle
+1 −1 examples/gradle/servlets.gradle
+6 −0 examples/gradlekotlindsl/.gitattributes
+5 −0 examples/gradlekotlindsl/.gitignore
+76 −0 examples/gradlekotlindsl/build.gradle.kts
+ examples/gradlekotlindsl/gradle/wrapper/gradle-wrapper.jar
+5 −0 examples/gradlekotlindsl/gradle/wrapper/gradle-wrapper.properties
+183 −0 examples/gradlekotlindsl/gradlew
+100 −0 examples/gradlekotlindsl/gradlew.bat
+10 −0 examples/gradlekotlindsl/settings.gradle.kts
+14 −0 examples/gradlekotlindsl/src/main/java/gradlekotlindsl/App.java
+14 −0 examples/gradlekotlindsl/src/test/java/gradlekotlindsl/AppTest.java
+2 −0 gradle.properties
+1 −1 gui/src/proguard/gui/ReTraceRunnable.java
+8 −1 retrace/src/proguard/retrace/FramePattern.java
+1 −1 retrace/src/proguard/retrace/FrameRemapper.java
+103 −8 retrace/src/proguard/retrace/ReTrace.java
2 changes: 1 addition & 1 deletion external/xamarin-android-tools
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ public void DotNetNew ([Values ("android", "androidlib", "android-bindinglib")]
{
var dotnet = CreateDotNetBuilder ();
Assert.IsTrue (dotnet.New (template), $"`dotnet new {template}` should succeed");
File.WriteAllBytes (Path.Combine (dotnet.ProjectDirectory, "foo.jar"), Convert.FromBase64String (InlineData.JavaClassesJarBase64));
Assert.IsTrue (dotnet.New ("android-activity"), "`dotnet new android-activity` should succeed");
Assert.IsTrue (dotnet.New ("android-layout", Path.Combine (dotnet.ProjectDirectory, "Resources", "layout")), "`dotnet new android-layout` should succeed");
Assert.IsTrue (dotnet.Build (), "`dotnet build` should succeed");
Expand Down Expand Up @@ -247,6 +248,7 @@ public void DotNetLibraryAarChanges ()
}

// Change res/raw/bar.txt contents
WaitFor (1000);
var bar_txt = Path.Combine (FullProjectDirectory, "Resources", "raw", "bar.txt");
File.WriteAllText (bar_txt, contents: "baz");
Assert.IsTrue (dotnet.Build (), "second build should succeed");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -399,12 +399,17 @@ protected bool BuildInternal (string projectOrSolution, string target, string []
if (psi.RedirectStandardError)
err.WaitOne ();
result = ranToCompletion && p.ExitCode == 0;
if (processLog != null) {
if (ranToCompletion) {
File.AppendAllText (processLog, $"ExitCode: {p.ExitCode}{Environment.NewLine}");
} else {
File.AppendAllText (processLog, $"Build Timed Out!{Environment.ExitCode}");
}
}
}

LastBuildTime = DateTime.UtcNow - start;

if (processLog != null && !ranToCompletion)
File.AppendAllText (processLog, "Build Timed Out!");
if (buildLogFullPath != null && File.Exists (buildLogFullPath)) {
foreach (var line in LastBuildOutput) {
if (line.StartsWith ("Time Elapsed", StringComparison.OrdinalIgnoreCase)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2615,7 +2615,8 @@ because xbuild doesn't support framework reference assemblies.

<Import Project="$(MSBuildThisFileDirectory)Xamarin.Android.Application.targets"
Condition=" '$(AndroidApplication)' == 'True' "/>
<Import Project="$(MSBuildThisFileDirectory)Xamarin.Android.PCLSupport.targets" />
<Import Project="$(MSBuildThisFileDirectory)Xamarin.Android.PCLSupport.targets"
Condition=" '$(UsingAndroidNETSdk)' != 'true' " />
<Import Project="$(MSBuildThisFileDirectory)Xamarin.Android.Designer.targets" />

<Import Project="$(MSBuildThisFileDirectory)Xamarin.Installer.Common.targets"
Expand Down
2 changes: 1 addition & 1 deletion src/aapt2/aapt2.targets
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<UsingTask AssemblyFile="$(PrepTasksAssembly)" TaskName="Xamarin.Android.BuildTools.PrepTasks.DownloadUri" />
<PropertyGroup>
<Aapt2Version>4.0.0-6051327</Aapt2Version>
<Aapt2Version>4.1.1-6503028</Aapt2Version>
<_Destination>$(XAInstallPrefix)xbuild\Xamarin\Android\</_Destination>
<IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/manifestmerger/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ repositories {

dependencies {
// https://mvnrepository.com/artifact/com.android.tools.build/manifest-merger
compile group: 'com.android.tools.build', name: 'manifest-merger', version: '27.0.0'
compile group: 'com.android.tools.build', name: 'manifest-merger', version: '27.1.1'
}

sourceSets {
Expand Down
4 changes: 0 additions & 4 deletions src/manifestmerger/manifestmerger.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,5 @@

<Import Project="..\..\Configuration.props" />

<ItemGroup>
<ProjectReference Include="..\r8\r8.csproj" ReferenceOutputAssembly="False" />
</ItemGroup>

<Import Project="manifestmerger.targets" />
</Project>
2 changes: 1 addition & 1 deletion src/r8/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ repositories {
}

dependencies {
compile group: 'com.android.tools', name: 'r8', version: '2.1.67'
compile group: 'com.android.tools', name: 'r8', version: '2.1.75'
}

jar {
Expand Down

0 comments on commit f8c18d3

Please sign in to comment.