Skip to main content

Project Setup

Update both Android and iOS project settings:
1

Project-level Build Configuration

Change the daro-plugin dependency.
Latest version
  • daro-plugin:
buildscript {
    repositories {
        google()
        mavenCentral()
        maven { url = uri("https://artifacts.applovin.com/android") }
    }
    dependencies {
        // as-is
        // classpath("com.github.delightroom:daro-android-plugin:0.4.4")

        // to-be
        classpath("so.daro:daro-plugin:{version}")
        classpath("com.applovin.quality:AppLovinQualityServiceGradlePlugin:5.5.2")
    }
}
2

Apply the DARO plugin in build.gradle(app)

plugins {
    ...
    // as-is
    // id("droom.daro.m")

    // to-be
    id("so.daro.m")
    ...
}
3

Key file configuration

  1. Delete daro-services.json and download daro-key.txt and add it as follows.
    • If using common configuration without flavor distinction
    app/
    └── daro-key.txt
    
    • If using different configuration by flavor
    app/
    └── src/
        ├── debug/
        │   └── daro-key.txt
        └── release/
            └── daro-key.txt
    
    daro-key.txt can be downloaded from the DARO dashboard.
  2. Add daroAppKey to the gradle.properties file.
    daroAppKey={APP_KEY}
    
The daroAppKey can be found in the DARO dashboard.daroAppKey
4

Add Daro SDK dependency

Add the dependency as follows.
Latest version
  • daro-m:
dependencies {
    ...
    implementation("so.daro:daro-m:{version}")
    ...
}
  • daro-service.json -> changed to ios-daro-key.txt
  • Info.plist: Configure DaroAppKey
ios-daro-key.txt can be downloaded from the DARO dashboard.
DaroAppKey can be found in the DARO dashboard.
For more details, please refer to the integration documentation

Code Implementation

1

Change Ad Unit Id used for ad load

The Ad Unit Id used previously is not available in the new SDK.
Therefore, please get the changed Ad Unit Id from the Daro dashboard and apply it to your code.
Using the existing Ad Unit Id will cause ad load failures. Please make sure to replace the Ad Unit Id.
2

Remove extraParameter, localExtraParameter, placement

Support for methods that set extraParameter, localExtraParameter, and placement when loading ads has been discontinued. If you were using these fields previously, they must be removed.
3

Remove refreshSeconds for Banner/MREC/Native

A feature has been added to control refreshSeconds remotely from the daro dashboard instead of directly controlling it on the client. If you were changing refreshSeconds previously, please remove that field and apply refreshSeconds from the dashboard.
4

Apply ad callback parameter changes

The internal fields of AdInfo, AdLoadFailedInfo, and AdDisplayFailedInfo provided in existing ad callbacks have been changed. Please review the callbacks you were using accordingly.