Wizcorp/cordova-plugin-moodstocks

Name: cordova-plugin-moodstocks

Owner: Wizcorp

Description: Cordova plugin to use Moodstocks (https://moodstocks.com/)

Created: 2015-04-23 07:58:42.0

Updated: 2015-09-26 12:43:45.0

Pushed: 2015-04-23 07:59:32.0

Homepage: null

Size: 3353

Language: Objective-C

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Moodstocks Cordova Plugin

Warning

Under active development, and not production ready

Note

The iOS part of this plugin is written in Swift; please make sure to set IPHONEOS_DEPLOYMENT_TARGET to at least 7.0 under your platforms/ios/[YOUR-PROJECT].xcodeproj/project.pbxproj.

You will also need to add a bridging header file, so that this plugin may see Cordova's Obj-C code. Simply follow the instructions here:

https://bohemianpolymorph.wordpress.com/2014/07/11/manually-adding-a-swift-bridging-header/

And in the header file, make sure the following lines are present:

ort <Cordova/CDV.h>
ort <Moodstocks/Moodstocks.h>

If you get a fatal error like the following at runtime:

: Library not loaded: @rpath/libswiftCore.dylib
ferenced from: /private/var/mobile/Containers/Bundle/Application/.../my.app/my
Reason: image not found

Please have a look at http://stackoverflow.com/questions/24002836/dyld-library-not-loaded-rpath-libswift-stdlib-core-dylib to fix the issue. Namely:

  1. Make sure Runpath Search Path includes @executable_path/Frameworks
  2. Make sure Embedded Content Contains Swift Code is set to Yes
Built on
Installation
ova plugin add https://github.com/Wizcorp/cordova-plugin-moodstocks.git
API Documentation
moodstocks.configure({ key: string, secret: string })
moodstocks.on(“action”, callback, errCallback)

Sync events

start, cb() progress, cb({ percent:int }) completed. cb() error, cb({ message: string })
moodstocks.scan(cb({ data: string }), errCb({ message: string }))

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.