-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
36 lines (33 loc) · 1.19 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
plugins {
alias(libs.plugins.kotlin.jvm) apply false
alias(libs.plugins.android.lint) apply false
alias(libs.plugins.gradle.plugin.publish) apply false
alias(libs.plugins.kotlinx.binCompatValidator) apply false
alias(libs.plugins.gradle.doctor) apply false
alias(libs.plugins.vanniktech.mvn.publish)
id("io.github.fluxo-kt.fluxo-kmp-conf")
}
group = "io.github.fluxo-kt"
version = libs.versions.version.get()
fkcSetupGradlePlugin {
setupVerification = true
enableApiValidation = true
enableGenericAndroidLint = true
experimentalLatestCompilation = true
latestSettingsForTests = true
allWarningsAsErrors = true
enableGradleDoctor = true
enablePublication = true
// Two separate processing chains.
// First provides the output jar for the module.
// The combination of R8 & ProGuard in that order can provide the best results.
// 1. R8 → ProGuard (1.2 KB → 610 B).
shrink {
fullMode = true
shrinkWithProGuard()
}
// 2. ProGuard → R8 (1.2 KB → 793 B).
shrinkWithProGuard { shrinkWithR8 { fullMode = true } }
// 3. R8 → R8 (1.2 KB → 980 B).
shrinkWithR8 { shrinkWithR8 { fullMode = true } }
}