Skip to content

Commit

Permalink
Move google-services plugin to plugin DSL
Browse files Browse the repository at this point in the history
  • Loading branch information
oguzkocer committed Sep 9, 2021
1 parent 5f79fae commit 448adf1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
13 changes: 1 addition & 12 deletions WordPress/build.gradle
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
buildscript {
repositories {
google()
}
dependencies {
classpath 'com.google.gms:google-services:4.3.8'
}
}

plugins {
id "com.android.application"
id "org.jetbrains.kotlin.android"
Expand All @@ -16,6 +7,7 @@ plugins {
id "io.sentry.android.gradle"
id "io.gitlab.arturbosch.detekt"
id "se.bjurr.violations.violation-comments-to-github-gradle-plugin"
id "com.google.gms.google-services"
}

repositories {
Expand Down Expand Up @@ -587,6 +579,3 @@ if (project.hasProperty("debugStoreFile")) {
}
}
}

// Keep this at the bottom (https://stackoverflow.com/a/37565535)
apply plugin: 'com.google.gms.google-services'
3 changes: 3 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ pluginManagement {
if (requested.id.id == "androidx.navigation.safeargs.kotlin") {
useModule("androidx.navigation:navigation-safe-args-gradle-plugin:$gradle.ext.navComponentVersion")
}
if (requested.id.id == "com.google.gms.google-services") {
useModule("com.google.gms:google-services:4.3.8")
}
}
}
}
Expand Down

0 comments on commit 448adf1

Please sign in to comment.