atajox-lib
TypeScript icon, indicating that this package has built-in type declarations

0.0.23 • Public • Published

Global installs

$ npm install -g karma-cli $ npm install -g typescript typings

Available Plugins

cordova-plugin-app-version
cordova-plugin-battery-status
cordova-plugin-device
cordova-plugin-signal-strength
cordova-plugin-network-information

$ ionic cordova plugin add {plugin} --save';

Database Support

https://ionicframework.com/docs/storage/

Add to app.module.ts

IonicStorageModule.forRoot({ 
    name: 'atajo.client.database', 
    driverOrder: ['sqlite', 'websql'] 
}) 

Code Push Support

$ cordova plugin add https://github.com/k1dbl4ck/cordova-plugin-atajo-update.git Remember to remove the old code push first.

In Ionic2:

platform.ready(() => {

    atajoXConfig.set('domain', {your-domain-name});

    let update = new AtajoXUpdate();
    update.checkForUpdates();

});

The following events can be listened through atajoXEvents:

      'atajo:update:initialized',
      'atajo:update:filesystem:ready',
      'atajo:update:folder:ready',
      'atajo:update:error',
      'atajo:update:download:success',
      'atajo:update:download:error',
      'atajo:update:download:progress',
      'atajo:update:unzip:success',
      'atajo:update:unzip:error',
      'atajo:update:unzip:progress',
      'atajo:update:file:remove:success',
      'atajo:update:file:remove:error',
      'atajo:update:file:get:error'

Example:

import {atajoXEvents} from 'atajox-lib';
...
atajoXEvents.subscribe('atajo:update:file:remove:success', (data) => {
    // update installed successfully
});
...

Start tests

$ karma start

Readme

Keywords

none

Package Sidebar

Install

npm i atajox-lib

Weekly Downloads

11

Version

0.0.23

License

MIT

Unpacked Size

345 kB

Total Files

130

Last publish

Collaborators

  • catilre
  • gvhuyssteen
  • k1dbl4ck