https://raw.githubusercontent.com/m8test/Plugins/refs/heads/main/component/c2/build.gradle.kts
https://raw.githubusercontent.com/m8test/Plugins/refs/heads/main/component/c2/src/main/kotlin/com/m8test/component/c2/C2Component.kt
https://raw.githubusercontent.com/m8test/Plugins/refs/heads/main/component/c2/src/main/kotlin/com/m8test/component/c2/C2.kt
https://raw.githubusercontent.com/m8test/Plugins/refs/heads/main/component/c2/src/main/kotlin/com/m8test/component/c2/C2Impl.kt
步骤3和步骤4可以合并为一个步骤, 可以不需要额外定义一个接口, 直接编写一个类实现 Variable 接口, 如果组件需要被其他组件引用, 最好定义一个接口, 当然也推荐定义一个接口.
https://raw.githubusercontent.com/m8test/Plugins/refs/heads/main/component/c2/src/main/AndroidManifest.xml
示例代码