<commit_before># Ember Cordova

[![Build Status](https://travis-ci.org/isleofcode/ember-cordova.svg?branch=feat%2Ftravis)](https://travis-ci.org/isleofcode/ember-cordova)

ember-cordova simplifies building Cordova and Crosswalk applications with Ember.js.

It includes a CLI for builds, hooks, device event bindings, and handles splash screens, icons and a growing number of supported Ember/Cordova plugin bindings.

1. Platforms & Requirements
2. Getting Started
3. Features and Documentation;
4. Upcoming Extensions;
5. Contributing;
6. Credits

## Platforms & Requirements

ember-cordova has been tested and works on Ember 1.13 &
greater, including 2+.

When push comes to shove we are likely to only support Ember 2.4 or
greater.

## Getting Started

If you are migrating from ember-cli-cordova, read the [migration
guide](docs/migration-from-ember-cli.md).


```cli
  ember install ember-cordova
```

You can optionally pass the following params:
- name: AppName (defaults to your ember app name)
- cordovaid: String (defaults to your app name)
- templatePath: String path to cordova template

```cli
ember install ember-cordova --name=AppName
--cordovaid=com.isleofcode.app --templatePath=../template
```

If you already have a Cordova project at ember-cordova/cordova it will not be overwritten.

1. #### Set your config.locationType to 'hash'.

2. Cordova requires relative asset paths so check that none of yours are absolute. For ember-cli v2.7.0 and newer, you'll want to remove the references to `{{rootURL}}` from the asset paths in `app/index.html`.

3. As a final step, add your desired platforms, e.g.:

```cli
ember cdv platform add ios
ember cdv platform add android
ember cdv platform add browser #experimental
```

Cordova working relies on the cordova.js script being injected. By default, this happens using ember cdv commands. Your vanilla ember build && ember s commands will not inject cordova.js by design.

### A note on browser platform

Some cordova/phonegap plugins have browser fallbacks. For example [phonegap-plugin-barcodescanner](https://github.com/phonegap/phonegap-plugin-barcodescanner) will ask you to manually type the barcode value. Using the browser platform, you'll be able to develop your cordova app as it was a regular ember app.

## Features and Documentation

* [CLI](docs/cli.md)<commit_msg>docs(contents): update<commit_after># Ember Cordova

[![Build Status](https://travis-ci.org/isleofcode/ember-cordova.svg?branch=feat%2Ftravis)](https://travis-ci.org/isleofcode/ember-cordova)

ember-cordova simplifies building Cordova and Crosswalk applications with Ember.js.

It includes a CLI for builds, hooks, device event bindings, and handles splash screens, icons and a growing number of supported Ember/Cordova plugin bindings.

1. Platforms & Requirements
2. Getting Started
3. Features and Documentation;
4. Upcoming Extensions;
5. Contributing;
6. Credits

## Platforms & Requirements

ember-cordova has been tested and works on Ember 1.13 &
greater, including 2+.

When push comes to shove we are likely to only support Ember 2.4 or
greater.

## Getting Started

If you are migrating from ember-cli-cordova, read the [migration
guide](docs/migration-from-ember-cli.md).


```cli
  ember install ember-cordova
```

You can optionally pass the following params:
- name: AppName (defaults to your ember app name)
- cordovaid: String (defaults to your app name)
- templatePath: String path to cordova template

```cli
ember install ember-cordova --name=AppName
--cordovaid=com.isleofcode.app --templatePath=../template
```

If you already have a Cordova project at ember-cordova/cordova it will not be overwritten.

1. #### Set your config.locationType to 'hash'.

2. Cordova requires relative asset paths so check that none of yours are absolute. For ember-cli v2.7.0 and newer, you'll want to remove the references to `{{rootURL}}` from the asset paths in `app/index.html`.

3. As a final step, add your desired platforms, e.g.:

```cli
ember cdv platform add ios
ember cdv platform add android
ember cdv platform add browser #experimental
```

Cordova working relies on the cordova.js script being injected. By default, this happens using ember cdv commands. Your vanilla ember build && ember s commands will not inject cordova.js by design.

### A note on browser platform

Some cordova/phonegap plugins have browser fallbacks. For example [phonegap-plugin-barcodescanner](https://github.com/phonegap/phonegap-plugin-barcodescanner) will ask you to manually type the barcode value. Using the browser platform, you'll be able to develop your cordova app as it was a regular ember app.

## Features and Documentation

* [CLI & Configuration](docs/cli.md)
{'fraction_non_alphanumeric': 0.08586609989373008, 'fraction_numerical': 0.008076514346439958, 'mean_word_length': 4.536470588235294, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '545810', 'n_tokens_mistral': 1425, 'n_tokens_neox': 1359, 'n_words': 583}