cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject [3/4] cordova-plugin-vibration git commit: CB-7970 Reference proxy project instead of compiled winmd
Date Tue, 31 Mar 2015 17:58:29 GMT
CB-7970 Reference proxy project instead of compiled winmd

github close #25


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-vibration/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-vibration/commit/5192900d
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-vibration/tree/5192900d
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-vibration/diff/5192900d

Branch: refs/heads/old-ID
Commit: 5192900d846646e32fdd69a1dfa19f6800a30e26
Parents: 3c78433
Author: sgrebnov <v-segreb@microsoft.com>
Authored: Thu Mar 26 13:31:40 2015 +0300
Committer: sgrebnov <v-segreb@microsoft.com>
Committed: Thu Mar 26 13:38:09 2015 +0300

----------------------------------------------------------------------
 plugin.xml                                      |   3 +-
 src/windows/Vibration.winmd                     | Bin 5632 -> 0 bytes
 src/windows/Vibration/.gitignore                |   3 ++
 .../Vibration/Properties/AssemblyInfo.cs        |  30 +++++++++++
 src/windows/Vibration/Vibration.cs              |  36 +++++++++++++
 src/windows/Vibration/Vibration.csproj          |  52 ++++++++++++++++++
 src/windows/Vibration/Vibration.sln             |  22 --------
 src/windows/Vibration/Vibration/.gitignore      |   3 --
 .../Vibration/Properties/AssemblyInfo.cs        |  30 -----------
 src/windows/Vibration/Vibration/Vibration.cs    |  36 -------------
 .../Vibration/Vibration/Vibration.csproj        |  54 -------------------
 11 files changed, 123 insertions(+), 146 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-vibration/blob/5192900d/plugin.xml
----------------------------------------------------------------------
diff --git a/plugin.xml b/plugin.xml
index 4847d36..075e626 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -75,7 +75,8 @@
             <runs />
         </js-module>
 
-        <framework src="src/windows/Vibration.winmd" custom="true"/>
+        <framework src="src/windows/Vibration/Vibration.csproj" target="phone"
+            type="projectReference" custom="true" />
     </platform>
 
     <!-- android -->

