From 82962f68a1d04c7699346c06b6fcdb49825330f7 Mon Sep 17 00:00:00 2001 From: DarkCat09 Date: Thu, 27 Jul 2023 12:41:00 +0400 Subject: [PATCH] Upd backend patch; remove lines instead of commenting --- backend.patch | 11 +++++------ reqwest4j.patch | 20 ++++++++++---------- 2 files changed, 15 insertions(+), 16 deletions(-) diff --git a/backend.patch b/backend.patch index 06aae36..ea0e98b 100644 --- a/backend.patch +++ b/backend.patch @@ -1,22 +1,21 @@ diff --git a/build.gradle b/build.gradle -index 231b179..f6cd83b 100644 +index edfdf66..c7cfa4d 100644 --- a/build.gradle +++ b/build.gradle -@@ -40,7 +40,8 @@ dependencies { +@@ -40,7 +40,7 @@ dependencies { implementation 'com.squareup.okhttp3:okhttp' implementation 'com.squareup.okhttp3:okhttp-brotli' - implementation 'io.sentry:sentry:6.26.0' + implementation 'io.sentry:sentry:6.27.0' - implementation 'rocks.kavin:reqwest4j:1.0.6' -+ //implementation 'rocks.kavin:reqwest4j:1.0.6' + implementation files('libs/reqwest4j.jar') implementation 'io.minio:minio:8.5.4' } diff --git a/src/main/java/me/kavin/piped/Main.java b/src/main/java/me/kavin/piped/Main.java -index a8647c0..3265111 100644 +index a5a8b57..4f9e6ed 100644 --- a/src/main/java/me/kavin/piped/Main.java +++ b/src/main/java/me/kavin/piped/Main.java -@@ -39,7 +39,7 @@ public class Main { +@@ -41,7 +41,7 @@ public class Main { ReqwestUtils.init(Constants.REQWEST_PROXY); Sentry.init(options -> { diff --git a/reqwest4j.patch b/reqwest4j.patch index ae12dbf..b14cfce 100644 --- a/reqwest4j.patch +++ b/reqwest4j.patch @@ -1,21 +1,23 @@ diff --git a/build.gradle b/build.gradle -index 952abb5..582be0d 100644 +index 4a0df70..46e6f0c 100644 --- a/build.gradle +++ b/build.gradle -@@ -11,7 +11,7 @@ repositories { +@@ -10,10 +10,6 @@ repositories { + mavenCentral() } - dependencies { +-dependencies { - rust(project(":reqwest-jni")) -+ //rust(project(":reqwest-jni")) - } - +-} +- // javac -h + tasks.register('generateJniHeaders', JavaCompile) { + classpath = sourceSets.main.compileClasspath diff --git a/reqwest-jni/build.gradle.kts b/reqwest-jni/build.gradle.kts -index 189a81d..8c5895e 100644 +index 189a81d..1c22153 100644 --- a/reqwest-jni/build.gradle.kts +++ b/reqwest-jni/build.gradle.kts -@@ -4,8 +4,10 @@ plugins { +@@ -4,8 +4,8 @@ plugins { rust { release.set(true) @@ -25,7 +27,5 @@ index 189a81d..8c5895e 100644 - targets += target("aarch64-unknown-linux-gnu", "libreqwest.so") - targets += target("x86_64-unknown-linux-gnu", "libreqwest.so") -+ // targets += target("aarch64-unknown-linux-gnu", "libreqwest.so") -+ // targets += target("x86_64-unknown-linux-gnu", "libreqwest.so") + targets += target("x86_64-unknown-linux-musl", "libreqwest.so") }