Skip to content

Commit

Permalink
Fix gradle build
Browse files Browse the repository at this point in the history
Took 4 minutes
  • Loading branch information
JulesPvx committed May 28, 2024
1 parent 94e3560 commit aa35c9e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import com.google.gms.googleservices.GoogleServicesTask

// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
alias(libs.plugins.kotlin.ksp) apply false
Expand All @@ -21,6 +23,13 @@ subprojects {
plugin("com.diffplug.spotless")
}

// https://github.com/firebase/firebase-android-sdk/issues/5962#:~:text=project.afterEvaluate%20%7B%0A%20%20%20%20tasks.withType%3CGoogleServicesTask%3E%20%7B%0A%20%20%20%20%20%20%20%20gmpAppId.set(project.layout.buildDirectory.file(%22%24name%2DgmpAppId.txt%22))%0A%20%20%20%20%7D%0A%7D
project.afterEvaluate {
tasks.withType<GoogleServicesTask> {
gmpAppId.set(project.layout.buildDirectory.file("$name-gmpAppId.txt"))
}
}

ktlint {
debug.set(false)
version.set(ktlintVersion)
Expand Down

0 comments on commit aa35c9e

Please sign in to comment.