Releases: EdricChan03/androidx-ktx-extras
Common Enums 0.2.0
Published on 11 May 2024
Links
Usage
0.2.0 is published on Maven Central as io.github.edricchan03.androidx.common:common-enums:0.2.0
.
androidxtra-browser-ktx = "io.github.edricchan03.androidx.common:common-enums:0.2.0"
Artifacts
As this library is a Kotlin Multiplatform library, the following additional artifacts were published:
Target | Link |
---|---|
common |
N.A. |
jvm |
common-enums-jvm |
Notable changes
- A new interface (
ValueEnum
) has been added which enums can implement to provide an abstraction over enums which provide an internal value representation. This allows for operations to be done on generic value-based enums. (5973982
) ValueEnumFromValue
(currently experimental!) has been added which provides aValueEnum
implementation of theEnumFromValue
abstract class. (0abf688
)
Dependency updates
Artifact | Old version | New version |
---|---|---|
Kotlin | 1.9.0 |
1.9.23 |
Browser KTX 0.2.0
Published on 6 May 2024
Usage
0.2.0 is published on Maven Central as io.github.edricchan03.androidx.browser:browser-ktx:0.2.0
.
androidxtra-browser-ktx = "io.github.edricchan03.androidx.browser:browser-ktx:0.2.0"
Links
Notable changes
- The API surface has been brought up-to-date with Jetpack Browser 1.7.0 (
e52fb42
).
API updates
New extension properties
Property | Docs |
---|---|
Intent.isBookmarksButtonEnabled |
Documentation |
Intent.isDownloadButtonEnabled |
Documentation |
Intent.isSendToExternalDefaultHandlerEnabled |
Documentation |
Intent.translateLocale |
Documentation |
Intent.isBackgroundInteractionEnabled |
Documentation |
Intent.secondaryToolbarSwipeUpGesture |
Documentation |
Dependency updates
Artifact | Old version | New version |
---|---|---|
Kotlin | 1.9.0 |
1.9.23 |
Android Gradle Plugin | 8.1.1 |
8.4.0 |
androidx.browser:browser |
1.6.0 |
1.7.0 |
Common Enums 0.1.0
🚨 Breaking changes
The relocation POM is no longer published starting from this version. If you are still using the old Maven coordinates, please consider migrating:
-io.github.edricchan03.androidx.common.enums:common-enums:<version>
+io.github.edricchan03.androidx.common:common-enums:<version>
Notable changes
- This artifact has moved to Kotlin Multiplatform, allowing for use in non-Android modules. (
f070235
, #14) - Kotlin has been bumped to Kotlin 1.9.0. For more info, consult the corresponding JetBrains blog post. (
69efc43
)
Dependency updates
Artifact | Old version | New version |
---|---|---|
Kotlin | 1.8.22 |
1.9.0 |
Full Changelog: https://github.com/EdricChan03/androidx-ktx-extras/compare/[email protected]@0.1.0
Browser KTX 0.1.0
Notable changes
- Kotlin has been bumped to Kotlin 1.9.0. For more info, consult the corresponding JetBrains blog post. (
69efc43
) - Setters for Jetpack Browser's
Intent
extras (407ce70
) were added. See the API updates section for a list. - Annotations used in the Jetpack Browser library for representing a list of integer enums were added to the internal
value
property for the corresponding enums. (e1cdeb7
)
API updates
New extension properties
Property | Docs |
---|---|
Intent.colorScheme |
Documentation |
Intent.urlBarHidingEnabled |
Documentation |
Intent.closeButtonIcon |
Documentation |
Intent.showTitle |
Documentation |
Intent.shareState |
Documentation |
Intent.instantAppsEnabled |
Documentation |
New setters for existing extension properties
Property | Docs |
---|---|
Intent.activityResizeBehavior |
Documentation |
Intent.initialActivityHeightPx |
Documentation |
Intent.toolbarCornerRadiusDp |
Documentation |
Intent.closeButtonPosition |
Documentation |
Dependency updates
Artifact | Old version | New version |
---|---|---|
Kotlin | 1.8.22 |
1.9.0 |
androidx.browser:browser |
1.5.0 |
1.6.0 |
io.github.edricchan03.androidx.common:common-enums |
0.0.2 |
0.1.0 |
Full Changelog: https://github.com/EdricChan03/androidx-ktx-extras/compare/[email protected]@0.1.0
Common Enums 0.0.2
This release does not contain any new features, and should be backwards-compatible with 0.0.1.
Dependency updates
Artifact | Old version | New version |
---|---|---|
Kotlin | 1.8.21 |
1.8.22 |
Relocation notice
The artifact is now published under the io.github.edricchan03.androidx.common:common-enums
artifact:
Old artifact coordinates | New artifact coordinates |
---|---|
io.github.edricchan03.androidx.common.enums:common-enums |
io.github.edricchan03.androidx.common:common-enums |
Your build scripts must be updated to the following:
Kotlin/Groovy
-implementation("io.github.edricchan03.androidx.common.enums:common-enums:<version>")
+implementation("io.github.edricchan03.androidx.common:common-enums:<version>")
Version Catalogs (TOML)
[libraries]
-androidxtra-common-enums = "io.github.edricchan03.androidx.common.enums:common-enums:<version>
+androidxtra-common-enums = "io.github.edricchan03.androidx.common:common-enums:<version>
New versions of the common-enums
artifact will still be published to the old artifact (io.github.edricchan.androidx.common.enums:common-enums
) until the next minor SemVer release, 0.1.0.
See the CHANGELOG.md
file for more information.
Full Changelog: https://github.com/EdricChan03/androidx-ktx-extras/compare/[email protected]@0.0.2
Browser KTX 0.0.2
This release updates the transitive common-enums
dependency to 0.0.2
. No other
changes are included, and should be backwards-compatible with 0.0.1.
Note
If you are using thecommon-enums
artifact in your own library code, do note the changes in0.0.2
's release notes, particularly the artifact relocation.
Dependency updates
Artifact | Old version | New version |
---|---|---|
Kotlin | 1.8.21 |
1.8.22 |
Transitive dependency updates
Old artifact | New artifact |
---|---|
io.github.edricchan03.androidx.common.enums:common-enums:0.0.1 |
io.github.edricchan03.androidx.common:common-enums:0.0.2 |
Visual diff
-io.github.edricchan03.androidx.common.enums:common-enums:0.0.1
+io.github.edricchan03.androidx.common:common-enums:0.0.2
See the CHANGELOG.md
file for more information.
Full Changelog: https://github.com/EdricChan03/androidx-ktx-extras/compare/[email protected]@0.0.2
Common Enums 0.0.1
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/[email protected]
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
Notable changes
- This version is the initial release! 🎉
- Kotlin extension functions and additional utilities for version 1.5.0 of the
androidx.browser:browser
artifact were added.
Full Changelog: https://github.com/EdricChan03/androidx-ktx-extras/commits/[email protected]
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)