android project themplate including network(retrofit), utils(image, permission, etc), etc

Overview

Template-Android

When starting a new Android project, it is boring to write some codes such as permission verification, network interface creation, which are necessary for almost all projects.
This template quickly solves such boring parts and allows you to devote time to tasks that are more important and need to be paid attention to.

Korean description(한국어 설명) : https://win-record.tistory.com/7

Initial Setting

  • min sdk version : 28
  • target sdk version : 30
  • using view binding

Directory

Template Directory

Name Description
base base classes such as base activity, fragment, dialog, etc
BaseActivity activity that all activities will inherit
showToast() showDialog() showProgressDialog() hideProgressDialog()
transActivity() setToolbar() hideToolbar() getEditorActionListener()
network about network task
ApiInterface retrofit api interface(samples included)
XAccessTokenInterceptor interceptor that put jwt into OkHttpClient from shared preferences
receiver broadcast receivers
DownloadReceiver receive when download complete such as file, image, video, etc
RebootReceiver receive when device reboots
util useful utils
Enums enum classes
ImageTask tasks about image
createImageFile() getFullPathFromUri() downloadImage()
NotificationTask task about notification
showNotification()
Permission tasks about permissions
checkCameraPermission() checkReadPermission()
checkWritePermission() checkCamaraAndReadPermission()
checkReadAndWritePermission() requestCameraPermission()
requestReadPermission() requestCameraAndReadPermission()
requestReadAndWritePermission()
ProgressDialog loading dialog
ValueCheck check values with regex patterns
isEmail() getUrl()
ValueConvert convert value to another
dpToPx() pxToDp()
App application class
MainActivity main activity using view binding

packages(folders) that would be good to add

  • adapter : adapter classes such as recyclerview adapter, fragment adapter, etc
  • data : data classes such as XXXresponse, XXXbody, user, etc
  • service : service classes
  • view : view classes such as activity, fragment, etc (+ you can add each activity, fragment package into)

Theme

Name Description
Theme.AndroidTemplate.NoActionBar no app bar theme
Theme.AndroidTemplate.FullScreen no app bar, no status bar theme

Dependencies

License

MIT License

Copyright (c) 2021 loggingWin

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, 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 THE
SOFTWARE.
You might also like...
Android App made by Jetpack Compose Components with Kotlin, MVVM Pattern, Multi Module, Navigation, Hilt, Coroutines, Retrofit and cached data by Room
Android App made by Jetpack Compose Components with Kotlin, MVVM Pattern, Multi Module, Navigation, Hilt, Coroutines, Retrofit and cached data by Room

Mobile Banking Android App made by Jetpack Compose Components with Kotlin, MVVM Pattern, Multi Module, Navigation, Hilt, Coroutines, Retrofit and cach

Simple app to consumer api movies with retrofit and save result in database with room using android jetpack
Simple app to consumer api movies with retrofit and save result in database with room using android jetpack

MoviesCompose Simple app to consumer api movies with retrofit and save result in database with room using android jetpack Instruccions Log Up in https

Simple implementation of a login made with jetpack compose and verifying its authentication through a REST API using retrofit
Simple implementation of a login made with jetpack compose and verifying its authentication through a REST API using retrofit

Simple Login/Auth + Jetpack Compose + Retrofit Demo 📱 Json Object Request 📑 Re

Kotlin-MVVM-RxJava-Hilt-Retrofit-Room

IMovie IMovie is a is a sample project that presents a modern approach to Android application development. The goal of the project is to combine popul

Example Jetpack Compose Android App, that uses the newest mechanisms, like StateFlow, SharedFlow, etc. to manage states and handle events. ViewModel, UI and Screenshot tests included :)
Example Jetpack Compose Android App, that uses the newest mechanisms, like StateFlow, SharedFlow, etc. to manage states and handle events. ViewModel, UI and Screenshot tests included :)

AndroidMVIExample Example Jetpack Compose Android App, that uses the newest mechanisms, like StateFlow, SharedFlow, etc. to manage states and handle e

Capturable - 🚀Jetpack Compose utility library for capturing Composable content and transforming it into Bitmap Image🖼️
Capturable - 🚀Jetpack Compose utility library for capturing Composable content and transforming it into Bitmap Image🖼️

