Xamarin Steps Project
This section details the steps required to integrate our library into a Xamarin project.
Download Required Files
iOS and Android builds are available for download. Depending on your license, select the appropriate version. If you do not require the plate decoder, lighter versions of the builds are also available.
Create the DLL
- Create a Binding Project:
- From the home page, select
New → Android Library → Bindings Library
- From the home page, select
- Add the Framework:
- In the file explorer, right-click on the
Jars
directory and selectAdd → Existing file
- Then choose your
smartscan-release.aar
framework file
- In the file explorer, right-click on the
- Generate the DLL:
- Set the build mode to
Release
and build the project - Once the build is complete, retrieve the DLL file from the
/bin/<project_name>.dll
folder
- Set the build mode to
Integrate the library
-
Add the decoding library:
- Place the decoding library files for each architecture in a
/libs
directory:
|-- libs
|-- arm64-v8a
|-- armeabi-v7a
|-- x86
|-- x86-64 - Place the decoding library files for each architecture in a
-
Update Build Action:
- In the file explorer, right-click each
.so
file, selectBuild actions
and set the action toAndroidNativeLibrary
- In the file explorer, right-click each
Integrate the DLL
- Add the DLL File:
- Place the DLL file in the
/dll
directory
- Place the DLL file in the
- Add the DLL Reference:
- In the file explorer, right-click on
References
and selectAdd Project Reference
- Go to the
.NET Assembly
tab, clickBrowse
, and select your DLL file
- In the file explorer, right-click on
Finally, follow the steps outlined in the Base Implementation section.