Skip to content

Commit 1419290

Browse files
Update build.gradle.ftl
1 parent 2ce8156 commit 1419290

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

NewArmsModule/root/build.gradle.ftl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
<#import "root://activities/common/kotlin_macros.ftl" as kt>
2+
<#import "root://gradle-projects/NewArmsModule/dagger2_macros.ftl" as dagger2>
23
apply plugin: 'com.android.application'
34
<@kt.addKotlinPlugins />
45

6+
<@dagger2.addKaptPlugins />
7+
58
android {
69
compileSdkVersion rootProject.ext.android["compileSdkVersion"]
710
<#if compareVersionsIgnoringQualifiers(gradlePluginVersion, '3.0.0') lt 0>buildToolsVersion rootProject.ext.android["buildToolsVersion"]</#if>
@@ -59,6 +62,7 @@ dependencies {
5962

6063
//tools
6164
annotationProcessor rootProject.ext.dependencies["dagger2-compiler"]
65+
<@dagger2.addKaptDependencies />
6266

6367
//注意 Arms 核心库现在并不会依赖某个 EventBus, 要想使用 EventBus, 还请在项目中自行依赖对应的 EventBus
6468
//现在支持两种 EventBus, greenrobot 的 EventBus 和畅销书 《Android源码设计模式解析与实战》的作者 何红辉 所作的 AndroidEventBus

0 commit comments

Comments
 (0)