All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.cleveradssolutions.gradleplugin.CASPluginExtension.kt Maven / Gradle / Ivy

Go to download

CAS Gradle Plugin provides an easy way to integrate and configure CAS.AI Mediation in your android project.

There is a newer version: 3.9.4
Show newest version
package com.cleveradssolutions.gradleplugin

import org.gradle.api.Action

// Must be open
open class CASPluginExtension(val adapters: CASAdaptersConfig) {

    /**
     * Set this property if you are integrating the plugin into the module (library-level).
     * For the application module (app-level), the app bundle name will be taken as the CAS Id by default.
     */
    var casId: String? = null

    /**
     * Contains a number of stable ads networks that are recommended for use in most applications
     */
    var includeFamiliesAds: Boolean = false

    /**
     * Designed for applications tagged at a children's audience and fully compatible with the Google Play Families Policies
     */
    var includeOptimalAds: Boolean = false

    /**
     * The Advertising ID is a unique, user-resettable, and user-deletable ID for advertising,
     * provided by Google Play services.
     *
     * Set false if app are building for devices that do not utilize Google Play Services. For example Amazon or Huawei.
     */
    var useAdvertisingId: Boolean = true

    /**
     * The CAS Gradle Plugin will automatically add the required Google App ID to the application manifest.
     * Enabled by default.
     */
    var configureGoogleAds: Boolean = true

    fun adapters(closure: Action) {
        closure.execute(adapters)
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy