1.0.0 • Published 6 years ago

ember-cli-leanplum v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
6 years ago

ember-cli-leanplum

Ember Cli wrapper for importing and configuring Leanplum SDK

Installation

ember install ember-cli-leanplum

Usage

This plugin will setup Leanplum SDK and add call Leanplum.start() if the proper credentials are set in your environment.

// config/environment.js

leanplum: {
  appId: "LEANPLUM_APP_ID",
  apiKey: "LEANPLUM_API_KEY"
}

It will set Leanplum.setAppIdForDevelopmentMode if set the isDevelopmentMode to true.

if (environment === 'development') {
  ENV.leanplum.isDevelopmentMode = true
  ...
}

You can pass variables to Leanplum by setting them in the config.

ENV.leanplum.variables = {
  items: {
    color: 'red',
    size: 20,
    showBadges: true
  },
  showAds: true
}

Contributing

Installation

  • git clone <repository-url>
  • cd ember-cli-leanplum
  • npm install

Linting

  • npm run lint:js
  • npm run lint:js -- --fix

Running tests

  • ember test – Runs the test suite on the current Ember version
  • ember test --server – Runs the test suite in "watch mode"
  • ember try:each – Runs the test suite against multiple Ember versions

Running the dummy application

For more information on using ember-cli, visit https://ember-cli.com/.

License

This project is licensed under the MIT License.

1.0.0

6 years ago

0.99.1

6 years ago