Configure compose libraries for -Xjvm-default=all
Mark all existing public interfaces with default arguments in 1.1 with
@JvmDefaultWithCompatibility to keep generating existing public
DefaultImpls
Test: existing tests
Relnote: "Interfaces in compose libraries are now built using jdk8
default interface methods"
Change-Id: I5bcf197603f66ec66177c98c01c3fe4868d60997
diff --git a/compose/foundation/foundation-layout/api/restricted_current.txt b/compose/foundation/foundation-layout/api/restricted_current.txt
index e1603e2..f2fc189 100644
--- a/compose/foundation/foundation-layout/api/restricted_current.txt
+++ b/compose/foundation/foundation-layout/api/restricted_current.txt
@@ -53,17 +53,17 @@
field public static final androidx.compose.foundation.layout.Arrangement.Absolute INSTANCE;
}
- @androidx.compose.runtime.Stable public static interface Arrangement.Horizontal {
+ @androidx.compose.runtime.Stable @kotlin.jvm.JvmDefaultWithCompatibility public static interface Arrangement.Horizontal {
method public void arrange(androidx.compose.ui.unit.Density, int totalSize, int[] sizes, androidx.compose.ui.unit.LayoutDirection layoutDirection, int[] outPositions);
method public default float getSpacing();
property public default float spacing;
}
- @androidx.compose.runtime.Stable public static interface Arrangement.HorizontalOrVertical extends androidx.compose.foundation.layout.Arrangement.Horizontal androidx.compose.foundation.layout.Arrangement.Vertical {
+ @androidx.compose.runtime.Stable @kotlin.jvm.JvmDefaultWithCompatibility public static interface Arrangement.HorizontalOrVertical extends androidx.compose.foundation.layout.Arrangement.Horizontal androidx.compose.foundation.layout.Arrangement.Vertical {
property public default float spacing;
}
- @androidx.compose.runtime.Stable public static interface Arrangement.Vertical {
+ @androidx.compose.runtime.Stable @kotlin.jvm.JvmDefaultWithCompatibility public static interface Arrangement.Vertical {
method public void arrange(androidx.compose.ui.unit.Density, int totalSize, int[] sizes, int[] outPositions);
method public default float getSpacing();
property public default float spacing;