Skip to content

Commit

Permalink
Update dependencies and target frameworks
Browse files Browse the repository at this point in the history
  • Loading branch information
Redth committed Jan 18, 2021
1 parent 21afd64 commit c734844
Show file tree
Hide file tree
Showing 12 changed files with 34 additions and 54 deletions.
6 changes: 3 additions & 3 deletions Samples/Sample.Android/Sample.Android.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,13 @@
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.CSharp.targets" />
<ItemGroup>
<PackageReference Include="Xamarin.AndroidX.AppCompat" Version="1.1.0" />
<PackageReference Include="Xamarin.AndroidX.AppCompat" Version="1.2.0.6" />
<PackageReference Include="FastAndroidCamera" Version="2.0.0" />
<PackageReference Include="Xamarin.AndroidX.Browser">
<Version>1.0.0</Version>
<Version>1.3.0.4</Version>
</PackageReference>
<PackageReference Include="Xamarin.Essentials">
<Version>1.5.1</Version>
<Version>1.6.0</Version>
</PackageReference>
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@
</Reference>
</ItemGroup>
<ItemGroup>
<PackageReference Include="Xamarin.Forms" Version="4.5.0.356" />
<PackageReference Include="Xamarin.Essentials" Version="1.5.1" />
<PackageReference Include="Xamarin.Forms" Version="5.0.0.1874" />
<PackageReference Include="Xamarin.Essentials" Version="1.6.0" />
</ItemGroup>
<ItemGroup>
<Compile Include="MainActivity.cs" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<!-- Property Group for Tizen40 Project -->
<PropertyGroup>
Expand All @@ -22,11 +22,11 @@

<!-- Include Nuget Package for Tizen Project building -->
<ItemGroup>
<PackageReference Include="Tizen.NET" Version="5.0.0.14562">
<PackageReference Include="Tizen.NET" Version="8.0.0.15631">
<ExcludeAssets>Runtime</ExcludeAssets>
</PackageReference>
<PackageReference Include="Tizen.NET.Sdk" Version="1.0.9" />
<PackageReference Include="Xamarin.Forms" Version="4.5.0.356" />
<PackageReference Include="Tizen.NET.Sdk" Version="1.1.6" />
<PackageReference Include="Xamarin.Forms" Version="5.0.0.1874" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\ZXing.Net.Mobile\ZXing.Net.Mobile.csproj" />
Expand Down
6 changes: 3 additions & 3 deletions Samples/Sample.Forms/Sample.Forms.UWP/Sample.Forms.UWP.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,9 @@
</Page>
</ItemGroup>
<ItemGroup>
<PackageReference Include="Xamarin.Forms" Version="4.5.0.356" />
<PackageReference Include="Microsoft.NETCore.UniversalWindowsPlatform" Version="6.1.9" />
<PackageReference Include="Xamarin.Essentials" Version="1.5.1" />
<PackageReference Include="Xamarin.Forms" Version="5.0.0.1874" />
<PackageReference Include="Microsoft.NETCore.UniversalWindowsPlatform" Version="6.2.11" />
<PackageReference Include="Xamarin.Essentials" Version="1.6.0" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\ZXing.Net.Mobile.Forms\ZXing.Net.Mobile.Forms.csproj">
Expand Down
4 changes: 2 additions & 2 deletions Samples/Sample.Forms/Sample.Forms.iOS/Sample.Forms.iOS.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@
<Reference Include="System.Numerics.Vectors" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Xamarin.Forms" Version="4.5.0.356" />
<PackageReference Include="Xamarin.Essentials" Version="1.5.1" />
<PackageReference Include="Xamarin.Forms" Version="5.0.0.1874" />
<PackageReference Include="Xamarin.Essentials" Version="1.6.0" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\ZXing.Net.Mobile.Forms\ZXing.Net.Mobile.Forms.csproj">
Expand Down
4 changes: 2 additions & 2 deletions Samples/Sample.Forms/Sample.Forms/Sample.Forms.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Xamarin.Forms" Version="4.5.0.356" />
<PackageReference Include="Xamarin.Essentials" Version="1.5.1" />
<PackageReference Include="Xamarin.Forms" Version="5.0.0.1874" />
<PackageReference Include="Xamarin.Essentials" Version="1.6.0" />
</ItemGroup>

<ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions Samples/Sample.Uwp/Sample.Uwp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,10 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NETCore.UniversalWindowsPlatform">
<Version>6.2.9</Version>
<Version>6.2.11</Version>
</PackageReference>
<PackageReference Include="Xamarin.Essentials">
<Version>1.5.1</Version>
<Version>1.6.0</Version>
</PackageReference>
</ItemGroup>
<ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions Samples/Sample.iOS/Sample.iOS.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Xamarin.Essentials">
<Version>1.5.1</Version>
<Version>1.6.0</Version>
</PackageReference>
<PackageReference Include="Xamarin.TestCloud.Agent" Version="0.21.1" />
<PackageReference Include="Xamarin.TestCloud.Agent" Version="0.22.1" />
</ItemGroup>
<ItemGroup>
<None Include="Info.plist" />
Expand Down
22 changes: 8 additions & 14 deletions ZXing.Net.Mobile.Forms/ZXing.Net.Mobile.Forms.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="MSBuild.Sdk.Extras/2.0.54">
<Project Sdk="MSBuild.Sdk.Extras/3.0.23">
<PropertyGroup>
<TargetFrameworks>netstandard2.0;Xamarin.iOS10;Xamarin.Mac20;MonoAndroid90;MonoAndroid10.0;tizen40</TargetFrameworks>
<TargetFrameworks>netstandard2.0;Xamarin.iOS10;Xamarin.Mac20;MonoAndroid10.0;tizen40</TargetFrameworks>
<TargetFrameworks Condition=" '$(OS)' == 'Windows_NT' ">$(TargetFrameworks);uap10.0.16299;</TargetFrameworks>
<AssemblyName>ZXing.Net.Mobile.Forms</AssemblyName>
<RootNamespace>ZXing.Net.Mobile.Forms</RootNamespace>
Expand Down Expand Up @@ -58,7 +58,7 @@
<Compile Include="**\*.netstandard.*.cs" />
</ItemGroup>
<ItemGroup Condition=" $(TargetFramework.StartsWith('uap10.0')) ">
<PackageReference Include="Microsoft.NETCore.UniversalWindowsPlatform" Version="6.1.9" />
<PackageReference Include="Microsoft.NETCore.UniversalWindowsPlatform" Version="6.2.11" />
<Compile Include="**\*.uwp.cs" />
<Compile Include="**\*.uwp.*.cs" />
<SDKReference Include="WindowsMobile, Version=10.0.16299.0">
Expand All @@ -69,14 +69,7 @@
<Compile Include="**\*.android.cs" />
<Compile Include="**\*.android.*.cs" />
<AndroidResource Include="Resources\xml\*.xml" />
</ItemGroup>
<!-- NOTE: When Android 11.x comes out we neeed to make this check more robust -->
<ItemGroup Condition="$(TargetFramework.StartsWith('MonoAndroid')) And '$(TargetFramework)' != 'MonoAndroid10.0'">
<PackageReference Include="Xamarin.Android.Support.v7.AppCompat" Version="28.0.0.3" />
</ItemGroup>
<!-- NOTE: When Android 11.x comes out we neeed to make this check more robust -->
<ItemGroup Condition="'$(TargetFramework)' == 'MonoAndroid10.0'">
<PackageReference Include="Xamarin.AndroidX.AppCompat" Version="1.1.0" />
<PackageReference Include="Xamarin.AndroidX.AppCompat" Version="1.2.0.6" />
</ItemGroup>
<ItemGroup Condition=" $(TargetFramework.StartsWith('Xamarin.iOS')) ">
<Compile Include="**\*.ios.cs" />
Expand All @@ -89,13 +82,14 @@
<Compile Include="**\*.macos.*.cs" />
</ItemGroup>
<ItemGroup Condition=" $(TargetFramework.StartsWith('tizen')) ">
<PackageReference Include="Tizen.NET" Version="5.0.0.14562" />
<PackageReference Include="Tizen.NET" Version="8.0.0.15631" />
<Compile Include="**\*.tizen.cs" />
<Compile Include="**\*.tizen.*.cs" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Xamarin.Essentials" Version="1.5.1" />
<PackageReference Include="Xamarin.Forms" Version="4.5.0.356" />
<PackageReference Include="Microsoft.NETCore.UniversalWindowsPlatform" Version="6.2.11" />
<PackageReference Include="Xamarin.Essentials" Version="1.6.0" />
<PackageReference Include="Xamarin.Forms" Version="5.0.0.1874" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\ZXing.Net.Mobile\ZXing.Net.Mobile.csproj" />
Expand Down
4 changes: 0 additions & 4 deletions ZXing.Net.Mobile/Android/ZXingScannerFragment.android.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@
using Android.OS;
using Android.Views;
using Android.Widget;
#if __ANDROID_29__
using AndroidX.Fragment.App;
#else
using Android.Support.V4.App;
#endif

