how to generate versionName string in build.gradle.kts to be used in settings xml file in android app?
I have file build.gradle for module level
recently changed to be new Kotline DSL version rename to build.gradle.kts
I have a line to generate versionName to be used as string in xml (settings activity to show version of application)
old code
applicationVariants.all { variant ->
variant.resValue "string", "versionName", variant.versionName }
I tried to convert it to Kotlin DSL but no luck
I tried this but not working
applicationVariants.all { variant -> variant.resValue("string",...