Skip to content

Commit a9e2723

Browse files
committed
Move :sampleapp to :examples:android
Signed-off-by: Bence Hornák <[email protected]>
1 parent 3597904 commit a9e2723

29 files changed

+8
-7
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.

sampleapp/src/main/java/dev/openfeature/sdk/sampleapp/ui/theme/Theme.kt renamed to examples/android/src/main/java/dev/openfeature/sdk/sampleapp/ui/theme/Theme.kt

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package dev.openfeature.sdk.sampleapp.ui.theme
22

3-
import android.app.Activity
43
import android.os.Build
54
import androidx.compose.foundation.isSystemInDarkTheme
65
import androidx.compose.material3.MaterialTheme
@@ -11,17 +10,18 @@ import androidx.compose.material3.lightColorScheme
1110
import androidx.compose.runtime.Composable
1211
import androidx.compose.ui.platform.LocalContext
1312

14-
private val DarkColorScheme = darkColorScheme(
13+
private val DarkColorScheme =
14+
darkColorScheme(
1515
primary = Purple80,
1616
secondary = PurpleGrey80,
1717
tertiary = Pink80
1818
)
1919

20-
private val LightColorScheme = lightColorScheme(
20+
private val LightColorScheme =
21+
lightColorScheme(
2122
primary = Purple40,
2223
secondary = PurpleGrey40,
2324
tertiary = Pink40
24-
2525
/* Other default colors to override
2626
background = Color(0xFFFFFBFE),
2727
surface = Color(0xFFFFFBFE),
@@ -30,7 +30,7 @@ private val LightColorScheme = lightColorScheme(
3030
onTertiary = Color.White,
3131
onBackground = Color(0xFF1C1B1F),
3232
onSurface = Color(0xFF1C1B1F),
33-
*/
33+
*/
3434
)
3535

3636
@Composable
@@ -40,7 +40,8 @@ fun OpenFeatureTheme(
4040
dynamicColor: Boolean = true,
4141
content: @Composable () -> Unit
4242
) {
43-
val colorScheme = when {
43+
val colorScheme =
44+
when {
4445
dynamicColor && Build.VERSION.SDK_INT >= Build.VERSION_CODES.S -> {
4546
val context = LocalContext.current
4647
if (darkTheme) dynamicDarkColorScheme(context) else dynamicLightColorScheme(context)

0 commit comments

Comments
 (0)