-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
103 lines (99 loc) · 2.75 KB
/
build.gradle.kts
File metadata and controls
103 lines (99 loc) · 2.75 KB
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
99
100
101
102
103
plugins {
alias(libs.plugins.multiplatform)
alias(libs.plugins.android.library)
alias(libs.plugins.swift.klib)
id("convention.publication")
}
group = "io.github.softartdev"
version = libs.versions.kronos.get()
kotlin {
jvmToolchain(libs.versions.jdk.get().toInt())
jvm()
androidTarget {
publishLibraryVariants("release", "debug")
}
listOf(
iosX64(),
iosArm64(),
iosSimulatorArm64(),
).forEach {
it.compilations {
val main by getting {
cinterops {
create("KronosMultiplatform")
}
}
}
}
sourceSets {
val commonMain by getting {
dependencies {
}
}
val commonTest by getting {
dependencies {
implementation(kotlin("test"))
implementation(libs.kotlinx.coroutines.test)
}
}
val jvmMain by getting {
dependencies {
api(libs.lyft.kronos.java)
}
}
val jvmTest by getting
val androidMain by getting {
dependencies {
api(libs.lyft.kronos.android)
}
}
val androidUnitTest by getting {
dependencies {
implementation(libs.androidx.test)
}
}
val wasmJsMain by getting {
dependencies {
implementation(libs.kotlinx.coroutines.core)
}
}
val iosX64Main by getting
val iosArm64Main by getting
val iosSimulatorArm64Main by getting
val iosMain by creating {
dependsOn(commonMain)
iosX64Main.dependsOn(this)
iosArm64Main.dependsOn(this)
iosSimulatorArm64Main.dependsOn(this)
}
val iosX64Test by getting
val iosArm64Test by getting
val iosSimulatorArm64Test by getting
val iosTest by creating {
dependsOn(commonTest)
iosX64Test.dependsOn(this)
iosArm64Test.dependsOn(this)
iosSimulatorArm64Test.dependsOn(this)
}
}
}
android {
namespace = "com.softartdev.kronos"
compileSdk = libs.versions.compileSdk.get().toInt()
defaultConfig {
minSdk = libs.versions.minSdk.get().toInt()
}
compileOptions {
sourceCompatibility = JavaVersion.toVersion(libs.versions.jdk.get().toInt())
targetCompatibility = JavaVersion.toVersion(libs.versions.jdk.get().toInt())
}
}
swiftklib {
create("KronosMultiplatform") {
path = file("native/Kronos")
packageName("com.softartdev.kronos")
}
}
tasks.withType<PublishToMavenRepository>().configureEach {
dependsOn(tasks.withType<Sign>())
}