Upgrade Guide for Anyline 43+
We have completed a major update to the Anyline classes in version 43. If you were coming from a previous Anyline version, it is important to go over some of the more significant changes in this page.
Updating the JSON configuration
Here’s a direct comparison of the same JSON configuration in the old vs. new style:
Old JSON |
New JSON |
|
|
1 | camera is now called cameraConfig (see 7.) |
2 | flash is now called flashConfig (see 8.) |
3 | viewPlugin is now called viewPluginConfig (see 9.) |
4 | plugin is now called pluginConfig and does not include a plugin anymore, instead it includes the XXXconfig (in this case meterConfig ) |
5 | scanFeedback is now called scanFeedbackConfig (see 11.) |
6 | cancelOnResult is not part of the viewPlugin anymore, instead it is part of the pluginConfig (see 10.) |
Fix "Unsupported class file major version 60"
Upon upgrading from a a version of Anyline SDK earlier than 43.x.x, if you encounter the error Unsupported class file major version 60 on Android, please edit your project’s gradle.properties
file to include the following lines:
android.jetifier.ignorelist=moshi-1.14.0
android.jetifier.blacklist=moshi-1.14.0
Get help
If there is anything you are missing, you require support, or want to provide us with feedback, please reach out to us via https://support.anyline.com, where you either may find helpful information in our Knowledge Base or you can open a Support Ticket for more specific inquiries. In order to better assist you, please include any code of your Anyline integration and any ScanViewConfig you are using. |