cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject git commit: removed vibration from ios, fixed beep arc compile bug
Date Wed, 26 Jun 2013 22:42:00 GMT
Updated Branches:
  refs/heads/master 339802dba -> 3cb274845


removed vibration from ios, fixed beep arc compile bug


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs/commit/3cb27484
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs/tree/3cb27484
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs/diff/3cb27484

Branch: refs/heads/master
Commit: 3cb274845acfd3cf1c70c42e60fa048873d6a172
Parents: 339802d
Author: Steven Gill <stevengill97@gmail.com>
Authored: Wed Jun 26 15:41:57 2013 -0700
Committer: Steven Gill <stevengill97@gmail.com>
Committed: Wed Jun 26 15:41:57 2013 -0700

----------------------------------------------------------------------
 src/ios/CDVNotification.h |  1 -
 src/ios/CDVNotification.m | 11 +++++------
 2 files changed, 5 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs/blob/3cb27484/src/ios/CDVNotification.h
----------------------------------------------------------------------
diff --git a/src/ios/CDVNotification.h b/src/ios/CDVNotification.h
index 109ff53..9253f6a 100644
--- a/src/ios/CDVNotification.h
+++ b/src/ios/CDVNotification.h
@@ -27,7 +27,6 @@
 - (void)alert:(CDVInvokedUrlCommand*)command;
 - (void)confirm:(CDVInvokedUrlCommand*)command;
 - (void)prompt:(CDVInvokedUrlCommand*)command;
-- (void)vibrate:(CDVInvokedUrlCommand*)command;
 - (void)beep:(CDVInvokedUrlCommand*)command;
 
 @end

http://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs/blob/3cb27484/src/ios/CDVNotification.m
----------------------------------------------------------------------
diff --git a/src/ios/CDVNotification.m b/src/ios/CDVNotification.m
index 9f0a59b..d49abbd 100644
--- a/src/ios/CDVNotification.m
+++ b/src/ios/CDVNotification.m
@@ -117,15 +117,14 @@
     [self.commandDelegate sendPluginResult:result callbackId:cdvAlertView.callbackId];
 }
 
-- (void)vibrate:(CDVInvokedUrlCommand*)command
-{
-    AudioServicesPlaySystemSound(kSystemSoundID_Vibrate);
-}
-
 static void playBeep(int count) {
     SystemSoundID completeSound;
     NSURL* audioPath = [[NSBundle mainBundle] URLForResource:@"CDVNotification.bundle/beep"
withExtension:@"wav"];
-    AudioServicesCreateSystemSoundID((CFURLRef)audioPath, &completeSound);
+    #if __has_feature(objc_arc)
+        AudioServicesCreateSystemSoundID((__bridge CFURLRef)audioPath, &completeSound);
+    #else
+        AudioServicesCreateSystemSoundID((CFURLRef)audioPath, &completeSound);
+    #endif
     AudioServicesAddSystemSoundCompletion(completeSound, NULL, NULL, soundCompletionCallback,
(void*)(count-1));
     AudioServicesPlaySystemSound(completeSound);
 }


Mime
View raw message