Android
To use the Root Detection SDK in your Android project
Copy RootDetectionSDK.aar from the OneSpan Mobile Security Suite package to the aars folder.
Link UtilitiesSDK.aar from the OneSpan Mobile Security Suite package to your project.
Copy the signature file from the OneSpan Mobile Security Suite package to the assets/signature folder.
To use the Root Detection SDK library, you also need to add the following external libraries to your maven/gradle project:
dependencies { implementation 'androidx.annotation:annotation:1.3.0' implementation 'com.esotericsoftware:kryo:5.1.1' implementation 'org.bouncycastle:bcprov-jdk18on:1.81' }
iOS
To use the Root Detection SDK in your iOS project
Link MSSRootDetection.xcframework from the OneSpan Mobile Security Suite package to your Xcode project (linked framework and libraries).
Link the libc++ library from the iOS SDK to your Xcode project via the Link Binary With Libraries build phase (only required if the project is compiled in Objective-C and not in Objective-C++).
Link the UtilitiesSDK.xcframework library from the OneSpan Mobile Security Suite package to your Xcode project (linked framework and libraries).
Copy the signature file from the OneSpan Mobile Security Suite package to the res folder.
Your project must be compiled with the libc++ standard library.
You are now ready to use the Root Detection SDK.
For more information on the functions of the SDK, see Start the analysis and Obtain the signature file.
API reference documentation and sample applications
To learn more about the public APIs and their functions, exceptions, and error codes, refer to the technical documentation that is included in the product package for each SDK and each platform. In the product package, you can also find the sample applications provided for each platform to see examples of how the SDKs can be used.
These sample apps are intended only to demonstrate basic scenarios and SDK usage. They are not designed to be copied directly into production projects!