-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1382 from Microsoft/Connectivity-HD
Add Microsoft.Toolkit.Uwp.Connectivity
- Loading branch information
Showing
24 changed files
with
395 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
91 changes: 91 additions & 0 deletions
91
Microsoft.Toolkit.Uwp.Connectivity/Microsoft.Toolkit.Uwp.Connectivity.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="15.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> | ||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | ||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | ||
<ProjectGuid>{B1E850FF-DDE6-44D5-A830-34250E97A687}</ProjectGuid> | ||
<OutputType>Library</OutputType> | ||
<AppDesignerFolder>Properties</AppDesignerFolder> | ||
<RootNamespace>Microsoft.Toolkit.Uwp.Connectivity</RootNamespace> | ||
<AssemblyName>Microsoft.Toolkit.Uwp.Connectivity</AssemblyName> | ||
<DefaultLanguage>en-US</DefaultLanguage> | ||
<TargetPlatformIdentifier>UAP</TargetPlatformIdentifier> | ||
<TargetPlatformVersion Condition=" '$(TargetPlatformVersion)' == '' ">10.0.15063.0</TargetPlatformVersion> | ||
<TargetPlatformMinVersion>10.0.14393.0</TargetPlatformMinVersion> | ||
<MinimumVisualStudioVersion>14</MinimumVisualStudioVersion> | ||
<FileAlignment>512</FileAlignment> | ||
<ProjectTypeGuids>{A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | ||
<PlatformTarget>AnyCPU</PlatformTarget> | ||
<DebugSymbols>true</DebugSymbols> | ||
<DebugType>full</DebugType> | ||
<Optimize>false</Optimize> | ||
<OutputPath>bin\Debug\</OutputPath> | ||
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
<DocumentationFile>bin\Debug\Microsoft.Toolkit.Uwp.Connectivity.XML</DocumentationFile> | ||
<CodeAnalysisRuleSet>Microsoft.Toolkit.Uwp.Connectivity.ruleset</CodeAnalysisRuleSet> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | ||
<PlatformTarget>AnyCPU</PlatformTarget> | ||
<DebugType>pdbonly</DebugType> | ||
<Optimize>true</Optimize> | ||
<OutputPath>bin\Release\</OutputPath> | ||
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
<DocumentationFile>bin\Release\Microsoft.Toolkit.Uwp.Connectivity.XML</DocumentationFile> | ||
<CodeAnalysisRuleSet>Microsoft.Toolkit.Uwp.Connectivity.ruleset</CodeAnalysisRuleSet> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<RestoreProjectStyle>PackageReference</RestoreProjectStyle> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Compile Include="BluetoothLEHelper\BluetoothLEHelper.cs" /> | ||
<Compile Include="BluetoothLEHelper\GattConvert.cs" /> | ||
<Compile Include="BluetoothLEHelper\GattNativeUuid.cs" /> | ||
<Compile Include="BluetoothLEHelper\GattProtocolErrorParser.cs" /> | ||
<Compile Include="BluetoothLEHelper\GattUuidsService.cs" /> | ||
<Compile Include="BluetoothLEHelper\ObservableBluetoothLEDevice.cs" /> | ||
<Compile Include="BluetoothLEHelper\ObservableGattCharacteristics.cs" /> | ||
<Compile Include="BluetoothLEHelper\ObservableGattDeviceService.cs" /> | ||
<Compile Include="Network\ConnectionInformation.cs" /> | ||
<Compile Include="Network\ConnectionType.cs" /> | ||
<Compile Include="Network\NetworkHelper.cs" /> | ||
<Compile Include="Properties\AssemblyInfo.cs" /> | ||
<EmbeddedResource Include="Properties\Microsoft.Toolkit.Uwp.Connectivity.rd.xml" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<PackageReference Include="Microsoft.NETCore.UniversalWindowsPlatform"> | ||
<Version>5.3.4</Version> | ||
</PackageReference> | ||
<PackageReference Include="StyleCop.Analyzers"> | ||
<Version>1.0.2</Version> | ||
</PackageReference> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ProjectReference Include="..\Microsoft.Toolkit.Uwp\Microsoft.Toolkit.Uwp.csproj"> | ||
<Project>{805f80df-75c6-4c2f-8fd9-b47f6d0df5a3}</Project> | ||
<Name>Microsoft.Toolkit.Uwp</Name> | ||
</ProjectReference> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<None Include="Microsoft.Toolkit.Uwp.Connectivity.ruleset"> | ||
<SubType>Designer</SubType> | ||
</None> | ||
</ItemGroup> | ||
<PropertyGroup Condition=" '$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' < '14.0' "> | ||
<VisualStudioVersion>14.0</VisualStudioVersion> | ||
</PropertyGroup> | ||
<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> |
78 changes: 78 additions & 0 deletions
78
Microsoft.Toolkit.Uwp.Connectivity/Microsoft.Toolkit.Uwp.Connectivity.ruleset
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<RuleSet Name="Microsoft Managed Recommended Rules" Description="These rules focus on the most critical problems in your code, including potential security holes, application crashes, and other important logic and design errors. It is recommended to include this rule set in any custom rule set you create for your projects." ToolsVersion="10.0"> | ||
<Localization ResourceAssembly="Microsoft.VisualStudio.CodeAnalysis.RuleSets.Strings.dll" ResourceBaseName="Microsoft.VisualStudio.CodeAnalysis.RuleSets.Strings.Localized"> | ||
<Name Resource="MinimumRecommendedRules_Name" /> | ||
<Description Resource="MinimumRecommendedRules_Description" /> | ||
</Localization> | ||
<Rules AnalyzerId="Microsoft.Analyzers.ManagedCodeAnalysis" RuleNamespace="Microsoft.Rules.Managed"> | ||
<Rule Id="CA1001" Action="Warning" /> | ||
<Rule Id="CA1009" Action="Warning" /> | ||
<Rule Id="CA1016" Action="Warning" /> | ||
<Rule Id="CA1033" Action="Warning" /> | ||
<Rule Id="CA1049" Action="Warning" /> | ||
<Rule Id="CA1060" Action="Warning" /> | ||
<Rule Id="CA1061" Action="Warning" /> | ||
<Rule Id="CA1063" Action="Warning" /> | ||
<Rule Id="CA1065" Action="Warning" /> | ||
<Rule Id="CA1301" Action="Warning" /> | ||
<Rule Id="CA1400" Action="Warning" /> | ||
<Rule Id="CA1401" Action="Warning" /> | ||
<Rule Id="CA1403" Action="Warning" /> | ||
<Rule Id="CA1404" Action="Warning" /> | ||
<Rule Id="CA1405" Action="Warning" /> | ||
<Rule Id="CA1410" Action="Warning" /> | ||
<Rule Id="CA1415" Action="Warning" /> | ||
<Rule Id="CA1821" Action="Warning" /> | ||
<Rule Id="CA1900" Action="Warning" /> | ||
<Rule Id="CA1901" Action="Warning" /> | ||
<Rule Id="CA2002" Action="Warning" /> | ||
<Rule Id="CA2100" Action="Warning" /> | ||
<Rule Id="CA2101" Action="Warning" /> | ||
<Rule Id="CA2108" Action="Warning" /> | ||
<Rule Id="CA2111" Action="Warning" /> | ||
<Rule Id="CA2112" Action="Warning" /> | ||
<Rule Id="CA2114" Action="Warning" /> | ||
<Rule Id="CA2116" Action="Warning" /> | ||
<Rule Id="CA2117" Action="Warning" /> | ||
<Rule Id="CA2122" Action="Warning" /> | ||
<Rule Id="CA2123" Action="Warning" /> | ||
<Rule Id="CA2124" Action="Warning" /> | ||
<Rule Id="CA2126" Action="Warning" /> | ||
<Rule Id="CA2131" Action="Warning" /> | ||
<Rule Id="CA2132" Action="Warning" /> | ||
<Rule Id="CA2133" Action="Warning" /> | ||
<Rule Id="CA2134" Action="Warning" /> | ||
<Rule Id="CA2137" Action="Warning" /> | ||
<Rule Id="CA2138" Action="Warning" /> | ||
<Rule Id="CA2140" Action="Warning" /> | ||
<Rule Id="CA2141" Action="Warning" /> | ||
<Rule Id="CA2146" Action="Warning" /> | ||
<Rule Id="CA2147" Action="Warning" /> | ||
<Rule Id="CA2149" Action="Warning" /> | ||
<Rule Id="CA2200" Action="Warning" /> | ||
<Rule Id="CA2202" Action="Warning" /> | ||
<Rule Id="CA2207" Action="Warning" /> | ||
<Rule Id="CA2212" Action="Warning" /> | ||
<Rule Id="CA2213" Action="Warning" /> | ||
<Rule Id="CA2214" Action="Warning" /> | ||
<Rule Id="CA2216" Action="Warning" /> | ||
<Rule Id="CA2220" Action="Warning" /> | ||
<Rule Id="CA2229" Action="Warning" /> | ||
<Rule Id="CA2231" Action="Warning" /> | ||
<Rule Id="CA2232" Action="Warning" /> | ||
<Rule Id="CA2235" Action="Warning" /> | ||
<Rule Id="CA2236" Action="Warning" /> | ||
<Rule Id="CA2237" Action="Warning" /> | ||
<Rule Id="CA2238" Action="Warning" /> | ||
<Rule Id="CA2240" Action="Warning" /> | ||
<Rule Id="CA2241" Action="Warning" /> | ||
<Rule Id="CA2242" Action="Warning" /> | ||
</Rules> | ||
<Rules AnalyzerId="StyleCop.Analyzers" RuleNamespace="StyleCop.Analyzers"> | ||
<Rule Id="SA1101" Action="None" /> | ||
<Rule Id="SA1633" Action="None" /> | ||
<Rule Id="SA1200" Action="None" /> | ||
<Rule Id="SA1201" Action="None" /> | ||
<Rule Id="SA1309" Action="None" /> | ||
</Rules> | ||
</RuleSet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
Microsoft.Toolkit.Uwp.Connectivity/Properties/AssemblyInfo.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// ****************************************************************** | ||
// Copyright (c) Microsoft. All rights reserved. | ||
// This code is licensed under the MIT License (MIT). | ||
// THE CODE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, | ||
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | ||
// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, | ||
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, | ||
// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH | ||
// THE CODE OR THE USE OR OTHER DEALINGS IN THE CODE. | ||
// ****************************************************************** | ||
|
||
using System.Reflection; | ||
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("Microsoft.Toolkit.Uwp.Connectivity")] | ||
[assembly: AssemblyDescription("")] | ||
[assembly: AssemblyConfiguration("")] | ||
[assembly: AssemblyCompany("")] | ||
[assembly: AssemblyProduct("Microsoft.Toolkit.Uwp.Connectivity")] | ||
[assembly: AssemblyCopyright("Copyright © 2017")] | ||
[assembly: AssemblyTrademark("")] | ||
[assembly: AssemblyCulture("")] | ||
|
||
// 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")] | ||
[assembly: ComVisible(false)] |
33 changes: 33 additions & 0 deletions
33
Microsoft.Toolkit.Uwp.Connectivity/Properties/Microsoft.Toolkit.Uwp.Connectivity.rd.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- | ||
This file contains Runtime Directives, specifications about types your application accesses | ||
through reflection and other dynamic code patterns. Runtime Directives are used to control the | ||
.NET Native optimizer and ensure that it does not remove code accessed by your library. If your | ||
library does not do any reflection, then you generally do not need to edit this file. However, | ||
if your library reflects over types, especially types passed to it or derived from its types, | ||
then you should write Runtime Directives. | ||
The most common use of reflection in libraries is to discover information about types passed | ||
to the library. Runtime Directives have three ways to express requirements on types passed to | ||
your library. | ||
1. Parameter, GenericParameter, TypeParameter, TypeEnumerableParameter | ||
Use these directives to reflect over types passed as a parameter. | ||
2. SubTypes | ||
Use a SubTypes directive to reflect over types derived from another type. | ||
3. AttributeImplies | ||
Use an AttributeImplies directive to indicate that your library needs to reflect over | ||
types or methods decorated with an attribute. | ||
For more information on writing Runtime Directives for libraries, please visit | ||
https://go.microsoft.com/fwlink/?LinkID=391919 | ||
--> | ||
<Directives xmlns="http://schemas.microsoft.com/netfx/2013/01/metadata"> | ||
<Library Name="Microsoft.Toolkit.Uwp.Connectivity"> | ||
|
||
<!-- add directives for your library here --> | ||
|
||
</Library> | ||
</Directives> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.