Xamarin support -- ?

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for SQLite
Post Reply
stephenmarcus
Posts: 2
Joined: Fri 05 Jun 2015 05:33

Xamarin support -- ?

Post by stephenmarcus » Fri 05 Jun 2015 05:44

Is this connector 100% compatible with developing C# in Xamarin for mobile?

Pinturiccio
Devart Team
Posts: 2420
Joined: Wed 02 Nov 2011 09:44

Re: Xamarin support -- ?

Post by Pinturiccio » Fri 05 Jun 2015 13:25

We have not tested dotConnect for SQLite with Mono Xamarin, and cannot guarantee their compatibility.

Nevertheless, you can check whether it works with Mono Xamarin by yourself.

dotConnect for SQLite has a Trial version which allows you to evaluate dotConnect for SQLite during 30 days since the provider installation. Trial version of dotConnect for SQLite offers the same features as the Professional edition. You can download the Trial version of dotConnect for SQLite from our site http://www.devart.com/dotconnect/sqlite/download.html

Since dotConnect for SQLite can't be installed on Mono you should install dotConnect for SQLite on a computer with a Windows OS and then copy the required assemblies like Devart.Data.dll or Devart.Data.SQLite.dll to OS with Mono.

Besides, when you create an application that uses Devart assemblies, it must have a license resource. License information is a specially formed embedded resource. It is checked when a connection is opened. As you can't install dotConnect for SQLite on Mono, you will have to build the license resource manually on a Windows computer, and then copy it to the Mono computer and attach it to your project as an Embedded Resource.
For more information, please refer to http://www.devart.com/dotconnect/sqlite ... ml#compile

The license resource can be compiled in the following way:
1) Create a text file named licenses.licx and enter the following text inside the licenses.licx file:
Devart.Data.SQLite.SQLiteConnection, Devart.Data.SQLite
2)Generate the license resource file using the following command line:
"%Compiler Path%\lc.exe /target:MyApplication.exe /complist:licenses.licx /i:"%Assembly Path%\Devart.Data.SQLite.dll"
Where:
- %Compiler Path% is the path to the appropriate lc.exe file (for example, C:\Program Files\Microsoft.NET\SDK\v2.0\Bin);
- MyApplication.exe is the name of your target executable file;
- licenses.licx is your licenses.licx file;
- %Assembly Path% is the Devart.Data.SQLite.dll assembly location.
3) The License compiler will generate the 'MyApplication.exe.licenses' resource file;
4) Add this file to your project as an embedded resource and rebuild the project.

Juansero29
Posts: 2
Joined: Thu 17 May 2018 16:02

Re: Xamarin support -- ?

Post by Juansero29 » Fri 18 May 2018 08:50

When you advice to generate te license with the

Code: Select all

/target:MyApplication.exe
parameter, what would this be for an Android application? The .apk? Or what file should I target to generate the license?

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Re: Xamarin support -- ?

Post by Shalex » Mon 21 May 2018 08:42

Xamarin is currently not supported by Devart ADO.NET product line. We will notify you when the feature is implemented. There is no timeframe at the moment.

You may take a look at our Delphi Data Access Components product line, which supports developing applications for macOS, iOS, Android platforms with Delphi: https://www.devart.com/litedac/ .

Post Reply