🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

atajox-lib

Package Overview
Dependencies
Maintainers
3
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

atajox-lib

AtajoX API Library

latest
npmnpm
Version
0.0.23
Version published
Maintainers
3
Created
Source

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

FAQs

Package last updated on 04 Feb 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts