1.0.5 • Published 7 years ago

@pluritech/ion-codepush v1.0.5

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

pluritech-ion-codepush

Angular 2 Provider used at Pluritech to updates our Ionic Apps using CodePush.

Installation

To install this library, run:

$ npm install  --save pluritech-ion-codepush

Consuming

Import the library in any Angular application by adding then from your Angular AppModule:

import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';

import { AppComponent } from './app.component';

// Import Ionic Native CodePush Provider
import { CodePush } from '@ionic-native/code-push';

// Import your library
import { CodePushService } from '@pluritech/ion-codepush';

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
  ],
  // Include both in providers
  providers: [CodePush, CodePushService],
  bootstrap: [AppComponent]
})
export class AppModule { }

Once the library is imported, don't forget to add CodePushService to app.component.ts:

import { CodePushService } from '@pluritech/ion-codepush';


export class MyApp {

  constructor(codePush: CodePushService) { }

That's it. The CodePushService will do the work.

Development

To generate all *.js, *.js.map and *.d.ts files:

$ npm run tsc

To lint all *.ts files:

$ npm run lint

License

MIT © Pluritech

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago