diff --git a/src/main/java/ecorp/easy/installer/AppConstants.java b/src/main/java/ecorp/easy/installer/AppConstants.java index 0bf7765811662ccc3c2710a3373be61440edb636..08220ff18af10655d8b1327e3694aac69807ec28 100644 --- a/src/main/java/ecorp/easy/installer/AppConstants.java +++ b/src/main/java/ecorp/easy/installer/AppConstants.java @@ -38,8 +38,10 @@ public abstract class AppConstants { public final static String AdbFolderName = "adb"; - public final static String FEEDBACK_STORAGE_URL ="https://ecloud.global/s/QLwyiZ4fysodiz3"; - public final static String LOG_STORAGE_URL ="https://ecloud.global/s/4qRxWjeM5Yb72b4"; + public final static String MURENA_BASE_URL = "https://murena.io"; + + public final static String FEEDBACK_STORAGE_URL = MURENA_BASE_URL + "/s/QLwyiZ4fysodiz3"; + public final static String LOG_STORAGE_URL = MURENA_BASE_URL + "/s/4qRxWjeM5Yb72b4"; private final static String BuildSrcFolderName = "buildSrc"; //step type key diff --git a/src/main/java/ecorp/easy/installer/tasks/AskAccountTask.java b/src/main/java/ecorp/easy/installer/tasks/AskAccountTask.java index af08892e5a0682d45c790dbff680526928e7daff..174eb926ef18508e67394d9b37965e3b09e6702d 100644 --- a/src/main/java/ecorp/easy/installer/tasks/AskAccountTask.java +++ b/src/main/java/ecorp/easy/installer/tasks/AskAccountTask.java @@ -19,6 +19,8 @@ import java.net.URI; import java.net.URLEncoder; import java.nio.charset.StandardCharsets; import java.util.Map; + +import ecorp.easy.installer.AppConstants; import javafx.concurrent.Task; import java.net.http.HttpClient; import java.net.http.HttpRequest; @@ -98,7 +100,7 @@ public class AskAccountTask extends Task{ .POST(datas) .setHeader("User-Agent", "Java 11 HttpClient Bot") // add request header .header("Content-Type", "application/x-www-form-urlencoded") - .uri(URI.create("https://welcome.ecloud.global/process_email_invite.php")) + .uri(URI.create(AppConstants.MURENA_BASE_URL + "/signup/process_email_invite.php")) .build(); return request; diff --git a/src/main/java/ecorp/easy/installer/tasks/UploadToEcloudTask.java b/src/main/java/ecorp/easy/installer/tasks/UploadToEcloudTask.java index d92bacf1fc480df8a696711306e0a8d85e30c094..d5cf22db86a0411dc327b3278775eede37845965 100644 --- a/src/main/java/ecorp/easy/installer/tasks/UploadToEcloudTask.java +++ b/src/main/java/ecorp/easy/installer/tasks/UploadToEcloudTask.java @@ -24,6 +24,8 @@ import java.net.http.HttpRequest; import java.net.http.HttpResponse; import java.nio.file.Paths; import java.util.Base64; + +import ecorp.easy.installer.AppConstants; import javafx.concurrent.Task; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -58,7 +60,7 @@ public class UploadToEcloudTask extends Task{ var request = HttpRequest.newBuilder() .header("Referer", URL) .header("Authorization", "Basic "+autorizationToken) //the value is defined for the folder and is required! I've no idea how to automaticaly get it - .uri(URI.create("https://ecloud.global/public.php/webdav/"+file.getName())) + .uri(URI.create(AppConstants.MURENA_BASE_URL + "/public.php/webdav/" + file.getName())) .PUT(HttpRequest.BodyPublishers.ofFile(Paths.get(filePath))) .build();