Selaa lähdekoodia

Namespace geändernt

Sebastián Katzer 12 vuotta sitten
vanhempi
commit
451d272722
3 muutettua tiedostoa jossa 11 lisäystä ja 11 poistoa
  1. 4 4
      plugin.xml
  2. 3 3
      src/ios/APPLocalNotification.h
  3. 4 4
      src/ios/APPLocalNotification.m

+ 4 - 4
plugin.xml

@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 
 <plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
-        id="de.appplant.maintcall.cordova.plugin.local-notifications"
+        id="de.appplant.cordova.plugin.local-notifications"
         version="0.0.1">
 
     <name>LocalNotifications</name>
@@ -21,7 +21,7 @@
 
         <config-file target="config.xml" parent="/*">
 		<feature name="LocalNotofication">
-			<param name="ios-package" value="CDVLocalNotification"/>
+			<param name="ios-package" value="APPLocalNotification"/>
 		</feature>
         </config-file>
 
@@ -29,8 +29,8 @@
             <clobbers target="plugin.notification.local" />
         </js-module>
 
-	<header-file src="src/ios/CDVLocalNotification.h" />
-	<source-file src="src/ios/CDVLocalNotification.m" />
+	<header-file src="src/ios/APPLocalNotification.h" />
+	<source-file src="src/ios/APPLocalNotification.m" />
 
     </platform>
 

+ 3 - 3
src/ios/CDVLocalNotification.h → src/ios/APPLocalNotification.h

@@ -1,5 +1,5 @@
 /**
- *  CDVLocalNotification.h
+ *  APPLocalNotification.h
  *  Cordova LocalNotification Plugin
  *
  *  Created by Sebastian Katzer (github.com/katzer) on 10/08/2013.
@@ -10,7 +10,7 @@
 #import <Foundation/Foundation.h>
 #import <Cordova/CDVPlugin.h>
 
-@interface CDVLocalNotification : CDVPlugin {
+@interface APPLocalNotification : CDVPlugin {
 
 }
 
@@ -24,7 +24,7 @@
 @end
 
 
-@interface CDVLocalNotification (Private)
+@interface APPLocalNotification (Private)
 
 - (NSMutableDictionary*) repeatDict;
 - (NSMutableDictionary*) userDict:(NSMutableDictionary*)options;

+ 4 - 4
src/ios/CDVLocalNotification.m → src/ios/APPLocalNotification.m

@@ -1,5 +1,5 @@
 /**
- *  CDVLocalNotification.h
+ *  APPLocalNotification.m
  *  Cordova LocalNotification Plugin
  *
  *  Created by Sebastian Katzer (github.com/katzer) on 10/08/2013.
@@ -7,17 +7,17 @@
  *  GPL v2 licensed
  */
 
- #import "CDVLocalNotification.h"
+ #import "APPLocalNotification.h"
 
 
-@implementation CDVLocalNotification
+@implementation APPLocalNotification
 
 /**
  * Fügt eine neue Notification-Eintrag hinzu.
  *
  * @param {NSMutableDictionary} options
  */
-- (void) addNotification:(CDVInvokedUrlCommand*)command {
+- (void) add:(CDVInvokedUrlCommand*)command {
 	NSArray             *arguments    = [command arguments];
 	NSMutableDictionary *options      = [arguments objectAtIndex:0];
 	UILocalNotification *notification = [this prepareNotification:options];