Skip to content

Commit

Permalink
Merge pull request #57 from AwineshKumar/support-android-14-api34
Browse files Browse the repository at this point in the history
Add forgroundservice subtype permission
  • Loading branch information
framinosona authored Sep 13, 2024
2 parents 01a6bf7 + 9409165 commit 1493958
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Laerdal.Dfu/Laerdal.Dfu.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

<!-- =========================== PACKAGES ============================ -->
<ItemGroup Condition=" '$(TargetPlatformIdentifier)' == 'android' ">
<PackageReference Include="Laerdal.Dfu.Bindings.Android" Version="2.3.0.43888"/>
<PackageReference Include="Laerdal.Dfu.Bindings.Android" Version="2.5.0.43891"/>
</ItemGroup>

<ItemGroup Condition=" '$(TargetPlatformIdentifier)' == 'ios' ">
Expand Down
7 changes: 4 additions & 3 deletions Laerdal.Dfu/Platforms/Android/Specific/DfuService.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
using Android.App;
using Android.Content.PM;

using Java.Lang;

namespace Laerdal.Dfu.Specific
{
[Service]
{

[Service(ForegroundServiceType = ForegroundService.TypeConnectedDevice)]
public class DfuService : Laerdal.Dfu.Bindings.Android.DfuBaseService
{
public DfuService()
Expand Down

0 comments on commit 1493958

Please sign in to comment.