BEAR SDK release 3.0.0 brings many improvements and better practices to make your integration smoother. This section describes what steps you need to follow to update your application with the version 3.0.0 of the BEAR SDK.
Update dependency version
First update the version of the BEAR SDK dependency to 3.0.0 in your application’s
transitive = true
Support 64-bit architectures
This update introduces support for 64-bit architectures to meet
Google Play requirements.
This will require change on your side if you use ABI splits
at your application. If so, your application’s
should include both
arm64-v8a for target ABIs.
include "armeabi-v7a", "arm64-v8a"
Minimum Android API Level
Due to constantly decreasing number of devices running Android 4.4 the
minSdkVersion has been increased from API Level 19 to API Level 21.
This means that application released with SDK version 3.0.0 will be
compatible with devices running Android 5.0 and more.
To apply this change, you have to update your minSdkVersion
to at least
21 at your application’s
Secret key has been improved to be more secure and robust.
This means that previously provided secret keys will no longer be
working with SDK version 3.0.0 and new one must be provided by BEAR.
BearHandler class was renamed to
You will have to change import statements and references to this class.
getHandler() method from
ArActivity has been renamed to
InitStatusListener and Bear Callback
InitStatusListener class has been removed together with
removeArViewInitListener(InitStatusListener listener) and
isArViewInitialized() methods from
To listen for initialization of the augmented reality view,
onArViewInitialized() has been added to
onError(Throwable error, boolean isMarkerFromScan) callback
BearCallback has been changed to
BearErrorException class has been added to provide
more detailed errors specific to BEAR SDK.
onCancel() callback has been added to
to handle case when screenshot task may be cancelled.
NetworkStatus classes have been removed
removeNetworkListener(NetworkStatusListener listener) methods
ScanStatus class have been updated to be more complete.