Mark stability manually
This commit is contained in:
1 parent
ced198cc35
commit
35cbb035e8
4 files changed
+6
No files matched your search
@@ -4,4 +4,5 @@ plugins {
|
||||
alias(libs.plugins.android.library) apply false
|
||||
alias(libs.plugins.kotlin.android) apply false
|
||||
alias(libs.plugins.kotlin.compose) apply false
|
||||
id("dev.shreyaspatil.compose-compiler-report-generator") version "1.4.2" apply false
|
||||
}
|
||||
@@ -5,6 +5,7 @@ plugins {
|
||||
alias(libs.plugins.android.library)
|
||||
alias(libs.plugins.kotlin.android)
|
||||
alias(libs.plugins.kotlin.compose)
|
||||
id("dev.shreyaspatil.compose-compiler-report-generator")
|
||||
}
|
||||
|
||||
android {
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package com.kyant.liquidglass
|
||||
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.runtime.Stable
|
||||
import androidx.compose.runtime.getValue
|
||||
import androidx.compose.runtime.mutableStateOf
|
||||
import androidx.compose.runtime.remember
|
||||
@@ -23,6 +24,7 @@ fun rememberLiquidGlassProviderState(
|
||||
}
|
||||
}
|
||||
|
||||
@Stable
|
||||
class LiquidGlassProviderState internal constructor(
|
||||
val backgroundColor: Color?,
|
||||
internal val graphicsLayer: GraphicsLayer
|
||||
|
||||
@@ -3,8 +3,10 @@ package com.kyant.liquidglass
|
||||
import android.graphics.RuntimeShader
|
||||
import android.os.Build
|
||||
import androidx.annotation.RequiresApi
|
||||
import androidx.compose.runtime.Stable
|
||||
|
||||
@RequiresApi(Build.VERSION_CODES.TIRAMISU)
|
||||
@Stable
|
||||
internal class LiquidGlassShadersCache() {
|
||||
|
||||
private var _materialShader: RuntimeShader? = null
|
||||
|
||||
Reference in new issue
Block a user