v5.2.0
New features:
Map
, File
, and URI
types can be used with the DSL
buildConfigField("MAP", mapOf("a" to 1, "b" to 2))
buildConfigField("FILE", File("aFile"))
buildConfigField("URI", uri("https://example.io"))
buildConfigField(Map.class, "MAP", [a: 1, b: 2])
buildConfigField(File.class, "FILE", new File("aFile"))
buildConfigField(URI.class, "URI", uri("https://example.io"))
Important
Avoid generating File
entries with Project.file
API, as they are created with absolute paths, and it will produce cache misses.
buildConfigField("FILE", file("aFile")) // will create a file targeting `/your/project/root/aFile` -> DON'T!
buildConfigField("FILE", file("aFile").relativeToOrSelf(projectDir)) // use this instead, for instance
What's Changed
- Bump kotlin from 1.9.21 to 1.9.22 by @dependabot in #107
- Bump io.github.gmazzo.publications.report from 1.2.0 to 1.2.2 by @dependabot in #108
- Fix typo in KTS resource generation example. by @utwyko in #109
New Contributors
Full Changelog: v5.1.0...v5.2.0