From c9a2d4108c7274fcab53325cb000cff08bc50b34 Mon Sep 17 00:00:00 2001 From: hexated Date: Sat, 22 Apr 2023 15:55:01 +0700 Subject: [PATCH] try again --- SoraStream/build.gradle.kts | 8 ++++---- build.gradle.kts | 14 +++++++------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/SoraStream/build.gradle.kts b/SoraStream/build.gradle.kts index 3c8622ae..97a0690f 100644 --- a/SoraStream/build.gradle.kts +++ b/SoraStream/build.gradle.kts @@ -5,10 +5,10 @@ version = 122 android { defaultConfig { -// val properties = Properties() -// properties.load(project.rootProject.file("local.properties").inputStream()) -// -// buildConfigField("String", "SORA_API", "\"${properties.getProperty("SORA_API")}\"") + val properties = Properties() + properties.load(project.rootProject.file("local.properties").inputStream()) + + buildConfigField("String", "SORA_API", "\"${properties.getProperty("SORA_API")}\"") } diff --git a/build.gradle.kts b/build.gradle.kts index 7afc7277..777c72cd 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -42,12 +42,12 @@ subprojects { authors = listOf("Hexated") } - fun getApiKey(key: String): String { - val propFile = rootProject.file("./local.properties") - val properties = java.util.Properties() - properties.load(java.io.FileInputStream(propFile)) - return properties.getProperty(key) - } +// fun getApiKey(key: String): String { +// val propFile = rootProject.file("./local.properties") +// val properties = java.util.Properties() +// properties.load(java.io.FileInputStream(propFile)) +// return properties.getProperty(key) +// } android { compileSdkVersion(33) @@ -60,7 +60,7 @@ subprojects { // properties.load(project.rootProject.file("local.properties").inputStream()) // // buildConfigField("String", "LOKLOK_API", "\"${properties.getProperty("LOKLOK_API")}\"") - buildConfigField("String", "SORA_API", "\"${getApiKey("SORA_API")}\"") +// buildConfigField("String", "SORA_API", "\"${getApiKey("SORA_API")}\"") }