Skip to content

Commit

Permalink
Remove unnecessary project param
Browse files Browse the repository at this point in the history
  • Loading branch information
tasomaniac committed Nov 13, 2020
1 parent 2d178b5 commit 99bb27e
Show file tree
Hide file tree
Showing 54 changed files with 54 additions and 55 deletions.
3 changes: 1 addition & 2 deletions buildSrc/src/main/kotlin/config/AndroidLibraryConfig.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@

@file:Suppress("PackageDirectoryMismatch")

import org.gradle.api.Project
import com.android.build.gradle.LibraryExtension as AndroidLibraryExtension

fun AndroidLibraryExtension.setDefaults(project: Project, generateBuildConfig: Boolean = false) {
fun AndroidLibraryExtension.setDefaults(generateBuildConfig: Boolean = false) {
compileSdkVersion(ProjectVersions.androidSdk)
buildToolsVersion(ProjectVersions.androidBuildTools)
defaultConfig {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ plugins {
}

android {
setDefaults(project)
setDefaults()
}

kotlin {
Expand Down
2 changes: 1 addition & 1 deletion fun-packs/android-appcompat/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ plugins {
}

android {
setDefaults(project)
setDefaults()
}

kotlin {
Expand Down
2 changes: 1 addition & 1 deletion fun-packs/android-base-with-views-dsl/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ plugins {
}

android {
setDefaults(project)
setDefaults()
}

kotlin {
Expand Down
2 changes: 1 addition & 1 deletion fun-packs/android-base/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ plugins {
}

android {
setDefaults(project)
setDefaults()
}

kotlin {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ plugins {
}

android {
setDefaults(project)
setDefaults()
}

kotlin {
Expand Down
2 changes: 1 addition & 1 deletion fun-packs/android-material-components/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ plugins {
}

android {
setDefaults(project)
setDefaults()
}

kotlin {
Expand Down
2 changes: 1 addition & 1 deletion modules/activities/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ plugins {
}

android {
setDefaults(project)
setDefaults()
}

kotlin {
Expand Down
2 changes: 1 addition & 1 deletion modules/alertdialog-appcompat-coroutines/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ plugins {
}

android {
setDefaults(project)
setDefaults()
}

kotlin {
Expand Down
2 changes: 1 addition & 1 deletion modules/alertdialog-appcompat/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ plugins {
}

android {
setDefaults(project)
setDefaults()
}

kotlin {
Expand Down
2 changes: 1 addition & 1 deletion modules/alertdialog-material/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ plugins {
}

android {
setDefaults(project)
setDefaults()
}

kotlin {
Expand Down
2 changes: 1 addition & 1 deletion modules/alertdialog/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ plugins {
}

android {
setDefaults(project)
setDefaults()
}

kotlin {
Expand Down
2 changes: 1 addition & 1 deletion modules/appctx/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ plugins {
}

android {
setDefaults(project)
setDefaults()
}

kotlin {
Expand Down
2 changes: 1 addition & 1 deletion modules/arch-lifecycle/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ plugins {
}

android {
setDefaults(project)
setDefaults()
}

kotlin {
Expand Down
2 changes: 1 addition & 1 deletion modules/arch-room/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ plugins {
}

android {
setDefaults(project)
setDefaults()
}

kotlin {
Expand Down
2 changes: 1 addition & 1 deletion modules/bundle/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ plugins {
}

android {
setDefaults(project)
setDefaults()
}

kotlin {
Expand Down
2 changes: 1 addition & 1 deletion modules/checkedlazy/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ plugins {
}

android {
setDefaults(project)
setDefaults()
}

kotlin {
Expand Down
2 changes: 1 addition & 1 deletion modules/dimensions/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ plugins {
}

android {
setDefaults(project)
setDefaults()
}

kotlin {
Expand Down
2 changes: 1 addition & 1 deletion modules/exceptions/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ plugins {
}

android {
setDefaults(project)
setDefaults()
}

kotlin {
Expand Down
2 changes: 1 addition & 1 deletion modules/fragmentargs/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ plugins {
}

android {
setDefaults(project)
setDefaults()
}

kotlin {
Expand Down
2 changes: 1 addition & 1 deletion modules/fragments/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ plugins {
}

android {
setDefaults(project)
setDefaults()
}

kotlin {
Expand Down
2 changes: 1 addition & 1 deletion modules/initprovider/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ plugins {
}

android {
setDefaults(project)
setDefaults()
}

kotlin {
Expand Down
2 changes: 1 addition & 1 deletion modules/intents/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ plugins {
}

android {
setDefaults(project)
setDefaults()
buildTypes.getByName("release").consumerProguardFiles("proguard-rules.pro")
}

Expand Down
2 changes: 1 addition & 1 deletion modules/lifecycle-coroutines/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ plugins {
}

android {
setDefaults(project)
setDefaults()
}

kotlin {
Expand Down
2 changes: 1 addition & 1 deletion modules/mainhandler/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ plugins {
}

android {
setDefaults(project)
setDefaults()
}

kotlin {
Expand Down
2 changes: 1 addition & 1 deletion modules/mainthread/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ plugins {
}

android {
setDefaults(project)
setDefaults()
}

kotlin {
Expand Down
2 changes: 1 addition & 1 deletion modules/material-colors/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ plugins {
}

android {
setDefaults(project)
setDefaults()
}

kotlin {
Expand Down
2 changes: 1 addition & 1 deletion modules/material-lists/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ plugins {
}

android {
setDefaults(project)
setDefaults()
}

kotlin {
Expand Down
2 changes: 1 addition & 1 deletion modules/permissions/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ plugins {
}

android {
setDefaults(project)
setDefaults()
}

kotlin {
Expand Down
2 changes: 1 addition & 1 deletion modules/preferences/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ plugins {
}

android {
setDefaults(project)
setDefaults()
buildTypes.getByName("release").consumerProguardFiles("proguard-rules.pro")
}

Expand Down
2 changes: 1 addition & 1 deletion modules/resources/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ plugins {
}

android {
setDefaults(project)
setDefaults()
buildTypes.getByName("release").consumerProguardFiles("proguard-rules.pro")
}

Expand Down
2 changes: 1 addition & 1 deletion modules/snackbar/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ plugins {
}

android {
setDefaults(project)
setDefaults()
}

kotlin {
Expand Down
2 changes: 1 addition & 1 deletion modules/stetho-init/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ plugins {
}

android {
setDefaults(project)
setDefaults()
}

kotlin {
Expand Down
2 changes: 1 addition & 1 deletion modules/systemservices/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ plugins {
}

android {
setDefaults(project)
setDefaults()
}

kotlin {
Expand Down
2 changes: 1 addition & 1 deletion modules/toast/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ plugins {
}

android {
setDefaults(project)
setDefaults()
buildTypes.getByName("release").consumerProguardFiles("proguard-rules.pro")
}

Expand Down
2 changes: 1 addition & 1 deletion modules/typesaferecyclerview/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ plugins {
}

android {
setDefaults(project)
setDefaults()
sourceSets.getByName("main").java.srcDir("src/androidMain/java")
}

Expand Down
2 changes: 1 addition & 1 deletion modules/views-appcompat/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ plugins {
}

android {
setDefaults(project)
setDefaults()
}

kotlin {
Expand Down
2 changes: 1 addition & 1 deletion modules/views-cardview/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ plugins {
}

android {
setDefaults(project)
setDefaults()
}

kotlin {
Expand Down
2 changes: 1 addition & 1 deletion modules/views-coroutines-material/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ plugins {
}

android {
setDefaults(project)
setDefaults()
}

kotlin {
Expand Down
2 changes: 1 addition & 1 deletion modules/views-coroutines/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ plugins {
}

android {
setDefaults(project)
setDefaults()
}

kotlin {
Expand Down
2 changes: 1 addition & 1 deletion modules/views-dsl-appcompat/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ plugins {
}

android {
setDefaults(project)
setDefaults()
}

kotlin {
Expand Down
2 changes: 1 addition & 1 deletion modules/views-dsl-constraintlayout/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ plugins {
}

android {
setDefaults(project)
setDefaults()
}

kotlin {
Expand Down
2 changes: 1 addition & 1 deletion modules/views-dsl-coordinatorlayout/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ plugins {
}

android {
setDefaults(project)
setDefaults()
}

kotlin {
Expand Down
2 changes: 1 addition & 1 deletion modules/views-dsl-ide-preview/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ plugins {
}

android {
setDefaults(project)
setDefaults()
}

kotlin {
Expand Down
Loading

0 comments on commit 99bb27e

Please sign in to comment.