You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by Apache Wiki <wi...@apache.org> on 2012/12/15 01:02:25 UTC

[Cordova Wiki] Update of "DeprecationPolicy" by DavidCary

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Cordova Wiki" for change notification.

The "DeprecationPolicy" page has been changed by DavidCary:
http://wiki.apache.org/cordova/DeprecationPolicy?action=diff&rev1=11&rev2=12

Comment:
a few tips on what to do with deprecated code

  || Android - OS versions 2.1 and 3.x || 2.3.0 || May 2013 ||||
  || Android - org.apache.cordova.api.Plugin in favour of org.apache.cordova.api.CordovaPlugin || 2.3.0 || May 2013 ||||
  
+ == a few tips on what to do with deprecated code ==
+ 
+ === Cordova Plugin Upgrade Guide ===
+ 
+ Cordova Plugin Upgrade Guide
+ 
+ https://github.com/apache/incubator-cordova-ios/blob/master/guides/Cordova%20Plugin%20Upgrade%20Guide.md
+ 
+ https://github.com/phonegap/phonegap-plugins/blob/master/iOS/README.md
+ 
+ === The type "Plugin" is deprecated ===
+ 
+ The type "Plugin" is deprecated.
+ So any old code
+ (such as the code at http://docs.phonegap.com/en/2.0.0/guide_plugin-development_android_index.md.html )
+ that says
+ {{{
+ import org.apache.cordova.api.Plugin;
+ public class TestPhonegapPlugin extends Plugin {/*...*/}
+ }}}
+ will need to be updated to say
+ {{{
+ import org.apache.cordova.api.CordovaPlugin;
+ public class TestPhonegapPlugin extends CordovaPlugin {/*...*/}
+ }}}
+ 
+ == deprecation: window.addPlugin and window.plugins will be removed ==
+ 
+ The window.addPlugin and window.plugins will be removed.
+ 
+ You should switch to using cordova.require().
+ See
+ http://simonmacdonald.blogspot.com/2012/08/so-you-wanna-write-phonegap-200-android.html
+ 
+ == deprecation philosophy ==
+ 
+ All technology deprecates with time.
+ 
+ The ultimate purpose of PhoneGap is to cease to exist.
+ 
+ -- "PhoneGap Beliefs, Goals, and Philosophy"
+ http://phonegap.com/2012/05/09/phonegap-beliefs-goals-and-philosophy/
+