-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from DylanCaiCoding/master
修复使用 kotlin 模板时不会自动创建 Dagger**Component 的问题
- Loading branch information
Showing
6 changed files
with
25 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
dependencies { | ||
kapt rootProject.ext.dependencies["dagger2-compiler"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<#macro addAllKaptDependencies> | ||
<#if !isNewProject && ((language!'Java')?string == 'Kotlin')> | ||
<apply plugin="kotlin-kapt" /> | ||
<merge from="root://activities/MVPArmsTemplate/dagger2.gradle.ftl" | ||
to="${escapeXmlAttribute(projectOut)}/build.gradle" /> | ||
</#if> | ||
</#macro> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
dependencies { | ||
kapt rootProject.ext.dependencies["dagger2-compiler"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<#macro addAllKaptDependencies> | ||
<#if !isNewProject && ((language!'Java')?string == 'Kotlin')> | ||
<apply plugin="kotlin-kapt" /> | ||
<merge from="root://activities/MVPArmsTemplate/dagger2.gradle.ftl" | ||
to="${escapeXmlAttribute(projectOut)}/build.gradle" /> | ||
</#if> | ||
</#macro> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters