Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A template for creating new repositories for the new Android Project.

NotificationsYou must be signed in to change notification settings

happysingh23828/android-github-repo-template

Repository files navigation

platformGitHub licenseGithub FollowersGitHub starsGitHub forksGitHub watchersTwitter Follow

A template for creating new repositories for the new Android Project.

What is diffrent here from creating a new project from Android Studio?

This repository is meant to serve as a general template for how to set up new repository for Android. In general, setting up a new repository takes 30-60 minutes; use this repository as a way of setting up in 5 minutes, and use the following checklist to ensure that you've set up the repository correctly.It has additional modules and files to save your time.

Features

  • BuildSrc module (for handling dependecies at one place).
  • Core module (includes Kotlin Extensions, Base classess etc.).
  • Static tool analysis with Report generation (Ktlint, KtlintAutoFormat Detekt, Custom Detekt Lint Rules).
  • Android CI (using Github's Action workflow)
  • .gitignore for Android Studio Projects.
  • and many more to come....

Checklist

These instructions are basic; The important part is making sure that you follow the checklist for error free setup.

Create Repository from Github

  • Click onuse this template on this repository.
  • Enter your Github repo name.
  • Uncheckinclude all branches option.
  • Click oncreate repo from template button.now your repo has been created.

Clone Repo in Android Studio and set up.

  • Clone your newly created github repo into Android Studio.
  • Go tosettings.gradle and changerootProject.name as per your project name.
  • Go to App'sbuild.gradle and changeapplicationId as per your project package.
  • Go to App's modulestrings.xml and changeapp_name to your app name.
  • Delete Readme.MD file.
  • [Optional] Go tothemes.xml and refactor Base Application them's nameTheme.AndroidRepoGithubTemplate as per your requirements.that's it.

Additional Notes

- Code Quality Checks

This projects uses detekt and ktlint static code analyser in CI/CD pipeline to maintain code quality. they also genrated reports.

Run detekt locally

Use./gradlew detekt

Reports location for each module-
-/app/build/reports/detekt/report.html
-/core/build/reports/detekt/report.html

Run ktlint locally

Use./gradlew ktlint

Reports location for each module-
-/app/build/reports/ktlint/ktlint-checkstyle-report.xml
-/core/build/reports/ktlint/ktlint-checkstyle-report.xml

Run ktlint formatter locally

Use./gradlew ktlintFormat

If this project helps you in anyway, show your love ❤️ by putting a ⭐ on this project ✌️

- Contributing

Please fork this repository and contribute back usingpull requests.

Any contributions, large or small, major features, bug fixes, are welcomed and appreciatedbut will be thoroughly reviewed .

- Contact - Let's become friend

- License

MIT LicenseCopyright (c) 2020 Happy SinghPermission is hereby granted, free of charge, to any person obtaining a copyof this software and associated documentation files (the "Software"), to dealin the Software without restriction, including without limitation the rightsto use, copy, modify, merge, publish, distribute, sublicense, and/or sellcopies of the Software, and to permit persons to whom the Software isfurnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in allcopies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THEAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THESOFTWARE.```

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp