Skip to content

Commit 805ac9c

Browse files
committed
Fix Plugin.
1 parent 66a4692 commit 805ac9c

File tree

2 files changed

+8
-21
lines changed

2 files changed

+8
-21
lines changed

buildSrc/src/main/kotlin/reactivecircus/flowbinding/FlowBindingPlugin.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ class FlowBindingPlugin : Plugin<Project> {
5151
project.libraryExtension.configureAndroidLibraryOptions()
5252
}
5353
is AppPlugin -> {
54-
project.libraryExtension.configureCommonAndroidOptions()
55-
project.appExtension.configureAndroidApplicationOptions(project)
54+
project.appExtension.configureCommonAndroidOptions()
55+
project.appExtension.configureAndroidApplicationOptions()
5656
}
5757
}
5858
}

buildSrc/src/main/kotlin/reactivecircus/flowbinding/ProjectConfigurations.kt

+6-19
Original file line numberDiff line numberDiff line change
@@ -70,25 +70,12 @@ fun LibraryExtension.configureAndroidLibraryOptions() {
7070
/**
7171
* Apply configuration options for Android Application projects.
7272
*/
73-
fun AppExtension.configureAndroidApplicationOptions(project: Project) {
74-
packagingOptions.excludes = setOf(
75-
"kotlin/**",
76-
"**/*.kotlin_metadata",
77-
"META-INF/*.kotlin_module",
78-
"META-INF/*.version"
79-
)
80-
81-
lintOptions.apply {
82-
disable("ParcelCreator")
83-
disable("GoogleAppIndexingWarning")
84-
isQuiet = false
85-
isIgnoreWarnings = false
86-
htmlReport = true
87-
xmlReport = true
88-
htmlOutput = File("${project.buildDir}/reports/lint/lint-reports.html")
89-
xmlOutput = File("${project.buildDir}/reports/lint/lint-reports.xml")
90-
isCheckDependencies = true
91-
isIgnoreTestSources = true
73+
fun AppExtension.configureAndroidApplicationOptions() {
74+
packagingOptions.apply {
75+
exclude("kotlin/**")
76+
exclude("**/*.kotlin_metadata")
77+
exclude("META-INF/*.kotlin_module")
78+
exclude("META-INF/*.version")
9279
}
9380
}
9481

0 commit comments

Comments
 (0)