✨
BotProtection
  • What is BotProtection?
  • Backend integration
    • Architecture
    • Dashboard Description
  • Android usage
    • Installation
    • SDK usage (Kotlin)
  • iOS usage
    • Installation
  • JWT
  • JWT token
    • Python
    • NodeJS
  • Async method api
    • API Description
  • Example of integration
    • For market
Powered by GitBook
On this page
  • Android Studio integration
  • Alternative Integration
  • BotProtection API_KEY

Was this helpful?

  1. Android usage

Installation

PreviousDashboard DescriptionNextSDK usage (Kotlin)

Last updated 5 years ago

Was this helpful?

The BotProtection Android SDK is required to collect data from the device and transfer it to the server.

For implementation, an AAR file for Android will be provided, which will contain an SDK for collecting user behavioral data from the device’s sensors.

Android Studio integration

An example of embedding a library in “Android Studio” IDE:

  • Download AAR file.

  • Go to File > Project Structure.

  • Select Modules, then click + above your app name.

  • Select Import .JAR/.AAR Package.

  • The path to the AAR library should be added to the File name.

  • Click Finish.

  • In Project Structure click Apply and wait for synchronisation. Then you'll be able to see botprotection under your Modules:

  • Go to Dependencies and click + under Declared Dependencies.

  • Select Module Dependencies.

  • Check the box for the added library and click OK.

  • In the Project Structure, click Apply, wait for the synchronisation to pass.

  • Check that the BotProtection library has been added to build.gradle of the main application module.

Alternative Integration

However, if KTS is used or it is not possible to add a module, then the alternative is to add a library via build.gradle (after adding the AAR file to the libs directory inside an application module):

implementation files('libs/BotProtection*.aar')

BotProtection API_KEY

Next, you need to paste the resulting KEY API into AndroidManifest.xml:

 <application>
 //...
 
 <meta-data android:name="com.botProtection.ApiKey" 
            android:value="<api_key>" />
 
 //...
 </application>
File > Project Structure