Skip to content
This repository was archived by the owner on Jul 29, 2026. It is now read-only.

Announce end of maintenance and add a DataStore migration guide - #263

Merged
chibatching merged 2 commits into
masterfrom
docs/deprecation-and-migration-guide
Jul 28, 2026
Merged

Announce end of maintenance and add a DataStore migration guide#263
chibatching merged 2 commits into
masterfrom
docs/deprecation-and-migration-guide

Conversation

@chibatching

Copy link
Copy Markdown
Owner

Prepares the repository for archiving.

README

Adds a deprecation notice at the top, using a GitHub alert, that states maintenance
has ended and points to Jetpack DataStore and the migration guide. Below it, plain
prose notes that published artifacts stay on Maven Central so existing builds are
unaffected, and sketches the choice between Preferences DataStore and Proto
DataStore.

The Install and How to use sections are left untouched, as a reference for current
users.

Note: GitHub alerts render on github.com but not through the Jekyll-based GitHub
Pages site, where [!IMPORTANT] will appear as literal text in a blockquote. The
alert is kept short so the degraded rendering stays readable.

docs/MIGRATION.md

A new guide focused on what is specific to Kotpref, linking to the official
documentation for generic DataStore usage:

  • delegate to Preferences.Key mapping, with Kotpref's default values
  • the preference key rule (key ?: property.name)
  • what changes when moving from synchronous var to suspend / Flow
  • which name to pass to SharedPreferencesMigration, given that kotprefName
    defaults to the model's simple class name — getting this wrong fails silently
  • what replaces each optional module, including that preference-screen-dsl has
    no equivalent
  • behaviour differences: mutable stringSetPref sets, no MODE_MULTI_PROCESS,
    one instance per file

The guide carries a note that it was written at archive time and has not been
verified against a real migration.

Follow-ups (not in this PR)

🤖 Generated with Claude Code

https://claude.ai/code/session_01Ga7khpnpwB5JRMWPD2mX7d

chibatching and others added 2 commits July 28, 2026 22:16
Document the Kotpref-specific parts of moving to DataStore: the delegate
mapping table, the preference key rule (key ?: property.name), which name
to pass to SharedPreferencesMigration given that kotprefName defaults to
the model class name, and what replaces each optional module. Generic
DataStore usage links to the official documentation instead of being
restated here.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ga7khpnpwB5JRMWPD2mX7d
Add a deprecation notice pointing to Jetpack DataStore and the migration
guide, and note that published artifacts remain on Maven Central so
existing builds are unaffected. The Install and How to use sections are
kept as a reference for current users.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ga7khpnpwB5JRMWPD2mX7d
@chibatching
chibatching merged commit b83d14c into master Jul 28, 2026
3 checks passed
@chibatching
chibatching deleted the docs/deprecation-and-migration-guide branch July 28, 2026 13:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant