Getting Started
Requirements
License Key
A license key linked to your application is needed to use MobbScan Xamarin. Please, contact us to obtain one if you don't have one yet, or ask your contact person at Mobbeel.
Dependencies
Frameworks
- NETStandard.Library
2.1.0
NuGet Packages
Id | Version |
---|---|
Xamarin.Forms | 4.4.0.991265 |
Xamarin.Essentials | 1.3.1 |
NuGet Packages
Id | Version |
---|---|
Xamarin.Forms | 4.4.0.991265 |
Xamarin.Essentials | 1.3.1 |
Xamarin.Android.Support.Core.Utils | 28.0.0.3 |
Plugin.CurrentActivity | 2.1.0.4 |
Xamarin.Kotlin.StdLib.Jdk7 | 1.3.50.1 |
GoogleGson | 2.8.5 |
Assembly References
Id | Version |
---|---|
Mono.Android (Xamarin.Android 9.0 Support) | 0.0.0.0 |
EventBus.Android.Binding | 2.4.0.0 |
Protocol.Buffers.Binding | 2.5.0.0 |
SpongyCastle.Core.Android.Binding | 1.54.0.0 |
SpongyCastle.Pkix.Android.Binding | 1.54.0.0 |
SpongyCastle.Prov.Android.Binding | 1.54.0.0 |
TessTwo.Android.Binding | 9.0.0.0 |
Assemblies in italics are supplied within
libs/third-party/Android
folder. You may link those ones or create your own binding libraries for the required Android dependencies (learn more).
NuGet Packages
Id | Version |
---|---|
Xamarin.Forms | 4.4.0.991265 |
Xamarin.Essentials | 1.3.1 |
Assembly References
Id | Version |
---|---|
Xamarin.iOS | 0.0.0.0 |
Tooling
- NuGet Package Manager (nuget)
Installation & Configuration
MobbScan Package Setup
Ensure that you meet all the requirements exposed above. Please, make sure you followed the instructions for all hte required packages to set them up as some of them may need extra configuration (ie: Plugin.CurrentActivity)
Add the supplied
Mobbeel.MobbScan
package to your local NuGet repository by running the following command:$ nuget add path_to_libs/Mobbeel.MobbScan.nupkg -source your_local_nuget_repo_folder
Tip! Find out here how to set up a local NuGet repository.
Install the
Mobbeel.MobbScan
package into your .NET Standard project and Client projectsRegister
MobbScan API
implementation in the Xamarin Forms Dependency Service of both Client projects. The registration should be done before any reference toMobbScan API
takes place in your code. The following points are good places to register the dependency:
/* MainActivity.cs */
protected override void OnCreate(Bundle savedInstanceState)
{
...
CrossCurrentActivity.Current.Init(this, savedInstanceState);
Xamarin.Forms.DependencyService.Register<XMobbScanAPI>();
LoadApplication(new App());
}
/* AppDelegate.cs */
public override bool FinishedLaunching(UIApplication app, NSDictionary options)
{
...
Xamarin.Forms.DependencyService.Register<XMobbScanAPI>();
LoadApplication(new App());
return base.FinishedLaunching(app, options);
}
Platform Specific Configuration
Some aditional setup is required depending on the platform.
- Add the required permissions. Learn more in point 4 of this document.
- Select
d8
as Dex Compiler. Go toProject Options > Build > Android Build > General
and select:
Dex Compiler: d8
- Multi-Dex must be enabled. Go to
Project Options > Build > Android Build > General
and check:
☑︎ Enable Multi-Dex
- Set the linker behaviour. Navigate to
Project Options > Build > iOS Build > Code Generation & Runtime
and select:
Linker behavior: Link All