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.
35 lines
1.2 KiB
35 lines
1.2 KiB
package org.jetbrains.compose.resources |
|
|
|
abstract class ResourcesExtension { |
|
/** |
|
* Whether the generated resources accessors class should be public or not. |
|
* |
|
* Default is false. |
|
*/ |
|
var publicResClass: Boolean = false |
|
|
|
/** |
|
* The unique identifier of the resources in the current project. |
|
* Uses as package for the generated Res class and for isolation resources in a final artefact. |
|
* |
|
* If it is empty then `{group name}.{module name}.generated.resources` will be used. |
|
* |
|
*/ |
|
var packageOfResClass: String = "" |
|
|
|
enum class ResourceClassGeneration { Auto, Always, Never } |
|
|
|
//to support groovy DSL |
|
val auto = ResourceClassGeneration.Auto |
|
val always = ResourceClassGeneration.Always |
|
val never = ResourceClassGeneration.Never |
|
|
|
/** |
|
* The mode of resource class generation. |
|
* |
|
* - `auto`: The Res class will be generated if the current project has an explicit "implementation" or "api" dependency on the resource's library. |
|
* - `always`: Unconditionally generate the Res class. This may be useful when the resources library is available transitively. |
|
* - `never`: Never generate the Res class. |
|
*/ |
|
var generateResClass: ResourceClassGeneration = auto |
|
} |