-
Support plugin event received methods on Gate class in native layer.
-
Update dev environment.
- Fixed plugin ID
- change plugin ID from
com.sony.cdp.plugin.nativebridge
tocordova-plugin-cdp-nativebridge
.- If you already installed, please uninstall follow steps.
- change plugin ID from
$ cordova plugin remove com.sony.cdp.plugin.nativebridge
$ cordova plugin add cordova-plugin-cdp-nativebridge
- [cdp.nativebridge.js] Implemented extend helper function for pure javascript in Gate class.
TypeScript Sample
import Gate = CDP.NativeBridge.Gate;
class SampleGate extend Gate {
constructor() {
super({
name: "SampleGate",
android: {
packageInfo: "com.sony.cdp.sample.SampleGate",
},
});
}
public coolMethod() {
super.exec("coolMethod", <any>arguments);
}
}
let gate = new SampleGate();
gate.coolMethod();
pure JavaScript Sample
- The function behavior is same as extend() function of Backbone.js.
var Gate = CDP.NativeBridge.Gate;
var SampleGate = Gate.extend({
constructor: function (options) {
Gate.call(this, {
name: "SampleGate",
android: {
packageInfo: "com.sony.cdp.sample.SampleGate",
},
});
},
coolMethod: function () {
Gate.prototype.exec.call("coolMethod", arguments);
},
});
var gate = new SampleGate();
gate.coolMethod();
-
Updated dev environment
- Support for
- Node.js 4.0+
- TypeScript 1.8+
- Cordova-CLI 6.0+
- Support for
-
[iOS] Fixed CDPGate I/F for cordova-ios 4+ ready.
- replace the weak reference member from UIWebView* to CDVPlugin*.
-
Added English method comments
-
Document Generator Support (experimental)
$ cd dev $ npm install $ grunt doc
-
Rename cordova-plugin-cdp-nativebridge
-
Change dependent moudle.
- cdp.promise.js
Beta release.
- Support platforms:
- android
- ios