This repository was archived by the owner on Jan 13, 2025. It is now read-only.
Commit ccee49b
authored
[Xamarin.Build.Download] remove AndroidAarFixups (#1368)
Context: dotnet/runtime#68734
A breaking chang in in .NET 7 has uncovered an issue when using
Xamarin.Build.Download:
Renaming: AndroidManifest.xml to AndroidManifest.xml
...
(_XamarinBuildDownloadCore target) ->
/Users/runner/.nuget/packages/xamarin.build.download/0.11.0/buildTransitive/Xamarin.Build.Download.targets(52,3): error XBD001: Download failed. Please download https://dl.google.com/dl/android/maven2/com/google/android/gms/play-services-basement/17.6.0/play-services-basement-17.6.0.aar to a file called /Users/runner/Library/Caches/XamarinBuildDownload/playservicesbasement-17.6.0.aar.
/Users/runner/.nuget/packages/xamarin.build.download/0.11.0/buildTransitive/Xamarin.Build.Download.targets(52,3): error XBD001: Download failed. Please download https://dl.google.com/dl/android/maven2/com/google/android/gms/play-services-tasks/17.2.1/play-services-tasks-17.2.1.aar to a file called /Users/runner/Library/Caches/XamarinBuildDownload/playservicestasks-17.2.1.aar.
/Users/runner/.nuget/packages/xamarin.build.download/0.11.0/buildTransitive/Xamarin.Build.Download.targets(52,3): error XBD001: Download failed. Please download https://dl.google.com/dl/android/maven2/com/google/android/gms/play-services-base/17.6.0/play-services-base-17.6.0.aar to a file called /Users/runner/Library/Caches/XamarinBuildDownload/playservicesbase-17.6.0.aar.
/Users/runner/.nuget/packages/xamarin.build.download/0.11.0/buildTransitive/Xamarin.Build.Download.targets(52,3): error XBD001: Download failed. Please download https://dl.google.com/dl/android/maven2/com/google/android/gms/play-services-maps/17.0.1/play-services-maps-17.0.1.aar to a file called /Users/runner/Library/Caches/XamarinBuildDownload/playservicesmaps-17.0.1.aar.
1 Warning(s)
4 Error(s)
The exception is somewhat swallowed here, the underlying error is
something like:
System.InvalidOperationException : An entry named 'AndroidManifest.xml' already exists in the archive.
This class had various "fixups" to workaround issues in
Xamarin.Android. Many of these issues have long since been fixed.
1. Removal of `aapt/AndroidManifest.xml`. Xamarin.Android has been
handling this since ~Sept 2018:
dotnet/android@f6c3288
2. Removal of `internal_impl-*.jar`. Xamarin.Android has been handling
this since ~Feb 2018:
dotnet/android@6a8ea2b
3. Replacement of `android:name=".SomeService"` as shorthand for
`androidx.foo.SomeService` in the `androidx.foo` package. The use
of `manifest-merger` solves this issue completely. This setting is
the default for .NET 6, and has been the default for AndroidX since
~July 2020:
dotnet/android-libraries@c6c0e501 parent 895182c commit ccee49b
File tree
4 files changed
+0
-139
lines changed- Util/Xamarin.Build.Download/source/Xamarin.Build.Download
4 files changed
+0
-139
lines changedLines changed: 0 additions & 124 deletions
This file was deleted.
Lines changed: 0 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | 23 | | |
25 | 24 | | |
26 | 25 | | |
| |||
58 | 57 | | |
59 | 58 | | |
60 | 59 | | |
61 | | - | |
62 | 60 | | |
63 | 61 | | |
64 | 62 | | |
| |||
69 | 67 | | |
70 | 68 | | |
71 | 69 | | |
72 | | - | |
73 | 70 | | |
74 | 71 | | |
75 | 72 | | |
| |||
Lines changed: 0 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | | - | |
37 | 35 | | |
38 | 36 | | |
39 | 37 | | |
| |||
171 | 169 | | |
172 | 170 | | |
173 | 171 | | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | 172 | | |
179 | 173 | | |
180 | 174 | | |
| |||
Lines changed: 0 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
26 | 24 | | |
27 | 25 | | |
28 | 26 | | |
| |||
178 | 176 | | |
179 | 177 | | |
180 | 178 | | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | 179 | | |
186 | 180 | | |
187 | 181 | | |
| |||
0 commit comments