-
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(deps): update dependency com.android.tools.build:gradle to v8
- Loading branch information
1 parent
f743c0e
commit 1dc2953
Showing
12 changed files
with
119 additions
and
97 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
13 changes: 7 additions & 6 deletions
13
buildSrc/src/main/java/com/mxt/anitrend/buildsrc/components/PluginComponents.kt
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 |
---|---|---|
@@ -1,25 +1,26 @@ | ||
package com.mxt.anitrend.buildsrc.components | ||
|
||
import com.mxt.anitrend.buildsrc.extensions.baseExtension | ||
import com.mxt.anitrend.buildsrc.extensions.androidComponents | ||
import org.gradle.api.Project | ||
|
||
internal fun Project.configurePlugins() { | ||
plugins.apply("com.android.application") | ||
plugins.apply("kotlin-android") | ||
plugins.apply("kotlinx-serialization") | ||
plugins.apply("kotlin-android-extensions") | ||
plugins.apply("kotlin-parcelize") | ||
plugins.apply("kotlin-kapt") | ||
plugins.apply("io.objectbox") | ||
} | ||
|
||
internal fun Project.configureAdditionalPlugins() { | ||
baseExtension().variantFilter { | ||
if (flavors.first().name == "app") { | ||
println("Applying additional google plugins on -> variant: $name | type: $buildType") | ||
androidComponents().beforeVariants { | ||
logger.lifecycle("VariantFilter { name: ${it.name}, flavor: ${it.flavorName}, module: $name }") | ||
if (it.flavorName == "google") { | ||
logger.lifecycle("Applying additional google plugins on -> module: $name | type: ${it.name}") | ||
if (file("google-services.json").exists()) { | ||
plugins.apply("com.google.gms.google-services") | ||
plugins.apply("com.google.firebase.crashlytics") | ||
} else println("google-services.json cannot be found and will not be using any of the google plugins") | ||
} else logger.lifecycle("google-services.json cannot be found and will not be using any of the google plugins") | ||
} | ||
} | ||
} |
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
Oops, something went wrong.