{"id":13992244,"url":"https://github.com/android/android-studio-poet","last_synced_at":"2025-10-02T18:30:58.835Z","repository":{"id":46117044,"uuid":"106021222","full_name":"android/android-studio-poet","owner":"android","description":"Large Android projects generator","archived":true,"fork":false,"pushed_at":"2022-12-15T14:22:20.000Z","size":2611,"stargazers_count":698,"open_issues_count":12,"forks_count":85,"subscribers_count":34,"default_branch":"master","last_synced_at":"2024-09-25T03:33:41.302Z","etag":null,"topics":["android","android-development","android-resources","android-studio","android-studio-poet","bazel","bazel-build","gradle","java","java-generator","kotlin","kotlin-android","optimisations","performance"],"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/android.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-10-06T15:35:15.000Z","updated_at":"2024-09-15T03:12:39.000Z","dependencies_parsed_at":"2023-01-29T03:16:26.426Z","dependency_job_id":null,"html_url":"https://github.com/android/android-studio-poet","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/android%2Fandroid-studio-poet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/android%2Fandroid-studio-poet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/android%2Fandroid-studio-poet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/android%2Fandroid-studio-poet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/android","download_url":"https://codeload.github.com/android/android-studio-poet/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219875837,"owners_count":16554709,"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","android-development","android-resources","android-studio","android-studio-poet","bazel","bazel-build","gradle","java","java-generator","kotlin","kotlin-android","optimisations","performance"],"created_at":"2024-08-09T14:01:53.824Z","updated_at":"2025-10-02T18:30:58.452Z","avatar_url":"https://github.com/android.png","language":"Kotlin","readme":"# Android Studio Poet\n\n![alt text](https://github.com/borisf/java-generator/blob/master/img/generator.png)  \n\nOptimise your Android Studio builds, by creating generated projects. Inspired by [GradleBuildExperiment](https://github.com/NikitaKozlov/GradleBuildExperiment). A tool to generate real life Java and Kotlin Android projects to analyze and improve build times.\n\nCreate a real life complexity Android project that mimics your own and observe the build times. If the build times of the generated project are way smaller than yours, it might be worth inspecting deeply your build configs and optimize.\n\n## Features\n\n* Configurable number of modules\n* Configurable number of packages\n* Configurable number of classes\n* Configurable number of inter module dependencies\n* Android resources (images, strings, activities, layouts)\n* Configure how to generate UI layer code\n* Configurable version of Gradle, Kotlin, the Android Gradle Plugin\n* Experimental Bazel support\n* [Compose](https://developer.android.com/jetpack/compose) and [DataBinding](https://developer.android.com/topic/libraries/data-binding) support\n\n## Download \u0026 Run\n### IntelliJ IDEA/Android Studio\n1. Clone the project\n2. Open and run in your IDE\n\n### Standalone Jar\nGrab the [latest JAR](https://github.com/android/android-studio-poet/releases)\nand run `java -jar as-poet.jar`.\n\n## Command line arguments\nAndroid Studio Poet supports the following command line arguments\n1. Config - just run  `java -jar as-poet.jar MyConfig.json`\n2. Folder with configs - just run  `java -jar as-poet.jar \u003cpath to a folder with configs\u003e` Android Studio Poet \nwill crawl the folder recursively and execute each config in turn.\n\n## Build \u0026 Run\n1. Clone the repo\n2. `./gradlew aspoet:fatJar`\n3. `java -jar aspoet/build/libs/aspoet-all.jar`\n\n## How\n* The generated sources will include the basic functionality of method calling both in class itself and between the generated classes, both in Java and Kotlin\n\n* The generated build.gradle files will include other modules as dependencies\n\n* You can control Android resources (images, layouts etc')\n\n* You can control product flavors\n\n* You can have both source and resources inter-module dependencies\n\n## UI layer configurations\n* Specify `dataBindingConfig` for Data Binding\n  * It has a property `listenerCount` to indicate the number of data variables.\n  * It has a property `kapt` to specify whether we want to use Java Annotation Processor or Kapt to process data bindings.\n* Specify `viewBinding` for View Binding.\n* Specify `composeConfig` for Compose. \n  * It has a property `actionCount` to indicate the number of clickable actions.\n* If nothing above is specified, the UI layer code will be traditional XML-based layout.\n* Errors will be thrown when two of the above config is specified.\n\nThis is not an official Google product.\n\n### License\n\n```\nCopyright 2021 Google Inc.\n\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except\nin compliance with the License. You 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 distributed under the License\nis distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express\nor implied. See the License for the specific language governing permissions and limitations under\nthe License.\n```\n","funding_links":[],"categories":["Kotlin"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandroid%2Fandroid-studio-poet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandroid%2Fandroid-studio-poet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandroid%2Fandroid-studio-poet/lists"}