From effeb28fa5e587fab914d758417c79fa375e9a92 Mon Sep 17 00:00:00 2001 From: arifBurakDemiray Date: Wed, 27 Sep 2023 14:08:02 +0300 Subject: [PATCH] revert: sdk storage thingies --- .../java/ly/count/java/demo/BackendModeExample.java | 8 +++++--- .../count/java/demo/BackendModePerformanceTests.java | 10 ++++++---- app-java/src/main/java/ly/count/java/demo/Example.java | 3 ++- 3 files changed, 13 insertions(+), 8 deletions(-) diff --git a/app-java/src/main/java/ly/count/java/demo/BackendModeExample.java b/app-java/src/main/java/ly/count/java/demo/BackendModeExample.java index 48e993918..0dabf841e 100644 --- a/app-java/src/main/java/ly/count/java/demo/BackendModeExample.java +++ b/app-java/src/main/java/ly/count/java/demo/BackendModeExample.java @@ -1,12 +1,14 @@ package ly.count.java.demo; +import ly.count.sdk.java.Config; +import ly.count.sdk.java.Countly; + import java.io.File; import java.util.HashMap; import java.util.Map; import java.util.Scanner; import java.util.concurrent.CountDownLatch; -import ly.count.sdk.java.Config; -import ly.count.sdk.java.Countly; + public class BackendModeExample { final static String DEVICE_ID = "device-id"; @@ -313,7 +315,7 @@ public static void main(String[] args) throws Exception { String[] sdkStorageRootPath = { System.getProperty("user.home"), "__COUNTLY", "java_test" }; File sdkStorageRootDirectory = new File(String.join(File.separator, sdkStorageRootPath)); - if (sdkStorageRootDirectory.mkdirs()) { + if(sdkStorageRootDirectory.mkdirs()){ System.out.println("Directory creation failed"); } diff --git a/app-java/src/main/java/ly/count/java/demo/BackendModePerformanceTests.java b/app-java/src/main/java/ly/count/java/demo/BackendModePerformanceTests.java index 00f1fafd0..027f71cbc 100644 --- a/app-java/src/main/java/ly/count/java/demo/BackendModePerformanceTests.java +++ b/app-java/src/main/java/ly/count/java/demo/BackendModePerformanceTests.java @@ -1,12 +1,14 @@ package ly.count.java.demo; +import ly.count.sdk.java.Config; +import ly.count.sdk.java.Countly; +import ly.count.sdk.java.internal.Device; + import java.io.File; import java.util.HashMap; import java.util.Map; import java.util.Scanner; -import ly.count.sdk.java.Config; -import ly.count.sdk.java.Countly; -import ly.count.sdk.java.internal.Device; + public class BackendModePerformanceTests { final static String DEVICE_ID = "device-id"; @@ -26,7 +28,7 @@ private static void initSDK(int eventQueueSize, int requestQueueSize) { String[] sdkStorageRootPath = { System.getProperty("user.home"), "__COUNTLY", "java_test" }; File sdkStorageRootDirectory = new File(String.join(File.separator, sdkStorageRootPath)); - if (sdkStorageRootDirectory.mkdirs()) { + if(sdkStorageRootDirectory.mkdirs()){ System.out.println("Directory creation failed"); } diff --git a/app-java/src/main/java/ly/count/java/demo/Example.java b/app-java/src/main/java/ly/count/java/demo/Example.java index 3f79cd2f6..4367ab115 100755 --- a/app-java/src/main/java/ly/count/java/demo/Example.java +++ b/app-java/src/main/java/ly/count/java/demo/Example.java @@ -4,6 +4,7 @@ import java.util.HashMap; import java.util.Map; import java.util.Scanner; + import ly.count.sdk.java.Config; import ly.count.sdk.java.Countly; import ly.count.sdk.java.internal.LogCallback; @@ -124,7 +125,7 @@ public static void main(String[] args) throws Exception { String[] sdkStorageRootPath = { System.getProperty("user.home"), "__COUNTLY", "java_test" }; File sdkStorageRootDirectory = new File(String.join(File.separator, sdkStorageRootPath)); - if (sdkStorageRootDirectory.mkdirs()) { + if(sdkStorageRootDirectory.mkdirs()){ System.out.println("Directory creation failed"); }