diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 1fa565c4d..24002d494 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -51,7 +51,7 @@ jobs: uses: gradle/gradle-build-action@v2 with: gradle-version: wrapper - arguments: clean --no-daemon fetchAndPackageDefaultConfiguration -PappVersionName=${{ env.APP_VERSION_NAME }}.${{ env.BUILD_NUMBER }} assemble --debug + arguments: clean --no-daemon fetchAndPackageDefaultConfiguration -PappVersionName=${{ env.APP_VERSION_NAME }}.${{ env.BUILD_NUMBER }} assemble --debug -PskipGoogleServices - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v2 diff --git a/app/build.gradle b/app/build.gradle index e58b84ccf..b67b2447e 100755 --- a/app/build.gradle +++ b/app/build.gradle @@ -1,6 +1,12 @@ apply plugin: 'com.android.application' -apply plugin: 'com.google.gms.google-services' -apply plugin: 'com.google.firebase.crashlytics' +if (project.hasProperty('skipGoogleServices')) { + project.logger.lifecycle('Skipping Google Services') +} else { + project.logger.lifecycle('Including Google Services') + apply plugin: 'com.google.gms.google-services' + apply plugin: 'com.google.firebase.crashlytics' +} + android { namespace 'ee.ria.DigiDoc'