Skip to content

Commit

Permalink
revert: sdk storage thingies
Browse files Browse the repository at this point in the history
  • Loading branch information
arifBurakDemiray committed Sep 27, 2023
1 parent d9bd2e6 commit effeb28
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -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";
Expand Down Expand Up @@ -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");
}

Expand Down
Original file line number Diff line number Diff line change
@@ -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";
Expand All @@ -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");
}

Expand Down
3 changes: 2 additions & 1 deletion app-java/src/main/java/ly/count/java/demo/Example.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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");
}

Expand Down

0 comments on commit effeb28

Please sign in to comment.