mirror of
https://github.com/ppy/osu.git
synced 2024-12-16 09:22:58 +08:00
0a6baf670e
- Uses Xamarin.Essentials in osu.Game.PlayerLoader to check battery level - Encapsulated battery checking in the public BatteryManager class so battery level and plugged in status can be accessed and edited in TestPlayerLoader - When checking battery level, catch NotImplementedException thrown by Xamarin.Essentials.Battery on non-mobile platforms - Added visual unit tests for battery notification To mock battery status and level, we had to define a batteryManager object in TestPlayerLoader and add a new function ResetPlayerWithBattery() Co-Authored-By: Marlina José <marlina@umich.edu>
41 lines
2.0 KiB
XML
41 lines
2.0 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
<PropertyGroup Label="Project">
|
|
<TargetFramework>netstandard2.1</TargetFramework>
|
|
<OutputType>Library</OutputType>
|
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
|
</PropertyGroup>
|
|
<PropertyGroup Label="Nuget">
|
|
<Title>osu!</Title>
|
|
<PackageId>ppy.osu.Game</PackageId>
|
|
<Version>0.0.0</Version>
|
|
<PackageIcon>icon.png</PackageIcon>
|
|
<IsPackable>true</IsPackable>
|
|
</PropertyGroup>
|
|
<ItemGroup Label="Icon">
|
|
<None Include="..\assets\lazer-nuget.png">
|
|
<Pack>True</Pack>
|
|
<PackagePath>icon.png</PackagePath>
|
|
</None>
|
|
</ItemGroup>
|
|
<ItemGroup Label="Package References">
|
|
<PackageReference Include="DiffPlex" Version="1.7.0" />
|
|
<PackageReference Include="Humanizer" Version="2.8.26" />
|
|
<PackageReference Include="MessagePack" Version="2.2.85" />
|
|
<PackageReference Include="Microsoft.AspNetCore.SignalR.Client" Version="5.0.4" />
|
|
<PackageReference Include="Microsoft.AspNetCore.SignalR.Protocols.MessagePack" Version="5.0.4" />
|
|
<PackageReference Include="Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson" Version="5.0.4" />
|
|
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="2.2.6" />
|
|
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite.Core" Version="2.2.6" />
|
|
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="5.0.0" />
|
|
<PackageReference Include="Microsoft.NETCore.Targets" Version="3.1.0" />
|
|
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
|
|
<PackageReference Include="ppy.osu.Framework" Version="2021.407.0" />
|
|
<PackageReference Include="ppy.osu.Game.Resources" Version="2021.211.1" />
|
|
<PackageReference Include="Sentry" Version="3.2.0" />
|
|
<PackageReference Include="SharpCompress" Version="0.28.1" />
|
|
<PackageReference Include="NUnit" Version="3.13.1" />
|
|
<PackageReference Include="System.ComponentModel.Annotations" Version="5.0.0" />
|
|
<PackageReference Include="Xamarin.Essentials" Version="1.6.1" />
|
|
</ItemGroup>
|
|
</Project>
|