[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-7573":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":17,"stars30d":15,"stars90d":16,"forks30d":16,"starsTrendScore":18,"compositeScore":19,"rankGlobal":10,"rankLanguage":10,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":21,"hasPages":21,"topics":23,"createdAt":10,"pushedAt":10,"updatedAt":42,"readmeContent":43,"aiSummary":44,"trendingCount":16,"starSnapshotCount":16,"syncStatus":17,"lastSyncTime":45,"discoverSource":46},7573,"kotlin-android-template","cortinico\u002Fkotlin-android-template","cortinico","Android + Kotlin + Github Actions + ktlint + Detekt + Gradle Kotlin DSL + buildSrc = ❤️","",null,"Kotlin",1897,256,29,4,0,2,1,20.23,"MIT License",false,"main",[24,25,26,27,28,29,30,31,32,33,34,35,5,36,37,38,39,40,41],"android","android-app","android-library","android-template","detekt","github-actions","github-template","github-templates","gradle","gradle-android-plugin","gradle-kotlin-dsl","hacktoberfest","kotlin-dsl","kotlin-template","ktlint","maven-central","template","template-repository","2026-06-12 02:01:41","# kotlin-android-template 🤖\n\n[![Use this template](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Ffrom-kotlin--android--template-brightgreen?logo=dropbox)](https:\u002F\u002Fgithub.com\u002Fcortinico\u002Fkotlin-android-template\u002Fgenerate) ![Pre Merge Checks](https:\u002F\u002Fgithub.com\u002Fcortinico\u002Fkotlin-android-template\u002Fworkflows\u002FPre%20Merge%20Checks\u002Fbadge.svg)  ![License](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Flicense\u002Fcortinico\u002Fkotlin-android-template.svg) ![Language](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Flanguages\u002Ftop\u002Fcortinico\u002Fkotlin-android-template?color=blue&logo=kotlin)\n\nA simple Github template that lets you create an **Android\u002FKotlin** project and be up and running in a **few seconds**. \n\nThis template is focused on delivering a project with **static analysis** and **continuous integration** already in place.\n\n## How to use 👣\n\nJust click on [![Use this template](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002F-Use%20this%20template-brightgreen)](https:\u002F\u002Fgithub.com\u002Fcortinico\u002Fkotlin-android-template\u002Fgenerate) button to create a new repo starting from this template.\n\nOnce created don't forget to update the:\n- [App ID](buildSrc\u002Fsrc\u002Fmain\u002Fjava\u002FCoordinates.kt)\n- AndroidManifest ([here](app\u002Fsrc\u002Fmain\u002FAndroidManifest.xml) and [here](library-compose\u002Fsrc\u002Fmain\u002FAndroidManifest.xml))\n- Package of the source files\n\n## Features 🎨\n\n- **100% Kotlin-only template**.\n- 4 Sample modules (Android app, Android library, Kotlin library, Jetpack Compose Activity).\n- Jetpack Compose setup ready to use. \n- Sample Espresso, Instrumentation & JUnit tests.\n- 100% Gradle Kotlin DSL setup.\n- CI Setup with GitHub Actions.\n- Publish to **Maven Central** with Github Actions.\n- Dependency versions managed via `buildSrc`.\n- Kotlin Static Analysis via `detekt` and `ktlint`.\n- Issues Template (bug report + feature request).\n- Pull Request Template.\n\n## Troubleshooting\n\nFor help with issues which you might encounter when using this template, please refer to [TROUBLESHOOTING.md](TROUBLESHOOTING.md)\n\n## Gradle Setup 🐘\n\nThis template is using [**Gradle Kotlin DSL**](https:\u002F\u002Fdocs.gradle.org\u002Fcurrent\u002Fuserguide\u002Fkotlin_dsl.html) as well as the [Plugin DSL](https:\u002F\u002Fdocs.gradle.org\u002Fcurrent\u002Fuserguide\u002Fplugins.html#sec:plugins_block) to setup the build.\n\nDependencies are centralized inside the Gradle Version Catalog in the [libs.versions.toml](gradle\u002Flibs.versions.toml) file in the `gradle` folder.\n\n## Static Analysis 🔍\n\nThis template is using [**detekt**](https:\u002F\u002Fgithub.com\u002Fdetekt\u002Fdetekt) to analyze the source code, with the configuration that is stored in the [detekt.yml](config\u002Fdetekt\u002Fdetekt.yml) file (the file has been generated with the `detektGenerateConfig` task). It also uses the **detekt-formatting** plugin which includes the ktlint rules (see https:\u002F\u002Fdetekt.dev\u002Fdocs\u002Frules\u002Fformatting\u002F).\n\n## CI ⚙️\n\nThis template is using [**GitHub Actions**](https:\u002F\u002Fgithub.com\u002Fcortinico\u002Fkotlin-android-template\u002Factions) as CI. You don't need to setup any external service and you should have a running CI once you start using this template, just make sure that you turn on the \"Read and Write permissions\" on the Action Settings of your repository.\n\nThere are currently the following workflows available:\n- [Validate Gradle Wrapper](.github\u002Fworkflows\u002Fgradle-wrapper-validation.yml) - Will check that the gradle wrapper has a valid checksum\n- [Pre Merge Checks](.github\u002Fworkflows\u002Fpre-merge.yaml) - Will run the `build`, `check` and `publishToMavenLocal` tasks.\n- [Publish Snapshot](.github\u002Fworkflows\u002Fpublish-snapshot.yaml) - Will publish a `-SNAPSHOT` of the libraries to Sonatype.\n- [Publish Release](.github\u002Fworkflows\u002Fpublish-release.yaml) - Will publish a new release version of the libraries to Maven Central on tag pushes.\n\n## Publishing 🚀\n\nThe template is setup to be **ready to publish** a library\u002Fartifact on a Maven Repository.\n\nFor every module you want to publish you simply have to add the `publish` plugin:\n\n```\nplugins {\n    publish\n}\n```\n\n### To Maven Central\n\nIn order to use this template to publish on Maven Central, you need to configure some secrets on your repository:\n\n| Secret name | Value |\n| --- | --- | \n| `ORG_GRADLE_PROJECT_NEXUS_USERNAME` | The username you use to access Sonatype's services (such as [Nexus](https:\u002F\u002Foss.sonatype.org\u002F) and [Jira](https:\u002F\u002Fissues.sonatype.org\u002F)) |\n| `ORG_GRADLE_PROJECT_NEXUS_PASSWORD` | The password you use to access Sonatype's services (such as [Nexus](https:\u002F\u002Foss.sonatype.org\u002F) and [Jira](https:\u002F\u002Fissues.sonatype.org\u002F)) |\n| `ORG_GRADLE_PROJECT_SIGNING_KEY` | The GPG Private key to sign your artifacts. You can obtain it with `gpg --armor --export-secret-keys \u003Cyour@email.here>` or you can create one key online on [pgpkeygen.com](https:\u002F\u002Fpgpkeygen.com). The key starts with a `-----BEGIN PGP PRIVATE KEY BLOCK-----`. |\n| `ORG_GRADLE_PROJECT_SIGNING_PWD` | The passphrase to unlock your private key (you picked it when creating the key). |\n\nThe template already attaches `-sources.jar` to your publications via the new AGP publishing DSL.\n\nOnce set up, the following workflows will take care of publishing:\n\n- [Publish Snapshot](.github\u002Fworkflows\u002Fpublish-snapshot.yaml) - To publish `-SNAPSHOT` versions to Sonatype. The workflow is setup to run either manually (with `workflow_dispatch`) or on every merge.\n- [Publish Release](.github\u002Fworkflows\u002Fpublish-release.yaml) - Will publish a new release version of the libraries to Maven Central on tag pushes. You can trigger the workflow also manually if needed.\n\n### To Jitpack\n\nIf you're using [JitPack](https:\u002F\u002Fjitpack.io\u002F), you don't need any further configuration and you can just configure the repo on JitPack.\n\nYou probably want to disable the [Publish Snapshot] and [Publish Release](.github\u002Fworkflows\u002Fpublish-release.yaml) workflows (delete the files), as Jitpack will take care of that for you.\n\n## Project Structure\n\nThe project includes three sub-projects, each in their own subdirectories:\n\n- **`app`:** The source for the final Android application.\n- **`library-android`:** The source for an Android library including UI.\n- **`library-kotlin`:** The source for a UI-less Kotlin library.\n- **`library-compose`:** The source for a UI library with Jetpack Compose library.\n\nThe following additional top-level directories configure & support building the app & projects:\n\n- **`buildSrc`:** Contains shared Gradle logic as [precompiled script plugins](https:\u002F\u002Fdocs.gradle.org\u002Fcurrent\u002Fuserguide\u002Fcustom_plugins.html#sec:precompiled_plugins)\n- **`config`:** Contains the [Detekt configuration file](https:\u002F\u002Fdetekt.dev\u002Fdocs\u002Fintroduction\u002Fconfigurations\u002F).\n- **`gradle`:** Contains Gradle Configuration files such as the Gradle Version Catalog and the [Gradle Wrapper](https:\u002F\u002Fdocs.gradle.org\u002Fcurrent\u002Fuserguide\u002Fgradle_wrapper.html).\n\nFinally, the following hidden top-level directories provide functionality for specific development systems:\n\n- **`.github`:** Defines the [Github Actions](https:\u002F\u002Fgithub.com\u002Ffeatures\u002Factions) CI tasks and templates for new pull requests, issues, etc.\n- **`.idea`:** Sets common initial project settings when the project is opened in [Android Studio](https:\u002F\u002Fdeveloper.android.com\u002Fstudio) or [IntelliJ IDEA](https:\u002F\u002Fwww.jetbrains.com\u002Fidea\u002F).\n\n## Contributing 🤝\n\nFeel free to open a issue or submit a pull request for any bugs\u002Fimprovements.\n","该项目提供了一个基于Kotlin的Android项目模板，帮助开发者快速搭建具有静态分析和持续集成功能的应用。其核心功能包括使用Gradle Kotlin DSL进行构建配置管理、通过GitHub Actions实现CI\u002FCD流程以及利用detekt和ktlint执行代码质量检查。此外，还预设了多个示例模块如Jetpack Compose Activity等，便于开发者上手。此模板适用于需要高效开发高质量Android应用的场景，尤其是对代码质量和自动化测试有较高要求的项目。","2026-06-11 03:13:06","top_language"]