Skip to content

[Feature Request] Add Kotlin 2.0+ support for Store v4 #705

@sulemankhan8

Description

@sulemankhan8

Is your feature request related to a problem? Please describe.
Many projects (like ours) are still using Store v4 due to stability and API familiarity. However, Store v4 breaks with Kotlin 2.0+ due to usage of older kotlin.time APIs like Duration.hours(...), which are now removed in Kotlin 2.x.

Describe the solution you'd like
Backport Kotlin 2.0+ compatibility changes into Store v4 — specifically, replace usages of Duration.hours(...) and similar deprecated APIs to ensure compatibility with Kotlin 2.x, without requiring a full upgrade to Store v5.

Describe alternatives you've considered

  • Migrating to Store v5, but it contains significant API changes and would require a lot of code rewrite in large codebases.
  • Forking Store v4 and maintaining it internally, which works but is not ideal for long-term maintainability.

Additional context
Store v4 is still widely used in many production apps. Providing Kotlin 2.x support will help teams adopt latest Kotlin versions without breaking existing architecture. We'd really appreciate official support to avoid maintaining internal forks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status

    🆕 Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions