Skip to content

Calindra/eitri-android-sms-user-consent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 

Repository files navigation

eitri-android-sms-user-consent

SMS User Consent module for the Eitri Android framework. This module provides one-tap SMS verification without requiring specific message format, integrating seamlessly with the Eitri runtime.

Requirements

  • Android 5.0 (API level 21) or later
  • Google Play Services available on the target device

Installation

The eitri-android-sms-user-consent artifact is available on Maven Central.

Gradle Kotlin DSL (build.gradle.kts)

dependencies {
    implementation("tech.eitri:eitri-android-sms-user-consent:$version")
}

Make sure to replace $version or ${version} with the desired version of the module. You can find the latest version on Maven Central.

Registering SMS User Consent module

import tech.eitri.android.smsuserconsent.SmsUserConsentModule

// [...]

val machineContext = EitriMachineInstanceManager.start()
val mainEitriMachine = machineContext.mainMachine

// configure eitri-machine [...]

// register modules
mainEitriMachine.modules.register(SmsUserConsentModule())

Core Concepts

  • SmsUserConsentModule: The entry point for the module, implementing the EitriModule protocol. It registers the available SMS User Consent methods with the Eitri runtime.

Methods

The module exposes its functionality under the smsUserConsent namespace. Examples of what methods are avaliable and how they can be used can be consulted on the Eitri Bifrost documentation page

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors