Skip to content

Commit 1b9e62b

Browse files
fix(gesture-navigation): made material dependency an implementation details
1 parent 53769c5 commit 1b9e62b

3 files changed

Lines changed: 3 additions & 4 deletions

File tree

circuitx/gesture-navigation/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ kotlin {
4242
api(libs.compose.runtime)
4343
api(projects.circuitFoundation)
4444
// For CupertinoGestureNavigationDecoration
45-
api(libs.compose.material.material)
45+
implementation(libs.compose.material.material)
4646
}
4747
}
4848

circuitx/gesture-navigation/src/commonMain/kotlin/com/slack/circuitx/gesturenavigation/CupertinoGestureNavigationDecorator.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright (C) 2023 Slack Technologies, LLC
22
// SPDX-License-Identifier: Apache-2.0
33
@file:Suppress("DEPRECATION") // TODO migrate!
4+
@file:OptIn(ExperimentalMaterialApi::class)
45

56
package com.slack.circuitx.gesturenavigation
67

@@ -68,7 +69,6 @@ import kotlinx.coroutines.flow.filter
6869
* navigation. This is useless when you have full width horizontally scrolling layouts. Defaults
6970
* to true.
7071
*/
71-
@ExperimentalMaterialApi
7272
internal class CupertinoGestureNavigationDecorator<T : NavArgument>(
7373
private val enterOffsetFraction: Float = 0.25f,
7474
private val swipeThreshold: ThresholdConfig = FractionalThreshold(0.4f),

circuitx/gesture-navigation/src/iosMain/kotlin/com/slack/circuitx/gesturenavigation/GestureNavigationDecoration.ios.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@
22
// SPDX-License-Identifier: Apache-2.0
33
package com.slack.circuitx.gesturenavigation
44

5-
import androidx.compose.material.ExperimentalMaterialApi
65
import com.slack.circuit.foundation.animation.AnimatedNavDecorator
76

8-
@OptIn(ExperimentalMaterialApi::class)
7+
@Suppress("OPT_IN_USAGE_FUTURE_ERROR") // TODO remove after migrating to AnchoredDraggable APIs
98
public actual fun GestureNavigationDecorationFactory(
109
fallback: AnimatedNavDecorator.Factory,
1110
onBackInvoked: () -> Unit,

0 commit comments

Comments
 (0)