Add resources component to multiplatform template (#2796)

This commit is contained in:
Nikita Lipsky
2023-02-24 18:20:41 +02:00
committed by GitHub
parent 2cd92eed5c
commit 205d9c0d6f
2 changed files with 5 additions and 1 deletions

View File

@@ -13,4 +13,4 @@ kotlin.mpp.androidSourceSetLayoutVersion=2
kotlin.native.binary.memoryModel=experimental
kotlin.version=1.8.0
agp.version=7.1.3
compose.version=1.4.0-alpha01-dev950
compose.version=1.4.0-alpha01-dev954

View File

@@ -1,3 +1,5 @@
@file:Suppress("OPT_IN_IS_NOT_ENABLED")
plugins {
kotlin("multiplatform")
kotlin("native.cocoapods")
@@ -33,6 +35,8 @@ kotlin {
implementation(compose.runtime)
implementation(compose.foundation)
implementation(compose.material)
@OptIn(org.jetbrains.compose.ExperimentalComposeLibrary::class)
implementation(compose.components.resources)
}
}
val androidMain by getting {