We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e0652c commit 9c19a80Copy full SHA for 9c19a80
app/build.gradle
@@ -98,11 +98,14 @@ android {
98
dimension "pro"
99
100
File file = rootProject.file("local.properties")
101
+ String keyName = "REVENUECAT_API_KEY"
102
103
if (file.exists()) {
104
def localProperties = new Properties()
105
localProperties.load(new FileInputStream(file))
- buildConfigField("String", "REVENUECAT_API_KEY", localProperties["REVENUECAT_API_KEY"])
106
+ if (localProperties.hasProperty(keyName)) {
107
+ buildConfigField("String", keyName, localProperties[keyName])
108
+ }
109
}
110
111
0 commit comments