-
-
Notifications
You must be signed in to change notification settings - Fork 227
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
113 additions
and
40 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
using System.Threading.Tasks; | ||
using Shiny.BluetoothLE; | ||
|
||
namespace Shiny; | ||
|
||
|
||
public interface IAccessorySetupDelegate | ||
{ | ||
Task OnSetup(IPeripheral peripheral); | ||
} |
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,10 @@ | ||
using System.Threading.Tasks; | ||
|
||
namespace Shiny; | ||
|
||
|
||
public interface IAccessorySetupService | ||
{ | ||
Task Listen(); | ||
Task Stop(); | ||
} |
6 changes: 6 additions & 0 deletions
6
src/Shiny.Ble.SetupAccessory/Platforms/Android/AndroidSetupAccessory.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,6 @@ | ||
namespace Shiny; | ||
|
||
public class AndroidSetupAccessory | ||
{ | ||
|
||
} |
8 changes: 8 additions & 0 deletions
8
src/Shiny.Ble.SetupAccessory/Platforms/iOS/IosAccessorySetup.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,8 @@ | ||
namespace Shiny; | ||
|
||
// https://developer.apple.com/documentation/accessorysetupkit/ | ||
//https://www.youtube.com/watch?v=z0YDOmkVMmg | ||
public class IosAccessorySetup | ||
{ | ||
|
||
} |
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,12 @@ | ||
using Microsoft.Extensions.DependencyInjection; | ||
|
||
namespace Shiny; | ||
|
||
public static class SetupAccessoryExtensions | ||
{ | ||
public static IServiceCollection AddSetupAccessoryKit(this IServiceCollection services) | ||
{ | ||
|
||
return services; | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
src/Shiny.Ble.SetupAccessory/Shiny.Ble.SetupAccessory.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,12 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFrameworks>$(DefaultTargetFrameworks);$(WindowsTarget)</TargetFrameworks> | ||
<Description>Shiny BLE Setup Accessory Kit</Description> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\Shiny.Core\Shiny.Core.csproj" /> | ||
<ProjectReference Include="..\Shiny.BluetoothLE\Shiny.BluetoothLE.csproj" /> | ||
</ItemGroup> | ||
</Project> |
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,12 @@ | ||
using Microsoft.Extensions.DependencyInjection; | ||
|
||
namespace Shiny; | ||
|
||
public class ShinyConfigurator | ||
{ | ||
// UseShiny off MauiBuilder would call this | ||
public ShinyConfigurator(IServiceCollection services) | ||
{ | ||
|
||
} | ||
} |
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