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 2013/10/03 01:11:30 UTC

git commit: Added pre-processor macro to check for 3.2.0 availability.

Updated Branches:
  refs/heads/plugins c88ad0cdd -> 750fef0a0


Added pre-processor macro to check for 3.2.0 availability.


Project: http://git-wip-us.apache.org/repos/asf/cordova-labs/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-labs/commit/750fef0a
Tree: http://git-wip-us.apache.org/repos/asf/cordova-labs/tree/750fef0a
Diff: http://git-wip-us.apache.org/repos/asf/cordova-labs/diff/750fef0a

Branch: refs/heads/plugins
Commit: 750fef0a00cbf2ed652681a4276052af555a1c79
Parents: c88ad0c
Author: Shazron Abdullah <sh...@apache.org>
Authored: Wed Oct 2 16:11:23 2013 -0700
Committer: Shazron Abdullah <sh...@apache.org>
Committed: Wed Oct 2 16:11:23 2013 -0700

----------------------------------------------------------------------
 keyboard/src/ios/CDVKeyboard.m | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-labs/blob/750fef0a/keyboard/src/ios/CDVKeyboard.m
----------------------------------------------------------------------
diff --git a/keyboard/src/ios/CDVKeyboard.m b/keyboard/src/ios/CDVKeyboard.m
index 773952c..40b1cd4 100644
--- a/keyboard/src/ios/CDVKeyboard.m
+++ b/keyboard/src/ios/CDVKeyboard.m
@@ -18,6 +18,11 @@
  */
 
 #import "CDVKeyboard.h"
+#import <Cordova/CDVAvailability.h>
+
+#ifndef __CORDOVA_3_2_0
+#error "This plugin is only supported in Cordova 3.2 or greater."
+#endif
 
 @interface CDVKeyboard ()