Skip to content

Paso 2 - Inicialización del SDK

Para la integración se debe tener los siguientes accesos:
1. Codigo de convenio el cual es de tipo AccesToken
2. Usuario de tipo String
3. Password de tipo String
Implementación SDK:
LibraryReconoSer.init(app, context, guidConv, datos, clientId, clientSecret );

Versión de java: JavaVersion.VERSION_17

Inplementación de jitpack:
allprojects {
repositories {
mavenCentral()
maven { url "<https://jitpack.io>" }
google()
maven {
//url "<https://www.jitpack.io>"
url '<https://jitpack.io>'
credentials { username authToken }
}
}
}


Ejemplo implementación del Tag (develop y production):
defaultConfig {
missingDimensionStrategy "releaseType", "develop", "staging", "production"
}
flavorDimensions += ['releaseType']productFlavors {
develop {
dimension "releaseType"
versionNameSuffix '-develop'
buildConfigField "String", "RETROFIT_OLIMPIA_URL", project.property('URL_OLIMPIA_DEV')
buildConfigField "String", "RETROFIT_RECONOSERID_URL", project.property('URL_RECONOSERID_DEV')
buildConfigField "String", "USER_TOKEN", project.property('USER_TOKEN')
buildConfigField "String", "PASS_TOKEN", project.property('PASS_TOKEN')
}
production {
dimension "releaseType"
versionNameSuffix '-production'
buildConfigField "String", "RETROFIT_OLIMPIA_URL", project.property('URL_OLIMPIA_PRO')
buildConfigField "String", "RETROFIT_RECONOSERID_URL", project.property('URL_RECONOSERID_PRO')
buildConfigField "String", "USER_TOKEN", project.property('USER_TOKEN')
buildConfigField "String", "PASS_TOKEN", project.property('PASS_TOKEN')
}
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}


Want to print your doc?
This is not the way.
Try clicking the ··· in the right corner or using a keyboard shortcut (
CtrlP
) instead.