Skip to content

Commit 29cecce

Browse files
committed
Disable buildconfig, aidl, renderscript, resvalues and shaders by default.
1 parent de1c9d4 commit 29cecce

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

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

-3
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,6 @@ fun LibraryExtension.configureAndroidLibraryOptions(project: Project) {
8383
}
8484
}
8585

86-
// Disable generating BuildConfig.java
87-
buildFeatures.buildConfig = false
88-
8986
packagingOptions {
9087
exclude("META-INF/AL2.0")
9188
exclude("META-INF/LGPL2.1")

gradle.properties

+7
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,10 @@ android.nonTransitiveRClass=true
4646
# Only keep the single relevant constructor for types mentioned in XML files
4747
# instead of using a parameter wildcard which keeps them all.
4848
android.useMinimalKeepRules=true
49+
50+
# Default Android build features
51+
android.defaults.buildfeatures.buildconfig=false
52+
android.defaults.buildfeatures.aidl=false
53+
android.defaults.buildfeatures.renderscript=false
54+
android.defaults.buildfeatures.resvalues=false
55+
android.defaults.buildfeatures.shaders=false

0 commit comments

Comments
 (0)