Skip to content

Commit

Permalink
Update kotlin 1.9.0 to v1.10.1 (#2492)
Browse files Browse the repository at this point in the history
* Update kotlin 1.9.0 to v1.10.1
* update metalava

---------

Co-authored-by: Mend Renovate <[email protected]>
  • Loading branch information
yschimke and renovate-bot authored Jan 6, 2025
1 parent b28f900 commit 0e0a7fa
Show file tree
Hide file tree
Showing 64 changed files with 117 additions and 213 deletions.
2 changes: 0 additions & 2 deletions ai/ui/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,7 @@ project.tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().config
}

metalava {
sourcePaths.setFrom("src/main")
filename.set("api/current.api")
reportLintsAsErrors.set(true)
}

dependencies {
Expand Down
2 changes: 0 additions & 2 deletions annotations/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@ java {
}

metalava {
sourcePaths.setFrom("src/main")
filename.set("api/current.api")
reportLintsAsErrors.set(true)
}

dependencies {
Expand Down
2 changes: 0 additions & 2 deletions auth/composables/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,7 @@ project.tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().config
}

metalava {
sourcePaths.setFrom("src/main")
filename.set("api/current.api")
reportLintsAsErrors.set(true)
}

dependencies {
Expand Down
2 changes: 0 additions & 2 deletions auth/data-phone/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,7 @@ project.tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().config
}

metalava {
sourcePaths.setFrom("src/main")
filename.set("api/current.api")
reportLintsAsErrors.set(true)
}

dependencies {
Expand Down
2 changes: 0 additions & 2 deletions auth/data/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,7 @@ project.tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().config
}

metalava {
sourcePaths.setFrom("src/main")
filename.set("api/current.api")
reportLintsAsErrors.set(true)
}

dependencies {
Expand Down
2 changes: 0 additions & 2 deletions auth/ui/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,7 @@ project.tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().config
}

metalava {
sourcePaths.setFrom("src/main")
filename.set("api/current.api")
reportLintsAsErrors.set(true)
}

dependencies {
Expand Down
2 changes: 0 additions & 2 deletions composables/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,7 @@ project.tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().config
}

metalava {
sourcePaths.setFrom("src/main")
filename.set("api/current.api")
reportLintsAsErrors.set(true)
}

dependencies {
Expand Down
26 changes: 10 additions & 16 deletions compose-layout/api/current.api
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,10 @@ package com.google.android.horologist.compose.layout {

public enum ScalingLazyColumnDefaults.ItemType implements com.google.android.horologist.compose.layout.ColumnItemType {
method @androidx.compose.runtime.Composable public float bottomPadding(float horizontalPercent);
method public final float getBottomPaddingPct();
method public final float getPaddingCorrection();
method public final float getTopPaddingPct();
method public float getBottomPaddingPct();
method public float getPaddingCorrection();
method public float getTopPaddingPct();
method @androidx.compose.runtime.Composable public float topPadding(float horizontalPercent);
method public static com.google.android.horologist.compose.layout.ScalingLazyColumnDefaults.ItemType valueOf(String value) throws java.lang.IllegalArgumentException, java.lang.NullPointerException;
method public static com.google.android.horologist.compose.layout.ScalingLazyColumnDefaults.ItemType[] values();
property public final float bottomPaddingPct;
property public final float paddingCorrection;
property public final float topPaddingPct;
Expand Down Expand Up @@ -147,7 +145,7 @@ package com.google.android.horologist.compose.layout {
method public boolean getUserScrollEnabled();
method public androidx.compose.foundation.layout.Arrangement.Vertical getVerticalArrangement();
method public boolean isScrollInProgress();
method public suspend Object? scroll(androidx.compose.foundation.MutatePriority scrollPriority, kotlin.jvm.functions.Function2<? super androidx.compose.foundation.gestures.ScrollScope,? super kotlin.coroutines.Continuation<? super kotlin.Unit>,?> block, kotlin.coroutines.Continuation<? super kotlin.Unit>);
method public suspend Object? scroll(androidx.compose.foundation.MutatePriority scrollPriority, kotlin.jvm.functions.Function2<? super androidx.compose.foundation.gestures.ScrollScope,? super kotlin.coroutines.Continuation<? super kotlin.Unit>,? extends java.lang.Object?> block, kotlin.coroutines.Continuation<? super kotlin.Unit>);
method public void setState(androidx.wear.compose.foundation.lazy.ScalingLazyListState);
property public final int anchorType;
property public final androidx.wear.compose.foundation.lazy.AutoCenteringParams? autoCentering;
Expand Down Expand Up @@ -206,7 +204,7 @@ package com.google.android.horologist.compose.layout {

public final class ScrollAwayKt {
method public static androidx.compose.ui.Modifier scrollAway(androidx.compose.ui.Modifier, com.google.android.horologist.compose.layout.ScalingLazyColumnState scalingLazyColumnState);
method public static androidx.compose.ui.Modifier scrollAway(androidx.compose.ui.Modifier, kotlin.jvm.functions.Function0<? extends androidx.compose.foundation.gestures.ScrollableState> scrollableState);
method public static androidx.compose.ui.Modifier scrollAway(androidx.compose.ui.Modifier, kotlin.jvm.functions.Function0<? extends androidx.compose.foundation.gestures.ScrollableState?> scrollableState);
}

public final class TransformingLazyColumnDefaultsKt {
Expand All @@ -218,12 +216,12 @@ package com.google.android.horologist.compose.layout {
package com.google.android.horologist.compose.nav {

public final class TypeSafeKt {
method @androidx.compose.runtime.Composable @com.google.android.horologist.annotations.ExperimentalHorologistApi public static void SwipeDismissableNavHost(androidx.navigation.NavHostController navController, Object startDestination, optional androidx.compose.ui.Modifier modifier, optional boolean userSwipeEnabled, optional androidx.wear.compose.navigation.SwipeDismissableNavHostState state, optional kotlin.reflect.KClass<?>? route, kotlin.jvm.functions.Function1<? super androidx.navigation.NavGraphBuilder,kotlin.Unit> builder);
method @com.google.android.horologist.annotations.ExperimentalHorologistApi public static inline <reified T> void composable(androidx.navigation.NavGraphBuilder, optional java.util.Map<kotlin.reflect.KType,androidx.navigation.NavType<?>> typeMap, optional java.util.List<? extends androidx.navigation.NavDeepLink> deepLinks, kotlin.jvm.functions.Function1<? super androidx.navigation.NavBackStackEntry,? extends kotlin.Unit> content);
method @androidx.compose.runtime.Composable @com.google.android.horologist.annotations.ExperimentalHorologistApi public static void SwipeDismissableNavHost(androidx.navigation.NavHostController navController, Object startDestination, optional androidx.compose.ui.Modifier modifier, optional boolean userSwipeEnabled, optional androidx.wear.compose.navigation.SwipeDismissableNavHostState state, optional kotlin.reflect.KClass<? extends java.lang.Object?>? route, kotlin.jvm.functions.Function1<? super androidx.navigation.NavGraphBuilder,kotlin.Unit> builder);
method @com.google.android.horologist.annotations.ExperimentalHorologistApi public static inline <reified T> void composable(androidx.navigation.NavGraphBuilder, optional java.util.Map<kotlin.reflect.KType,androidx.navigation.NavType<? extends java.lang.Object?>> typeMap, optional java.util.List<androidx.navigation.NavDeepLink> deepLinks, kotlin.jvm.functions.Function1<? super androidx.navigation.NavBackStackEntry,kotlin.Unit> content);
}

public final class WearComposeNavigatorDestinationBuilder extends androidx.navigation.NavDestinationBuilder<androidx.wear.compose.navigation.WearNavigator.Destination> {
ctor public WearComposeNavigatorDestinationBuilder(androidx.wear.compose.navigation.WearNavigator wearNavigator, kotlin.reflect.KClass<?> route, java.util.Map<kotlin.reflect.KType,androidx.navigation.NavType<?>> typeMap, kotlin.jvm.functions.Function1<? super androidx.navigation.NavBackStackEntry,kotlin.Unit> content);
ctor public WearComposeNavigatorDestinationBuilder(androidx.wear.compose.navigation.WearNavigator wearNavigator, kotlin.reflect.KClass<? extends java.lang.Object?> route, java.util.Map<kotlin.reflect.KType,androidx.navigation.NavType<? extends java.lang.Object?>> typeMap, kotlin.jvm.functions.Function1<? super androidx.navigation.NavBackStackEntry,kotlin.Unit> content);
method public androidx.wear.compose.navigation.WearNavigator getWearNavigator();
method protected androidx.wear.compose.navigation.WearNavigator.Destination instantiateDestination();
property public final androidx.wear.compose.navigation.WearNavigator wearNavigator;
Expand Down Expand Up @@ -265,7 +263,7 @@ package com.google.android.horologist.compose.pager {
package com.google.android.horologist.compose.paging {

public final class ItemsKt {
method @com.google.android.horologist.annotations.ExperimentalHorologistApi public static <T> void items(androidx.wear.compose.foundation.lazy.ScalingLazyListScope, androidx.paging.compose.LazyPagingItems<T> items, optional kotlin.jvm.functions.Function1<? super T,?>? key, kotlin.jvm.functions.Function2<? super androidx.wear.compose.foundation.lazy.ScalingLazyListItemScope,? super T,kotlin.Unit> itemContent);
method @com.google.android.horologist.annotations.ExperimentalHorologistApi public static <T> void items(androidx.wear.compose.foundation.lazy.ScalingLazyListScope, androidx.paging.compose.LazyPagingItems<T> items, optional kotlin.jvm.functions.Function1<? super T,?>? key, kotlin.jvm.functions.Function2<? super androidx.wear.compose.foundation.lazy.ScalingLazyListItemScope,? super T?,kotlin.Unit> itemContent);
}

}
Expand Down Expand Up @@ -362,8 +360,6 @@ package com.google.android.horologist.compose.snackbar {
}

public enum SnackbarDuration {
method public static com.google.android.horologist.compose.snackbar.SnackbarDuration valueOf(String value) throws java.lang.IllegalArgumentException, java.lang.NullPointerException;
method public static com.google.android.horologist.compose.snackbar.SnackbarDuration[] values();
enum_constant public static final com.google.android.horologist.compose.snackbar.SnackbarDuration Indefinite;
enum_constant public static final com.google.android.horologist.compose.snackbar.SnackbarDuration Long;
enum_constant public static final com.google.android.horologist.compose.snackbar.SnackbarDuration Short;
Expand All @@ -372,7 +368,7 @@ package com.google.android.horologist.compose.snackbar {
@androidx.compose.runtime.Stable public final class SnackbarHostState {
ctor public SnackbarHostState();
method public com.google.android.horologist.compose.snackbar.SnackbarData? getCurrentSnackbarData();
method public suspend Object? showSnackbar(String message, optional String? actionLabel, optional com.google.android.horologist.compose.snackbar.SnackbarDuration duration, optional kotlin.coroutines.Continuation<? super com.google.android.horologist.compose.snackbar.SnackbarResult>);
method public suspend Object? showSnackbar(String message, optional String? actionLabel, optional com.google.android.horologist.compose.snackbar.SnackbarDuration duration, kotlin.coroutines.Continuation<? super com.google.android.horologist.compose.snackbar.SnackbarResult>);
property public final com.google.android.horologist.compose.snackbar.SnackbarData? currentSnackbarData;
}

Expand All @@ -381,8 +377,6 @@ package com.google.android.horologist.compose.snackbar {
}

public enum SnackbarResult {
method public static com.google.android.horologist.compose.snackbar.SnackbarResult valueOf(String value) throws java.lang.IllegalArgumentException, java.lang.NullPointerException;
method public static com.google.android.horologist.compose.snackbar.SnackbarResult[] values();
enum_constant public static final com.google.android.horologist.compose.snackbar.SnackbarResult ActionPerformed;
enum_constant public static final com.google.android.horologist.compose.snackbar.SnackbarResult Dismissed;
}
Expand Down
2 changes: 0 additions & 2 deletions compose-layout/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,7 @@ android {
}

metalava {
sourcePaths.setFrom("src/main")
filename.set("api/current.api")
reportLintsAsErrors.set(true)
}

dependencies {
Expand Down
2 changes: 0 additions & 2 deletions compose-material/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,7 @@ project.tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().config
}

metalava {
sourcePaths.setFrom("src/main")
filename.set("api/current.api")
reportLintsAsErrors.set(true)
}

dependencies {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,15 @@ import androidx.wear.compose.material.LocalContentAlpha
import androidx.wear.compose.material.LocalContentColor
import androidx.wear.compose.material.LocalTextStyle
import androidx.wear.compose.material.Text
import androidx.wear.compose.material.TimeText
import com.google.android.horologist.compose.layout.AppScaffold
import com.google.android.horologist.compose.layout.ScalingLazyColumn
import com.google.android.horologist.compose.layout.ScalingLazyColumnDefaults.ItemType
import com.google.android.horologist.compose.layout.ScalingLazyColumnDefaults.padding
import com.google.android.horologist.compose.layout.ScreenScaffold
import com.google.android.horologist.compose.layout.rememberResponsiveColumnState
import com.google.android.horologist.compose.material.ListHeaderDefaults.firstItemPadding
import com.google.android.horologist.screenshots.FixedTimeSource
import com.google.android.horologist.screenshots.rng.WearDevice
import com.google.android.horologist.screenshots.rng.WearDeviceScreenshotTest
import org.junit.Test
Expand All @@ -67,7 +69,7 @@ class SLCTitleTest(device: WearDevice) : WearDeviceScreenshotTest(device) {
fun listWithPadding(topPadding: ItemType) {
runTest {
Box {
AppScaffold {
AppScaffold(timeText = { TimeText(timeSource = FixedTimeSource) }) {
val columnState = rememberResponsiveColumnState(
contentPadding = padding(
first = topPadding,
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 0 additions & 2 deletions compose-tools/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,7 @@ project.tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().config
}

metalava {
sourcePaths.setFrom("src/main")
filename.set("api/current.api")
reportLintsAsErrors.set(true)
}

dependencies {
Expand Down
Loading

0 comments on commit 0e0a7fa

Please sign in to comment.