Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit 784d93e

Browse files
target 8 and 9
1 parent 4adc9d3 commit 784d93e

File tree

3 files changed

+16
-70
lines changed

3 files changed

+16
-70
lines changed

global.json

Lines changed: 0 additions & 7 deletions
This file was deleted.

src/InAppBillingTests/InAppBillingMauiTest/MauiProgram.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
1-
namespace InAppBillingMauiTest
1+
using Plugin.InAppBilling;
2+
3+
namespace InAppBillingMauiTest
24
{
35
public static class MauiProgram
46
{
57
public static MauiApp CreateMauiApp()
68
{
9+
10+
#if IOS
11+
var test = new InAppBillingImplementation();
12+
#endif
713
var builder = MauiApp.CreateBuilder();
814
builder
915
.UseMauiApp<App>()

src/Plugin.InAppBilling/Plugin.InAppBilling.csproj

Lines changed: 9 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFrameworks>net8.0;net8.0-android;net8.0-ios;net8.0-maccatalyst;net8.0-macos</TargetFrameworks>
4-
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net8.0-windows10.0.19041.0</TargetFrameworks>
3+
<TargetFrameworks>net8.0;net8.0-android;net8.0-ios;net8.0-maccatalyst;net8.0-macos;net9.0;net9.0-android;net9.0-ios;net9.0-maccatalyst;net9.0-macos</TargetFrameworks>
4+
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net8.0-windows10.0.19041.0;net9.0-windows10.0.19041.0</TargetFrameworks>
55
<LangVersion>latest</LangVersion>
6-
<UseMaui Condition="'$(TargetFramework)' != 'net8.0'">true</UseMaui>
7-
<UseMauiEssentials Condition="'$(TargetFramework)' != 'net8.0'">true</UseMauiEssentials>
86
<SingleProject>true</SingleProject>
97
<AssemblyName>Plugin.InAppBilling</AssemblyName>
108
<RootNamespace>Plugin.InAppBilling</RootNamespace>
@@ -44,12 +42,12 @@
4442

4543
<!-- platform version number information -->
4644
<PropertyGroup>
47-
<SupportedOSPlatformVersion Condition="$(TargetFramework.Contains('ios'))">14.2</SupportedOSPlatformVersion>
48-
<SupportedOSPlatformVersion Condition="$(TargetFramework.Contains('maccatalyst'))">14.0</SupportedOSPlatformVersion>
49-
<SupportedOSPlatformVersion Condition="$(TargetFramework.Contains('macos'))">13.0</SupportedOSPlatformVersion>
50-
<SupportedOSPlatformVersion Condition="$(TargetFramework.Contains('android'))">21.0</SupportedOSPlatformVersion>
51-
<SupportedOSPlatformVersion Condition="$(TargetFramework.Contains('windows'))">10.0.17763.0</SupportedOSPlatformVersion>
52-
<TargetPlatformMinVersion Condition="$(TargetFramework.Contains('windows'))">10.0.17763.0</TargetPlatformMinVersion>
45+
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">15.0</SupportedOSPlatformVersion>
46+
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'maccatalyst'">15.0</SupportedOSPlatformVersion>
47+
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'">21.0</SupportedOSPlatformVersion>
48+
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">10.0.17763.0</SupportedOSPlatformVersion>
49+
<TargetPlatformMinVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">10.0.17763.0</TargetPlatformMinVersion>
50+
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'tizen'">6.5</SupportedOSPlatformVersion>
5351
</PropertyGroup>
5452

5553
<PropertyGroup Condition=" '$(Configuration)'=='Debug' ">
@@ -95,58 +93,7 @@
9593

9694
<ItemGroup Condition=" $(TargetFramework.Contains('-android')) ">
9795
<PackageReference Include="Microsoft.Maui.Essentials" Version="$(MauiVersion)" />
98-
<PackageReference Include="Xamarin.Android.Google.BillingClient" Version="7.1.1" />
99-
<PackageReference Include="Xamarin.AndroidX.Activity">
100-
<Version>1.9.2.1</Version>
101-
</PackageReference>
102-
<PackageReference Include="Xamarin.AndroidX.Activity.Ktx">
103-
<Version>1.9.2.1</Version>
104-
</PackageReference>
105-
<PackageReference Include="Xamarin.AndroidX.Collection">
106-
<Version>1.4.4</Version>
107-
</PackageReference>
108-
<PackageReference Include="Xamarin.AndroidX.Collection.Ktx">
109-
<Version>1.4.4</Version>
110-
</PackageReference>
111-
<PackageReference Include="Xamarin.AndroidX.Lifecycle.LiveData">
112-
<Version>2.8.6</Version>
113-
</PackageReference>
114-
<PackageReference Include="Xamarin.AndroidX.Lifecycle.LiveData.Ktx">
115-
<Version>2.8.6</Version>
116-
</PackageReference>
117-
<PackageReference Include="Xamarin.AndroidX.Lifecycle.LiveData.Ktx">
118-
<Version>2.8.3.1</Version>
119-
</PackageReference>
120-
<PackageReference Include="Xamarin.AndroidX.Lifecycle.LiveData.Core">
121-
<Version>2.8.6</Version>
122-
</PackageReference>
123-
<PackageReference Include="Xamarin.AndroidX.Lifecycle.LiveData.Core.Ktx">
124-
<Version>2.8.6</Version>
125-
</PackageReference>
126-
<PackageReference Include="Xamarin.AndroidX.Lifecycle.LiveData.Core.Ktx">
127-
<Version>2.8.3.1</Version>
128-
</PackageReference>
129-
<PackageReference Include="Xamarin.AndroidX.Lifecycle.Runtime">
130-
<Version>2.8.6</Version>
131-
</PackageReference>
132-
<PackageReference Include="Xamarin.AndroidX.Lifecycle.Runtime.Ktx">
133-
<Version>2.8.6</Version>
134-
</PackageReference>
135-
<PackageReference Include="Xamarin.AndroidX.Lifecycle.Runtime.Ktx">
136-
<Version>2.8.3.1</Version>
137-
</PackageReference>
138-
<PackageReference Include="Xamarin.AndroidX.Lifecycle.ViewModel">
139-
<Version>2.8.6</Version>
140-
</PackageReference>
141-
<PackageReference Include="Xamarin.AndroidX.Lifecycle.ViewModel.Ktx">
142-
<Version>2.8.6</Version>
143-
</PackageReference>
144-
<PackageReference Include="Xamarin.AndroidX.Lifecycle.ViewModel.Ktx">
145-
<Version>2.8.3.1</Version>
146-
</PackageReference>
147-
<PackageReference Include="Xamarin.AndroidX.Lifecycle.ViewModelSavedState">
148-
<Version>2.8.6</Version>
149-
</PackageReference>
96+
<PackageReference Include="Xamarin.Android.Google.BillingClient" Version="7.1.1.1" />
15097
</ItemGroup>
15198

15299
<ItemGroup Condition="$(TargetFramework.StartsWith('net')) == true AND $(TargetFramework.Contains('-android')) != true">

0 commit comments

Comments
 (0)