Skip to content

Commit 03deec1

Browse files
Jake-DerrickJake-Derrick
andauthored
Add suppot for .net9 (#7)
Co-authored-by: Jake-Derrick <JakeADerrick@gmail.com>
1 parent fb4e14b commit 03deec1

File tree

3 files changed

+20
-8
lines changed

3 files changed

+20
-8
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
## Install Plugin
1111

12-
[![NuGet](https://img.shields.io/nuget/v/Plugin.Maui.Feature.svg?label=NuGet)](https://www.nuget.org/packages/Plugin.Maui.OtpReader/)
12+
[![NuGet](https://img.shields.io/nuget/v/Plugin.Maui.OtpReader)](https://www.nuget.org/packages/Plugin.Maui.OtpReader/)
1313

1414

1515
Available on [NuGet](http://www.nuget.org/packages/Plugin.Maui.OtpReader).

samples/Plugin.Maui.OtpReader.Sample/Plugin.Maui.OtpReader.Sample.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net10.0-android;net10.0-ios;net10.0-maccatalyst</TargetFrameworks>
4+
<TargetFrameworks>net10.0-android;net9.0-android;net10.0-ios;net9.0-ios;net10.0-maccatalyst;net9.0-maccatalyst;</TargetFrameworks>
55
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net10.0-windows10.0.19041.0</TargetFrameworks>
66
<!-- Uncomment to also build the tizen app. You will need to install tizen by following this: https://github.com/Samsung/Tizen.NET -->
77
<!-- <TargetFrameworks>$(TargetFrameworks);net10.0-tizen</TargetFrameworks> -->
@@ -51,6 +51,6 @@
5151

5252
<ItemGroup>
5353
<ProjectReference Include="..\..\src\Plugin.Maui.OtpReader\Plugin.Maui.OtpReader.csproj" />
54-
<PackageReference Include="Microsoft.Maui.Controls" Version="10.0.20" />
54+
<PackageReference Include="Microsoft.Maui.Controls" Version="$(MauiVersion)" />
5555
</ItemGroup>
5656
</Project>

src/Plugin.Maui.OtpReader/Plugin.Maui.OtpReader.csproj

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFrameworks>net10.0-android;net10.0-ios;net10.0-maccatalyst;net10.0</TargetFrameworks>
3+
<TargetFrameworks>net10.0-android;net9.0-android;net10.0-ios;net9.0-ios;net10.0-maccatalyst;net9.0-maccatalyst;net10.0;net9.0</TargetFrameworks>
44
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net10.0-windows10.0.19041.0</TargetFrameworks>
55
<SingleProject>true</SingleProject>
66
<ImplicitUsings>enable</ImplicitUsings>
@@ -75,11 +75,23 @@
7575
</ItemGroup>
7676

7777
<ItemGroup>
78-
<PackageReference Include="Microsoft.Maui.Controls" Version="10.0.20" />
78+
<PackageReference Include="Microsoft.Maui.Controls" Version="$(MauiVersion)" />
7979
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="all" IsImplicitlyDefined="true" />
8080
<PackageReference Include="System.Management" Version="10.0.1" Condition="$(TargetFramework.Contains('-windows')) == true" />
81-
<PackageReference Include="Xamarin.GooglePlayServices.Auth" Version="121.4.0.1" Condition="$(TargetFramework.Contains('-android')) == true" />
82-
<PackageReference Include="Xamarin.AndroidX.Fragment.Ktx" Version="1.8.9" Condition="$(TargetFramework.Contains('-android')) == true" />
8381
</ItemGroup>
84-
82+
83+
84+
85+
<!-- Android Packages -->
86+
<ItemGroup Condition="$(TargetFramework.Contains('-android'))">
87+
<PackageReference Include="Xamarin.GooglePlayServices.Auth" Version="121.4.0.1" />
88+
<PackageReference Include="Xamarin.AndroidX.Fragment.Ktx" Version="1.8.9" />
89+
90+
<PackageReference Include="Xamarin.AndroidX.Lifecycle.Process" Version="2.9.2.1" />
91+
<PackageReference Include="Xamarin.AndroidX.Lifecycle.LiveData" Version="2.9.2.1" />
92+
<PackageReference Include="Xamarin.AndroidX.Lifecycle.LiveData.Core" Version="2.9.2.1" />
93+
<PackageReference Include="Xamarin.AndroidX.Lifecycle.LiveData.Core.Ktx" Version="2.9.2.1" />
94+
</ItemGroup>
95+
96+
8597
</Project>

0 commit comments

Comments
 (0)