GithubHelp home page GithubHelp logo

jungwoohyoen / android-gradle-kotlin-dsl-starter Goto Github PK

View Code? Open in Web Editor NEW
1.0 0.0 0.0 155 KB

:dash:ㅤAndroid gradle kotlin dsl starter template project. 안드로이드 Kotlin DSL 템플릿 제공

License: MIT License

Kotlin 96.23% Shell 3.77%

android-gradle-kotlin-dsl-starter's Introduction

Android Gradle Kotlin DSL Starter (Kotlin DSL Template)

Use this template Language License: MIT

Android Gradle Kotlin DSL Starter provides a simple template for those who want to start a project with the Kotlin DSL.

Getting Started

Android Gradle Kotlin DSL Starter is a template that you can use when setting up your first android project. Also, this template is focused on delivering a project with static analysis and continuous integration already in place.

Features

  • 100% Kotlin-only template.
  • 100% Gradle Kotlin DSL setup.
  • Dependency versions managed via buildSrc.
  • Kotlin Static Analysis via ktlint and detekt.
  • Git Setup with Git-Hooks.

Installation

  1. Create a new repo starting from this template using Use this template button.
  2. Update APPLICATION_ID and BUILD_FILE_PREFIX according to your project.
  3. Update the package name and label of AndroidManifest to suit your project.
  4. Update package of the all source files

Environment setup

Some default settings are required to use the project.

Keystore

  • Create keystore folder in project root.
  • Create keystore.properties and key files for debug and release in the created keystore folder.
# Signing Config
# release
release.signing.key.alias=<insert>
release.signing.key.password=<insert>
release.signing.store.file=<insert> (../keystore/xxxxxxx.jks or .keystore)
release.signing.store.password=<insert>
# debug
debug.signing.key.alias=<insert>
debug.signing.key.password=<insert>
debug.signing.store.file=<insert> (../keystore/xxxxxxx.jks or .keystore)
debug.signing.store.password=<insert>

Coding Standards

To maintain the style and quality of the code, are used the bellow static analysis tools. All of them use properly configuration and you find them in the project root directory .{toolName}.

Tools Config file Check command Fix command
detekt /.detekt ./gradlew detekt -
ktlint - ./gradlew ktlintCheck ./gradlew ktlintFormat
lint /.lint ./gradlew lint -

All of the above tests can be run with ./gradlew check, which is used through Git-Hooks below. If you need to modify your coding standards, please refer to .editorconfig

Git-Hooks

When the project build is complete, git hooks related copyGitHooks, deleteGitHooks, and installGitHooks tasks will be created. When you run the installGitHooks task, pre-push hooks are installed, and from then on, push is performed only if there is no problem by performing ./gradlew check before being pushed to git.

License

Android Gradle Kotlin DSL Starter is under MIT license. See the LICENSE for more info.

android-gradle-kotlin-dsl-starter's People

Contributors

devsoupe avatar

Stargazers

whjung avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.