Skip to content

Latest commit

 

History

History
106 lines (73 loc) · 2.08 KB

RELEASENOTE.md

File metadata and controls

106 lines (73 loc) · 2.08 KB

Release Notes

Release 1.2.0 (upcoming)

  • Support plugin event received methods on Gate class in native layer.

  • Update dev environment.

Release 1.1.0 (March 2016)

  • Fixed plugin ID
    • change plugin ID from com.sony.cdp.plugin.nativebridge to cordova-plugin-cdp-nativebridge.
      • If you already installed, please uninstall follow steps.
$ 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+
  • [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
    

Release 1.0.0 (September 2015)

  • Rename cordova-plugin-cdp-nativebridge

  • Change dependent moudle.

    • cdp.promise.js

Release 0.9.0 (May 2015)

Beta release.

  • Support platforms:
    • android
    • ios