Skip to content

Commit 6cd647e

Browse files
claudeintelarc
authored andcommitted
Opt in to Material 3's experimental APIs; import animateFloat
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011C2fAvFFcMRkaF7qSvRA1v
1 parent 97951dd commit 6cd647e

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

‎app/build.gradle.kts‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,12 @@ android {
5858
}
5959
kotlinOptions {
6060
jvmTarget = "17"
61+
// Material 3's app bars, sheets, pickers and pull-to-refresh are still marked experimental
62+
freeCompilerArgs += listOf(
63+
"-opt-in=androidx.compose.material3.ExperimentalMaterial3Api",
64+
"-opt-in=androidx.compose.foundation.layout.ExperimentalLayoutApi",
65+
"-opt-in=androidx.compose.foundation.ExperimentalFoundationApi",
66+
)
6167
}
6268
buildFeatures {
6369
compose = true

‎app/src/main/java/nz/aryan/akllive/ui/PlanScreen.kt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import androidx.activity.compose.BackHandler
77
import androidx.activity.compose.rememberLauncherForActivityResult
88
import androidx.activity.result.contract.ActivityResultContracts
99
import androidx.compose.animation.AnimatedVisibility
10+
import androidx.compose.animation.core.animateFloat
1011
import androidx.compose.animation.core.animateFloatAsState
1112
import androidx.compose.animation.fadeIn
1213
import androidx.compose.animation.fadeOut

0 commit comments

Comments
 (0)