From 51015dc898d3c2aa61a15dd0afe1559b150c2b14 Mon Sep 17 00:00:00 2001 From: Alex Hart Date: Thu, 8 Dec 2022 12:57:35 -0400 Subject: [PATCH] Clean up warnings in Gradle file. --- app/build.gradle | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index b1418176d..212154709 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -1,3 +1,5 @@ +import com.android.build.api.dsl.ManagedVirtualDevice + apply plugin: 'com.android.application' apply plugin: 'kotlin-android' apply plugin: 'com.google.protobuf' @@ -113,7 +115,7 @@ android { managedDevices { devices { - pixel3api30 (com.android.build.api.dsl.ManagedVirtualDevice) { + pixel3api30 (ManagedVirtualDevice) { device = "Pixel 3" apiLevel = 30 systemImageSource = "google-atd" @@ -172,7 +174,7 @@ android { multiDexEnabled true vectorDrawables.useSupportLibrary = true - project.ext.set("archivesBaseName", "Signal"); + project.ext.set("archivesBaseName", "Signal") manifestPlaceholders = [mapsKey:"AIzaSyCSx9xea86GwDKGznCAULE9Y5a8b-TfN9U"] @@ -582,7 +584,7 @@ def getLastCommitTimestamp() { } new ByteArrayOutputStream().withStream { os -> - def result = exec { + exec { executable = 'git' args = ['log', '-1', '--pretty=format:%ct'] standardOutput = os @@ -641,13 +643,13 @@ def loadKeystoreProperties(filename) { if (keystorePropertiesFile.exists()) { def keystoreProperties = new Properties() keystoreProperties.load(new FileInputStream(keystorePropertiesFile)) - return keystoreProperties; + return keystoreProperties } else { - return null; + return null } } -def getDateSuffix() { +static def getDateSuffix() { def date = new Date() def formattedDate = date.format('yyyy-MM-dd-HH:mm') return formattedDate