xxfast
05/23/2021, 11:58 PMbuildSrc
declarations within your app module?Vampire
05/24/2021, 12:00 AMxxfast
05/24/2021, 12:05 AMConfigurations.kt
in buildSrc
where i define a global version for my app and i wish to reference this within my :app
module. I know you can do this by declaring new configFields
in build configs like
android {
defaultConfig {
buildConfigField("String", "VERSION", "\"${Configurations.App.Version}\"")
}
}
But this is limiting as this is only doable in an android project, whereas my setup is a multiplatform project.Vampire
05/24/2021, 12:06 AMxxfast
05/24/2021, 12:07 AMVampire
05/24/2021, 12:07 AMWriteProperties
task to create a properties file with the values you want and then read it at runtime.Vampire
05/24/2021, 12:08 AMprocessResources
taskxxfast
05/24/2021, 12:10 AM.properties
to each of the modules?Vampire
05/24/2021, 12:11 AMVampire
05/24/2021, 12:12 AMxxfast
05/24/2021, 12:15 AMxxfast
05/24/2021, 12:59 AM