From fa5eb6a28520529261a6df695e4dabebc44ba3eb Mon Sep 17 00:00:00 2001 From: Sylvain Berfini Date: Wed, 10 Jan 2024 17:10:18 +0100 Subject: [PATCH] Improved build.gradle a bit --- app/build.gradle | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index b82ef8783..0508ed924 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -19,7 +19,7 @@ configurations { def gitBranch = new ByteArrayOutputStream() def gitVersion = new ByteArrayOutputStream() -task getGitVersion() { +tasks.register('getGitVersion') { def gitVersionStream = new ByteArrayOutputStream() def gitCommitsCount = new ByteArrayOutputStream() def gitCommitHash = new ByteArrayOutputStream() @@ -53,7 +53,7 @@ task getGitVersion() { } } -task linphoneSdkSource() { +tasks.register('linphoneSdkSource') { doLast { configurations.customImplementation.getIncoming().each { it.getResolutionResult().allComponents.each { @@ -65,8 +65,8 @@ task linphoneSdkSource() { } } -project.tasks['preBuild'].dependsOn 'getGitVersion' -project.tasks['preBuild'].dependsOn 'linphoneSdkSource' +project.tasks.preBuild.dependsOn 'getGitVersion' +project.tasks.preBuild.dependsOn 'linphoneSdkSource' android { namespace 'org.linphone' @@ -168,7 +168,7 @@ dependencies { // https://github.com/Baseflow/PhotoView/blob/master/LICENSE Apache v2.0 implementation 'com.github.chrisbanes:PhotoView:2.3.0' - implementation platform('com.google.firebase:firebase-bom:32.5.0') + implementation platform('com.google.firebase:firebase-bom:32.7.0') implementation 'com.google.firebase:firebase-messaging' implementation 'com.google.firebase:firebase-crashlytics-ndk' @@ -184,7 +184,7 @@ ktlint { ignoreFailures = true } -project.tasks['preBuild'].dependsOn 'ktlintFormat' +project.tasks.preBuild.dependsOn 'ktlintFormat' if (crashlyticsAvailable) { afterEvaluate {