You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by sh...@apache.org on 2015/03/07 01:18:48 UTC
[35/43] ios commit: CB-8032 - Add new property in CDVCommandDelegate
(urlTransformer), plus style fixups.
CB-8032 - Add new property in CDVCommandDelegate (urlTransformer), plus style fixups.
Project: http://git-wip-us.apache.org/repos/asf/cordova-ios/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-ios/commit/0838a073
Tree: http://git-wip-us.apache.org/repos/asf/cordova-ios/tree/0838a073
Diff: http://git-wip-us.apache.org/repos/asf/cordova-ios/diff/0838a073
Branch: refs/heads/4.0.x
Commit: 0838a073021a81b73a9b0dbb9215e06c010a5789
Parents: ed4f28b
Author: Shazron Abdullah <sh...@apache.org>
Authored: Tue Dec 9 14:57:38 2014 -0800
Committer: Shazron Abdullah <sh...@apache.org>
Committed: Tue Dec 9 14:57:38 2014 -0800
----------------------------------------------------------------------
CordovaLib/Classes/CDVCommandDelegate.h | 1 +
CordovaLib/Classes/CDVCommandDelegateImpl.m | 4 +++-
2 files changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/0838a073/CordovaLib/Classes/CDVCommandDelegate.h
----------------------------------------------------------------------
diff --git a/CordovaLib/Classes/CDVCommandDelegate.h b/CordovaLib/Classes/CDVCommandDelegate.h
index 04df6bc..2062519 100644
--- a/CordovaLib/Classes/CDVCommandDelegate.h
+++ b/CordovaLib/Classes/CDVCommandDelegate.h
@@ -27,6 +27,7 @@
@protocol CDVCommandDelegate <NSObject>
@property (nonatomic, readonly) NSDictionary* settings;
+@property (nonatomic, copy) NSURL*(^urlTransformer)(NSURL*);
- (NSString*)pathForResource:(NSString*)resourcepath;
- (id)getCommandInstance:(NSString*)pluginName;
http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/0838a073/CordovaLib/Classes/CDVCommandDelegateImpl.m
----------------------------------------------------------------------
diff --git a/CordovaLib/Classes/CDVCommandDelegateImpl.m b/CordovaLib/Classes/CDVCommandDelegateImpl.m
index 7f4254a..dc57316 100644
--- a/CordovaLib/Classes/CDVCommandDelegateImpl.m
+++ b/CordovaLib/Classes/CDVCommandDelegateImpl.m
@@ -25,6 +25,8 @@
@implementation CDVCommandDelegateImpl
+@synthesize urlTransformer;
+
- (id)initWithViewController:(CDVViewController*)viewController
{
self = [super init];
@@ -124,7 +126,7 @@
{
CDV_EXEC_LOG(@"Exec(%@): Sending result. Status=%@", callbackId, result.status);
// This occurs when there is are no win/fail callbacks for the call.
- if ([@"INVALID" isEqualToString : callbackId]) {
+ if ([@"INVALID" isEqualToString:callbackId]) {
return;
}
// This occurs when the callback id is malformed.
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org