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