Oleksandr Karpovich
2 years ago
25 changed files with 65 additions and 55 deletions
@ -1,5 +1,5 @@
|
||||
target 'iosApp' do |
||||
use_frameworks! |
||||
platform :ios, '14.1' |
||||
pod 'shared', :path => '../shared' |
||||
end |
||||
pod 'iosAppKt', :path => '../iosAppKt' |
||||
end |
||||
|
@ -0,0 +1,39 @@
|
||||
plugins { |
||||
kotlin("multiplatform") |
||||
kotlin("native.cocoapods") |
||||
id("org.jetbrains.compose") |
||||
} |
||||
|
||||
version = "1.0-SNAPSHOT" |
||||
val ktorVersion = extra["ktor.version"] |
||||
|
||||
kotlin { |
||||
ios() |
||||
iosSimulatorArm64() |
||||
|
||||
cocoapods { |
||||
summary = "Shared code for the sample" |
||||
homepage = "https://github.com/JetBrains/compose-jb" |
||||
ios.deploymentTarget = "14.1" |
||||
podfile = project.file("../iosApp/Podfile") |
||||
framework { |
||||
baseName = "iosAppKt" |
||||
isStatic = true |
||||
} |
||||
extraSpecAttributes["resources"] = "['src/commonMain/resources/**', 'src/iosMain/resources/**']" |
||||
} |
||||
|
||||
sourceSets { |
||||
val commonMain by getting { |
||||
dependencies { |
||||
implementation("io.ktor:ktor-client-core:$ktorVersion") |
||||
implementation(compose.runtime) |
||||
implementation(compose.foundation) |
||||
implementation(compose.material) |
||||
implementation("org.jetbrains.compose.components:components-resources:1.3.0-beta04-dev879") |
||||
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.4.1") |
||||
implementation(project(":shared")) |
||||
} |
||||
} |
||||
} |
||||
} |
Loading…
Reference in new issue