http://git-wip-us.apache.org/repos/asf/cordova-plugin-vibration/blob/5192900d/src/windows/Vibration.winmd
----------------------------------------------------------------------
diff --git a/src/windows/Vibration.winmd b/src/windows/Vibration.winmd
deleted file mode 100644
index 84a9319..0000000
Binary files a/src/windows/Vibration.winmd and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-plugin-vibration/blob/5192900d/src/windows/Vibration/.gitignore
----------------------------------------------------------------------
diff --git a/src/windows/Vibration/.gitignore b/src/windows/Vibration/.gitignore
new file mode 100644
index 0000000..b84aa9d
--- /dev/null
+++ b/src/windows/Vibration/.gitignore
@@ -0,0 +1,3 @@
+/bin/
+/obj/
+*.suo
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-plugin-vibration/blob/5192900d/src/windows/Vibration/Properties/AssemblyInfo.cs
----------------------------------------------------------------------
diff --git a/src/windows/Vibration/Properties/AssemblyInfo.cs b/src/windows/Vibration/Properties/AssemblyInfo.cs
new file mode 100644
index 0000000..ad89fad
--- /dev/null
+++ b/src/windows/Vibration/Properties/AssemblyInfo.cs
@@ -0,0 +1,30 @@
+using System.Resources;
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following 
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("Vibration")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("Vibration")]
+[assembly: AssemblyCopyright("Copyright ©  2014")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+[assembly: NeutralResourcesLanguage("en")]
+
+// Version information for an assembly consists of the following four values:
+//
+//      Major Version
+//      Minor Version 
+//      Build Number
+//      Revision
+//
+// You can specify all the values or you can default the Build and Revision Numbers 
+// by using the '*' as shown below:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]

http://git-wip-us.apache.org/repos/asf/cordova-plugin-vibration/blob/5192900d/src/windows/Vibration/Vibration.cs
----------------------------------------------------------------------
diff --git a/src/windows/Vibration/Vibration.cs b/src/windows/Vibration/Vibration.cs
new file mode 100644
index 0000000..66f278c
--- /dev/null
+++ b/src/windows/Vibration/Vibration.cs
@@ -0,0 +1,36 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Runtime.InteropServices.WindowsRuntime;
+using System.Text;
+using Windows.Phone.Devices.Notification;
+
+namespace Vibration
+{
+    public sealed class Vibration
+    {
+        private static VibrationDevice _vibrationDevice = VibrationDevice.GetDefault();
+
+        public static void vibrate([ReadOnlyArray()] object[] args)
+        {
+            // set default
+            int duration = 200;
+
+            try 
+            {
+                duration = Convert.ToInt32(args[0]);
+            }
+            catch 
+            { 
+
+            }
+
+            _vibrationDevice.Vibrate(TimeSpan.FromMilliseconds(duration));
+        }
+
+        public static void cancelVibration()
+        {
+            _vibrationDevice.Cancel();
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/cordova-plugin-vibration/blob/5192900d/src/windows/Vibration/Vibration.csproj
----------------------------------------------------------------------
diff --git a/src/windows/Vibration/Vibration.csproj b/src/windows/Vibration/Vibration.csproj
new file mode 100644
index 0000000..0c2c130
--- /dev/null
+++ b/src/windows/Vibration/Vibration.csproj
@@ -0,0 +1,52 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+  <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props"
Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')"
/>
+  <PropertyGroup>
+    <MinimumVisualStudioVersion>12.0</MinimumVisualStudioVersion>
+    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+    <ProjectGuid>{D4F9F695-ECD5-49FC-B58A-B1E0E754E159}</ProjectGuid>
+    <ProjectName>Vibration</ProjectName>
+    <OutputType>winmdobj</OutputType>
+    <AppDesignerFolder>Properties</AppDesignerFolder>
+    <RootNamespace>Vibration</RootNamespace>
+    <AssemblyName>Vibration</AssemblyName>
+    <DefaultLanguage>en-US</DefaultLanguage>
+    <FileAlignment>512</FileAlignment>
+    <ProjectTypeGuids>{76F1466A-8B6D-4E39-A767-685A06062A39};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
+    <TargetPlatformIdentifier>WindowsPhoneApp</TargetPlatformIdentifier>
+    <TargetPlatformVersion>8.1</TargetPlatformVersion>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+    <DebugSymbols>true</DebugSymbols>
+    <DebugType>full</DebugType>
+    <Optimize>false</Optimize>
+    <OutputPath>bin\Debug\</OutputPath>
+    <DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_PHONE_APP</DefineConstants>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+    <DebugType>pdbonly</DebugType>
+    <Optimize>true</Optimize>
+    <OutputPath>bin\Release\</OutputPath>
+    <DefineConstants>TRACE;NETFX_CORE;WINDOWS_PHONE_APP</DefineConstants>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+  </PropertyGroup>
+  <ItemGroup>
+    <!-- A reference to the entire .NET Framework is automatically included -->
+  </ItemGroup>
+  <ItemGroup>
+    <Compile Include="Vibration.cs" />
+    <Compile Include="Properties\AssemblyInfo.cs" />
+  </ItemGroup>
+  <Import Project="$(MSBuildExtensionsPath)\Microsoft\WindowsXaml\v$(VisualStudioVersion)\Microsoft.Windows.UI.Xaml.CSharp.targets"
/>
+  <!-- To modify your build process, add your task inside one of the targets below and
uncomment it. 
+       Other similar extension points exist, see Microsoft.Common.targets.
+  <Target Name="BeforeBuild">
+  </Target>
+  <Target Name="AfterBuild">
+  </Target>
+  -->
+</Project>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-plugin-vibration/blob/5192900d/src/windows/Vibration/Vibration.sln
----------------------------------------------------------------------
diff --git a/src/windows/Vibration/Vibration.sln b/src/windows/Vibration/Vibration.sln
deleted file mode 100644
index 1f3d9d4..0000000
--- a/src/windows/Vibration/Vibration.sln
+++ /dev/null
@@ -1,22 +0,0 @@
-
-Microsoft Visual Studio Solution File, Format Version 12.00
-# Visual Studio 2013
-VisualStudioVersion = 12.0.30723.0
-MinimumVisualStudioVersion = 10.0.40219.1
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Vibration", "Vibration\Vibration.csproj",
"{D4F9F695-ECD5-49FC-B58A-B1E0E754E159}"
-EndProject
-Global
-	GlobalSection(SolutionConfigurationPlatforms) = preSolution
-		Debug|Any CPU = Debug|Any CPU
-		Release|Any CPU = Release|Any CPU
-	EndGlobalSection
-	GlobalSection(ProjectConfigurationPlatforms) = postSolution
-		{D4F9F695-ECD5-49FC-B58A-B1E0E754E159}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
-		{D4F9F695-ECD5-49FC-B58A-B1E0E754E159}.Debug|Any CPU.Build.0 = Debug|Any CPU
-		{D4F9F695-ECD5-49FC-B58A-B1E0E754E159}.Release|Any CPU.ActiveCfg = Release|Any CPU
-		{D4F9F695-ECD5-49FC-B58A-B1E0E754E159}.Release|Any CPU.Build.0 = Release|Any CPU
-	EndGlobalSection
-	GlobalSection(SolutionProperties) = preSolution
-		HideSolutionNode = FALSE
-	EndGlobalSection
-EndGlobal

http://git-wip-us.apache.org/repos/asf/cordova-plugin-vibration/blob/5192900d/src/windows/Vibration/Vibration/.gitignore
----------------------------------------------------------------------
diff --git a/src/windows/Vibration/Vibration/.gitignore b/src/windows/Vibration/Vibration/.gitignore
deleted file mode 100644
index b84aa9d..0000000
--- a/src/windows/Vibration/Vibration/.gitignore
+++ /dev/null
@@ -1,3 +0,0 @@
-/bin/
-/obj/
-*.suo
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-plugin-vibration/blob/5192900d/src/windows/Vibration/Vibration/Properties/AssemblyInfo.cs
----------------------------------------------------------------------
diff --git a/src/windows/Vibration/Vibration/Properties/AssemblyInfo.cs b/src/windows/Vibration/Vibration/Properties/AssemblyInfo.cs
deleted file mode 100644
index ad89fad..0000000
--- a/src/windows/Vibration/Vibration/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,30 +0,0 @@
-using System.Resources;
-using System.Reflection;
-using System.Runtime.CompilerServices;
-using System.Runtime.InteropServices;
-
-// General Information about an assembly is controlled through the following 
-// set of attributes. Change these attribute values to modify the information
-// associated with an assembly.
-[assembly: AssemblyTitle("Vibration")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("Vibration")]
-[assembly: AssemblyCopyright("Copyright ©  2014")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-[assembly: NeutralResourcesLanguage("en")]
-
-// Version information for an assembly consists of the following four values:
-//
-//      Major Version
-//      Minor Version 
-//      Build Number
-//      Revision
-//
-// You can specify all the values or you can default the Build and Revision Numbers 
-// by using the '*' as shown below:
-// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]

http://git-wip-us.apache.org/repos/asf/cordova-plugin-vibration/blob/5192900d/src/windows/Vibration/Vibration/Vibration.cs
----------------------------------------------------------------------
diff --git a/src/windows/Vibration/Vibration/Vibration.cs b/src/windows/Vibration/Vibration/Vibration.cs
deleted file mode 100644
index 66f278c..0000000
--- a/src/windows/Vibration/Vibration/Vibration.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Runtime.InteropServices.WindowsRuntime;
-using System.Text;
-using Windows.Phone.Devices.Notification;
-
-namespace Vibration
-{
-    public sealed class Vibration
-    {
-        private static VibrationDevice _vibrationDevice = VibrationDevice.GetDefault();
-
-        public static void vibrate([ReadOnlyArray()] object[] args)
-        {
-            // set default
-            int duration = 200;
-
-            try 
-            {
-                duration = Convert.ToInt32(args[0]);
-            }
-            catch 
-            { 
-
-            }
-
-            _vibrationDevice.Vibrate(TimeSpan.FromMilliseconds(duration));
-        }
-
-        public static void cancelVibration()
-        {
-            _vibrationDevice.Cancel();
-        }
-    }
-}

http://git-wip-us.apache.org/repos/asf/cordova-plugin-vibration/blob/5192900d/src/windows/Vibration/Vibration/Vibration.csproj
----------------------------------------------------------------------
diff --git a/src/windows/Vibration/Vibration/Vibration.csproj b/src/windows/Vibration/Vibration/Vibration.csproj
deleted file mode 100644
index a803b4e..0000000
--- a/src/windows/Vibration/Vibration/Vibration.csproj
+++ /dev/null
@@ -1,54 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
-  <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props"
Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')"
/>
-  <PropertyGroup>
-    <MinimumVisualStudioVersion>12.0</MinimumVisualStudioVersion>
-    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
-    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
-    <ProjectGuid>{D4F9F695-ECD5-49FC-B58A-B1E0E754E159}</ProjectGuid>
-    <OutputType>winmdobj</OutputType>
-    <AppDesignerFolder>Properties</AppDesignerFolder>
-    <RootNamespace>Vibration</RootNamespace>
-    <AssemblyName>Vibration</AssemblyName>
-    <DefaultLanguage>en-US</DefaultLanguage>
-    <FileAlignment>512</FileAlignment>
-    <ProjectTypeGuids>{76F1466A-8B6D-4E39-A767-685A06062A39};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
-    <TargetPlatformIdentifier>WindowsPhoneApp</TargetPlatformIdentifier>
-    <TargetPlatformVersion>8.1</TargetPlatformVersion>
-  </PropertyGroup>
-  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
-    <DebugSymbols>true</DebugSymbols>
-    <DebugType>full</DebugType>
-    <Optimize>false</Optimize>
-    <OutputPath>bin\Debug\</OutputPath>
-    <DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_PHONE_APP</DefineConstants>
-    <ErrorReport>prompt</ErrorReport>
-    <WarningLevel>4</WarningLevel>
-  </PropertyGroup>
-  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
-    <DebugType>pdbonly</DebugType>
-    <Optimize>true</Optimize>
-    <OutputPath>bin\Release\</OutputPath>
-    <DefineConstants>TRACE;NETFX_CORE;WINDOWS_PHONE_APP</DefineConstants>
-    <ErrorReport>prompt</ErrorReport>
-    <WarningLevel>4</WarningLevel>
-  </PropertyGroup>
-  <ItemGroup>
-    <!-- A reference to the entire .NET Framework is automatically included -->
-  </ItemGroup>
-  <ItemGroup>
-    <Compile Include="Vibration.cs" />
-    <Compile Include="Properties\AssemblyInfo.cs" />
-  </ItemGroup>
-  <Import Project="$(MSBuildExtensionsPath)\Microsoft\WindowsXaml\v$(VisualStudioVersion)\Microsoft.Windows.UI.Xaml.CSharp.targets"
/>
-  <PropertyGroup>
-    <PostBuildEvent>xcopy /Y /Q "$(TargetPath)" "$(SolutionDir).."</PostBuildEvent>
-  </PropertyGroup>
-  <!-- To modify your build process, add your task inside one of the targets below and
uncomment it. 
-       Other similar extension points exist, see Microsoft.Common.targets.
-  <Target Name="BeforeBuild">
-  </Target>
-  <Target Name="AfterBuild">
-  </Target>
-  -->
-</Project>
\ No newline at end of file


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message