forked from Pulimet/ADBugger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
125 lines (106 loc) · 3.72 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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
import org.jetbrains.compose.desktop.application.dsl.TargetFormat
plugins {
kotlin("jvm")
id("org.jetbrains.compose")
id("org.jetbrains.kotlin.plugin.compose")
}
val appVersion = "1.0.5"
group = "net.alexandroid.adbugger"
version = appVersion
repositories {
mavenCentral()
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
google()
}
dependencies {
implementation(compose.desktop.currentOs)
implementation(compose.components.resources)
// Koin
implementation("co.touchlab:stately-concurrent-collections:2.1.0")
implementation("io.insert-koin:koin-core:4.0.0")
implementation("io.insert-koin:koin-compose:4.0.0")
// Icons Packs
listOf(
"simple-icons",
"feather",
"tabler-icons",
"eva-icons",
"font-awesome",
"octicons",
"linea",
"line-awesome",
"erikflowers-weather-icons",
"css-gg"
).forEach {
implementation("br.com.devsrsouza.compose.icons:$it:1.1.1")
}
}
compose.desktop {
application {
mainClass = "MainKt"
buildTypes.release.proguard {
obfuscate.set(false)
optimize.set(false)
configurationFiles.from(project.file("rules.pro"))
// joinOutputJars.set(true)
}
nativeDistributions {
outputBaseDir.set(getLayout().buildDirectory.dir("output"))
targetFormats(TargetFormat.Dmg, TargetFormat.Msi)
packageName = "ADBugger"
packageVersion = appVersion
description = "ADBugger is a tool for Android Developers to debug their apps on real devices and emulators."
copyright = "© 2024 Alexey Korolev. All rights reserved."
vendor = "Alexey Korolev"
// licenseFile.set(project.file("LICENSE.txt"))
val iconsRoot = project.file("src/main/resources")
macOS {
bundleID = "net.alexandroid.adbugger"
// a version for all macOS distributables
packageVersion = appVersion
// a version only for the dmg package
dmgPackageVersion = appVersion
// a version only for the pkg package
pkgPackageVersion = appVersion
// a build version for all macOS distributables
packageBuildVersion = appVersion
// a build version only for the dmg package
dmgPackageBuildVersion = appVersion
// a build version only for the pkg package
pkgPackageBuildVersion = appVersion
//Icon
iconFile.set(iconsRoot.resolve("macos.icns"))
// Extra keys for Info.plist
// infoPlist {
// extraKeysRawXml = macExtraPlistKeysExample
//}
}
windows {
// a version for all Windows distributables
packageVersion = appVersion
// a version only for the msi package
msiPackageVersion = appVersion
// a version only for the exe package
exePackageVersion = appVersion
menuGroup = "Developer Tools"
upgradeUuid = "8bd82a41-a268-418f-ad36-6e3a16a85f74"
// Icon
iconFile.set(iconsRoot.resolve("adbugger.ico"))
}
}
}
}
val macExtraPlistKeysExample: String
get() = """
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLName</key>
<string>Example deep link</string>
<key>CFBundleURLSchemes</key>
<array>
<string>compose</string>
</array>
</dict>
</array>
"""