Git Product home page Git Product logo

login-assignment's People

Contributors

javimolla avatar

Watchers

 avatar

login-assignment's Issues

Fix package typo

The package is called com.karumi.assingment.login but assingment is a typo, it should be assignment

Create basic project

We need to create an empty Android (Kotlin) project based on the "Empty activity" from Android Studio

Add functionality to main screen

This screen only needs a logout button that calls the login API

Every time the app starts or resumes, it checks if the user is logged by calling the corresponding login API method, and show the login screen if it's not

Tasks:

  • Add logout button
  • Call login API method logout
  • Add support for resume event
  • Call login API isLogged from the resume event
  • Show the login screen if the user is not logged

Write comprehensive README.md

It should explain what the app does and how we can try it, also, how the project is organized around the repository, the tooling it uses, and the reason for some of the decisions taken

Add login screen

This screen UI consists in a logo, two text fields (one for the username and another for the password) and a button that calls the login API

Tasks:

  • Create the user interface
  • Call login API method login from the button

Add fake login API service

As we don't yet have the real API to login, this has to be a fake implementation of that API with these methods:

  • login
  • logout
  • isLoggedIn

Add dependency injection

The project should rely on dependency injection instead of initializing the classes directly, improving the testing capabilities, as well as incrementing the possibilities for the future changes in the inner implementation of the login service or repository, for example

Setup CI tools

Setup and configure the required tools for quality and deployment

Fix LoginServiceUnitTest

After adding dependency injection, the login service test fails because it uses a non-zero constructor

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.