Skip to content

Commit e61c047

Browse files
authored
Merge bugfix/resource-file-config into main (#6)
* Refactored `cleanup.gradle.kts` to include replacement for postSplashScreenTheme property contained in `splash.xml` * Corrected logic in `cleanup.gradle.kts` for postSplashScreenTheme property replacement for in `splash.xml`
1 parent c360f8e commit e61c047

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

buildSrc/src/main/kotlin/cleanup.gradle.kts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -223,10 +223,6 @@ fun changeResourceFiles(name: String) {
223223
oldValue = "Theme.ComposeAndroidTemplate",
224224
newValue = "Theme.$name"
225225
)
226-
themesFile.replace(
227-
oldValue = "<item name=\"postSplashScreenTheme\">@style/Theme.ComposeAndroidTemplate</item>",
228-
newValue = "<item name=\"postSplashScreenTheme\">@style/Theme.$name</item>"
229-
)
230226
}
231227

232228
// Update strings.xml file
@@ -247,7 +243,11 @@ fun changeResourceFiles(name: String) {
247243
.forEach { splashFile ->
248244
splashFile.replace(
249245
oldValue = "Theme.ComposeAndroidTemplate.Starting",
250-
newValue = "Theme.${name}.Starting"
246+
newValue = "Theme.$name.Starting"
247+
)
248+
splashFile.replace(
249+
oldValue = "Theme.ComposeAndroidTemplate",
250+
newValue = "Theme.$name"
251251
)
252252
}
253253
}

0 commit comments

Comments
 (0)