-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
81 lines (69 loc) · 2.24 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
import org.jetbrains.compose.desktop.application.dsl.TargetFormat
plugins {
kotlin("multiplatform")
id("org.jetbrains.compose")
id("com.squareup.sqldelight")
}
group = "uz.qmgroup"
version = "1.0-SNAPSHOT"
repositories {
google()
mavenCentral()
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
}
kotlin {
jvm {
compilations.all {
kotlinOptions.jvmTarget = "11"
}
withJava()
}
sourceSets {
val commonMain by getting {
val koinVersion = extra["koin.version"] as String
dependencies {
implementation("com.squareup.sqldelight:coroutines-extensions:1.5.4")
// Koin Core features
api("io.insert-koin:koin-core:$koinVersion")
api(compose.foundation)
api(compose.runtime)
api(compose.material)
api(compose.materialIconsExtended)
implementation(compose.preview)
}
}
val commonTest by getting {
dependencies {
implementation(kotlin("test")) // This brings all the platform dependencies automatically
}
}
val jvmMain by getting {
dependencies {
implementation(compose.desktop.currentOs)
implementation("com.squareup.sqldelight:sqlite-driver:1.5.4")
// https://mvnrepository.com/artifact/com.googlecode.libphonenumber/libphonenumber
implementation("com.googlecode.libphonenumber:libphonenumber:8.13.2")
}
}
val jvmTest by getting
}
}
compose.desktop {
application {
mainClass = "MainKt"
nativeDistributions {
targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb, TargetFormat.Exe)
packageName = "LogiAdmin"
packageVersion = "1.0.0"
}
}
}
sqldelight {
database("Database") { // This will be the name of the generated database class.
packageName = "uz.qmgroup"
schemaOutputDirectory = file("uz.qmgroup.cache")
migrationOutputDirectory = file("uz.qmgroup.cache")
deriveSchemaFromMigrations = true
verifyMigrations = true
}
}