Capturable 🚀 A Jetpack Compose utility library for converting Composable content into Bitmap image 🖼️ . Made with ❤️ for Android Developers and Comp

Partial port of https://github.com/davemorrissey/subsampling-scale-image-view library to Jetpack Compose.
Partial port of https://github.com/davemorrissey/subsampling-scale-image-view library to Jetpack Compose.

ComposeSubsamplingScaleImage Early preview (expect bugs) dependencies { implementation 'com.github.K1rakishou:ComposeSubsamplingScaleImage:fab4ae38c

Simple parallax effect for your image. Only usable with Jetpack Compose.
Simple parallax effect for your image. Only usable with Jetpack Compose.

Parallax Effect in Compose Image Example usage // In an activity or fragment... private lateinit var gravitySensorDefaulted: GravitySensorDefaulted o

It's a simple app written in Kotlin that shows a simple solution for how to save an image into Firebase Storage, save the URL in Firestore, and read it back using Jetpack Compose.
It's a simple app written in Kotlin that shows a simple solution for how to save an image into Firebase Storage, save the URL in Firestore, and read it back using Jetpack Compose.

It's a simple app written in Kotlin that shows a simple solution for how to save an image into Firebase Storage, save the URL in Firestore, and read it back using Jetpack Compose.

Owner
null
Compose-navigation - Set of utils to help with integrating Jetpack Compose and Jetpack's Navigation

Jetpack Compose Navigation Set of utils to help with integrating Jetpack Compose

Adam Kobus 5 Apr 5, 2022
Jetpack Compose animations including Loading/progress, Looping, On-off, Enter, Exit, Fade, Spin and Background animation

Compose Animation Examples. Useful Jetpack Compose animations including Loading/progress, Looping, On-off, Enter, Exit, Fade, Spin and Background animations that you can take inspiration from.

Mutual Mobile 149 Dec 22, 2022
ComposeImageBlurhash is a Jetpack Compose component with the necessary implementation to display a blurred image while the real image is loaded from the internet. Use blurhash and coil to ensure good performance.

compose-image-blurhash ComposeImageBlurhash is a Jetpack Compose component with the necessary implementation to display a blurred image while the real

Orlando Novas Rodriguez 24 Nov 18, 2022
Zoom Modifiers, zoomable image and layouts with limit pan bounds, fling and moving back to valid bounds and callbacks that return current transformation or visible image section

Zoom Modifiers, zoomable image and layouts with limit pan bounds, fling and moving back to valid bounds and callbacks that return current transformation or visible image section

Smart Tool Factory 20 Dec 13, 2022
Danilo Lemes 5 Jul 31, 2022
A sample project in Kotlin to demonstrate Jetpack Compose, MVVM, Coroutines, Hilt, Room, Coil, Retrofit, Moshi, Leak Canary and Repository pattern

Jetpack-Compose-Boilerplate This repository contains a sample project in Kotlin to demonstrate Jetpack Compose, MVVM, Coroutines, Hilt, Room, Coil, Re

Areg Petrosyan 14 Dec 12, 2022
Jetpack Compose android app that gets random footballer data from REST API. Retrofit, Dependency Injection...

random-footballer Jetpack Compose android app that gets random footballer data from REST API. Retrofit, Dependency Injection... Random Footballer Demo

Raheem 0 Nov 6, 2021
Android weather app using Hilt, Coroutines, Retrofit, Jetpack (Compose, Room, ViewModel) based on MVVM architecture

Atmostate A weather app written with Jetpack Compose using OpenWeatherMap Get the APK Features offline caching fetching data for current user location

Ramzan Sheikh 114 Dec 5, 2022
Android Sample Kotlin+ MVI + Jetpack compose + Coroutines + Retrofit + Hilt + Room + Navigation component

MVIComposeSample Android Sample app to show user latest movies implementing MVI + Clean Architecture using kotlin & Jetpack compose following solid an

Ahmed Atwa 10 Dec 28, 2022
Android App made by Jetpack Compose Components with Kotlin, MVVM Pattern, Multi Module, Navigation, Hilt, Coroutines, Retrofit and cached data by Room

Android App made by Jetpack Compose Components with Kotlin, MVVM Pattern, Multi Module, Navigation, Hilt, Coroutines, Retrofit and cached data by Room

Yogi Dewansyah 13 Aug 31, 2022