common-enums
Common enums utilities for androidx-ktx-extras' modules.
Usage
Common Enums is available on Maven Central as the Maven coordinate io.github.edricchan03.androidx.common:common-enums
:
settings.gradle.kts
dependencyResolutionManagement {
// ...
repositories {
mavenCentral()
}
}
Content copied to clipboard
Kotlin/Groovy
build.gradle.kts
implementation("io.github.edricchan03.androidx.common:common-enums:0.2.0")
Content copied to clipboard
TOML
gradle/libs.versions.toml
:
[libraries]
androidxtra-common-enums = "io.github.edricchan03.androidx.common:common-enums:0.2.0"
Content copied to clipboard
build.gradle.kts
:
implementation(libs.androidxtra.common.enums)
Content copied to clipboard
Snapshots
Alternatively, you can grab the latest built snapshot from Maven Central's snapshots repository:
settings.gradle.kts
dependencyResolutionManagement {
// ...
repositories {
maven("https://s01.oss.sonatype.org/content/repositories/snapshots/") {
// Optionally, you can specify that only snapshots are to be used
mavenContent {
snapshotsOnly()
}
}
}
}
Content copied to clipboard
Kotlin
build.gradle.kts
:
implementation("io.github.edricchan03.androidx.common:common-enums:0.2.1-SNAPSHOT")
Content copied to clipboard
TOML
gradle/libs.versions.toml
:
[libaries]
androidxtra-common-enums = "io.github.edricchan03.androidx.common:common-enums:0.2.1-SNAPSHOT"
Content copied to clipboard
build.gradle.kts
:
implementation(libs.androidxtra.common.enums)
Content copied to clipboard
Packages
Link copied to clipboard
Common enum utilities such as EnumFromValue
:
Link copied to clipboard
Implementations of utilities from the parent package, such as ValueEnumFromValue
: