Skip to content

Commit

Permalink
release (0.5.1) added some predefined tags
Browse files Browse the repository at this point in the history
  • Loading branch information
kotlitecture committed Jul 4, 2024
1 parent a971e9f commit 7a68093
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 2 deletions.
2 changes: 1 addition & 1 deletion engine/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apply from: "${project.rootDir}/gradle/kotlin/library.gradle"

group = 'com.kotlitecture.kotli'
version = '0.5.0'
version = '0.5.1'

dependencies {
implementation libs.kotlin.coroutines.core
Expand Down
2 changes: 1 addition & 1 deletion engine/src/main/kotlin/kotli/engine/FeatureTag.kt
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ interface FeatureTag {
*
* @return the color of the feature tag as a `String`, or `null` if the color is not set.
*/
fun getColor(): String? = null
fun getColor(): String

}
23 changes: 23 additions & 0 deletions engine/src/main/kotlin/kotli/engine/model/FeatureTags.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package kotli.engine.model

import kotli.engine.FeatureTag

/**
* Represents a predefined set of feature tags.
*/
enum class FeatureTags(
private val title: String,
private val color: String
) : FeatureTag {

Android("Android", "#8BD294"),
IOS("iOS", "#BDBDBD"),
Web("Web", "#E9D575"),
Desktop("Desktop", "#C05048"),
Mobile("Mobile", "#5B77C0"),
Server("Server", "#3B476D"),
;

override fun getTitle(): String = title
override fun getColor(): String = color
}

0 comments on commit 7a68093

Please sign in to comment.