-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
69 lines (58 loc) · 1.59 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
import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi
import org.jetbrains.kotlin.gradle.ExperimentalWasmDsl
import org.jetbrains.kotlin.gradle.plugin.KotlinHierarchyTemplate
plugins {
alias(libs.plugins.kotlin.multiplatform)
alias(libs.plugins.android.lib)
alias(libs.plugins.gradle.doctor) apply false
alias(libs.plugins.vanniktech.mvn.publish)
id("io.github.fluxo-kt.fluxo-kmp-conf")
}
val manual = true
fkcSetupMultiplatform(
config = {
kotlinLangVersion = "last"
kotlinApiVersion = "last"
javaLangTarget = "current"
kotlinCoreLibraries = ""
experimentalLatestCompilation = true
latestSettingsForTests = true
setupVerification = true
enableGenericAndroidLint = true
enableGradleDoctor = true
enablePublication = true
},
kmp = { if (!manual) allDefaultTargets() },
) {
if (manual) {
@OptIn(ExperimentalKotlinGradlePluginApi::class)
applyDefaultHierarchyTemplate(KotlinHierarchyTemplate.fluxoKmpConf)
jvm()
androidTarget()
js {
browser()
nodejs()
}
@OptIn(ExperimentalWasmDsl::class)
wasmJs {
browser()
nodejs()
d8()
}
iosX64()
iosArm64()
iosSimulatorArm64()
watchosArm64()
watchosArm32()
watchosX64()
watchosSimulatorArm64()
tvosArm64()
tvosX64()
tvosSimulatorArm64()
macosArm64()
macosX64()
linuxX64()
linuxArm64()
mingwX64()
}
}