cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shaz...@apache.org
Subject ios commit: CB-6997 - Deprecate obsolete CDVPlugin methods
Date Fri, 20 Jun 2014 23:37:36 GMT
Repository: cordova-ios
Updated Branches:
  refs/heads/master 1535e2e51 -> 4e1260eca


CB-6997 - Deprecate obsolete CDVPlugin methods


Project: http://git-wip-us.apache.org/repos/asf/cordova-ios/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-ios/commit/4e1260ec
Tree: http://git-wip-us.apache.org/repos/asf/cordova-ios/tree/4e1260ec
Diff: http://git-wip-us.apache.org/repos/asf/cordova-ios/diff/4e1260ec

Branch: refs/heads/master
Commit: 4e1260eca65df2b368477463cbeac2a77ddb40c5
Parents: 1535e2e
Author: Shazron Abdullah <shazron@apache.org>
Authored: Fri Jun 20 16:37:30 2014 -0700
Committer: Shazron Abdullah <shazron@apache.org>
Committed: Fri Jun 20 16:37:30 2014 -0700

----------------------------------------------------------------------
 CordovaLib/Classes/CDVPlugin.h | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/4e1260ec/CordovaLib/Classes/CDVPlugin.h
----------------------------------------------------------------------
diff --git a/CordovaLib/Classes/CDVPlugin.h b/CordovaLib/Classes/CDVPlugin.h
index 3def31e..20c209b 100644
--- a/CordovaLib/Classes/CDVPlugin.h
+++ b/CordovaLib/Classes/CDVPlugin.h
@@ -59,8 +59,10 @@ extern NSString* const CDVRemoteNotificationError;
 - (id)appDelegate;
 
 // TODO(agrieve): Deprecate these in favour of using CDVCommandDelegate directly.
-- (NSString*)writeJavascript:(NSString*)javascript;
-- (NSString*)success:(CDVPluginResult*)pluginResult callbackId:(NSString*)callbackId;
-- (NSString*)error:(CDVPluginResult*)pluginResult callbackId:(NSString*)callbackId;
+- (NSString*)writeJavascript:(NSString*)javascript CDV_DEPRECATED(3.6, "Use the CDVCommandDelegate
equivalent of evalJs:");
+
+- (NSString*)success:(CDVPluginResult*)pluginResult callbackId:(NSString*)callbackId CDV_DEPRECATED(3.6,
"Use the CDVCommandDelegate equivalent of sendPluginResult:callbackId");
+
+- (NSString*)error:(CDVPluginResult*)pluginResult callbackId:(NSString*)callbackId CDV_DEPRECATED(3.6,
"Use the CDVCommandDelegate equivalent of sendPluginResult:callbackId");
 
 @end


Mime
View raw message