Developers' Implementation Guide
Android
Last update : 20/05/2021
Release version : 4
Introduction
TagCommander for mobile is a collection of small SDKs each designed to serve a dedicated purpose. The modules are the following :
Core : Used as a base by the other modules.
SDK : Tag management system collecting data through a server-side approach.
Segment : Get your user segmentation from our servers.
Privacy : Pass the Privacy settings to our tag system
For each of those modules, please check their respective documentation for more information.
Latest available versions
Core : 4.6.1
SDK : 4.5.1
Privacy : 4.8.0
IAB : 4.6.0
Partners : 4.5.0
Segment : 4.1.2
Adding a module to your project
If you want to add a module to your android project, you have several possibilities.
- Using mavenCentral to manage the dependency.
- Using directly the jar in your project.
- Using the aar file in your project.
All of them will require you to modify a bit your build.gradle.
mavenCentral
The easiest way is to go with mavenCentral. It will help you get updates on the module on a regular basis without doing much work.
/!\ The IAB module is not on mavenCentral yet, so it will need to be added manually with the aar or jar.
If it's not present in your project's build.gradle add mavenCentral() in the repository list for the dependency management. It will look something like that:
:::java
allprojects {
repositories {
mavenCentral()
}
}
Then in your application's build.gradle always add the core module:
:::java
implementation 'com.tagcommander.lib:core:4.6.1'
And in addition to the core module you can add the other modules you need the same way. See each module's documentation for more specific information.
For example:
:::java
implementation 'com.tagcommander.lib:SDK:4.5.1'
implementation 'com.tagcommander.lib:segment:4.1.2'
Jar file
If you'd rather use the jar files directly in your project, you can get them from our github account: https://github.com/TagCommander/Android
You will always need to at least add the Core module to your project.
After you downloaded the modules you need, add them to your libs folder and either ask gradle to compile with all the jars in your lib directory or directly with the chosen files.
:::java
// All the jars.
compile fileTree(dir: 'libs', include: '*.jar')
// Specific files
compile files('libs/TCCore-release-4.6.1.jar')
compile files('libs/TCSDK-release-4.5.1.jar')
compile files('libs/TCSegment-release-4.1.2.jar')
compile files('libs/TCPrivacy-release-4.8.0.jar')
Aar file
If you'd rather use the aar files directly in your project, you can get them from our github account: https://github.com/TagCommander/Android
You will always need to at least add the Core module to your project.
To be able to compile with the aar files, you will first need to tell gradle how to use them properly. In your project's build.gradle complete your repository list with 'flatDir' list in the following exemple:
:::java
allprojects {
repositories {
mavenCentral()
flatDir {
dirs 'libs'
}
}
}
After you downloaded the modules you need, add them to your libs folder and ask gradle to compile with them.
:::java
compile (name:'TCCore-release-4.6.1', ext:'aar')
compile (name:'TCSDK-release-4.5.1', ext:'aar')
compile (name:'TCSegment-release-4.1.2', ext:'aar')
compile (name:'TCPrivacy-release-4.8.0', ext:'aar')
Support and contacts
Support [email protected]
Commanders Act | 3/5 rue Saint Georges - 75009 PARIS - France
This documentation was generated on 20/05/2021 15:59:23