You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
1010 B
25 lines
1010 B
2 years ago
|
/*
|
||
|
* Copyright 2020-2022 JetBrains s.r.o. and respective authors and developers.
|
||
|
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE.txt file.
|
||
|
*/
|
||
|
|
||
|
package org.jetbrains.compose.desktop.application.dsl
|
||
|
|
||
|
import org.gradle.api.file.ConfigurableFileCollection
|
||
|
import org.gradle.api.model.ObjectFactory
|
||
|
import org.gradle.api.provider.Property
|
||
|
import org.jetbrains.compose.desktop.application.internal.notNullProperty
|
||
|
import org.jetbrains.compose.desktop.application.internal.nullableProperty
|
||
|
import javax.inject.Inject
|
||
|
|
||
|
private const val DEFAULT_PROGUARD_VERSION = "7.2.2"
|
||
|
|
||
|
abstract class ProguardSettings @Inject constructor(
|
||
|
objects: ObjectFactory,
|
||
|
) {
|
||
|
val version: Property<String> = objects.notNullProperty(DEFAULT_PROGUARD_VERSION)
|
||
|
val maxHeapSize: Property<String?> = objects.nullableProperty()
|
||
|
val configurationFiles: ConfigurableFileCollection = objects.fileCollection()
|
||
|
val isEnabled: Property<Boolean> = objects.notNullProperty(false)
|
||
|
}
|