/mobile

mobile app

Primary LanguageJavaMIT LicenseMIT

Mobile Application

Target audience IDE Language
Android users Android studio Java

Release


Mocup

Link to Mocup (read only) => https://app.moqups.com/srj025RSEb/view/page/ae8fe8eb0


Lint

We used gradle' lint to check errors and warnings in our code.

In order to do that, we need to add a few lines in the "build.gadle" :

android {
    ...

    lintOptions {
        abortOnError false
    }
    ...
}

Then, to execute the task :

./gradlew lint

API Request used

API Documentation

Java class/file with all API request

  1. login_post_request()

    • Used to log in the user
    • https://kotsapp.herokuapp.com/server/api/login
  2. Get_Shopping_Lists()

    • Used to fetch the current user' shopping lists
    • https://kotsapp.herokuapp.com/server/api/shoppingList/
  3. Get_Shopping_Lists_items()

    • Used to fetch the products from the currently choosen shopping list
    • https://kotsapp.herokuapp.com/server/api/shoppingList/
  4. Get_items_page3()

    • Same as above, except that it's used to build page 3
    • https://kotsapp.herokuapp.com/server/api/shoppingList/
  5. getProductsFromPattern()

    • Used to fetch all products starting with the given 3 letters
    • https://kotsapp.herokuapp.com/server/api/products/
  6. addProductToList()

    • Used to add a specified product to the currently choosen list
    • https://kotsapp.herokuapp.com/server/api/shoppingList/addProduct/
  7. deleteProductRequest()

    • Used to remove a specified product to the currently choosen list
    • https://kotsapp.herokuapp.com/server/api/shoppingList/removeProduct/
  8. updateProductRequest()

    • sed to update all products that have been modified before going to page 3
    • https://kotsapp.herokuapp.com/server/api/shoppingList/updateQuantity/