{"id":15914764,"url":"https://github.com/droidpl/android-layout-folding","last_synced_at":"2025-03-23T01:31:39.645Z","repository":{"id":57719735,"uuid":"50178786","full_name":"droidpl/android-layout-folding","owner":"droidpl","description":"Gradle plugin to enable multiple resource folders in the layout of the variants.","archived":false,"fork":false,"pushed_at":"2020-06-23T10:38:05.000Z","size":41,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-07T17:05:58.688Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Groovy","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/droidpl.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}},"created_at":"2016-01-22T11:59:17.000Z","updated_at":"2023-05-24T05:26:55.000Z","dependencies_parsed_at":"2022-09-13T13:01:59.738Z","dependency_job_id":null,"html_url":"https://github.com/droidpl/android-layout-folding","commit_stats":null,"previous_names":["droidpl/androidlayoutfolding"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/droidpl%2Fandroid-layout-folding","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/droidpl%2Fandroid-layout-folding/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/droidpl%2Fandroid-layout-folding/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/droidpl%2Fandroid-layout-folding/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/droidpl","download_url":"https://codeload.github.com/droidpl/android-layout-folding/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221841930,"owners_count":16890077,"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":[],"created_at":"2024-10-06T17:06:24.973Z","updated_at":"2024-10-28T14:42:23.936Z","avatar_url":"https://github.com/droidpl.png","language":"Groovy","readme":"# Android Layout Folding\n\n![Android plugin](https://img.shields.io/badge/Android%20plugin-active-green.svg)\n![Gradle](https://img.shields.io/badge/Gradle-compatible-brightgreen.svg)\n[ ![Download](https://api.bintray.com/packages/droidpl/maven/AndroidLayoutFolding/images/download.svg) ](https://bintray.com/droidpl/maven/AndroidLayoutFolding/_latestVersion)\n\nGradle plugin for Android that allows a project to define folders inside the layout directory. Basically\nit uses the normal merging mechanism that the android plugin uses by itself, declaring \nthe folders recursively as resources directory.\n\nTake the following structure as an example:\n```\nsrc/main/res/layout/\n    myLayout.xml\n    activities/layout/\n        activity1.xml\n        activity2.xml\nsrc/debug/res/layout/\n    activities/layout/\n        activity1.xml\n```\n\nAs you may notice it also supports different build variants, flavours and dimensions.\n\n# Instructions\nAdd the plugin to the classpath of your root build.gradle:\n```groovy\nbuildscript {\n    dependencies {\n        classpath 'com.github.droidpl:lfolding:1.0'\n    }\n}\n```\n\nApply this plugin to the build.gradle your project:\n```groovy\napply plugin: \"lfolding\"\n```\n\nThis will enable the behaviour automatically.\n\n# How to add folders\nUnder your original layout folder, if you want to add some nested folders keep in mind you have \nto add a new layout folder inside of it. It also supports any other resource and all of them\nwill be merged during the build process.\n\nExample for an activity folder:\n```\nsrc/main/layout/\n    activities/layout\n        myActivity.xml\n```\n\n# License\n```\nThe MIT License (MIT)\nCopyright (c) 2016 Javier de Pedro López\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdroidpl%2Fandroid-layout-folding","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdroidpl%2Fandroid-layout-folding","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdroidpl%2Fandroid-layout-folding/lists"}