1 Star 0 Fork 2

Asuna/Qigsaw2Test

forked from DonaldDu/Qigsaw2Test 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
components.gradle 1.91 KB
一键复制 编辑 原始数据 按行查看 历史
DonaldDu 提交于 2022-01-21 09:47 +08:00 . log init ComponentProcessor
subprojects { Project project ->
def componentsProcessorSetting = {
android.defaultConfig {
javaCompileOptions {
annotationProcessorOptions {
arguments = [
'moduleName': project.name,
'annotation': 'com.dhy.annotations.Component',
'java_dir' : rootProject.file('annotations/src/main/java').toString()
]
}
}
}
}
def injectComponentsProcessor = {
if (project.hasProperty('android')) {
if (project.hasProperty('QIGSAW_BUNDLE_SYNC_LOG')) {
println 'set ComponentProcessor for project ' + project.name
}
project.with {
def componentProcessor = 'com.gitee.DonaldDu:ComponentProcessor:1.2.2'
componentsProcessorSetting()
if (plugins.hasPlugin('kotlin-android')) {
if (!plugins.hasPlugin('kotlin-kapt')) apply plugin: 'kotlin-kapt'
dependencies {
kapt componentProcessor
}
task genRouteComponents(dependsOn: 'kaptDebugKotlin', group: 'qigsaw-bundle')
} else {
dependencies {
annotationProcessor componentProcessor
}
task genRouteComponents(dependsOn: 'compileDebugJavaWithJavac', group: 'qigsaw-bundle')
}
dependencies {
//noinspection AnnotationProcessorOnCompilePath
compileOnly 'com.google.auto.service:auto-service:1.0'
}
}
}
}
def initAfterEvaluate = {
injectComponentsProcessor()
}
if (project.hasProperty('android')) project.with(initAfterEvaluate)
else project.afterEvaluate(initAfterEvaluate)
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Android
1
https://gitee.com/muxiaofufeng/Qigsaw2Test.git
git@gitee.com:muxiaofufeng/Qigsaw2Test.git
muxiaofufeng
Qigsaw2Test
Qigsaw2Test
master

搜索帮助