<commit_before># Cordova-BlinkUpSample
Sample application that demonstrates how to use Electric Imp's BlinkUp SDK in Cordova applications for iOS and Android.

Electric Imp is an Internet of Things platform used from prototyping to production. For more information about Electric Imp, visit: https://electricimp.com/. 

# Pre-requisistes
An Electric Imp Board development kit. For more information on how to obtain a development kit, please visit: https://electricimp.com/docs/gettingstarted/devkits/ 

An Electric Imp developer account. To register for an account, please visit: https://ide.electricimp.com/

A BlinkUp SDK and API Key. For more information on how to obtain a license, please visit: https://electricimp.com/docs/manufacturing/blinkup_faqs/

**Both Platforms**<br>
Replace `"YOUR_API_KEY_HERE"` at the top of `www/index.js` and `platforms/ios/www/index.js` with your BlinkUp API key.

**iOS**<br>
Open `path/to/project/platforms/ios/<Project Name>.xcodeproj` in Xcode and select File > Add Files. Choose the `BlinkUp.framework` file included in the BlinkUp SDK and make sure "Copy items if needed" is selected. Do the same for `BlinkUp.framework/resources/versions/A/BlinkUp.bundle`.

**Android**<br>
Copy the `blinkup_sdk` folder from the BlinkUp SDK to `path/to/project/platforms/android`. 

# Project Structure
Insert Project Structure Discussion here.<commit_msg>Updated readme, manually merged newer master readme in<commit_after># Cordova-BlinkUpSample
Sample application that demonstrates how to use Electric Imp's BlinkUp SDK in Cordova applications for iOS and Android.

Electric Imp is an Internet of Things platform used from prototyping to production. For more information about Electric Imp, visit: https://electricimp.com/. 

# Pre-requisistes
An Electric Imp Board development kit. For more information on how to obtain a development kit, please visit: https://electricimp.com/docs/gettingstarted/devkits/ 

An Electric Imp developer account. To register for an account, please visit: https://ide.electricimp.com/

A BlinkUp SDK and API Key. For more information on how to obtain a license, please visit: https://electricimp.com/docs/manufacturing/blinkup_faqs/

# Installation
**Both Platforms**<br>
Replace `"YOUR_API_KEY_HERE"` at the top of `www/index.js` and `platforms/ios/www/index.js` with your BlinkUp API key.

**iOS**<br>
Open `platforms/ios/CordovaBlinkUp.xcodeproj` in Xcode and select File > Add Files. Choose the `BlinkUp.framework` file included in the BlinkUp SDK and make sure "Copy items if needed" is selected. Do the same for `BlinkUp.bundle`, found in `BlinkUp.framework/resources/versions/A`. 

If you wish to link to these resources without copying them into the project directory, you will need to remove "Check For BlinkUp SDK" from the Xcode project's build phases.

**Android**<br>
Copy the `blinkup_sdk` folder from the BlinkUp SDK to `path/to/project/platforms/android`. 

# Project Structure
Refer to `www/index.js` for an example of how to call the plugin that initiates the native BlinkUp process. 

The native code that interfaces with the plugin (and sends back the device info) can be found at `platforms/android/src/com/macadamian/blinkup` and `platforms/ios/CordovaBlinkUpExample/Plugins/com.macadamian.blinkup`.
{'fraction_non_alphanumeric': 0.08107284364523011, 'fraction_numerical': 0.0, 'mean_word_length': 4.8922800718132855, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 12, 'https://': 8, 'lorem ipsum': 0, 'www.': 5, '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': '6212840', 'n_tokens_mistral': 975, 'n_tokens_neox': 922, 'n_words': 393}