mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
try again
This commit is contained in:
parent
c23d70b5df
commit
c9a2d4108c
2 changed files with 11 additions and 11 deletions
|
@ -5,10 +5,10 @@ version = 122
|
||||||
|
|
||||||
android {
|
android {
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
// val properties = Properties()
|
val properties = Properties()
|
||||||
// properties.load(project.rootProject.file("local.properties").inputStream())
|
properties.load(project.rootProject.file("local.properties").inputStream())
|
||||||
//
|
|
||||||
// buildConfigField("String", "SORA_API", "\"${properties.getProperty("SORA_API")}\"")
|
buildConfigField("String", "SORA_API", "\"${properties.getProperty("SORA_API")}\"")
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,12 +42,12 @@ subprojects {
|
||||||
authors = listOf("Hexated")
|
authors = listOf("Hexated")
|
||||||
}
|
}
|
||||||
|
|
||||||
fun getApiKey(key: String): String {
|
// fun getApiKey(key: String): String {
|
||||||
val propFile = rootProject.file("./local.properties")
|
// val propFile = rootProject.file("./local.properties")
|
||||||
val properties = java.util.Properties()
|
// val properties = java.util.Properties()
|
||||||
properties.load(java.io.FileInputStream(propFile))
|
// properties.load(java.io.FileInputStream(propFile))
|
||||||
return properties.getProperty(key)
|
// return properties.getProperty(key)
|
||||||
}
|
// }
|
||||||
|
|
||||||
android {
|
android {
|
||||||
compileSdkVersion(33)
|
compileSdkVersion(33)
|
||||||
|
@ -60,7 +60,7 @@ subprojects {
|
||||||
// properties.load(project.rootProject.file("local.properties").inputStream())
|
// properties.load(project.rootProject.file("local.properties").inputStream())
|
||||||
//
|
//
|
||||||
// buildConfigField("String", "LOKLOK_API", "\"${properties.getProperty("LOKLOK_API")}\"")
|
// buildConfigField("String", "LOKLOK_API", "\"${properties.getProperty("LOKLOK_API")}\"")
|
||||||
buildConfigField("String", "SORA_API", "\"${getApiKey("SORA_API")}\"")
|
// buildConfigField("String", "SORA_API", "\"${getApiKey("SORA_API")}\"")
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue