Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions buildSrc/src/main/kotlin/cleanup.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,8 @@ fun changeResourceFiles(name: String) {
.filter { it.name == "themes.xml" }
.forEach { themesFile ->
themesFile.replace(
oldValue = "Theme.ComposeAndroidTemplate", newValue = "Theme.$name"
oldValue = "Theme.ComposeAndroidTemplate",
newValue = "Theme.$name"
)
}

Expand All @@ -230,7 +231,8 @@ fun changeResourceFiles(name: String) {
.filter { it.name == "strings.xml" }
.forEach { stringsFile ->
stringsFile.replace(
oldValue = "Compose Android Template", newValue = name
oldValue = "Compose Android Template",
newValue = name
)
}

Expand All @@ -241,7 +243,11 @@ fun changeResourceFiles(name: String) {
.forEach { splashFile ->
splashFile.replace(
oldValue = "Theme.ComposeAndroidTemplate.Starting",
newValue = "Theme.${name}.Starting"
newValue = "Theme.$name.Starting"
Comment thread
CoderMP marked this conversation as resolved.
)
splashFile.replace(
oldValue = "Theme.ComposeAndroidTemplate",
newValue = "Theme.$name"
)
}
}