-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle.kts
111 lines (95 loc) · 3.01 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
99
100
101
102
103
104
105
106
107
108
109
110
111
import org.jetbrains.compose.desktop.application.dsl.TargetFormat
plugins {
kotlin("multiplatform") version "2.0.0-RC1"
id("com.android.application") version "8.2.2"
id("org.jetbrains.compose") version "1.6.2"
}
group = "in.procyk.compose"
version = "1.0.0"
kotlin {
jvm("desktop")
androidTarget()
iosX64()
iosArm64()
iosSimulatorArm64()
applyDefaultHierarchyTemplate()
listOf(
iosX64(),
iosArm64(),
iosSimulatorArm64()
).forEach { iosTarget ->
iosTarget.binaries.framework {
baseName = "shared"
isStatic = true
}
}
sourceSets {
val desktopMain by getting
commonMain.dependencies {
implementation(compose.runtime)
implementation(compose.foundation)
implementation(compose.material3)
implementation(compose.materialIconsExtended)
implementation(compose.animationGraphics)
val composeExtensionsVersion = "1.6.2.0"
implementation("in.procyk.compose:calendar:$composeExtensionsVersion")
implementation("in.procyk.compose:camera-permission:$composeExtensionsVersion")
implementation("in.procyk.compose:camera-qr:$composeExtensionsVersion")
implementation("in.procyk.compose:util:$composeExtensionsVersion")
}
androidMain.dependencies {
api("androidx.activity:activity-compose:1.8.2")
api("androidx.appcompat:appcompat:1.6.1")
api("androidx.core:core-ktx:1.12.0")
}
desktopMain.dependencies {
implementation(compose.desktop.currentOs)
}
}
}
android {
compileSdk = 34
namespace = "in.procyk.compose.examples"
defaultConfig {
minSdk = 26
targetSdk = 34
applicationId = "in.procyk.compose.examples.Application"
versionCode = 1
versionName = "1.0.0"
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
kotlin {
jvmToolchain(17)
}
}
compose.desktop {
application {
mainClass = "in.procyk.compose.examples.MainKt"
version = "1.0.0"
nativeDistributions {
targetFormats(TargetFormat.Msi, TargetFormat.Deb, TargetFormat.Dmg)
packageName = "Application"
windows {
menu = false
upgradeUuid = "01397045-117e-43df-8801-9de544899aef"
}
macOS {
bundleID = "in.procyk.compose.examples.Application"
appStore = false
signing {
sign = false
}
runtimeEntitlementsFile.set(project.file("runtime-entitlements.plist"))
infoPlist {
extraKeysRawXml = """
<key>NSCameraUsageDescription</key>
<string></string>
""".trimIndent()
}
}
}
}
}