diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 0ca39034c..4ccfffcb8 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -16,7 +16,10 @@ plugins { id("com.google.android.libraries.mapsplatform.secrets-gradle-plugin") } -secrets { defaultPropertiesFileName = "apikeys.defaults.properties" } +secrets { + propertiesFileName = "apikeys.properties" + defaultPropertiesFileName = "apikeys.defaults.properties" +} android { namespace = "com.android.periodpals" @@ -28,8 +31,10 @@ android { if (localPropertiesFile.exists()) { apikeysProperties.load(FileInputStream(localPropertiesFile)) } - val supabaseUrl = apikeysProperties.getProperty("SUPABASE_URL") ?: "" - val supabaseKey = apikeysProperties.getProperty("SUPABASE_KEY") ?: "" + val supabaseUrl = apikeysProperties.getProperty("SUPABASE_URL") ?: "couldnt get property" + val supabaseKey = apikeysProperties.getProperty("SUPABASE_KEY") ?: "couldnt get property" + val powersyncUrl = apikeysProperties.getProperty("POWERSYNC_URL") ?: "couldnt get property" + val serviceKey = apikeysProperties.getProperty("SERVICE_KEY") ?: "couldnt get property" defaultConfig { applicationId = "com.android.periodpals" @@ -43,6 +48,8 @@ android { buildConfigField("String", "SUPABASE_URL", "\"${supabaseUrl}\"") buildConfigField("String", "SUPABASE_KEY", "\"${supabaseKey}\"") + buildConfigField("String", "POWERSYNC_URL", "\"${powersyncUrl}\"") + buildConfigField("String", "SERVICE_KEY", "\"${serviceKey}\"") } buildFeatures { buildConfig = true }