You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Joe Bowser (JIRA)" <ji...@apache.org> on 2015/02/16 23:01:11 UTC
[jira] [Resolved] (CB-7982) Shield webView and loadUrl(), Make
Cordova Plugin Reusable for other Frameworks
[ https://issues.apache.org/jira/browse/CB-7982?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Joe Bowser resolved CB-7982.
----------------------------
Resolution: Unresolved
Please propose new API proposals on the Cordova mailing list.
> Shield webView and loadUrl(), Make Cordova Plugin Reusable for other Frameworks
> -------------------------------------------------------------------------------
>
> Key: CB-7982
> URL: https://issues.apache.org/jira/browse/CB-7982
> Project: Apache Cordova
> Issue Type: New Feature
> Components: Android, iOS
> Affects Versions: Master
> Reporter: Liming Xie
> Labels: features
> Fix For: Master
>
> Original Estimate: 168h
> Remaining Estimate: 168h
>
> This idea "CordovaX" is to make hundreds of Cordova plugin reusable, not only in Cordova, but also for Unity3d, cocos2dx, etc.
> Cordova plugin manager is bridging function call between javascript and native languages, actually, it can be ported to bridge with C, C++, C#, then it can be reused for Unity, Cocos2d-X and other frameworks.
> To achieve the purpose, need make the interface between plugin and framework more common, the adapter interface below is usually enough for a plugin author:
> getActivity(), for Android / getViewController, for iOS
> getView()
> sendPluginResult()
> fireEvent(obj, eventName, jsonData), the obj can be window, document, cordova, etc.
> Some prototype based on current interface:
> https://github.com/floatinghotpot/cordova-plugin-ext
> If allow modify current implementation:
> 1. use cordova.getView(), instead of access webView directly.
> 2. call commandDelegate.fireEvent(), instead of call webView.loadUrl().
> 3. hide ref to webView in CordovaPlugin.
> Plugin Manager for Unity3d/Cocos2dX can be implemented based on current Cordova framework by changing to corresponding adapter (cordova, commandDelegate)
> Discussed with Shazron, and decide to add a Jira tracker here.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org