Ember Cli wrapper for importing and configuring Leanplum SDK
- Ember.js v2.18 or above
- Ember CLI v2.13 or above
ember install ember-cli-leanplum
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
}git clone <repository-url>cd ember-cli-leanplumnpm install
npm run lint:jsnpm run lint:js -- --fix
ember test– Runs the test suite on the current Ember versionember test --server– Runs the test suite in "watch mode"ember try:each– Runs the test suite against multiple Ember versions
ember serve- Visit the dummy application at http://localhost:4200.
For more information on using ember-cli, visit https://ember-cli.com/.
This project is licensed under the MIT License.