From 9fe580a0b0625c7b51a5032b11039c43e6111537 Mon Sep 17 00:00:00 2001 From: Phil Hadley Date: Wed, 31 Jul 2024 10:24:02 -0600 Subject: [PATCH] changes need to run the apps for iOS and Android under .NET 8 --- MauiDependencyInjectionSample/MainPage.xaml.cs | 3 --- .../MauiDependencyInjectionSample.csproj | 2 +- .../Platforms/Android/MainApplication.cs | 1 + MauiDependencyInjectionSample/Platforms/iOS/AppDelegate.cs | 1 + MauiDependencyInjectionSample/Platforms/iOS/Info.plist | 2 -- 5 files changed, 3 insertions(+), 6 deletions(-) diff --git a/MauiDependencyInjectionSample/MainPage.xaml.cs b/MauiDependencyInjectionSample/MainPage.xaml.cs index 3fcca1b..fcfae81 100644 --- a/MauiDependencyInjectionSample/MainPage.xaml.cs +++ b/MauiDependencyInjectionSample/MainPage.xaml.cs @@ -1,5 +1,4 @@ using Microsoft.Maui.Controls; -using Microsoft.Maui.Essentials; using System; namespace MauiDependencyInjectionSample @@ -19,8 +18,6 @@ private void OnCounterClicked(object sender, EventArgs e) { count++; CounterLabel.Text = $"Current count: {count}"; - - SemanticScreenReader.Announce(CounterLabel.Text); } } } diff --git a/MauiDependencyInjectionSample/MauiDependencyInjectionSample.csproj b/MauiDependencyInjectionSample/MauiDependencyInjectionSample.csproj index 2452623..d3e6428 100644 --- a/MauiDependencyInjectionSample/MauiDependencyInjectionSample.csproj +++ b/MauiDependencyInjectionSample/MauiDependencyInjectionSample.csproj @@ -1,7 +1,7 @@  - net6.0-ios;net6.0-android;net6.0-maccatalyst + net8.0-ios;net8.0-android;net8.0-maccatalyst $(TargetFrameworks);net6.0-windows10.0.19041 Exe MauiDependencyInjectionSample diff --git a/MauiDependencyInjectionSample/Platforms/Android/MainApplication.cs b/MauiDependencyInjectionSample/Platforms/Android/MainApplication.cs index 619dc85..5c72622 100644 --- a/MauiDependencyInjectionSample/Platforms/Android/MainApplication.cs +++ b/MauiDependencyInjectionSample/Platforms/Android/MainApplication.cs @@ -1,6 +1,7 @@ using Android.App; using Android.Runtime; using Microsoft.Maui; +using Microsoft.Maui.Hosting; using System; namespace MauiDependencyInjectionSample diff --git a/MauiDependencyInjectionSample/Platforms/iOS/AppDelegate.cs b/MauiDependencyInjectionSample/Platforms/iOS/AppDelegate.cs index fab41c9..0bf6f41 100644 --- a/MauiDependencyInjectionSample/Platforms/iOS/AppDelegate.cs +++ b/MauiDependencyInjectionSample/Platforms/iOS/AppDelegate.cs @@ -1,5 +1,6 @@ using Foundation; using Microsoft.Maui; +using Microsoft.Maui.Hosting; namespace MauiDependencyInjectionSample { diff --git a/MauiDependencyInjectionSample/Platforms/iOS/Info.plist b/MauiDependencyInjectionSample/Platforms/iOS/Info.plist index ed2ffb6..0004a4f 100644 --- a/MauiDependencyInjectionSample/Platforms/iOS/Info.plist +++ b/MauiDependencyInjectionSample/Platforms/iOS/Info.plist @@ -4,8 +4,6 @@ LSRequiresIPhoneOS - MinimumOSVersion - 10.3.4 UIDeviceFamily 1