Skip to content

Releases: EdricChan03/androidx-ktx-extras

Common Enums 0.0.1

30 Jun 16:53
common-enums@0.0.1
f79dead
Compare
Choose a tag to compare

Notable changes

  • This version is the initial release! 🎉

  • An abstract EnumFromValue class was added that all enums' companion object with an internal representation should inherit. An example usage is as shown below:

    enum class Example(val value: String) {
        One("one"),
        Two("two"),
        Three("abc");
    
        companion object : EnumFromValue<String, Example>(default = Three) {
            override fun fromValueOrNull(value: String) = when (value) {
                "one" -> One
                "two" -> Two
                "abc", "other value" -> Three
                else -> null
            }
        }
    }

Full Changelog: https://github.com/EdricChan03/androidx-ktx-extras/commits/common-enums@0.0.1

Usage

common-enums is published on Maven Central (as io.github.edricchan03.androidx.common:common-enums) and can be included in your dependencies as shown below:

Kotlin/Groovy

build.gradle.kts:

implementation("io.github.edricchan03.androidx.common:common-enums:0.0.1")

Version Catalogs

libs.versions.toml:

[libraries]
androidxtra-common-enums = "io.github.edricchan03.androidx.common:common-enums:0.0.1"

build.gradle.kts:

implementation(libs.androidxtra.common.enums)

Browser KTX 0.0.1

30 Jun 16:57
browser-ktx@0.0.1
f38b0cc
Compare
Choose a tag to compare

Notable changes

Full Changelog: https://github.com/EdricChan03/androidx-ktx-extras/commits/browser-ktx@0.0.1


Version Compatibility

browser-ktx is published with the following dependencies:

Name Version Scope
Kotlin 1.8.21 implementation
AndroidX Annotation 1.6.0 api
AndroidX Browser 1.5.0 api
androidx-ktx-extras common-enums 0.0.1 api

See the module's build.gradle.kts for more info.

Usage

browser-ktx is published on Maven Central (as io.github.edricchan03.androidx.browser:browser-ktx) and can be included in your dependencies as shown below:

Kotlin/Groovy

build.gradle.kts:

implementation("io.github.edricchan03.androidx.browser:browser-ktx:0.0.1")

Version Catalogs

libs.versions.toml:

[libraries]
androidxtra-browser-ktx = "io.github.edricchan03.androidx.browser:browser-ktx:0.0.1"

build.gradle.kts:

implementation(libs.androidxtra.browser.ktx)