Step 1: Add OtplessSecureService dependencies

To integrate OtplessSecureService into your project, include the following dependency in your app-level build.gradle file under the dependencies section:

build.gradle
// Otpless auth SDK dependency (required)
implementation 'io.github.otpless-tech:otpless-android-sdk:2.5.2'
// Otpless Secure SDK dependency 
implementation 'io.github.otpless-tech:otpless-secure-sdk:0.1.5'

In your settings.gradle file, add the following dependencies:

settings.gradle
dependencyResolutionManagement {  
  repositories {  
        maven {  url 'https://maven.fpregistry.io/releases'  }  
        maven {  url 'https://jitpack.io'  }  
  }
 }

Make sure to sync your project with Gradle after adding this dependency.

Step 2: Initialize OtplessView in your LoginActivity

First, import OtplessView:

import com.otpless.main.OtplessView;

Declare an OtplessView instance:

OtplessView otplessView;

Initialize OtplessView in onCreate() of your activity:

otplessView = OtplessManager.getInstance().getOtplessView(this);

Step 3: Attach OtplessSecureService in your activity

otplessView.attachOtplessSecureService(  
        OtplessSecureManager.INSTANCE.getOtplessSecureService(this, YOUR_APP_ID)  
);

Replace YOUR_APP_ID with your actual App ID provided in your OTPLESS dashboard.