{"id":17984456,"url":"https://github.com/mancj/kpreference","last_synced_at":"2025-10-08T17:10:00.878Z","repository":{"id":128809068,"uuid":"155122043","full_name":"mancj/KPreference","owner":"mancj","description":"Super lightweight Android preference Kotlin library made easy ⚙️⚙️⚙️","archived":false,"fork":false,"pushed_at":"2019-01-14T15:06:00.000Z","size":94,"stargazers_count":10,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-08T13:54:30.805Z","etag":null,"topics":["android","kotlin","sharedpreferences","sharedpreferences-editor"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mancj.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-10-28T22:28:46.000Z","updated_at":"2023-08-10T02:06:15.000Z","dependencies_parsed_at":"2023-07-09T11:38:17.876Z","dependency_job_id":null,"html_url":"https://github.com/mancj/KPreference","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mancj/KPreference","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mancj%2FKPreference","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mancj%2FKPreference/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mancj%2FKPreference/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mancj%2FKPreference/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mancj","download_url":"https://codeload.github.com/mancj/KPreference/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mancj%2FKPreference/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278981518,"owners_count":26079640,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","kotlin","sharedpreferences","sharedpreferences-editor"],"created_at":"2024-10-29T18:21:28.604Z","updated_at":"2025-10-08T17:10:00.873Z","avatar_url":"https://github.com/mancj.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# KPreference ⚙️\n \u003ca href='https://bintray.com/mancj/maven/kpreference/_latestVersion'\u003e\u003cimg src='https://api.bintray.com/packages/mancj/maven/kpreference/images/download.svg'\u003e\u003c/a\u003e\n\n\n**Edit SharedPreferences as easy as possible!💥🔥**\n---\nNo need to interact with some **preference wrappers** or override a **setters**, simply declare \nthe **variables** right in your repository or other classes!!!\n\nThe only thing to do is to implement the `PreferenceHolder` \ninterface and override the `SharedPreferences`\n\n```kotlin\nclass ServiceRepository @Inject constructor(\n    override val preferences: SharedPreferences /* override this */\n) : PreferenceHolder { /* implement this interface */\n   \n   // all preferences will be saved to the `preferences` object \n   val isFirstLaunch: Boolean by BooleanPreference(false) // false - default value\n  \n   val userToken: String by StringPreference(\"default value\")\n   \n   //or even easier, without specifying the type\n    val someIntPreference by IntPreference(5)\n    \n}\n```\n\nAdd library to your project. \n```gradle\ndependencies {\n    ...\n    implementation \"com.mancj:kpreference:$latestVersion\"\n}\n```\n\u003ca href='https://bintray.com/mancj/maven/kpreference/_latestVersion'\u003e\u003cimg src='https://api.bintray.com/packages/mancj/maven/kpreference/images/download.svg'\u003e\u003c/a\u003e\n\n# 🤩🤩🤩\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmancj%2Fkpreference","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmancj%2Fkpreference","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmancj%2Fkpreference/lists"}