diff --git a/Source/ZXing.Net.Mobile.Forms.macOS/ZXing.Net.Mobile.Forms.macOS.csproj b/Source/ZXing.Net.Mobile.Forms.macOS/ZXing.Net.Mobile.Forms.macOS.csproj index c1321a3bf..13a98c62d 100644 --- a/Source/ZXing.Net.Mobile.Forms.macOS/ZXing.Net.Mobile.Forms.macOS.csproj +++ b/Source/ZXing.Net.Mobile.Forms.macOS/ZXing.Net.Mobile.Forms.macOS.csproj @@ -17,7 +17,7 @@ true full false - bin\Debug + ..\..\Build\Forms\Debug\xammac\ DEBUG; prompt 4 @@ -32,7 +32,7 @@ true - bin\Release + ..\..\Build\Forms\Release\xammac\ prompt 4 diff --git a/Source/ZXing.Net.Mobile.macOS/ZXing.Net.Mobile.macOS.csproj b/Source/ZXing.Net.Mobile.macOS/ZXing.Net.Mobile.macOS.csproj index ed8f37cbf..ab5bdb892 100644 --- a/Source/ZXing.Net.Mobile.macOS/ZXing.Net.Mobile.macOS.csproj +++ b/Source/ZXing.Net.Mobile.macOS/ZXing.Net.Mobile.macOS.csproj @@ -6,8 +6,8 @@ {A7E26AE0-12AF-4CFD-9B1E-3101347CC6F4} {A3F8F2AB-B479-4A4A-A458-A89E7DC349F1};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} Library - ZXing.Net.Mobile.macOS - ZXing.Net.Mobile.macOS + ZXing.Mobile + ZXingNetMobile v2.0 Xamarin.Mac Resources @@ -16,7 +16,7 @@ true full false - bin\Debug + ..\..\Build\Debug\xammac\ DEBUG; prompt 4 @@ -31,7 +31,7 @@ true - bin\Release + ..\..\Build\Release\xammac\ prompt 4 @@ -55,6 +55,10 @@ + + {7528DD0A-1781-47F4-ADBF-EEDDB011F6BB} + ZXing.Net.Mobile.Core + {24B441F2-CBE9-4405-9FD0-72EBCBEA0EC3} zxing.portable diff --git a/ZXing.Net.Mobile.Forms.nuspec b/ZXing.Net.Mobile.Forms.nuspec index dd25ea470..288a9e3e0 100644 --- a/ZXing.Net.Mobile.Forms.nuspec +++ b/ZXing.Net.Mobile.Forms.nuspec @@ -43,6 +43,8 @@ + + @@ -68,6 +70,10 @@ + + + + diff --git a/ZXing.Net.Mobile.nuspec b/ZXing.Net.Mobile.nuspec index 21cd5878c..c48c153d5 100644 --- a/ZXing.Net.Mobile.nuspec +++ b/ZXing.Net.Mobile.nuspec @@ -62,6 +62,11 @@ + + + + + diff --git a/readme.md b/readme.md index 282fd84b1..ca96bbdbd 100644 --- a/readme.md +++ b/readme.md @@ -2,7 +2,7 @@ ![ZXing.Net.Xamarin Logo](https://raw.github.com/nblockchain/ZXing.Net.Xamarin/master/zxing.net.mobile_128x128.png) -ZXing.Net.Xamarin is a C#/.NET library based on the open source Barcode Library: [ZXing (Zebra Crossing)](https://github.com/zxing/zxing), using the [ZXing.Net Port](https://github.com/micjahn/ZXing.Net). It works with Xamarin.iOS, Xamarin.Android, and Windows Phone. The goal of ZXing.Net.Xamarin is to make scanning barcodes as effortless and painless as possible in your own applications. The new iOS7 AVCaptureSession barcode scanning is now also supported! +ZXing.Net.Xamarin is a C#/.NET library based on the open source Barcode Library: [ZXing (Zebra Crossing)](https://github.com/zxing/zxing), using the [ZXing.Net Port](https://github.com/micjahn/ZXing.Net). It works with Xamarin.iOS, Xamarin.Android, Xamarin.Mac, and Windows Phone. The goal of ZXing.Net.Xamarin is to make scanning barcodes as effortless and painless as possible in your own applications. The new iOS7 AVCaptureSession barcode scanning is now also supported! [![AzureDevOps CI status](https://dev.azure.com/diginex/ZXing.Net.Xamarin/_apis/build/status/ZXing.Net.Xamarin-CI)](https://dev.azure.com/diginex/ZXing.Net.Xamarin/_build/latest?definitionId=1) [![NuGet](https://img.shields.io/nuget/v/ZXing.Net.Xamarin.svg)](https://www.nuget.org/packages/ZXing.Net.Xamarin/) @@ -65,6 +65,15 @@ ZXing.Net.Mobile.Forms.iOS.Platform.Init(); ``` +##### macOS + +In your `AppDelegate`'s `DidFinishedLaunching (..)` implementation, call: + +```csharp +ZXing.Net.Mobile.Forms.macOS.Platform.Init(); +``` + + ##### Windows Phone In your main `Page`'s constructor, you should add: @@ -85,12 +94,13 @@ If you notice that finishing scanning or pressing the back button is causing you ### Features - Xamarin.iOS +- Xamarin.Mac (rendering only, not scanning) - Xamarin.Android (Including Google Glass) - Windows Phone 8 - Simple API - Scan in as little as 2 lines of code! - Scanner as a View - UIView (iOS) / Fragment (Android) / Control (WP) - + ### Android Versions The component should work on Android 2.2 or higher. In Xamarin.Android there are 3 places in the project settings relating to Android version. YOU ***MUST*** set the Project Options -> Build -> General -> Target Framework to ***2.3*** or higher. If you still want to use 2.2, you can set the Project Options -> Build -> Android Application -> Minimum Android version to 2.2, but be sure to set the Target Android version in this section to 2.3 or higher.