Clean up warnings in Gradle file.

main
Alex Hart 2022-12-08 12:57:35 -04:00 zatwierdzone przez Cody Henthorne
rodzic 4af40e7861
commit 51015dc898
1 zmienionych plików z 8 dodań i 6 usunięć

Wyświetl plik

@ -1,3 +1,5 @@
import com.android.build.api.dsl.ManagedVirtualDevice
apply plugin: 'com.android.application' apply plugin: 'com.android.application'
apply plugin: 'kotlin-android' apply plugin: 'kotlin-android'
apply plugin: 'com.google.protobuf' apply plugin: 'com.google.protobuf'
@ -113,7 +115,7 @@ android {
managedDevices { managedDevices {
devices { devices {
pixel3api30 (com.android.build.api.dsl.ManagedVirtualDevice) { pixel3api30 (ManagedVirtualDevice) {
device = "Pixel 3" device = "Pixel 3"
apiLevel = 30 apiLevel = 30
systemImageSource = "google-atd" systemImageSource = "google-atd"
@ -172,7 +174,7 @@ android {
multiDexEnabled true multiDexEnabled true
vectorDrawables.useSupportLibrary = true vectorDrawables.useSupportLibrary = true
project.ext.set("archivesBaseName", "Signal"); project.ext.set("archivesBaseName", "Signal")
manifestPlaceholders = [mapsKey:"AIzaSyCSx9xea86GwDKGznCAULE9Y5a8b-TfN9U"] manifestPlaceholders = [mapsKey:"AIzaSyCSx9xea86GwDKGznCAULE9Y5a8b-TfN9U"]
@ -582,7 +584,7 @@ def getLastCommitTimestamp() {
} }
new ByteArrayOutputStream().withStream { os -> new ByteArrayOutputStream().withStream { os ->
def result = exec { exec {
executable = 'git' executable = 'git'
args = ['log', '-1', '--pretty=format:%ct'] args = ['log', '-1', '--pretty=format:%ct']
standardOutput = os standardOutput = os
@ -641,13 +643,13 @@ def loadKeystoreProperties(filename) {
if (keystorePropertiesFile.exists()) { if (keystorePropertiesFile.exists()) {
def keystoreProperties = new Properties() def keystoreProperties = new Properties()
keystoreProperties.load(new FileInputStream(keystorePropertiesFile)) keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
return keystoreProperties; return keystoreProperties
} else { } else {
return null; return null
} }
} }
def getDateSuffix() { static def getDateSuffix() {
def date = new Date() def date = new Date()
def formattedDate = date.format('yyyy-MM-dd-HH:mm') def formattedDate = date.format('yyyy-MM-dd-HH:mm')
return formattedDate return formattedDate