-
Notifications
You must be signed in to change notification settings - Fork 524
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Xamarin.Android.Build.Tasks] Don't deploy Facade assemblies (#337)
A change "somewhere" has recently causes this issue. The problem is in Release mode we now include the Facade assemblies in the package. Which is something we definately should NOT be doing. That said we do need the Facades in order for Linking and Aot to work since Cecil needs to be able to load them. So what this commit does is make sure the `ResolveAssemblies` task adds metadata for the Facades. We can then use that in the `BuildApk` Task to filter out the assemblies we do not want to ship.
- Loading branch information
1 parent
bf1bc93
commit a7beb70
Showing
4 changed files
with
65 additions
and
15 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
23 changes: 23 additions & 0 deletions
23
src/Xamarin.Android.Build.Tasks/Utilities/ITaskItemEqualityComparer.cs
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,23 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using Microsoft.Build.Framework; | ||
|
||
namespace Xamarin.Android.Tasks | ||
{ | ||
public class ITaskItemEqualityComparer : IEqualityComparer<ITaskItem> | ||
{ | ||
public bool Equals (ITaskItem x, ITaskItem y) | ||
{ | ||
if (x == null || y == null) | ||
return false; | ||
return x.ItemSpec == y.ItemSpec; | ||
} | ||
|
||
public int GetHashCode (ITaskItem obj) | ||
{ | ||
if (obj == null) | ||
return 0; | ||
return obj.ItemSpec.GetHashCode (); | ||
} | ||
} | ||
} |
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