2.1. SDK Integration
2.1.1 Apply for Account and Ad Units
Apply to advertising Operations Personnel for an advertising platform account and corresponding ad units. When creating an application on the platform, please note the integration method chosen is Mediation SDK or Hisavana SDK, as different integration methods correspond to different SDK documentation.
2.1.2 Import Ad SDK
Step 1: Add the maven remote repository URL to the project-level build.gradle file, as shown below
buildscript {
repositories {
mavenCentral()
maven { url "https://mvn.shalltry.com/repository/maven-public/" }
maven { url "https://mvn.shalltry.com/repository/ad-releases/" }
}
}
allprojects {
repositories {
mavenCentral()
maven { url "https://mvn.shalltry.com/repository/maven-public/" }
maven { url "https://mvn.shalltry.com/repository/ad-releases/" }
}
}
Step 2: Introduce the hisavana advertising library in the Module's build.gradle
implementation "com.cloud.hisavana.sdk.ssp:hisavana:3.5.1.2"
Solution for 16kb Page Size Compatibility
The .so files bundled with the Gif Library used in the SDK (versions 3.4.8.2 and below) do not support the 16kb page size. If adaptation is required, please manually integrate the supported version v1.2.29.
/**
* Version (v1.2.29) is now compatible with 16kb page size.
*
* Environment Requirements:
* - Gradle 8.0+
* - Android Gradle Plugin 8.1.0+
* - minSdkVersion 21
* - Kotlin Plugin, Standard Library, and Coroutines Library 1.8.0+ (Required)
*/
implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.29'