From c7c8b808dbbf936bfc6eab7f7523c9963fd6f204 Mon Sep 17 00:00:00 2001 From: Morten Nielsen Date: Tue, 5 Dec 2023 20:18:35 -0800 Subject: [PATCH] v.200.3 * Upgrade to .NET 8 * Update to 200.3 * Fix artoolkit build --- .../ARToolkit.SampleApp.Android.csproj | 4 +- .../ARToolkit.SampleApp.UWP.csproj | 2 +- .../ARToolkit.SampleApp.iOS.csproj | 4 +- .../ARToolkit.Samples.Maui.csproj | 90 +++++++++---------- .../Esri.ArcGISRuntime.ARToolkit.Maui.csproj | 6 +- src/ARToolkit/ARSceneView.Android.cs | 6 +- .../Esri.ArcGISRuntime.ARToolkit.csproj | 23 +++-- src/Directory.Build.props | 30 +------ .../Samples/OverviewMapSample.xaml.cs | 3 +- .../Samples/PopupViewerSample.xaml.cs | 4 +- .../Toolkit.SampleApp.Maui.csproj | 10 +-- .../Toolkit.Samples.UWP.csproj | 2 +- .../Toolkit.SampleApp.WPF.csproj | 6 +- .../Package.appxmanifest | 8 +- .../Toolkit.SampleApp.WinUI.csproj | 8 +- src/version.json | 2 +- 16 files changed, 93 insertions(+), 115 deletions(-) diff --git a/src/ARSamples/ARToolkit.SampleApp.Android/ARToolkit.SampleApp.Android.csproj b/src/ARSamples/ARToolkit.SampleApp.Android/ARToolkit.SampleApp.Android.csproj index 839518cd7..53c4ba7e1 100644 --- a/src/ARSamples/ARToolkit.SampleApp.Android/ARToolkit.SampleApp.Android.csproj +++ b/src/ARSamples/ARToolkit.SampleApp.Android/ARToolkit.SampleApp.Android.csproj @@ -1,6 +1,6 @@  - net6.0-android + net8.0-android 26 Exe enable @@ -25,6 +25,6 @@ - + \ No newline at end of file diff --git a/src/ARSamples/ARToolkit.SampleApp.UWP/ARToolkit.SampleApp.UWP.csproj b/src/ARSamples/ARToolkit.SampleApp.UWP/ARToolkit.SampleApp.UWP.csproj index ad9e56cbd..6154e07cf 100644 --- a/src/ARSamples/ARToolkit.SampleApp.UWP/ARToolkit.SampleApp.UWP.csproj +++ b/src/ARSamples/ARToolkit.SampleApp.UWP/ARToolkit.SampleApp.UWP.csproj @@ -11,7 +11,7 @@ ARToolkit.SampleApp.UWP en-US UAP - 10.0.17763.0 + 10.0.19041.0 10.0.$(ArcGIS_MinimumSupportedWindowsBuild).0 14 512 diff --git a/src/ARSamples/ARToolkit.SampleApp.iOS/ARToolkit.SampleApp.iOS.csproj b/src/ARSamples/ARToolkit.SampleApp.iOS/ARToolkit.SampleApp.iOS.csproj index f24256213..a3eb77451 100644 --- a/src/ARSamples/ARToolkit.SampleApp.iOS/ARToolkit.SampleApp.iOS.csproj +++ b/src/ARSamples/ARToolkit.SampleApp.iOS/ARToolkit.SampleApp.iOS.csproj @@ -1,10 +1,10 @@ - net6.0-ios + net8.0-ios Exe enable true - 14.0 + 15.0 diff --git a/src/ARSamples/ARToolkit.Samples.Maui/ARToolkit.Samples.Maui.csproj b/src/ARSamples/ARToolkit.Samples.Maui/ARToolkit.Samples.Maui.csproj index 0be5b22ea..99f342bc2 100644 --- a/src/ARSamples/ARToolkit.Samples.Maui/ARToolkit.Samples.Maui.csproj +++ b/src/ARSamples/ARToolkit.Samples.Maui/ARToolkit.Samples.Maui.csproj @@ -1,49 +1,49 @@  - - net7.0-android;net7.0-ios - Exe - ARToolkit.Samples.Maui - true - true - enable - 10 - - - ARToolkit.Maui - - - com.esri.artoolkit.samples.maui - 6BA8F463-E9A3-4E0C-AA27-54A3CB931C0C - - - 1.0 - 1 - - 14.2 - 26.0 - 10.0.17763.0 - 10.0.17763.0 - $(DefineConstants);MAUI - - - - - - - - - - - - - - - - - - - + + net8.0-android;net8.0-ios + Exe + ARToolkit.Samples.Maui + true + true + enable + 10 + + + ARToolkit.Maui + + + com.esri.artoolkit.samples.maui + 6BA8F463-E9A3-4E0C-AA27-54A3CB931C0C + + + 1.0 + 1 + + 15.0 + 26.0 + 10.0.19041.0 + 10.0.19041.0 + $(DefineConstants);MAUI + + + + + + + + + + + + + + + + + + + @@ -57,6 +57,6 @@ - + diff --git a/src/ARToolkit.Maui/Esri.ArcGISRuntime.ARToolkit.Maui.csproj b/src/ARToolkit.Maui/Esri.ArcGISRuntime.ARToolkit.Maui.csproj index d36656a1a..210aeb2ae 100644 --- a/src/ARToolkit.Maui/Esri.ArcGISRuntime.ARToolkit.Maui.csproj +++ b/src/ARToolkit.Maui/Esri.ArcGISRuntime.ARToolkit.Maui.csproj @@ -1,7 +1,7 @@  - net7.0;$(NetAndroidTargetFramework);$(NetiOSTargetFramework) + net8.0;$(NetAndroidTargetFramework);$(NetiOSTargetFramework) ArcGIS Maps SDK for .NET Augmented Reality (AR) controls and utilities for .NET MAUI apps including .NET for Android and .NET for iOS ArcGIS Cartography Geo Geographic Geography Geolocation Geospatial GIS Latitude Location Longitude Map Mapping Maps Places Spatial Augmented Reality AR 3D .NET MAUI Android iOS toolkit true @@ -9,13 +9,13 @@ enable enable 10 - 14.0 + 15.0 26.0 $(NoWarn);ESRI8000 false - + $(DefineConstants);NETSTANDARD;NETSTANDARD2_0 diff --git a/src/ARToolkit/ARSceneView.Android.cs b/src/ARToolkit/ARSceneView.Android.cs index a3755edc2..ce5735ed0 100644 --- a/src/ARToolkit/ARSceneView.Android.cs +++ b/src/ARToolkit/ARSceneView.Android.cs @@ -19,8 +19,8 @@ using System.Threading.Tasks; using Android.Content; using Android.Runtime; -using Android.Support.V4.App; -using Android.Support.V4.Content; +using AndroidX.Core.App; +using AndroidX.Core.Content; using Esri.ArcGISRuntime.Mapping; using Esri.ArcGISRuntime.UI.Controls; using Google.AR.Core; @@ -249,7 +249,7 @@ private void StartArCoreSession() throw new NotSupportedException("Context must be an instance of Activity"); } - if(IsUsingARCore && RenderVideoFeed && ContextCompat.CheckSelfPermission(activity, Android.Manifest.Permission.Camera) != Android.Content.PM.Permission.Granted) + if(IsUsingARCore && RenderVideoFeed && AndroidX.Core.Content.ContextCompat.CheckSelfPermission(activity, Android.Manifest.Permission.Camera) != Android.Content.PM.Permission.Granted) { ActivityCompat.RequestPermissions(activity, new string[] { Android.Manifest.Permission.Camera }, 0); return; diff --git a/src/ARToolkit/Esri.ArcGISRuntime.ARToolkit.csproj b/src/ARToolkit/Esri.ArcGISRuntime.ARToolkit.csproj index 5238af743..0cf00a38d 100644 --- a/src/ARToolkit/Esri.ArcGISRuntime.ARToolkit.csproj +++ b/src/ARToolkit/Esri.ArcGISRuntime.ARToolkit.csproj @@ -1,7 +1,7 @@ - netstandard2.0;net6.0;$(NetAndroidTargetFramework);$(NetiOSTargetFramework) + netstandard2.0;net8.0;$(NetAndroidTargetFramework);$(NetiOSTargetFramework) ArcGIS Maps SDK for .NET Augmented Reality (AR) controls and utilities for .NET Android and .NET iOS apps. ArcGIS Cartography Geo Geographic Geography Geolocation Geospatial GIS Latitude Location Longitude Map Mapping Maps Places Spatial Augmented Reality AR 3D .NET Android iOS toolkit Esri.ArcGISRuntime.ARToolkit @@ -10,12 +10,12 @@ AnyCPU 8.0 enable - 14.0 - 26.0 + 15.0 + 26.0 $(NoWarn);ESRI8000 - + $(DefineConstants);NETSTANDARD;NETSTANDARD2_0 @@ -26,23 +26,22 @@ - - - + + + MSBuild:UpdateGeneratedFiles - - - + + - + @@ -50,7 +49,7 @@ - + diff --git a/src/Directory.Build.props b/src/Directory.Build.props index 16a1cf1da..3f85bef49 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -1,8 +1,8 @@ - 200.2.0 - 200.2.0 + 200.3.0 + 200.3.0 Esri Inc. @@ -32,23 +32,8 @@ true - - - 17763 - 19041 - 10.0.$(WindowsSDKTargetBuild).0 - 10.0.$(ArcGISRuntime_MinimumSupportedWindowsBuild).0 - net472 - uap10.0.$(WindowsSDKTargetBuild) - net6.0-windows10.0.$(WindowsSDKTargetBuild).0 - net7.0 - $(NETMauiTarget)-windows10.0.$(WindowsSDKTargetBuild).0 - $(NETMauiTarget)-android33.0 - $(NETMauiTarget)-maccatalyst16.1 - $(NETMauiTarget)-ios16.1 - - - + + 19041 19041 10.0.$(WindowsSDKTargetBuild).0 @@ -110,13 +95,6 @@ - - - - -