{"id":21519629,"url":"https://github.com/usefulness/lazythreetenbp","last_synced_at":"2025-04-09T22:09:56.059Z","repository":{"id":37848291,"uuid":"474007435","full_name":"usefulness/lazythreetenbp","owner":"usefulness","description":"Maintained fork of a lazy loading ZoneRuleProvider for ThreeTenBp.","archived":false,"fork":false,"pushed_at":"2025-04-08T21:34:58.000Z","size":1232,"stargazers_count":3,"open_issues_count":2,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-09T22:09:49.768Z","etag":null,"topics":["android","iana","kotlin","lazy","threetenabp","timezone","tzdb"],"latest_commit_sha":null,"homepage":"https://github.com/gabrielittner/lazythreetenbp","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/usefulness.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2022-03-25T12:50:49.000Z","updated_at":"2025-03-31T14:31:16.000Z","dependencies_parsed_at":"2023-02-18T17:00:26.205Z","dependency_job_id":"4ea99b0d-cb98-4228-a610-fb19abea74ed","html_url":"https://github.com/usefulness/lazythreetenbp","commit_stats":null,"previous_names":[],"tags_count":28,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usefulness%2Flazythreetenbp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usefulness%2Flazythreetenbp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usefulness%2Flazythreetenbp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usefulness%2Flazythreetenbp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/usefulness","download_url":"https://codeload.github.com/usefulness/lazythreetenbp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248119294,"owners_count":21050755,"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","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","iana","kotlin","lazy","threetenabp","timezone","tzdb"],"created_at":"2024-11-24T00:59:41.083Z","updated_at":"2025-04-09T22:09:56.038Z","avatar_url":"https://github.com/usefulness.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LazyThreeTenBp\n\n[![Build project](https://github.com/usefulness/lazythreetenbp/actions/workflows/default.yml/badge.svg?branch=master)](https://github.com/usefulness/lazythreetenbp/actions/workflows/default.yml)\n![Maven Central](https://img.shields.io/maven-central/v/com.github.usefulness/lazythreetenbp)\n\n\nA lazy loading ZoneRuleProvider for ThreeTenBp.\n\n## Usage\n\nYou have to initialize LazyThreeTenBp as early as possible, before your code accesses any threetenbp\nclass. Usually the best place is in your `Application.onCreate()` method:\n\n```kotlin\noverride fun onCreate() {\n    super.onCreate()\n    LazyThreeTen.init(this)\n}\n```\n\nAfterwards you can call `LazyThreeTen.cacheZones()` on a background thread to cache the timezone\ninformation without blocking the startup of your app. If you decide not to do that the individual\ntimezones will be loaded on demand when they are accessed for the first time.\n\n## Download\n\nAdd a Gradle dependency:\n\n```groovy\nimplementation \"org.threeten:threetenbp:1.6.0:no-tzdb\"\nimplementation \"com.github.usefulness:lazythreetenbp:${version}\"\n```\n\n## Changes\n\nCompiler\n- generate java code for list of all timezone ids\n- generate a separate .dat file for each zone\n- only support one timezone data version at a time (makes some things easier)\n\nRuntime\n- custom `ZoneRulesProvider`\n- provides generated timezone id list\n- only reads timezone from assets/disk when that timezone was requested\n\n## Update tzdb data\n\n1. Check for the latest tzdb version at https://www.iana.org/time-zones\n2. Run `./gradlew generateLazyZoneRules -Plazythreetenbp.tzdbVersion=VERSION`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fusefulness%2Flazythreetenbp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fusefulness%2Flazythreetenbp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fusefulness%2Flazythreetenbp/lists"}