Skip to content

Commit e446fb2

Browse files
committed
build.gradle: use containsKey instead of hasProperty to check for property
1 parent c4915c8 commit e446fb2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ android {
103103
if (file.exists()) {
104104
def localProperties = new Properties()
105105
localProperties.load(new FileInputStream(file))
106-
if (localProperties.hasProperty(keyName)) {
106+
if (localProperties.containsKey(keyName)) {
107107
buildConfigField("String", keyName, localProperties[keyName])
108108
}
109109
}

0 commit comments

Comments
 (0)