-
Notifications
You must be signed in to change notification settings - Fork 69
Expand file tree
/
Copy pathMetadata.xml
More file actions
64 lines (59 loc) · 4.01 KB
/
Copy pathMetadata.xml
File metadata and controls
64 lines (59 loc) · 4.01 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
<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-graphics-android. Mirrors the casing decision in
androidx.compose.ui/ui-android/Transforms/Metadata.xml.
-->
<attr path="/api/package[@name='androidx.compose.ui.graphics']" name="managedName">AndroidX.Compose.UI.Graphics</attr>
<attr path="/api/package[@name='androidx.compose.ui.graphics.colorspace']" name="managedName">AndroidX.Compose.UI.Graphics.Colorspace</attr>
<attr path="/api/package[@name='androidx.compose.ui.graphics.drawscope']" name="managedName">AndroidX.Compose.UI.Graphics.Drawscope</attr>
<attr path="/api/package[@name='androidx.compose.ui.graphics.internal']" name="managedName">AndroidX.Compose.UI.Graphics.Internal</attr>
<attr path="/api/package[@name='androidx.compose.ui.graphics.layer']" name="managedName">AndroidX.Compose.UI.Graphics.Layer</attr>
<attr path="/api/package[@name='androidx.compose.ui.graphics.layer.view']" name="managedName">AndroidX.Compose.UI.Graphics.Layer.View</attr>
<attr path="/api/package[@name='androidx.compose.ui.graphics.painter']" name="managedName">AndroidX.Compose.UI.Graphics.Painter</attr>
<attr path="/api/package[@name='androidx.compose.ui.graphics.vector']" name="managedName">AndroidX.Compose.UI.Graphics.Vector</attr>
<!--
Experimental drop/inner-shadow package: its title-cased namespace
`AndroidX.Compose.UI.Graphics.Shadow` collides (CS0101) with the existing
`Shadow` class in androidx.compose.ui.graphics. Strip the experimental
package to keep the widely-used `Shadow` spec class.
-->
<remove-node path="/api/package[@name='androidx.compose.ui.graphics.shadow']" />
<!--
PathIterator: interface implementing java.util.Iterator whose auto-generated
Invoker can't satisfy Iterator.next() with an Object return (CS0738).
-->
<remove-node path="/api/package[@name='androidx.compose.ui.graphics']/interface[@name='PathIterator']" />
<!--
SolidColor(Color): the primary Kotlin constructor takes the @JvmInline
value class `Color`, so the binder strips the constructor even though the
JVM bytecode signature is the plain primitive `<init>(J)V`. Re-introduce it
via <add-node> so it binds as `public SolidColor(long value)`, matching how
the existing value-class-param members (getValue-0d7_KjU()J,
applyTo-Pq9zytI(JL…/Paint;F)V) already project their value-class params as
the underlying primitive. See dotnet/android-libraries#1470.
-->
<add-node path="/api/package[@name='androidx.compose.ui.graphics']/class[@name='SolidColor']">
<constructor deprecated="not deprecated" final="false" name="SolidColor" static="false" visibility="public" bridge="false" synthetic="false" jni-signature="(J)V">
<parameter name="value" type="long" jni-type="J" />
</constructor>
</add-node>
<!--
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 (which exposes constants such as Color.Red/Green/Blue,
BlendMode.Clear, Brush family helpers, ColorFilter factories, etc.) 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 `Color.Companion.Red`,
`BlendMode.Companion.Clear`, `Brush.Companion.HorizontalGradient(...)`
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>