Git Product home page Git Product logo

menu.lk---tharindu---app's Introduction

Ionic V.3.20.0 Menu.lk Application

This is the Ionic shopping app, created by the request of my friend Tharindu de Soysa from Sri Lanka.

Important!

App primarily been developed for Android
Due to lack of time I decided to build app on top of Firebase backend.

ionic-angular npm module has 2 following bugs. In order to fix them, please amend this files
Module "PLATFORM" -> File "platform.js" line 607 -> Body of function onTransitionEnd must to be wrapped in try-catch block to avoid exeption, see exaple below:

function onTransitionEnd(ev) {

  try {

    if (el === ev.target) {

      unregister();
      callback(ev);

    }

  }catch(e) {}

}

Module "COMPONENTS/INFINITE-SCROLL" -> File "infinite-scroll.js" line 224 -> Body of function InfiniteScroll.prototype._onScroll must to be wrapped in try-catch block to avoid exeption, see exaple below:

InfiniteScroll.prototype._onScroll = function (ev) {

  try {

    var _this = this;
    if (this.state === STATE_LOADING || this.state === STATE_DISABLED) {
      return 1;
    }
    if (this._lastCheck + 32 > ev.timeStamp) {
      // no need to check less than every XXms
      return 2;
    }
    this._lastCheck = ev.timeStamp;
    // ******** DOM READ ****************
    var infiniteHeight = this._elementRef.nativeElement.scrollHeight;
    if (!infiniteHeight) {
      // if there is no height of this element then do nothing
      return 3;
    }
    // ******** DOM READ ****************
    var d = this._content.getContentDimensions();
    var height = d.contentHeight;
    var threshold = this._thrPc ? (height * this._thrPc) : this._thrPx;
    // ******** DOM READS ABOVE / DOM WRITES BELOW ****************
    var distanceFromInfinite;
    if (this._position === POSITION_BOTTOM) {
      distanceFromInfinite = d.scrollHeight - infiniteHeight - d.scrollTop - height - threshold;
    }
    else {
      (void 0) /* assert */;
      distanceFromInfinite = d.scrollTop - infiniteHeight - threshold;
    }
    if (distanceFromInfinite < 0) {
    // ******** DOM WRITE ****************
    this._dom.write(function () {
      _this._zone.run(function () {
          if (_this.state !== STATE_LOADING && _this.state !== STATE_DISABLED) {
            _this.state = STATE_LOADING;
            _this.ionInfinite.emit(_this);
          }
      });
    });
      return 5;
    }
      return 6;
  }catch(e) {}
};

plugins/cordova-universal-links-plugin in order to work properly with android ~7.0.0 require to make following changes
File "hooks/lib/android/manifestWriter.js" line 21 -> Need substitute

  var pathToManifest = path.join(cordovaContext.opts.projectRoot, 'platforms', 'android', 'AndroidManifest.xml');

with

  var pathToManifest = path.join(cordovaContext.opts.projectRoot, 'platforms', 'android', 'app', 'src', 'main', 'AndroidManifest.xml');

Requirements

  • Java 8
  • Android Studio 3.0 >=
  • Android Tools (installed together with Android Studio)
  • Gragle 3.0 >=
  • NodeJS 6.0 >=
  • Ionic framework 3.20.0

Install instructions:

  • npm i
  • fix issues in 3 places as mentioned above
  • connect your Android device
  • ionic cordova run android --device

I attached already compiled APK file in folder buildAPK in case if you want just test my app

TODO: transfer all inline string messages from any modules into dedicated "messaging-registry.service"

menu.lk---tharindu---app's People

Contributors

dmitrychurkin avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

Forkers

sachiyatz

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.