GithubHelp home page GithubHelp logo

eqworks's Introduction

EQ-Works assignment

This is work sample given for the job position of Mobile Developer at EQ Works. The description of the work sample is here.

Features

  • An standalone SDK in Kotlin for logging user's location
  • Feature to deliver result on desired thread
  • Error logging if API failes due to any result
  • Retry mechansim if API fails.
  • Minimal and can be used universally (Android OR Pure Java/Kotlin)
  • httpbin has been used for API
  • Unit test cases using JUnit4

HOW TO USE - LIBRARY

  • Import the ws-mobile-kotlin in your existing project(File -> New -> Import Module)
  • In your application/main class, initialize the library as below: Library.instance.setUp(YourCustomeOkhttpClient)
  • Pass users LocationEvent (lat, long, time(optional), extradata(optional)) object to the log function as below: Library.instance.log(LocationEvent object)

THIRD PARTY LIBRARIES - DEMO

  • OkHttp - Open source project designed to be an efficient HTTP client developed by Square Inc.
  • Gson - Used to convert Java Objects into their JSON representation developed by Google

HOW TO TEST

  • Import EQWorks project in Android Studion IDE(File -> New -> Import Project)
  • Open file MockViewmodelTest under com.huk.eqworks package
  • Right click on work space and hit Run MockViewmodelTest
  • Observe the result

HOW TO USE - DEMO

  • Import EQWorks project in Android Studion IDE(File -> New -> Import Project)
  • From configurations, select app if not selected.
  • Select the device you want to run on and click the run button next to device selection.
  • Click on Send location button in application to log the location to the server.

THIRD PARTY LIBRARIES - DEMO

  • CoLocation - For getting location from all possible providers in Android using kotlin coroutines
  • OkHttp - Open source project designed to be an efficient HTTP client developed by Square Inc.
  • Android Architecture Componnets - Android architecture components for morder way of android development

TODO

  • Add security
  • Handle various other methods such as PUT/DELETE/GET

Acknowledgement

Feel free to contact me if you have any question regarding code running.

eqworks's People

Contributors

hk4774 avatar

Watchers

James Cloos avatar  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.