jamesmontemagno / InAppBillingPlugin

Cross-platform In App Billing Plugin for .NET
MIT License
664 stars 153 forks source link

Xamarin.AndroidX.Lifecycle.* NuGets dependencies are referencing an older version #647

Open dottam opened 5 days ago

dottam commented 5 days ago

In version 9 (and 8 as well) all Xamarin.AndroidX.Lifecycle.* NuGets are referencing an older version (2.8.6) which makes it impossible to upgrade to i.e. my app requires Xamarin.GooglePlayServices.Cast.Framework v122.0.0.1 which requires v2.8.7.1 of those Xamarin.AndroidX.Lifecycle.* NuGets

Does the library requires exact version of those libraries?

CleverSoftwarePoland commented 4 days ago

Same problem here. warning NU1608: Detected package version outside of dependency constraint: Xamarin.AndroidX.Lifecycle.Process 2.8.5.1 requires Xamarin.AndroidX.Lifecycle.Runtime (>= 2.8.5.1 && < 2.8.6) but version Xamarin.AndroidX.Lifecycle.Runtime 2.8.6 was resolved.

This error brakes "publish" for Android on .MAUI 9

CleverSoftwarePoland commented 3 days ago
Publish will fail with such configuration:
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net9.0-android|AnyCPU'">
    <AndroidEnableMultiDex>true</AndroidEnableMultiDex> 
    <PublishTrimmed>true</PublishTrimmed>
    <TrimMode>copyused</TrimMode>   
    <DebugSymbols>False</DebugSymbols>  
    <Optimize>True</Optimize>   
    <EmbedAssembliesIntoApk>True</EmbedAssembliesIntoApk>
    <RunAOTCompilation>False</RunAOTCompilation>
    <AndroidEnableProfiledAot>False</AndroidEnableProfiledAot>
       <AndroidEnableSGenConcurrent>False</AndroidEnableSGenConcurrent> 
    <AndroidPackageFormat>aab</AndroidPackageFormat>
    <AndroidUseAapt2>True</AndroidUseAapt2>
    <AndroidCreatePackagePerAbi>False</AndroidCreatePackagePerAbi>  
</PropertyGroup>