-
Notifications
You must be signed in to change notification settings - Fork 8
/
build.gradle.kts
81 lines (71 loc) · 2.17 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
val androidCompileSdk by extra(34)
val androidTargetSdk by extra(34)
val androidMinSdk by extra(24)
val javaVersion by extra(JavaVersion.VERSION_21)
val appVersionCode by extra(50)
val appVersionName by extra("1.13.2")
val appGroup by extra("dev.zwander")
val appPackageName by extra("dev.zwander.arcadyankvd21control")
val appName by extra("HINT Control")
plugins {
alias(libs.plugins.kotlin.native.cocoapods) apply false
alias(libs.plugins.moko.resources) apply false
alias(libs.plugins.android.application) apply false
alias(libs.plugins.android.library) apply false
alias(libs.plugins.buildkonfig) apply false
alias(libs.plugins.kotlin.atomicfu) apply false
alias(libs.plugins.kotlin.compose) apply false
alias(libs.plugins.kotlin.multiplatform) apply false
alias(libs.plugins.compose) apply false
alias(libs.plugins.kotlin.android) apply false
alias(libs.plugins.conveyor) apply false
alias(libs.plugins.bugsnag.gradle) apply false
}
tasks.register("clearIOSOutput") {
doLast {
delete("iosApp/output")
mkdir("iosApp/output")
mkdir("iosApp/output/Payload/HINT Control.app")
}
}
tasks.register("buildXCArchive") {
dependsOn(":clearIOSOutput")
doLast {
exec {
commandLine(
"xcodebuild",
"archive",
"-workspace", "iosApp/iosApp.xcworkspace",
"-sdk", "iphoneos",
"-scheme", "iosApp",
"-archivePath", "iosApp/output/iosApp.xcarchive",
"-destination", "generic/platform=iOS",
)
}
}
}
tasks.register("moveXCArchive") {
dependsOn(":buildXCArchive")
doLast {
exec {
commandLine(
"mv", "iosApp/output/iosApp.xcarchive/Products/Applications/HINT Control.app",
"iosApp/output/Payload",
)
}
}
}
tasks.register("buildIPA") {
dependsOn(":moveXCArchive")
doLast {
exec {
setWorkingDir("iosApp/output")
commandLine(
"zip",
"-r",
"HINT Control.ipa",
"Payload",
)
}
}
}