{"id":18622976,"url":"https://github.com/msasikanth/android-resource-poet","last_synced_at":"2025-08-13T18:09:14.957Z","repository":{"id":65358474,"uuid":"590505826","full_name":"msasikanth/android-resource-poet","owner":"msasikanth","description":"Kotlin DSL to create Android resource XML","archived":false,"fork":false,"pushed_at":"2025-06-04T19:16:14.000Z","size":244,"stargazers_count":43,"open_issues_count":13,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-04T23:56:36.355Z","etag":null,"topics":["android","kotlin","xml"],"latest_commit_sha":null,"homepage":"","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/msasikanth.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null}},"created_at":"2023-01-18T15:16:03.000Z","updated_at":"2025-01-04T21:14:41.000Z","dependencies_parsed_at":"2024-02-16T20:26:25.596Z","dependency_job_id":"8442e5a4-889c-4beb-8f5d-63ebfef87032","html_url":"https://github.com/msasikanth/android-resource-poet","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/msasikanth/android-resource-poet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msasikanth%2Fandroid-resource-poet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msasikanth%2Fandroid-resource-poet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msasikanth%2Fandroid-resource-poet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msasikanth%2Fandroid-resource-poet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/msasikanth","download_url":"https://codeload.github.com/msasikanth/android-resource-poet/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msasikanth%2Fandroid-resource-poet/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270287053,"owners_count":24558615,"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-08-13T02:00:09.904Z","response_time":66,"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","xml"],"created_at":"2024-11-07T04:20:13.208Z","updated_at":"2025-08-13T18:09:14.864Z","avatar_url":"https://github.com/msasikanth.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Android Resource Poet\n\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/dev.sasikanth/android-resource-poet/badge.svg)](https://maven-badges.herokuapp.com/maven-central/dev.sasikanth/android-resource-poet)\n![CI Checks](https://github.com/msasikanth/android-resource-poet/actions/workflows/ci.yml/badge.svg)\n\nKotlin DSL to create Android resource XML\n\n## Adding to your project\n\n```kotlin\nimplementation(\"dev.sasikanth:android-resource-poet:\u003clatest-version\u003e\")\n```\n\n## Basic usage\n\n```kotlin\nval xml: String = resourceXml {\n    string(name = \"app_name\") {\n        value = \"Twine\"\n        translatable = false\n    }\n\n    dimen(name = \"ball_radius\") {\n        value = \"30dp\"\n    }\n}\n\n// Write XML to file\nval fileWriter: OutputStreamWriter = // configure file output stream\nfileWriter.write(xml)\n```\n\n## Supported resource types (WIP)\n\n\u003cdetails\u003e\n    \u003csummary\u003eString\u003c/summary\u003e\n\n```kotlin\nresourceXml {\n    string(name = \"\") {\n        value = \"\" // Required\n        translatable = false // Optional - Default true\n    }\n}\n````\n\u003c/details\u003e\n\n\u003cdetails\u003e\n    \u003csummary\u003eString Array\u003c/summary\u003e\n\n```kotlin\nresourceXml {\n    stringArray(name = \"\") {\n        items = arrayOf(\"\") // Required\n        translatable = false // Optional - Default true\n    }\n}\n````\n\u003c/details\u003e\n\n\u003cdetails\u003e\n    \u003csummary\u003ePlurals\u003c/summary\u003e\n\n```kotlin\nresourceXml {\n    stringPlurals(name = \"\") {\n        translatable = false // Optional - Default true\n        item {\n            quantity = \"\" // Required\n            value = \"\" // Required\n        }\n    }\n}\n````\n\u003c/details\u003e\n\n\u003cdetails\u003e\n    \u003csummary\u003eBoolean\u003c/summary\u003e\n\n```kotlin\nresourceXml {\n    boolean(name = \"\") {\n        value = true // Optional - Default false\n    }\n}\n```\n\u003c/details\u003e\n\n\u003cdetails\u003e\n    \u003csummary\u003eColor\u003c/summary\u003e\n\n```kotlin\nresourceXml {\n    color(name = \"\") {\n        value = \"\" // Required\n    }\n}\n```\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n    \u003csummary\u003eDimen\u003c/summary\u003e\n\n```kotlin\nresourceXml {\n    dimen(name = \"\") {\n        value = \"\" // Required\n    }\n}\n```\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n    \u003csummary\u003eInteger\u003c/summary\u003e\n\n```kotlin\nresourceXml {\n    integer(name = \"\") {\n        value = \"\" // Required\n    }\n}\n```\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n    \u003csummary\u003eInteger Array\u003c/summary\u003e\n\n```kotlin\nresourceXml {\n    integerArray(name = \"\") {\n        values = intArrayOf() // Required\n    }\n}\n```\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n    \u003csummary\u003eStyle\u003c/summary\u003e\n\n```kotlin\nresourceXml {\n    style(name = \"\") {\n        parent = \"\" // Optional - Default empty\n\n        item {\n            name = \"\" // Required\n            value = \"\" // Required\n        }\n    }\n}\n```\n\n\u003c/details\u003e\n\n## License\n\n```\nCopyright 2023 Sasikanth Miriyampalli\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\nhttps://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsasikanth%2Fandroid-resource-poet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmsasikanth%2Fandroid-resource-poet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsasikanth%2Fandroid-resource-poet/lists"}