-
Notifications
You must be signed in to change notification settings - Fork 533
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] %(AndroidMavenLibrary.ArtifactFilename) (…
…#9479) Fixes: #9465 Context: 3659766 In all of the examples we used when developing and testing `@(AndroidMavenLibrary)` (3659766), the Maven artifact filename followed the pattern `{artifact.Id}-{artifact.Version}.[jar|aar]`, so this is the default filename we construct for the user. However, there exist some packages like React that do not follow this pattern and instead do e.g.: `react-android-0.76.0-release.aar`. Attempting to use `@(AndroidMavenLibrary)` for React produces the following error: error XA4236: Cannot download Maven artifact 'com.facebook.react:react-android'. error XA4236: - react-android-0.76.0.jar: Response status code does not indicate success: 404 (Not Found). error XA4236: - react-android-0.76.0.aar: Response status code does not indicate success: 404 (Not Found). To support these cases, add a new optional `%(ArtifactFilename)` item metadata that can be specified to override the Maven filename of the artifact: <AndroidMavenLibrary Include="com.facebook.react:react-android" Version="0.76.0" ArtifactFilename="react-android-0.76.0-release.aar" /> This allows our tasks to properly download the artifact and avoid the error.
- Loading branch information
Showing
6 changed files
with
74 additions
and
29 deletions.
There are no files selected for viewing
3 changes: 1 addition & 2 deletions
3
src/Xamarin.Android.Build.Tasks/Properties/Resources.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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