|
|
|
@ -42,6 +42,10 @@ abstract class AbstractProguardTask : AbstractComposeDesktopTask() {
|
|
|
|
|
@get:Input |
|
|
|
|
val dontoptimize: Property<Boolean?> = objects.nullableProperty() |
|
|
|
|
|
|
|
|
|
@get:Optional |
|
|
|
|
@get:Input |
|
|
|
|
val minimizeKotlinStandardLibrary: Property<Boolean?> = objects.nullableProperty() |
|
|
|
|
|
|
|
|
|
@get:Optional |
|
|
|
|
@get:Input |
|
|
|
|
val joinOutputJars: Property<Boolean?> = objects.nullableProperty() |
|
|
|
@ -125,6 +129,10 @@ abstract class AbstractProguardTask : AbstractComposeDesktopTask() {
|
|
|
|
|
writer.writeLn("-dontoptimize") |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (minimizeKotlinStandardLibrary.orNull == false) { |
|
|
|
|
writer.writeLn("-keep class kotlin.** { *; }") |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
writer.writeLn(""" |
|
|
|
|
-keep public class ${mainClass.get()} { |
|
|
|
|
public static void main(java.lang.String[]); |
|
|
|
|