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

com.flyjingfish.module_communication_plugin.CommunicationConfig.kt Maven / Gradle / Ivy

Go to download

Lightweight Aop for Android platform, you deserve it, action is worse than your heartbeat

The newest version!
package com.flyjingfish.module_communication_plugin

open class CommunicationConfig {
    /**
     * 要copy到的目标 module 名称
     */
    var exportModuleName = ""

    /**
     * 对于 @Route 是否导出空的函数,设置为true,route功能就会失效
     */
    var exportEmptyRoute = false

    /**
     * 要copy的资源id
     */
    val exposeResIds = mutableListOf()

    /**
     * 要copy的 assets
     */
    val exposeAssets = mutableListOf()

    fun exposeResIds(vararg resId: String): CommunicationConfig {
        this.exposeResIds.addAll(resId)
        return this
    }

    fun exposeAssets(vararg assetsPath: String): CommunicationConfig {
        this.exposeAssets.addAll(assetsPath)
        return this
    }
    override fun toString(): String {
        return "CommunicationConfig(exportModuleName='$exportModuleName', exposeResIds=$exposeResIds, exposeAssets=$exposeAssets)"
    }


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy