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
Jarsdirectory and selectAdd → Existing file - Then choose your
smartscan-release.aarframework file
- In the file explorer, right-click on the
- Generate the DLL:
- Set the build mode to
Releaseand build the project - Once the build is complete, retrieve the DLL file from the
/bin/<project_name>.dllfolder
- Set the build mode to
Integrate the library
-
Add the decoding library:
- Place the decoding library files for each architecture in a
/libsdirectory:
|-- 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
.sofile, selectBuild actionsand set the action toAndroidNativeLibrary
- In the file explorer, right-click each
Integrate the DLL
- Add the DLL File:
- Place the DLL file in the
/dlldirectory
- Place the DLL file in the
- Add the DLL Reference:
- In the file explorer, right-click on
Referencesand selectAdd Project Reference - Go to the
.NET Assemblytab, clickBrowse, and select your DLL file
- In the file explorer, right-click on
Finally, follow the steps outlined in the Base Implementation section.