Skip to main content
Version: 1.5.4

Sample Applications

Introduction​

Android sample applications can be found in the GitHub repository:

Android Repository v.1.5.4Android Repository v.1.5.4

Steps to Set Up and Run the Applications​

  1. It's necessary to include the user and token provided by Facephi in the local.properties file as indicated in documentation.
  2. The applicationId from the license provided by Facephi must be included in the application's Gradle.
  3. Fill in the SdkData details.

SdkData - Necessary Data for SDK Use​

To ensure the application functions correctly, the following data must be filled in.

In the SdkData class:

  • Necessary data if a service is going to be used to obtain the licenses:
val environmentLicensingData: EnvironmentLicensingData = EnvironmentLicensingData(
apiKey = "....."
)
  • License string if a service is not to be used:
const val LICENSE = "...."
  • Depending on how the license was added adapt the value of the variable:
  const val LICENSE_ONLINE = false
  • Client identifier and type of operation to be used in the initialization:
const val CUSTOMER_ID = "...."
val OPERATION_TYPE = OperationType.ONBOARDING

  • For Selphi, the name of the ZIP file of resources (which will be in the application's assets folder) and the configuration data:
const val SELPHI_RESOURCES = ".....zip"

val selphiConfiguration = SelphiConfigurationData(
...,
resourcesPath = SELPHI_RESOURCES
)
  • For SelphID, the name of the ZIP file of resources (which will be in the application's assets folder) and the configuration data:
const val SELPHID_RESOURCES = "...zip"

val selphIDConfiguration = SelphIDConfigurationData(
...,
resourcesPath = SELPHID_RESOURCES
)
  • IMPORTANT: The applicationId of the application must match the one requested in the license