Browse Source

Compatibility updates for Blouetooth and Barcode Scanner

frogsoftware 2 months ago
parent
commit
16f89984f6

+ 1 - 0
InABox.Avalonia.Platform.Android/AppVersion.Android.cs

@@ -1,4 +1,5 @@
 using System.Text.RegularExpressions;
+using Android.App;
 using Android.Content;
 using Android.Runtime;
 using InABox.Core;

+ 1 - 0
InABox.Avalonia.Platform.Android/Barcodes/BarcodeView.cs

@@ -6,6 +6,7 @@ using System.Collections.Generic;
 using System.Linq;
 using System.Text;
 using System.Threading.Tasks;
+using Android.Widget;
 
 namespace InABox.Avalonia.Platform.Android.Barcodes;
 

+ 1 - 0
InABox.Avalonia.Platform.Android/Barcodes/CameraManager.cs

@@ -1,6 +1,7 @@
 using Android;
 using Android.Content;
 using Android.Graphics;
+using Android.Widget;
 using AndroidX.Camera.Core;
 using AndroidX.Camera.Core.ResolutionSelector;
 using AndroidX.Camera.View;

+ 1 - 0
InABox.Avalonia.Platform.Android/Bluetooth/Android_ConnectedBluetoothDevice.cs

@@ -1,4 +1,5 @@
 using System.Text;
+using Android.App;
 using Android.Bluetooth;
 
 namespace InABox.Avalonia.Platform.Android;

+ 2 - 1
InABox.Avalonia.Platform.Android/Bluetooth/Bluetooth.Android.cs

@@ -1,4 +1,5 @@
-using Android.Bluetooth;
+using Android.App;
+using Android.Bluetooth;
 using Android.Bluetooth.LE;
 using Android.Content;
 using InABox.Core;

+ 2 - 2
InABox.Avalonia.Platform.Desktop/InABox.Avalonia.Platform.Desktop.csproj

@@ -1,7 +1,7 @@
 <Project Sdk="Microsoft.NET.Sdk">
 
     <PropertyGroup>
-        <TargetFramework>net9.0-windows10.0.26100.0</TargetFramework>
+        <TargetFramework>net8.0-windows10.0.26100.0</TargetFramework>
         <ImplicitUsings>enable</ImplicitUsings>
         <RuntimeIdentifiers>win-x64</RuntimeIdentifiers>
         <Nullable>enable</Nullable>
@@ -16,7 +16,7 @@
 
     <ItemGroup>
         <PackageReference Include="bblanchon.PDFium.Win32" Version="135.0.7019" />
-        <PackageReference Include="Microsoft.Maui.Essentials" Version="9.0.90" />
+        <PackageReference Include="Microsoft.Maui.Essentials" Version="8.0.100" />
         <PackageReference Include="PDFtoImage" Version="4.1.1" />
         <PackageReference Include="SkiaSharp" Version="2.88.9" />
         <PackageReference Include="Syncfusion.Pdf.Wpf" Version="29.2.7" />

+ 0 - 18
InABox.Serialization.Shared/ISerializer.cs

@@ -1,18 +0,0 @@
-using System;
-using System.Collections;
-using System.Collections.Generic;
-using System.Diagnostics.Contracts;
-using System.Reflection;
-
-namespace InABox.Serialization
-{
-
-    public interface ISerializer<TFormat>
-    {
-        TFormat Serialize<TType>(TType o); // where TType : BaseObject, new();
-        TType Deserialize<TType>(TFormat data); // where TType : BaseObject, new();
-    }
-
-
-
-}

+ 0 - 14
InABox.Serialization.Shared/InABox.Serialization.Shared.projitems

@@ -1,14 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
-  <PropertyGroup>
-    <MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
-    <HasSharedItems>true</HasSharedItems>
-    <SharedGUID>9a83e0e4-ec41-45c4-aca6-669e844e261a</SharedGUID>
-  </PropertyGroup>
-  <PropertyGroup Label="Configuration">
-    <Import_RootNamespace>InABox.Serialization.Shared</Import_RootNamespace>
-  </PropertyGroup>
-  <ItemGroup>
-    <Compile Include="$(MSBuildThisFileDirectory)ISerializer.cs" />
-  </ItemGroup>
-</Project>

+ 0 - 18
InABox.Serialization.Shared/InABox.Serialization.Shared.shproj

@@ -1,18 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
-  <PropertyGroup Label="Globals">
-    <ProjectGuid>9a83e0e4-ec41-45c4-aca6-669e844e261a</ProjectGuid>
-    <MinimumVisualStudioVersion>14.0</MinimumVisualStudioVersion>
-    <ReleaseVersion>1.00</ReleaseVersion>
-    <SynchReleaseVersion>false</SynchReleaseVersion>
-  </PropertyGroup>
-  <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
-  <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\CodeSharing\Microsoft.CodeSharing.Common.Default.props" />
-  <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\CodeSharing\Microsoft.CodeSharing.Common.props" />
-  <PropertyGroup />
-  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
-    <OutputPath>bin\Debug\</OutputPath>
-  </PropertyGroup>
-  <Import Project="InABox.Serialization.Shared.projitems" Label="Shared" />
-  <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\CodeSharing\Microsoft.CodeSharing.CSharp.targets" />
-</Project>