$ show cortinico/kotlin-android-template
This repository is a GitHub template for bootstrapping Kotlin Android projects with a modern, opinionated build setup. It provides a multi-module structure (app, library-android, library-kotlin, library-compose) with pre-configured static analysis via detekt, CI/CD via GitHub Actions, and publishing to Maven Central. The codebase demonstrates best practices for Gradle Kotlin DSL, version catalogs, and precompiled script plugins. The sample modules include a simple factorial calculator to illustrate cross-module dependencies and testing patterns (unit, instrumentation, and Compose UI tests). While the template is not a production application itself, it serves as a solid foundation for new Android projects, emphasizing code quality and automation from the start.
The LLM identified 2 files worth highlighting for reuse:
A reusable Gradle precompiled script plugin that configures Maven Central publishing with GPG signing using in-memory keys. It handles both Android library and JVM library publications, attaches sources and javadoc jars, and sets up POM metadata. This plugin can be extracted and applied to any Gradle project with minimal changes, demonstrating a clean pattern for centralized publishing logic.
A Gradle precompiled script plugin designed to run from CI after a GitHub template is forked. It renames the root project, updates Maven coordinates, changes package names, and removes template-specific files. This is a non-obvious pattern for automating template initialization, and the plugin is self-contained with clear responsibilities, making it reusable for other GitHub template projects.