Skip to content

Commit

Permalink
feat(sdds-acore/theme-builder): Migrated to new json scheme (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
raininforest authored and malilex committed Apr 25, 2024
1 parent 3fb4fb5 commit 01e69d2
Show file tree
Hide file tree
Showing 52 changed files with 971 additions and 910 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,8 @@ internal class TodoPatternRule(config: Config = Config.empty) : Rule(config) {
}

private companion object {
const val issuePattern = "[A-Z]{2,}-\\d+"
val todoCommentPattern = Regex("//\\s*todo.*", RegexOption.IGNORE_CASE)
val todoPattern = Regex("// TODO: $issuePattern.*")
val todoPattern = Regex("// TODO: https://github.com/salute-developers/plasma-android/issues/\\d+")
const val MESSAGE = "Укажите issue, например: " +
"// TODO: https://github.com/salute-developers/plasma/issues/0"
}
Expand Down
2 changes: 1 addition & 1 deletion playground/theme-builder/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ android {
}

configure<ThemeBuilderExtension> {
themeUrl.set("file://${projectDir.path}/new_theme_scheme.json")
themeUrl.set("file://${projectDir.path}/json/plasma_b2c.zip")
target.set(ThemeBuilderTarget.ALL)
packageName.set("com.sdds.playground.themebuilder.tokens")
}
Expand Down
Binary file added playground/theme-builder/json/plasma_b2c.zip
Binary file not shown.
343 changes: 0 additions & 343 deletions playground/theme-builder/new_theme_scheme.json

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ internal abstract class FetchThemeTask : DefaultTask() {
abstract val url: Property<String>

/**
* Местоположение файла с темой после загрузки
* Местоположение архива с темой после загрузки
*/
@get:OutputFile
abstract val themeFile: RegularFileProperty
Expand All @@ -36,7 +36,7 @@ internal abstract class FetchThemeTask : DefaultTask() {
val themeJSON = themeFile.get().asFile
themeJSON.writeBytes(themeContent)
}.onFailure {
logger.error("Can't fetch theme json", it)
logger.error("Can't fetch theme", it)
throw it
}
}
Expand Down
Loading

0 comments on commit 01e69d2

Please sign in to comment.