com.flyjingfish.module_communication_plugin.CommunicationConfig.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of module-communication-plugin Show documentation
Show all versions of module-communication-plugin Show documentation
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)"
}
}