Skip to content

Commit 7d50b62

Browse files
committed
release(common-enums): v0.3.0
1 parent bf2765d commit 7d50b62

File tree

3 files changed

+60
-21
lines changed

3 files changed

+60
-21
lines changed

androidx/common/common-enums/CHANGELOG.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,43 @@ the [generated Dokka documentation](https://edricchan03.github.io/androidx-ktx-e
2525
for API usage.
2626

2727
---
28+
<a name="0.3.0"></a>
29+
30+
## 0.3.0 (21 Aug 2025)
31+
32+
* [Maven Central](https://central.sonatype.com/artifact/io.github.edricchan03.androidx.common/common-enums/0.3.0)
33+
* [GitHub release](https://github.com/EdricChan03/androidx-ktx-extras/releases/tag/[email protected])
34+
* [Full changelog](https://github.com/EdricChan03/androidx-ktx-extras/compare/[email protected]@0.3.0)
35+
36+
### Notable changes
37+
38+
* This release adds actual support for KMP targets
39+
([#29](https://github.com/EdricChan03/androidx-ktx-extras/issues/29)), with the
40+
following being supported:
41+
* wasmJs
42+
* macosX64
43+
* macosArm64
44+
* iosX64
45+
* iosArm64
46+
* iosSimulatorArm64
47+
* watchosArm32
48+
* watchosArm64
49+
* watchosX64
50+
* watchosSimulatorArm64
51+
* watchosDeviceArm64
52+
* tvosArm64
53+
* tvosX64
54+
* tvosSimulatorArm64
55+
* mingwX64
56+
* linuxX64
57+
* linuxArm64
58+
59+
### Dependency updates
60+
61+
Artifact | Old version | New version
62+
---|---|---
63+
[Kotlin](https://kotlinlang.org) | [`1.9.23`](https://github.com/JetBrains/kotlin/releases/tag/v1.9.23) | [`2.2.10`](https://github.com/JetBrains/kotlin/releases/tag/v2.2.10)
64+
2865
<a name="0.2.0"></a>
2966

3067
## 0.2.0 (11 May 2024)

androidx/common/common-enums/Module.md

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ Common enums utilities for androidx-ktx-extras' modules.
66

77
<a href="https://central.sonatype.com/artifact/io.github.edricchan03.androidx.common/common-enums"><img src="https://img.shields.io/maven-central/v/io.github.edricchan03.androidx.common/common-enums?style=for-the-badge&logo=apachemaven&logoColor=%23C71A36&label=Maven%20Central" alt="Common Enums on Maven Central"></a>
88

9-
Common Enums is available on [Maven Central](https://central.sonatype.com) as the Maven coordinate [`io.github.edricchan03.androidx.common:common-enums`](https://central.sonatype.com/artifact/io.github.edricchan03.androidx.common/common-enums):
9+
Common Enums is available on [Maven Central](https://central.sonatype.com) as the Maven coordinate [
10+
`io.github.edricchan03.androidx.common:common-enums`](https://central.sonatype.com/artifact/io.github.edricchan03.androidx.common/common-enums):
1011

1112
`settings.gradle.kts`
1213

@@ -24,7 +25,7 @@ dependencyResolutionManagement {
2425
`build.gradle.kts`
2526

2627
```kotlin
27-
implementation("io.github.edricchan03.androidx.common:common-enums:0.2.0")
28+
implementation("io.github.edricchan03.androidx.common:common-enums:0.3.0")
2829
```
2930

3031
### TOML
@@ -33,7 +34,7 @@ implementation("io.github.edricchan03.androidx.common:common-enums:0.2.0")
3334

3435
```toml
3536
[libraries]
36-
androidxtra-common-enums = "io.github.edricchan03.androidx.common:common-enums:0.2.0"
37+
androidxtra-common-enums = "io.github.edricchan03.androidx.common:common-enums:0.3.0"
3738
```
3839

3940
`build.gradle.kts`:
@@ -44,7 +45,7 @@ implementation(libs.androidxtra.common.enums)
4445

4546
### Snapshots
4647

47-
<a href="https://s01.oss.sonatype.org/content/repositories/snapshots/io/github/edricchan03/androidx/common/common-enums/"><img src="https://img.shields.io/maven-metadata/v?metadataUrl=https%3A%2F%2Fs01.oss.sonatype.org%2Fcontent%2Frepositories%2Fsnapshots%2Fio%2Fgithub%2Fedricchan03%2Fandroidx%2Fcommon%2Fcommon-enums%2Fmaven-metadata.xml&style=for-the-badge&logo=apachemaven&logoColor=%23C71A36&label=Maven%20Central%20(snapshots)" alt="Common Enums on Maven Central (snapshot)"></a>
48+
<a href="https://central.sonatype.com/repository/maven-snapshots/io/github/edricchan03/androidx/common/common-enums"><img src="https://img.shields.io/maven-metadata/v?metadataUrl=https%3A%2F%2Fcentral.sonatype.com%2Frepository%2Fmaven-snapshots%2Fio%2Fgithub%2Fedricchan03%2Fandroidx%2Fcommon%2Fcommon-enums%2Fmaven-metadata.xml&style=for-the-badge&logo=apachemaven&logoColor=%23C71A36&label=Maven%20Central%20(snapshots)" alt="Common Enums on Maven Central (snapshot)"></a>
4849

4950
Alternatively, you can grab the latest built snapshot from Maven Central's snapshots
5051
repository:
@@ -55,7 +56,7 @@ repository:
5556
dependencyResolutionManagement {
5657
// ...
5758
repositories {
58-
maven("https://s01.oss.sonatype.org/content/repositories/snapshots/") {
59+
maven("https://central.sonatype.com/repository/maven-snapshots") {
5960
// Optionally, you can specify that only snapshots are to be used
6061
mavenContent {
6162
snapshotsOnly()
@@ -70,7 +71,7 @@ dependencyResolutionManagement {
7071
`build.gradle.kts`:
7172

7273
```kotlin
73-
implementation("io.github.edricchan03.androidx.common:common-enums:0.2.1-SNAPSHOT")
74+
implementation("io.github.edricchan03.androidx.common:common-enums:0.3.1-SNAPSHOT")
7475
```
7576

7677
#### TOML
@@ -79,7 +80,7 @@ implementation("io.github.edricchan03.androidx.common:common-enums:0.2.1-SNAPSHO
7980

8081
```toml
8182
[libaries]
82-
androidxtra-common-enums = "io.github.edricchan03.androidx.common:common-enums:0.2.1-SNAPSHOT"
83+
androidxtra-common-enums = "io.github.edricchan03.androidx.common:common-enums:0.3.1-SNAPSHOT"
8384
```
8485

8586
`build.gradle.kts`:
@@ -90,22 +91,23 @@ implementation(libs.androidxtra.common.enums)
9091

9192
# Package io.github.edricchan03.androidx.common.enums
9293

93-
Common enum utilities such as [`EnumFromValue`][io.github.edricchan03.androidx.common.enums.EnumFromValue]:
94+
Common enum utilities such as [
95+
`EnumFromValue`][io.github.edricchan03.androidx.common.enums.EnumFromValue]:
9496

9597
```kotlin
9698
enum class Example(val value: String) {
97-
One("one"),
98-
Two("two"),
99-
Three("abc");
100-
101-
companion object : EnumFromValue<String, Example>(default = Three) {
102-
override fun fromValueOrNull(value: String) = when (value) {
103-
"one" -> One
104-
"two" -> Two
105-
"abc", "other value" -> Three
106-
else -> null
99+
One("one"),
100+
Two("two"),
101+
Three("abc");
102+
103+
companion object : EnumFromValue<String, Example>(default = Three) {
104+
override fun fromValueOrNull(value: String) = when (value) {
105+
"one" -> One
106+
"two" -> Two
107+
"abc", "other value" -> Three
108+
else -> null
109+
}
107110
}
108-
}
109111
```
110112

111113
# Package io.github.edricchan03.androidx.common.enums.impl
@@ -114,7 +116,7 @@ Implementations of utilities from the parent package, such as
114116
[`ValueEnumFromValue`][io.github.edricchan03.androidx.common.enums.impl.ValueEnumFromValue]:
115117

116118
```kotlin
117-
enum class ExampleValue(override val value: String): ValueEnum<String> {
119+
enum class ExampleValue(override val value: String) : ValueEnum<String> {
118120
One("one"),
119121
Two("two"),
120122
Three("three");

androidx/common/common-enums/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ plugins {
77
}
88

99
androidxKtx {
10-
mavenCoordinates.version = "0.3.0-SNAPSHOT"
10+
mavenCoordinates.version = "0.3.0"
1111

1212
name = "androidx-ktx-extras-common-enums"
1313
description = "Common enum utilities for androidx-ktx-extras"

0 commit comments

Comments
 (0)