-
Notifications
You must be signed in to change notification settings - Fork 69
Expand file tree
/
Copy pathMetadata.xml
More file actions
73 lines (68 loc) · 5.28 KB
/
Copy pathMetadata.xml
File metadata and controls
73 lines (68 loc) · 5.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<metadata>
<!--
Force C# namespace casing to "UI" rather than the default title-cased "Ui".
Once these NuGets ship real types this is a permanent ABI decision, so we
apply it everywhere a `…ui…` package appears in
androidx.compose.ui:ui-text-android. Mirrors the casing decision in
androidx.compose.ui/ui-graphics-android/Transforms/Metadata.xml.
-->
<attr path="/api/package[@name='androidx.compose.ui.text']" name="managedName">AndroidX.Compose.UI.Text</attr>
<attr path="/api/package[@name='androidx.compose.ui.text.android']" name="managedName">AndroidX.Compose.UI.Text.Android</attr>
<attr path="/api/package[@name='androidx.compose.ui.text.android.selection']" name="managedName">AndroidX.Compose.UI.Text.Android.Selection</attr>
<attr path="/api/package[@name='androidx.compose.ui.text.android.style']" name="managedName">AndroidX.Compose.UI.Text.Android.Style</attr>
<attr path="/api/package[@name='androidx.compose.ui.text.font']" name="managedName">AndroidX.Compose.UI.Text.Font</attr>
<attr path="/api/package[@name='androidx.compose.ui.text.input']" name="managedName">AndroidX.Compose.UI.Text.Input</attr>
<attr path="/api/package[@name='androidx.compose.ui.text.internal']" name="managedName">AndroidX.Compose.UI.Text.Internal</attr>
<attr path="/api/package[@name='androidx.compose.ui.text.intl']" name="managedName">AndroidX.Compose.UI.Text.Intl</attr>
<attr path="/api/package[@name='androidx.compose.ui.text.platform']" name="managedName">AndroidX.Compose.UI.Text.Platform</attr>
<attr path="/api/package[@name='androidx.compose.ui.text.platform.extensions']" name="managedName">AndroidX.Compose.UI.Text.Platform.Extensions</attr>
<attr path="/api/package[@name='androidx.compose.ui.text.platform.style']" name="managedName">AndroidX.Compose.UI.Text.Platform.Style</attr>
<attr path="/api/package[@name='androidx.compose.ui.text.style']" name="managedName">AndroidX.Compose.UI.Text.Style</attr>
<!--
`FontWeight` is a Kotlin `class FontWeight … : Comparable<FontWeight>`. The
generated `compareTo(FontWeight)` cannot satisfy
`java.lang.Comparable.compareTo(Object)` (CS0535). Drop the `Comparable`
interface so the class (and its `Companion` constants such as Bold/Normal)
still bind. Mirrors the inline-class lowering caveat from
androidx.compose.ui/ui-graphics-android.
-->
<remove-node path="/api/package[@name='androidx.compose.ui.text.font']/class[@name='FontWeight']/implements[@name='java.lang.Comparable']" />
<!--
These classes implement java.util.Collection/List or java.lang.CharSequence/
Appendable, whose generated members can't satisfy the managed interface
contracts (CS0535/CS0738). Drop the interface declarations so the concrete
classes still bind with their own members.
-->
<remove-node path="/api/package[@name='androidx.compose.ui.text.intl']/class[@name='LocaleList']/implements[@name='java.util.Collection']" />
<remove-node path="/api/package[@name='androidx.compose.ui.text.font']/class[@name='FontListFontFamily']/implements[@name='java.util.List']" />
<remove-node path="/api/package[@name='androidx.compose.ui.text']/class[@name='AnnotatedString']/implements[@name='java.lang.CharSequence']" />
<remove-node path="/api/package[@name='androidx.compose.ui.text']/class[@name='AnnotatedString.Builder']/implements[@name='java.lang.Appendable']" />
<!--
`AnnotatedString.Builder.append(String): Unit` lowers to the same C#
signature as the auto-generated `string` overload of `append(CharSequence)`
(CS0111). Rename the void overload to keep both callable.
-->
<attr path="/api/package[@name='androidx.compose.ui.text']/class[@name='AnnotatedString.Builder']/method[@name='append' and count(parameter)=1 and parameter[1][@type='java.lang.String']]" name="managedName">AppendString</attr>
<!--
These public members leak internal/unbound types (the package-private
`PlatformLocaleDelegate` interface and `kotlinx.coroutines.CoroutineDispatcher`
from a dependency that is not referenced), producing CS0234. Remove the
leaking members.
-->
<remove-node path="/api/package[@name='androidx.compose.ui.text.intl']/class[@name='PlatformLocaleKt']/method[@name='getPlatformLocaleDelegate']" />
<remove-node path="/api/package[@name='androidx.compose.ui.text.platform']/class[@name='DispatcherKt']/method[@name='getFontCacheManagementDispatcher']" />
<!--
Kotlin `object` companions on classes: the nested peer binds as
`<Outer>.Companion`, colliding with the static `Companion` property the
generator would emit on the outer class, so the field is dropped and the
singleton is only reachable via raw JNI. Rename every nested `*.Companion`
peer to `CompanionStatic` (the same wildcard pattern kotlin-stdlib, okio,
aicore, and genai-prompt already use) so the generator surfaces
`public static <Outer>.CompanionStatic Companion { get; }` on every outer
class, letting consumers write e.g. `TextStyle.Companion.Default`,
`FontWeight.Companion.Bold`, `ImeAction.Companion.Done` directly.
(Interface companions are hoisted to top-level `<Outer>Companion` by the
generator before this rename matches, so they're unaffected.)
-->
<attr path="/api/package/class[substring(@name,string-length(@name)-9)='.Companion']" name="managedName">CompanionStatic</attr>
</metadata>