Integration of the library

 

Foreword

Before starting, you must first download our SDK via the Tag Composer application by logging in to your AT Internet account.

The latest version of our SDK requires Android 2.3 minimum.

 

Archive contents

Once set up and downloaded, decompress the archive contents onto your computer.

download

 

Integration in Android Studio

To integrate the library into your project, copy the library and paste it into “MyProject/app/libs” folder (if the folder doesn’t exist, create it, Android Studio recognise it when the project will be built):

libs

Then, in Android Studio, click on Sync Project with Gradle Files:

SyncProjectWithGradle

If you have selected JAR, the library is ready for use.

If you have selected AAR :

To follow integration notice, it’s recommended to put the project in “Project” view (dropdown list at the top left), Android Studio is in “Android” view by default when the project is created.

Elapse the project, and the “app” module and select build.gradle file

buildGradle

Build.gradle file :

Finally, click once more on Sync Project with Gradle Files (see figure 2).

 

Using JCenter dependency

It is also possible to integrate AT Internet’s Android SDK by adding the dependency to your project.

To do this, scroll through your project, select the build.gradle file, and make sure that jcenter() is present in the two repositories blocks. If this is not the case, please add it.

project_build_gradle

Once the file is open, you must simply add the following snippet into the dependencies block:

buildGradle

Once the file is open, you must simply add the following snippet into the dependencies block:

build.gradle file:

Since version 2.7.0 of the library, it is possible to add the dependency with or without SmartSDK functionality. To integrate functionality, it is necessary to add a version suffix “s”, as in the example below:

Please note, it is highly important to overwrite this configuration with your application’s information (please refer to documentation on overwriting configurations).

The library is now ready for use.

Was this post helpful?
Yes
No
Last update: 31/01/2018