Skip to content

Commit

Permalink
Add check if google-services.json file exists.
Browse files Browse the repository at this point in the history
  • Loading branch information
nowakweronika committed Nov 14, 2023
1 parent 255a58e commit 01692fb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,16 @@ plugins {
id 'com.android.application'
id 'kotlin-kapt'
id 'org.jetbrains.kotlin.android'
id 'com.google.gms.google-services'
id 'org.jlleitschuh.gradle.ktlint' version '11.6.1'
id 'org.jetbrains.kotlin.plugin.serialization' version '1.9.0'
}

def fileName = "../app/google-services.json"

if (project.file(fileName).exists()) {
apply plugin: 'com.google.gms.google-services'
}

java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
Expand Down

0 comments on commit 01692fb

Please sign in to comment.