Skip to content

jzmcode/android-architecture

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

todo-mvp-kotlin

This version of the app is called todo-mvp-kotlin, and provides a foundation for other kotlin samples in this project. The sample aims to:

  • Provide a basic Model-View-Presenter (MVP) architecture without using any architectural frameworks.
  • Act as a reference point for comparing and contrasting the other kotlin samples in this project.
  • Leverage idiomatic kotlin to improve readability and limit verbosity, as compared to the TODO-MVP java project.

Dependencies

  • Kotlin stdlib
  • kotlin-android plugin

Features

Complexity - understandability

Medium: If you already understand TODO-MVP (Java), you need to learn the kotlin language.

Testability

Unit testing

Same as TODO-MVP.

Integration testing

Same as TODO-MVP.

Code metrics

Files were converted mostly 1:1 from TODO-MVP's Java code.

-------------------------------------------------------------------------------
Language                     files          blank        comment           code
-------------------------------------------------------------------------------
Kotlin                          48            958           1539           3103 (3901 in MVP java)
XML                             34             95            338            816
-------------------------------------------------------------------------------
SUM:                            82           1053           1877           3919
-------------------------------------------------------------------------------

Maintainability

Ease of amending or adding a feature

Same as TODO-MVP.

Learning cost

Medium, if you are unfamiliar with kotlin.

About

A collection of samples to discuss and showcase different architectural tools and patterns for Android apps.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published