Browse Source

Add resources component to multiplatform template (#2796)

pull/2797/head
Nikita Lipsky 2 years ago committed by GitHub
parent
commit
205d9c0d6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      experimental/templates/multiplatform-template/gradle.properties
  2. 4
      experimental/templates/multiplatform-template/shared/build.gradle.kts

2
experimental/templates/multiplatform-template/gradle.properties

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

4
experimental/templates/multiplatform-template/shared/build.gradle.kts

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

Loading…
Cancel
Save