For the complete documentation index, see llms.txt. This page is also available as Markdown.

Android

Native installation guide for hybrid frameworks.

Make sure to declare the required permissions in your AndroidManifest.xml in the client application:

<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.INTERNET" />

Dependency declaration

Set up the repository and base dependency

For security and maintenance reasons, the new components of the SDKMobile are stored in private repositories that require specific credentials to access them. You must obtain those credentials through the support team from Facephi.

Once the credentials have been obtained, the following code fragment must be included in the file settings.gradle:

mavenCentral()
maven {
    Properties props = new Properties()
    def propsFile = new File('local.properties')
    if(propsFile.exists()){
        props.load(new FileInputStream(propsFile))
    }
    name="external"
    url = uri("https://facephicorp.jfrog.io/artifactory/maven-pro-fphi")
    credentials {
        username = props["artifactory.user"] ?: System.getenv("USERNAME_ARTIFACTORY")
        password = props["artifactory.token"] ?: System.getenv("TOKEN_ARTIFACTORY")
    }
}

The credentials will be included in the file local.properties with the following structure:

The other option is to set the environment variables and retrieve them with the command System.getenv() as shown in the code.

Last updated