From d50fbe566cec3190c39aa319f5133e5ff48703d0 Mon Sep 17 00:00:00 2001 From: Martin Filo Date: Mon, 3 Apr 2023 22:15:57 +0200 Subject: [PATCH] feat: add remote sync capability - fix build.gradle.kts, remove unused strings --- app/build.gradle.kts | 30 ++++++++++++++--------------- app/src/main/res/values/strings.xml | 4 +--- 2 files changed, 15 insertions(+), 19 deletions(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index fe064356..d49b2878 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -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,18 +95,16 @@ android { "proguard-rules.pro" ) - if (localPropertiesEnabled) { - resValue( - "string", - "debug_gdrive_secret", - localProperties.getProperty("debug.gdrive.secret") ?: "" - ) - resValue( - "string", - "debug_gdrive_clientId", - localProperties.getProperty("debug.gdrive.clientId") ?: "" - ) - } + resValue( + "string", + "debug_gdrive_secret", + localProperties.getProperty("debug.gdrive.secret") ?: "" + ) + resValue( + "string", + "debug_gdrive_clientId", + localProperties.getProperty("debug.gdrive.clientId") ?: "" + ) } } flavorDimensions.add("state") diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 2c37fcce..ee51167e 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -663,9 +663,7 @@ Subscribed to %s Unsubscribed from %s Episode %d released! - OAuth Confirmation Code - Confirm Sync file name (optional) Oauth redirect url (optional) - https://chiff.github.io/cloudstream-sync/google-drive + https://chiff.github.io/cloudstream-sync/google-drive \ No newline at end of file