Skip to content

Commit d461fb7

Browse files
committed
add util for assigning klib.signatureVersion
1 parent 9b395b7 commit d461fb7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

modules/bcv-gradle-plugin/src/main/kotlin/targets/KLibValidationSpec.kt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@ interface KLibValidationSpec {
3636
@get:Optional
3737
val signatureVersion: Property<KLibSignatureVersion>
3838

39+
/**
40+
* Sets the value of [signatureVersion].
41+
* @see signatureVersion
42+
*/
43+
fun signatureVersion(version: Int): Unit =
44+
signatureVersion.set(KLibSignatureVersion.of(version))
45+
3946
/**
4047
* Fail validation if some build targets are not supported by the host compiler.
4148
* By default, ABI dumped only for supported files will be validated. This option makes validation behavior

0 commit comments

Comments
 (0)