feat: add remote sync capability - fix build.gradle.kts, remove unused strings

This commit is contained in:
Martin Filo 2023-04-03 22:15:57 +02:00
parent 100d3dac7c
commit d50fbe566c
2 changed files with 15 additions and 19 deletions

View file

@ -27,11 +27,11 @@ fun String.execute() = ByteArrayOutputStream().use { baot ->
}
val localProperties = Properties()
val localPropertiesEnabled = try {
try {
localProperties.load(FileInputStream(rootProject.file("local.properties")))
true
} catch(_: Exception) {
false
} catch (_: Exception) {
localProperties.setProperty("debug.gdrive.clientId", "")
localProperties.setProperty("debug.gdrive.secret", "")
}
@ -95,7 +95,6 @@ android {
"proguard-rules.pro"
)
if (localPropertiesEnabled) {
resValue(
"string",
"debug_gdrive_secret",
@ -108,7 +107,6 @@ android {
)
}
}
}
flavorDimensions.add("state")
productFlavors {
create("stable") {

View file

@ -663,9 +663,7 @@
<string name="subscription_new">Subscribed to %s</string>
<string name="subscription_deleted">Unsubscribed from %s</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_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>