{"id":29964863,"url":"https://github.com/bb441db/compose-strings-plugin","last_synced_at":"2025-10-10T14:34:52.260Z","repository":{"id":307979913,"uuid":"474474135","full_name":"bb441db/compose-strings-plugin","owner":"bb441db","description":"Generate Type-Safe Composable Functions for Android String Resources","archived":false,"fork":false,"pushed_at":"2022-03-26T22:05:03.000Z","size":114,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-03T12:46:01.170Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/bb441db.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,"zenodo":null}},"created_at":"2022-03-26T21:48:46.000Z","updated_at":"2022-05-09T13:35:05.000Z","dependencies_parsed_at":"2025-08-03T12:46:04.561Z","dependency_job_id":"b93898cb-e50f-4854-8c3c-c5d712f18ce7","html_url":"https://github.com/bb441db/compose-strings-plugin","commit_stats":null,"previous_names":["bb441db/compose-strings-plugin"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/bb441db/compose-strings-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bb441db%2Fcompose-strings-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bb441db%2Fcompose-strings-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bb441db%2Fcompose-strings-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bb441db%2Fcompose-strings-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bb441db","download_url":"https://codeload.github.com/bb441db/compose-strings-plugin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bb441db%2Fcompose-strings-plugin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279004171,"owners_count":26083688,"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-10T02:00:06.843Z","response_time":62,"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":[],"created_at":"2025-08-04T01:05:41.187Z","updated_at":"2025-10-10T14:34:52.229Z","avatar_url":"https://github.com/bb441db.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Compose Strings Plugin\n\n## Example Usage\n```xml\n\u003cresources\u003e\n    \u003cstring name=\"main.hello\"\u003eHello %1$s!\u003c/string\u003e\n    \u003cstring name=\"main.world\"\u003eWorld\u003c/string\u003e\n\u003c/resources\u003e\n```\n\n```kt\n// String resource without any format specifiers will become getters\n@Composable\nfun MainView() {\n    Greeter(name = Strings.Main.world)\n}\n\n// Resources with at least one format specifier will become a composable function\n@Composable\nfun Greeter(name: String) {\n    Text(text = Strings.Main.hello(p1 = name))\n}\n```\n\n## Generated Code Example\n```kt\npublic object Strings {\n  public object App {\n    public val name: String\n      @Composable\n      get() = stringResource(id = R.string.app_name)\n  }\n\n  public object Main {\n    public val world: String\n      @Composable\n      get() = stringResource(id = R.string.main_world)\n\n    @Composable\n    public fun hello(p1: String): String = stringResource(id = R.string.main_hello, p1)\n  }\n}\n```\n\n## TODOs\n* Convert generated `object`'s to `namespace` when added to kotlin [KT-11968](https://youtrack.jetbrains.com/issue/KT-11968)\n* Named arguments instead of p1, p2, p3...\n* Copy comments in XML file to the generated functions","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbb441db%2Fcompose-strings-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbb441db%2Fcompose-strings-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbb441db%2Fcompose-strings-plugin/lists"}