Skip to main content

Native Integration

To import our SDKs, you must make changes to the project and app build.gradle files.

Adding it to the Project

Add the URL of our Maven repository to the project’s build.gradle (in Android Studio, this file appears as “Project: {project_name}”), as shown below:

buildscript {
...
}

allprojects {
repositories {
...
maven { url 'https://sdks.zaig.com.br/' }
}
}

Adding it to the App

Next, add the library you want to import to the app’s build.gradle (in Android Studio, this file appears as “Module: {project_name}.app”), including the dependency below:

dependencies {
...
implementation 'com.zaig.android:devicescan:v5.0.1'
}
warning

Since April 2025, new Google Play policies require Android API Level 35 for apps to be published or updated on the Google Play Store. Therefore, we strongly recommend using targetSdkVersion 35 at minimum.

info

Using targetSdkVersion 35 implies using compileSdkVersion 35, which in turn triggers some minimum requirements for Android ecosystem tools:

  • compileSdkVersion 35 --> AGP 8.6.0
  • AGP 8.6.0 --> Gradle 8.7
  • AGP 8.6.0 --> Java 17 (JDK 17)
  • AGP 8.6.0 --> Kotlin 2+

Manifest File

To use the SDK, you must add the following configuration to your application’s AndroidManifest.xml:

<meta-data
android:name="com.google.android.gms.ads.AD_MANAGER_APP"
android:value="true"/>

You must also add at least the Internet permission, which is used to send the collected data to QI Tech’s servers:

<uses-permission android:name="android.permission.INTERNET"/>

The list of permissions must be adjusted according to your needs.