AgentCASH Android SDK – Installation¶
Prerequisites and installation notes¶
In order to use SDK, following code needs to be added to the project files.
Library files¶
Add following libraries into libs
folder:
agentcash-sdk-dev.1.1.4.aar
agentcash-sdk-prod.1.1.4.aar
agentcash-miura.1.1.3.aar
agentcash-volleyex.1.0.0.aar
Gradle config¶
Following code should be added to gradle project:
repositories {
maven { url 'https://jitpack.io' }
}
Following code should be added to android closure:
packagingOptions {
exclude 'META-INF/LICENSE'
exclude 'META-INF/NOTICE'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
exclude 'LICENSE.txt'
exclude 'META-INF/services/com.fasterxml.jackson.core.JsonFactory'
}
Following dependencies should be added:
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile(name: 'agentcash-volleyex.1.0.0', ext: 'aar')
compile(name: 'agentcash-miura.1.1.3', ext: 'aar')
compile(name: 'agentcash-sdk-dev.1.1.4', ext: 'aar')
// compile(name: 'agentcash-sdk-prod.1.1.4', ext: 'aar')
compile 'com.github.mposSVK:acceptSDK-Android:1.5.6.1.'
compile 'com.github.mposSVK:accept-android-extension-spire:1.5.4.1'
compile 'com.google.code.gson:gson:2.7'
compile 'org.slf4j:slf4j-api:1.7.21'
compile 'com.github.tony19:logback-android-classic:1.1.1-6'
compile 'com.logentries:logentries-appender:1.1.35'
}
String resources¶
The following two strings must be added to string resources (strings.xml
):
<string name="log_content_authority" translatable="false">integrator.namespace.logsyncadapter</string>
<string name="log_account_type" translatable="false">integrator.namespace</string>