File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change
1
+ <#macro addKaptPlugins >
2
+ <#if generateKotlin >
3
+ <#compress >
4
+ apply plugin: 'kotlin-kapt'
5
+ </#compress >
6
+ </#if >
7
+ </#macro >
8
+
9
+ <#macro addKaptDependencies >
10
+ <#if generateKotlin >
11
+ <#compress >
12
+ kapt rootProject.ext.dependencies["dagger2-compiler"]
13
+ </#compress >
14
+ </#if >
15
+ </#macro >
Original file line number Diff line number Diff line change 1
1
<#import "root://activities/common/kotlin_macros.ftl" as kt >
2
+ <#import "root://gradle-projects/NewArmsModule/dagger2_macros.ftl" as dagger2 >
2
3
apply plugin: 'com.android.application'
3
4
<@kt.addKotlinPlugins / >
4
5
6
+ <@dagger2.addKaptPlugins / >
7
+
5
8
android {
6
9
compileSdkVersion rootProject.ext.android["compileSdkVersion"]
7
10
<#if compareVersionsIgnoringQualifiers(gradlePluginVersion, '3.0.0') lt 0 >buildToolsVersion rootProject.ext.android["buildToolsVersion"]</#if >
@@ -59,6 +62,7 @@ dependencies {
59
62
60
63
//tools
61
64
annotationProcessor rootProject.ext.dependencies["dagger2-compiler"]
65
+ <@dagger2.addKaptDependencies / >
62
66
63
67
//注意 Arms 核心库现在并不会依赖某个 EventBus, 要想使用 EventBus, 还请在项目中自行依赖对应的 EventBus
64
68
//现在支持两种 EventBus, greenrobot 的 EventBus 和畅销书 《Android源码设计模式解析与实战》的作者 何红辉 所作的 AndroidEventBus
You can’t perform that action at this time.
0 commit comments