Browse Source

Update compose version to "1.6.0-rc01" in components project

igor.demin/fix-pom-publication v1.6.0-rc02
Konstantin Tskhovrebov 9 months ago committed by Igor Demin
parent
commit
c8ef4c0412
  1. 2
      components/gradle.properties
  2. 3
      components/resources/demo/shared/src/commonMain/kotlin/org/jetbrains/compose/resources/demo/shared/FontRes.kt
  3. 1
      components/resources/demo/shared/src/commonMain/kotlin/org/jetbrains/compose/resources/demo/shared/ImagesRes.kt
  4. 1
      components/resources/demo/shared/src/commonMain/kotlin/org/jetbrains/compose/resources/demo/shared/StringRes.kt

2
components/gradle.properties

@ -8,7 +8,7 @@ android.useAndroidX=true
#Versions #Versions
kotlin.version=1.9.22 kotlin.version=1.9.22
compose.version=1.6.0-dev1397 compose.version=1.6.0-rc01
agp.version=8.1.2 agp.version=8.1.2
#Compose #Compose

3
components/resources/demo/shared/src/commonMain/kotlin/org/jetbrains/compose/resources/demo/shared/FontRes.kt

@ -14,6 +14,7 @@ import androidx.compose.ui.Modifier
import androidx.compose.ui.text.font.FontFamily import androidx.compose.ui.text.font.FontFamily
import androidx.compose.ui.unit.dp import androidx.compose.ui.unit.dp
import components.resources.demo.shared.generated.resources.Res import components.resources.demo.shared.generated.resources.Res
import components.resources.demo.shared.generated.resources.*
import org.jetbrains.compose.resources.Font import org.jetbrains.compose.resources.Font
@Composable @Composable
@ -31,7 +32,7 @@ fun FontRes(paddingValues: PaddingValues) {
text = """ text = """
Text( Text(
modifier = Modifier.padding(16.dp), modifier = Modifier.padding(16.dp),
fontFamily = FontFamily(Font(Res.font.workbench_regular)), fontFamily = FontFamily(Font(Res.font.Workbench_Regular)),
style = MaterialTheme.typography.headlineLarge, style = MaterialTheme.typography.headlineLarge,
text = "brown fox jumps over the lazy dog" text = "brown fox jumps over the lazy dog"
) )

1
components/resources/demo/shared/src/commonMain/kotlin/org/jetbrains/compose/resources/demo/shared/ImagesRes.kt

@ -12,6 +12,7 @@ import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.dp import androidx.compose.ui.unit.dp
import components.resources.demo.shared.generated.resources.Res import components.resources.demo.shared.generated.resources.Res
import components.resources.demo.shared.generated.resources.*
import org.jetbrains.compose.resources.imageResource import org.jetbrains.compose.resources.imageResource
import org.jetbrains.compose.resources.vectorResource import org.jetbrains.compose.resources.vectorResource
import org.jetbrains.compose.resources.painterResource import org.jetbrains.compose.resources.painterResource

1
components/resources/demo/shared/src/commonMain/kotlin/org/jetbrains/compose/resources/demo/shared/StringRes.kt

@ -9,6 +9,7 @@ import androidx.compose.runtime.*
import androidx.compose.ui.Modifier import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.dp import androidx.compose.ui.unit.dp
import components.resources.demo.shared.generated.resources.Res import components.resources.demo.shared.generated.resources.Res
import components.resources.demo.shared.generated.resources.*
import org.jetbrains.compose.resources.stringArrayResource import org.jetbrains.compose.resources.stringArrayResource
import org.jetbrains.compose.resources.stringResource import org.jetbrains.compose.resources.stringResource

Loading…
Cancel
Save