All Projects → cortinico → Kotlin Android Template

cortinico / Kotlin Android Template

Licence: mit
Android + Kotlin + Github Actions + ktlint + Detekt + Gradle Kotlin DSL + buildSrc = ❤️

Programming Languages

kotlin
9241 projects

Projects that are alternatives of or similar to Kotlin Android Template

Uniapp Admin
Muti-platform management system for uniapp, H5, Android, IOS, Min Program
Stars: ✭ 226 (-77.03%)
Mutual labels:  android-app, template
Kotlin Gradle Plugin Template
🐘 A template to let you started with custom Gradle Plugins + Kotlin in a few seconds
Stars: ✭ 141 (-85.67%)
Mutual labels:  gradle, template
Vertx Gradle Starter
Gradle project template for Vert.x
Stars: ✭ 91 (-90.75%)
Mutual labels:  gradle, template
Busbookingui Android
Check out the new style for App Design aims for the Bus Booking Service...😉😀😁😎
Stars: ✭ 105 (-89.33%)
Mutual labels:  android-app, template
Coolweather
Weather App that uses Android best practices. Android Jetpack, clean architecture. Written in Kotlin
Stars: ✭ 154 (-84.35%)
Mutual labels:  android-app, gradle
Android Advanced Blueprint
Android进阶蓝图,各种新技术的体验demo,快速上手Data Binding,Data Binding Compiler V2,Android Architecture,Room等Android的黑科技
Stars: ✭ 148 (-84.96%)
Mutual labels:  android-app, gradle
Kotlin Mpp Standard
A standard setup for Kotlin multiplatform projects.
Stars: ✭ 92 (-90.65%)
Mutual labels:  android-app, gradle
Ionic Starter Template
Reinventing the wheel, again! Sorry Ionic Team... but there are many newbies learning on Youtube!
Stars: ✭ 208 (-78.86%)
Mutual labels:  android-app, template
Boardview
A draggable boardview for java android (Kanban style)
Stars: ✭ 309 (-68.6%)
Mutual labels:  android-app, gradle
Sao
⚔ Futuristic scaffolding tool
Stars: ✭ 966 (-1.83%)
Mutual labels:  template
Quiz
An android application which uses Open Trivia Api.
Stars: ✭ 34 (-96.54%)
Mutual labels:  gradle
Express React Boilerplate
🚀🚀🚀 This is a tool that helps programmers create Express & React projects easily base on react-cool-starter.
Stars: ✭ 32 (-96.75%)
Mutual labels:  template
React Rapid
React-Rapid: Fast, Responsive & Free React Starter Template
Stars: ✭ 33 (-96.65%)
Mutual labels:  template
Opentorrentsite
A modern torrent site template that is easy to setup with an intuitive GUI. Currently in development.
Stars: ✭ 34 (-96.54%)
Mutual labels:  template
Go4droid
build an android app (with go bindings) in Docker
Stars: ✭ 32 (-96.75%)
Mutual labels:  gradle
Android Easy Multidex
[Deprecated] Android,multidex,splitdex,分包插件
Stars: ✭ 976 (-0.81%)
Mutual labels:  gradle
Tempreites
One-file semantic DSL-free templates direto da roça for the browser and server.
Stars: ✭ 31 (-96.85%)
Mutual labels:  template
Gradle Dependencies Plugins Helper Plugin
This is an IntelliJ IDEA plugin for searching dependencies/plugins from JCentral/GradlePlugins inside Gradle projects.
Stars: ✭ 31 (-96.85%)
Mutual labels:  gradle
Filemanager
Android File Manager Demo
Stars: ✭ 36 (-96.34%)
Mutual labels:  android-app
Androidkex
Extensions for Kotlin. Use the power of Kotlin to make your code smaller and beautiful.
Stars: ✭ 35 (-96.44%)
Mutual labels:  android-app

kotlin-android-template 🤖

Use this template Pre Merge Checks License Language

A simple Github template that lets you create an Android/Kotlin project and be up and running in a few seconds.

This template is focused on delivering a project with static analysis and continuous integration already in place.

How to use 👣

Just click on Use this template button to create a new repo starting from this template.

Once created don't forget to update the:

Features 🎨

  • 100% Kotlin-only template.
  • 3 Sample modules (Android app, Android library, Kotlin library).
  • Sample Espresso, Instrumentation & JUnit tests.
  • 100% Gradle Kotlin DSL setup.
  • CI Setup with GitHub Actions.
  • Publish to Maven Central with Github Actions.
  • Dependency versions managed via buildSrc.
  • Kotlin Static Analysis via ktlint and detekt.
  • Issues Template (bug report + feature request).
  • Pull Request Template.

Gradle Setup 🐘

This template is using Gradle Kotlin DSL as well as the Plugin DSL to setup the build.

Dependencies are centralized inside the Dependencies.kt file in the buildSrc folder. This provides convenient auto-completion when writing your gradle files.

Static Analysis 🔍

This template is using ktlint with the ktlint-gradle plugin to format your code. To reformat all the source code as well as the buildscript you can run the ktlintFormat gradle task.

This template is also using detekt to analyze the source code, with the configuration that is stored in the detekt.yml file (the file has been generated with the detektGenerateConfig task).

CI ⚙️

This template is using GitHub Actions as CI. You don't need to setup any external service and you should have a running CI once you start using this template.

There are currently the following workflows available:

Publishing 🚀

The template is setup to be ready to publish a library/artifact on a Maven Repository.

For every module you want to publish you simply have to add the publish plugin:

plugins {
    publish
}

To Maven Central

In order to use this template to publish on Maven Central, you need to configure some secrets on your repository:

Secret name Value
ORG_GRADLE_PROJECT_NEXUS_USERNAME The username you use to access Sonatype's services (such as Nexus and Jira)
ORG_GRADLE_PROJECT_NEXUS_PASSWORD The password you use to access Sonatype's services (such as Nexus and Jira)
ORG_GRADLE_PROJECT_SIGNING_KEY The GPG Private key to sign your artifacts. You can obtain it with gpg --armor --export-secret-keys <[email protected]> or you can create one key online on pgpkeygen.com. The key starts with a -----BEGIN PGP PRIVATE KEY BLOCK-----.
ORG_GRADLE_PROJECT_SIGNING_PWD The passphrase to unlock your private key (you picked it when creating the key).

The template already sets up Dokka for project documentation and attaches -sources.jar to your publications.

Once set up, the following workflows will take care of publishing:

  • Publish Snapshot - To publish -SNAPSHOT versions to Sonatype. The workflow is setup to run either manually (with workflow_dispatch) or on every merge.
  • Publish Release - Will publish a new release version of the libraries to Maven Central on tag pushes. You can trigger the workflow also manually if needed.

To Jitpack

If you're using JitPack, you don't need any further configuration and you can just configure the repo on JitPack.

You probably want to disable the [Publish Snapshot] and Publish Release workflows (delete the files), as Jitpack will take care of that for you.

Contributing 🤝

Feel free to open a issue or submit a pull request for any bugs/improvements.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].