Skip to content

Commit

Permalink
Disable buildconfig, aidl, renderscript, resvalues and shaders by def…
Browse files Browse the repository at this point in the history
…ault.
  • Loading branch information
ychescale9 committed Jun 18, 2020
1 parent de1c9d4 commit 29cecce
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,6 @@ fun LibraryExtension.configureAndroidLibraryOptions(project: Project) {
}
}

// Disable generating BuildConfig.java
buildFeatures.buildConfig = false

packagingOptions {
exclude("META-INF/AL2.0")
exclude("META-INF/LGPL2.1")
Expand Down
7 changes: 7 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,10 @@ android.nonTransitiveRClass=true
# Only keep the single relevant constructor for types mentioned in XML files
# instead of using a parameter wildcard which keeps them all.
android.useMinimalKeepRules=true

# Default Android build features
android.defaults.buildfeatures.buildconfig=false
android.defaults.buildfeatures.aidl=false
android.defaults.buildfeatures.renderscript=false
android.defaults.buildfeatures.resvalues=false
android.defaults.buildfeatures.shaders=false

0 comments on commit 29cecce

Please sign in to comment.