namespace ZXing.Mobile
{
Expand Down
4 changes: 0 additions & 4 deletions ZXing.Net.Mobile/Android/ZxingActivity.android.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,7 @@
using Android.Widget;

using ZXing;
#if __ANDROID_29__
using AndroidX.Fragment.App;
#else
using Android.Support.V4.App;
#endif

using System.Linq;
using System.Threading.Tasks;
Expand Down
18 changes: 6 additions & 12 deletions ZXing.Net.Mobile/ZXing.Net.Mobile.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="MSBuild.Sdk.Extras/2.0.54">
<Project Sdk="MSBuild.Sdk.Extras/3.0.23">
<PropertyGroup>
<TargetFrameworks>netstandard2.0;Xamarin.iOS10;Xamarin.Mac20;MonoAndroid90;MonoAndroid10.0;tizen40</TargetFrameworks>
<TargetFrameworks>netstandard2.0;Xamarin.iOS10;Xamarin.Mac20;MonoAndroid10.0;tizen40</TargetFrameworks>
<TargetFrameworks Condition=" '$(OS)' == 'Windows_NT' ">$(TargetFrameworks);uap10.0.16299;</TargetFrameworks>
<AssemblyName>ZXingNetMobile</AssemblyName>
<RootNamespace>ZXing.Net.Mobile</RootNamespace>
Expand Down Expand Up @@ -87,14 +87,7 @@
<Compile Include="**\*.android.*.cs" />
<AndroidResource Include="Resources\layout\*.axml" />
<PackageReference Include="FastAndroidCamera" Version="2.0.0" />
</ItemGroup>
<!-- NOTE: When Android 11.x comes out we neeed to make this check more robust -->
<ItemGroup Condition="$(TargetFramework.StartsWith('MonoAndroid')) And '$(TargetFramework)' != 'MonoAndroid10.0'">
<PackageReference Include="Xamarin.Android.Support.v7.AppCompat" Version="28.0.0.3" />
</ItemGroup>
<!-- NOTE: When Android 11.x comes out we neeed to make this check more robust -->
<ItemGroup Condition="'$(TargetFramework)' == 'MonoAndroid10.0'">
<PackageReference Include="Xamarin.AndroidX.AppCompat" Version="1.1.0" />
<PackageReference Include="Xamarin.AndroidX.AppCompat" Version="1.2.0.6" />
</ItemGroup>
<ItemGroup Condition=" $(TargetFramework.StartsWith('Xamarin.iOS')) ">
<Compile Include="**\*.ios.cs" />
Expand All @@ -107,12 +100,13 @@
<Compile Include="**\*.macos.*.cs" />
</ItemGroup>
<ItemGroup Condition=" $(TargetFramework.StartsWith('tizen')) ">
<PackageReference Include="Tizen.NET" Version="5.0.0.14562" />
<PackageReference Include="Tizen.NET" Version="8.0.0.15631" />
<Compile Include="**\*.tizen.cs" />
<Compile Include="**\*.tizen.*.cs" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Xamarin.Essentials" Version="1.5.1" />
<PackageReference Include="Microsoft.NETCore.UniversalWindowsPlatform" Version="6.2.11" />
<PackageReference Include="Xamarin.Essentials" Version="1.6.0" />
</ItemGroup>
<ItemGroup>
<Reference Include="zxing">
Expand Down

0 comments on commit c734844

Please sign in to comment.