ProductPackageConfig
Add by ProductName
/**
* Adds one or more products to the product package configuration.
*
* @param products The products to be added. Each product is represented by a [ProductName],
* which includes details such as the name and an optional alias.
* @param exportToKotlin Determines whether the added products should be exported
* to Kotlin. Defaults to `false` if not specified.
*/
public fun add(
vararg products: ProductName,
exportToKotlin: Boolean = false,
)
Add by Names
/**
* Adds one or more product names to the product package configuration using their string representation.
*
* @param names The string representations of the product names to be added.
* Each string corresponds to the name of the product within the Swift package ecosystem.
* @param exportToKotlin Determines whether the added products should be exported
* to Kotlin. Defaults to `false` if not specified.
*/
public fun add(
vararg names: String,
exportToKotlin: Boolean = false,
)