Gradle Source Code
settings.gradle.kts
pluginManagement {
repositories {
google {
content {
includeGroupByRegex("com\\.android.*")
includeGroupByRegex("com\\.google.*")
includeGroupByRegex("androidx.*")
}
}
mavenCentral()
gradlePluginPortal()
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
maven { url = uri("https://repo.combateafraude.com/android/release") }
maven { url = uri("https://raw.githubusercontent.com/iProov/android/master/maven/") }
maven { setUrl("https://maven.fpregistry.io/releases") }
maven { setUrl("https://jitpack.io") }
}
}
rootProject.name = "Example"
include(":app")
build.gradle.kts
plugins {
alias(libs.plugins.android.application)
alias(libs.plugins.jetbrains.kotlin.android)
}
android {
namespace = "io.caf.example"
compileSdk = 34
defaultConfig {
applicationId = "io.caf.example"
minSdk = 26
targetSdk = 34
versionCode = 1
versionName = "1.0"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
packaging {
resources.excludes.add("google/protobuf/*.proto")
resources.pickFirsts.add("google/protobuf/**")
}
buildTypes {
release {
isMinifyEnabled = false
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = "1.8"
}
buildFeatures {
viewBinding = true
}
}
dependencies {
// If you use Protobuf Java, you should add the following dependency
implementation("io.caf.sdk:caffaceliveness.core:{version}")
// If you use Protobuf JavaLite, you should add that instead of the above dependency
// implementation("io.caf.sdk:caffaceliveness.lite:{version}")
implementation(libs.androidx.core.ktx)
implementation(libs.androidx.appcompat)
implementation(libs.material)
implementation(libs.androidx.constraintlayout)
implementation(libs.androidx.navigation.fragment.ktx)
implementation(libs.androidx.navigation.ui.ktx)
testImplementation(libs.junit)
androidTestImplementation(libs.androidx.junit)
androidTestImplementation(libs.androidx.espresso.core)
}
Last updated