Android Platform Setup
Integration instruction for Android platform
Open the
build.gradle
file of your shared module.To add networks for the Android Platform In the
androidMain.dependencies
section, add the following line or any combination of them:
Before adding the Admob adapter, it's crucial to add the Admob APPLICATION_ID as a meta-data
in your AndroidManifest.xml file of the androidApp module. This is mandatory for adapter to function correctly.
Before adding Applovin\Applovin MAX adapters, it's crucial to add the Applovin SDK KEY as a meta-data
in your AndroidManifest.xml file of the androidApp module. This is mandatory for adapters to function correctly.
Before adding StartApp adapter, it's crucial to add the <provider/> tag in the <application> tag of your AndroidManifest.xml file of the androidApp module. This is mandatory for adapters to function correctly.
<application>
...
<provider
android:name="com.startapp.sdk.adsbase.StartAppInitProvider"
android:authorities="${applicationId}.startappinitprovider" tools:node="remove" />
...
</application>
Permissions
Make sure to add the next permissions to your androidApp - AndroidManifest.xml to ensure the SDK functions as intended:
For accessing the Google Advertising ID.
<uses-permission android:name="com.google.android.gms.permission.AD_ID" />
This is required by the Android Advertising ID (AAID) module - com.google.android.gms:play-services-ads-identifier
For analytics.
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
For the SDK to operate correctly.
<uses-permission android:name="android.permission.INTERNET" />
Last updated