-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
98 lines (86 loc) · 2.73 KB
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
plugins {
id("com.android.application")
id("org.jetbrains.kotlin.multiplatform")
id("org.jetbrains.compose")
id("com.google.devtools.ksp")
}
kotlin {
jvm("desktop")
android()
js(IR) {
browser()
binaries.executable()
}
sourceSets {
named("commonMain") {
dependencies {
implementation(project(":browser-core"))
implementation(project(":browser-app"))
}
}
named("desktopMain") {
dependencies {
implementation("com.squareup.okhttp3:okhttp:4.9.3")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.3")
}
}
named("androidMain") {
dependencies {
implementation("androidx.core:core-ktx:1.7.0")
implementation("androidx.appcompat:appcompat:1.3.1")
implementation("com.google.android.material:material:1.4.0")
// Compose
implementation("androidx.compose.ui:ui-tooling:1.0.5")
implementation("androidx.compose.foundation:foundation:1.0.5")
// Compose Image Loading
implementation("io.coil-kt:coil-compose:1.3.1")
}
}
named("jsMain") {
// Include KSP generated code to be indexed in IDE
// https://github.com/google/ksp/issues/37
kotlin.srcDir("build/generated/ksp/js/jsMain/kotlin")
}
}
}
android {
compileSdk = rootProject.ext["compileSdkVersion"] as Int
buildFeatures {
viewBinding = true
}
defaultConfig {
applicationId = "nolambda.uibook"
minSdk = rootProject.ext.get("minSdkVersion") as Int
targetSdk = rootProject.ext.get("targetSdkVersion") as Int
versionCode = 1
versionName = "1.0"
}
sourceSets {
named("main") {
manifest.srcFile("src/androidMain/AndroidManifest.xml")
res.srcDirs("src/androidMain/res")
}
}
}
compose.experimental {
web.application {}
}
compose.desktop {
application {
mainClass = "nolambda.uibook.browser.app.MainKt"
nativeDistributions {
targetFormats(
org.jetbrains.compose.desktop.application.dsl.TargetFormat.Dmg,
org.jetbrains.compose.desktop.application.dsl.TargetFormat.Msi,
org.jetbrains.compose.desktop.application.dsl.TargetFormat.Deb
)
packageName = "UIBook"
packageVersion = "1.0.0"
}
}
}
dependencies {
add("kspAndroid", project(":annotations-processor"))
add("kspDesktop", project(":annotations-processor"))
add("kspJs", project(":annotations-processor"))
}