GithubHelp home page GithubHelp logo

delivery_ios_app's Introduction

Delivery iOS App

An iOS app to show deliveries to be made as a list and address details on a Map.

Getting Started

Install cocoapods and run pod install in the project directory for a quick setup.

pod repo update
pod install

Fastlane Setup and Documentation

Fastlane readme

Prerequisites

Mac based system. Xcode Version 10.3+

Asumptions

  • App supports iPhone devices with iOS10+ only.

  • App supports potrait mode only.

  • Cached deliveries are the default datasource and all the deliveries from cache are stored at initialization of deliveryListViewModel.

  • If the number of deliveries received from API are less than the requested amount, it is assumed that there is no more deliveries available from the API and no further calls are made.(here)

Running the tests

If you have fastlane installed you can run 'fastlane tests' to intiate testing, otherwise press Cmd+U in Xcode to run the unit tests.

fastlane tests

There are tests in individual groups to test different layers.

Coding style

SwiftLint is used to enforce Swift style and conventions.

Design Pattern Used

MVVM

Model-View-ViewModel (MVVM) is a software design pattern that is structured to separate program logic and user interface controls. MVVM

  • View

View is represented by the UIView or UIViewController objects which should only display prepared data.

  • ViewModel

ViewModel hides all asynchronous networking code, data preparation code for visual presentation, and code listening for Model changes.

  • Model

It simply holds the data and has nothing to do with any of the business logic.

  • Router

Router handles all the routing logic and thus separates this concerns from the View.

Built With

  • Moya - Network abstraction layer on Alamofire.
  • Kingfisher - for downloading and caching images from the web
  • SwiftLint - A tool to enforce Swift style and conventions.
  • SnapKit - Swift Autolayout DSL
  • DZNEmptyDataSet - A drop-in UITableView/UICollectionView superclass category for showing empty datasets whenever the view has no content to display
  • Toast-Swift - A Swift extension that adds toast notifications to the UIView object class.

Firebase Crashlytics

  • Create account on firebase.
  • Replace "GoogleService-Info.plist" file with your plist file which will be geretated while creating an app on firebase.
  • For more details follow the link https://firebase.google.com/docs/crashlytics/

Screenshots

DeliveryListDeliveryDetails

delivery_ios_app's People

Contributors

hemant3370 avatar

Watchers

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