Plugin

interface Plugin<T>

插件 Plugin 用于扩展构建的功能.

Author

M8Test, [email protected], https://m8test.com

Functions

Link copied to clipboard
abstract fun apply(target: T)

插件被应用时由系统调用本方法, 需要重写本方法实现插件的功能.

Link copied to clipboard
abstract fun getId(): String

获取插件 id, 插件 id 必须唯一, 应用插件时需要用到.