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

com.sensorsdata.analytics.android.plugin.extension.SAExtension.kt Maven / Gradle / Ivy

There is a newer version: 4.0.4
Show newest version
package com.sensorsdata.analytics.android.plugin.extension

import org.gradle.api.Action
import org.gradle.internal.reflect.Instantiator

open class SAExtension {
    var debug = false
    var useInclude = false
    var lambdaEnabled = true
    var addUCJavaScriptInterface = false
    var addXWalkJavaScriptInterface = false
    var lambdaParamOptimize = false
    var disableTrackKeyboard = true
    var exclude = mutableListOf()
    var include = mutableListOf()
    var disableModules = mutableListOf()
    val sdk: SASDKExtension = SASDKExtension()

    fun sdk(action: Action) {
        action.execute(sdk)
    }

    override fun toString(): String {
        return "\tdebug=" + debug + "\n" +
                "\tuseInclude=" + useInclude + "\n" +
                "\taddUCJavaScriptInterface=" + addUCJavaScriptInterface + "\n" +
                "\taddXWalkJavaScriptInterface=" + addXWalkJavaScriptInterface + "\n" +
                "\tlambdaParamOptimize=" + lambdaParamOptimize + "\n" +
                "\tlambdaEnabled=" + lambdaEnabled + "\n" +
                "\tdisableTrackKeyboard=" + disableTrackKeyboard + "\n" +
                "\texclude=[" + exclude.joinToString(",") + "]" + "\n" +
                "\tinclude=[" + include.joinToString(",") + "]" + "\n" +
                "\tdisableModules=[" + disableModules.joinToString(",") + "]" + "\n" +
                "\tsdk {\n" + sdk + "\n" +
                "\t}"
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy