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, remove unused strings
This commit is contained in:
parent
100d3dac7c
commit
d50fbe566c
2 changed files with 15 additions and 19 deletions
|
@ -27,11 +27,11 @@ fun String.execute() = ByteArrayOutputStream().use { baot ->
|
||||||
}
|
}
|
||||||
|
|
||||||
val localProperties = Properties()
|
val localProperties = Properties()
|
||||||
val localPropertiesEnabled = try {
|
try {
|
||||||
localProperties.load(FileInputStream(rootProject.file("local.properties")))
|
localProperties.load(FileInputStream(rootProject.file("local.properties")))
|
||||||
true
|
} catch (_: Exception) {
|
||||||
} catch(_: Exception) {
|
localProperties.setProperty("debug.gdrive.clientId", "")
|
||||||
false
|
localProperties.setProperty("debug.gdrive.secret", "")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -95,18 +95,16 @@ android {
|
||||||
"proguard-rules.pro"
|
"proguard-rules.pro"
|
||||||
)
|
)
|
||||||
|
|
||||||
if (localPropertiesEnabled) {
|
resValue(
|
||||||
resValue(
|
"string",
|
||||||
"string",
|
"debug_gdrive_secret",
|
||||||
"debug_gdrive_secret",
|
localProperties.getProperty("debug.gdrive.secret") ?: ""
|
||||||
localProperties.getProperty("debug.gdrive.secret") ?: ""
|
)
|
||||||
)
|
resValue(
|
||||||
resValue(
|
"string",
|
||||||
"string",
|
"debug_gdrive_clientId",
|
||||||
"debug_gdrive_clientId",
|
localProperties.getProperty("debug.gdrive.clientId") ?: ""
|
||||||
localProperties.getProperty("debug.gdrive.clientId") ?: ""
|
)
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
flavorDimensions.add("state")
|
flavorDimensions.add("state")
|
||||||
|
|
|
@ -663,9 +663,7 @@
|
||||||
<string name="subscription_new">Subscribed to %s</string>
|
<string name="subscription_new">Subscribed to %s</string>
|
||||||
<string name="subscription_deleted">Unsubscribed from %s</string>
|
<string name="subscription_deleted">Unsubscribed from %s</string>
|
||||||
<string name="subscription_episode_released">Episode %d released!</string>
|
<string name="subscription_episode_released">Episode %d released!</string>
|
||||||
<string name="example_login_client_confirmation_code">OAuth Confirmation Code</string>
|
|
||||||
<string name="confirm_next">Confirm</string>
|
|
||||||
<string name="example_login_file_name_full">Sync file name (optional)</string>
|
<string name="example_login_file_name_full">Sync file name (optional)</string>
|
||||||
<string name="example_login_redirect_url_full">Oauth redirect url (optional)</string>
|
<string name="example_login_redirect_url_full">Oauth redirect url (optional)</string>
|
||||||
<string name="example_redirect_url">https://chiff.github.io/cloudstream-sync/google-drive</string>
|
<string name="example_redirect_url" translatable="false">https://chiff.github.io/cloudstream-sync/google-drive</string>
|
||||||
</resources>
|
</resources>
|
Loading…
Reference in a new issue