Skip to content

Commit 90fab52

Browse files
authored
Merge pull request #775 from xamarin/mu-20230817-fix-maui-16074-xf-15668
Fix for AndroidX.AppCompat AOT/Reflection/Linking errors
2 parents 69343d2 + 08bf27c commit 90fab52

6 files changed

+58
-3
lines changed

cgmanifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@
139139
"groupId": "androidx.appcompat",
140140
"version": "1.6.1",
141141
"nuGetId": "Xamarin.AndroidX.AppCompat.AppCompatResources",
142-
"nuGetVersion": "1.6.1.3"
142+
"nuGetVersion": "1.6.1.4"
143143
}
144144
},
145145
"license": "The Apache Software License, Version 2.0"

config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@
113113
"groupId": "androidx.appcompat",
114114
"artifactId": "appcompat-resources",
115115
"version": "1.6.1",
116-
"nugetVersion": "1.6.1.3",
116+
"nugetVersion": "1.6.1.4",
117117
"nugetId": "Xamarin.AndroidX.AppCompat.AppCompatResources",
118118
"dependencyOnly": false
119119
},

docs/artifact-list-with-versions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
| 8|androidx.annotation:annotation-experimental |1.3.1 |Xamarin.AndroidX.Annotation.Experimental |1.3.1.1 |
1616
| 9|androidx.annotation:annotation-jvm |1.6.0 |Xamarin.AndroidX.Annotation.Jvm |1.6.0.2 |
1717
| 10|androidx.appcompat:appcompat |1.6.1 |Xamarin.AndroidX.AppCompat |1.6.1.3 |
18-
| 11|androidx.appcompat:appcompat-resources |1.6.1 |Xamarin.AndroidX.AppCompat.AppCompatResources |1.6.1.3 |
18+
| 11|androidx.appcompat:appcompat-resources |1.6.1 |Xamarin.AndroidX.AppCompat.AppCompatResources |1.6.1.4 |
1919
| 12|androidx.arch.core:core-common |2.2.0 |Xamarin.AndroidX.Arch.Core.Common |2.2.0.3 |
2020
| 13|androidx.arch.core:core-runtime |2.2.0 |Xamarin.AndroidX.Arch.Core.Runtime |2.2.0.3 |
2121
| 14|androidx.asynclayoutinflater:asynclayoutinflater |1.0.0 |Xamarin.AndroidX.AsyncLayoutInflater |1.0.0.19 |
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Text;
4+
5+
namespace AndroidX.AppCompat.Graphics.Drawable
6+
{
7+
/// <summary>
8+
///
9+
/// </summary>
10+
/// <seealso href="https://github.com/dotnet/maui/issues/16074" />
11+
/// <seealso href="https://github.com/xamarin/Xamarin.Forms/issues/15668" />
12+
/// <seealso href="https://github.com/xamarin/AndroidX/issues/690#issuecomment-1414325720" />
13+
[Obsolete("This class is obsoleted in this android platform. Google replaced DrawableContainer with DrawableContainerCompat")]
14+
public partial class DrawableContainer : DrawableContainerCompat
15+
{
16+
}
17+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
using Android.Runtime;
2+
using System;
3+
using System.Collections.Generic;
4+
using System.Text;
5+
6+
namespace AndroidX.AppCompat.Graphics.Drawable
7+
{
8+
/// <summary>
9+
///
10+
/// </summary>
11+
/// <seealso href="https://github.com/dotnet/maui/issues/16074" />
12+
/// <seealso href="https://github.com/xamarin/Xamarin.Forms/issues/15668" />
13+
/// <seealso href="https://github.com/xamarin/AndroidX/issues/690#issuecomment-1414325720" />
14+
[Obsolete("This class is obsoleted in this android platform. Google replaced DrawableWrapper with DrawableWrapperCompat")]
15+
public partial class DrawableWrapper : DrawableWrapperCompat
16+
{
17+
public DrawableWrapper(global::Android.Graphics.Drawables.Drawable drawable) : base(drawable)
18+
{
19+
20+
}
21+
}
22+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Additions
2+
3+
## AOT Reflection issues
4+
5+
* https://github.com/dotnet/maui/issues/16074
6+
7+
Including specific android libraries via nuget causes AOT failures on RELEASE build #16074
8+
9+
* https://github.com/xamarin/Xamarin.Forms/issues/15668
10+
11+
[Bug] Updating Xamarin.AndroidX.AppCompat to 1.6.0 causes ReflectionLoadException #15668
12+
13+
* https://github.com/xamarin/AndroidX/issues/690#issuecomment-1414325720
14+
15+
Mono.Cecil.ResolutionException: Failed to resolve AndroidX.AppCompat.Graphics.Drawable.DrawableWrapper #690
16+

0 commit comments

Comments
 (0)