mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
feat: add remote sync capability - fix build.gradle.kts
This commit is contained in:
parent
1122137d18
commit
100d3dac7c
2 changed files with 21 additions and 12 deletions
|
@ -27,7 +27,13 @@ fun String.execute() = ByteArrayOutputStream().use { baot ->
|
||||||
}
|
}
|
||||||
|
|
||||||
val localProperties = Properties()
|
val localProperties = Properties()
|
||||||
|
val localPropertiesEnabled = try {
|
||||||
localProperties.load(FileInputStream(rootProject.file("local.properties")))
|
localProperties.load(FileInputStream(rootProject.file("local.properties")))
|
||||||
|
true
|
||||||
|
} catch(_: Exception) {
|
||||||
|
false
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
android {
|
android {
|
||||||
testOptions {
|
testOptions {
|
||||||
|
@ -88,6 +94,8 @@ android {
|
||||||
getDefaultProguardFile("proguard-android-optimize.txt"),
|
getDefaultProguardFile("proguard-android-optimize.txt"),
|
||||||
"proguard-rules.pro"
|
"proguard-rules.pro"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if (localPropertiesEnabled) {
|
||||||
resValue(
|
resValue(
|
||||||
"string",
|
"string",
|
||||||
"debug_gdrive_secret",
|
"debug_gdrive_secret",
|
||||||
|
@ -100,6 +108,7 @@ android {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
flavorDimensions.add("state")
|
flavorDimensions.add("state")
|
||||||
productFlavors {
|
productFlavors {
|
||||||
create("stable") {
|
create("stable") {
|
||||||
|
|
|
@ -38,7 +38,7 @@ import java.io.InputStream
|
||||||
import java.util.*
|
import java.util.*
|
||||||
|
|
||||||
|
|
||||||
// TODO: improvements and ideas
|
// improvements and ideas
|
||||||
// - add option to use proper oauth through google services one tap - would need google console project on behalf of cloudstream
|
// - add option to use proper oauth through google services one tap - would need google console project on behalf of cloudstream
|
||||||
// - encrypt data on drive
|
// - encrypt data on drive
|
||||||
// - choose what should be synced
|
// - choose what should be synced
|
||||||
|
|
Loading…
Reference in a new issue