com.cleveradssolutions.gradleplugin.CASPluginExtension.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gradle-plugin Show documentation
Show all versions of gradle-plugin Show documentation
CAS Gradle Plugin provides an easy way to integrate and configure CAS.AI Mediation in your android project.
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)
}
}