Эх сурвалжийг харах

Initial start with WP8 support

Sebastián Katzer 12 жил өмнө
parent
commit
24360db010

+ 16 - 9
plugin.xml

@@ -3,7 +3,7 @@
 <plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
         xmlns:android="http://schemas.android.com/apk/res/android"
         id="de.appplant.cordova.plugin.local-notifications"
-        version="0.4.0">
+        version="0.6.0dev">
 
     <name>LocalNotifications</name>
 
@@ -23,21 +23,18 @@
 
     <!-- ios -->
     <platform name="ios">
-
         <config-file target="config.xml" parent="/*">
-    		<feature name="LocalNotification">
-    			<param name="ios-package" value="APPLocalNotification"/>
-    		</feature>
+            <feature name="LocalNotification">
+                <param name="ios-package" value="APPLocalNotification"/>
+            </feature>
         </config-file>
 
-	<header-file src="src/ios/APPLocalNotification.h" />
-	<source-file src="src/ios/APPLocalNotification.m" />
-
+        <header-file src="src/ios/APPLocalNotification.h" />
+        <source-file src="src/ios/APPLocalNotification.m" />
     </platform>
 
     <!-- android -->
     <platform name="android">
-
         <config-file target="res/xml/config.xml" parent="/*">
             <feature name="LocalNotification">
                 <param name="android-package" value="de.appplant.cordova.plugin.LocalNotification"/>
@@ -73,7 +70,17 @@
         <source-file src="src/android/LocalNotificationOptions.java" target-dir="src/de/appplant/cordova/plugin" />
         <source-file src="src/android/LocalNotificationRestore.java" target-dir="src/de/appplant/cordova/plugin" />
         <source-file src="src/android/LocalNotification.java" target-dir="src/de/appplant/cordova/plugin" />
+    </platform>
+
+    <!-- wp8 -->
+    <platform name="wp8">
+        <config-file target="config.xml" parent="/*">
+            <feature name="LocalNotification">
+                <param name="wp-package" value="LocalNotification"/>
+            </feature>
+        </config-file>
 
+        <source-file src="src/wp8/LocalNotification.cs" />
     </platform>
 
 </plugin>

+ 25 - 0
src/wp8/LocalNotification.cs

@@ -0,0 +1,25 @@
+/**
+ *  LocalNotification.cs
+ *  Cordova LocalNotification Plugin
+ *
+ *  Created by Sebastian Katzer (github.com/katzer) on 07/10/2013.
+ *  Copyright 2013 Sebastian Katzer. All rights reserved.
+ *  GPL v2 licensed
+ */
+
+using System;
+using System.Linq;
+
+using Microsoft.Phone.Shell;
+
+using WPCordovaClassLib.Cordova;
+using WPCordovaClassLib.Cordova.Commands;
+using WPCordovaClassLib.Cordova.JSON;
+
+namespace Cordova.Extension.Commands
+{
+    public class LocalNotification : BaseCommand
+    {
+
+    }
+}