Skip to content

Commit

Permalink
feat: device id prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
arifBurakDemiray committed Oct 5, 2023
1 parent ac575ca commit f49ad50
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ public final class InternalConfig extends Config implements Storable {

ImmediateRequestGenerator immediateRequestGenerator = null;

final String DEVICE_ID_PREFIX = "CLY_";

/**
* Shouldn't be used!
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import java.util.Map;
import java.util.UUID;
import java.util.concurrent.Future;

import ly.count.sdk.java.Config;

/**
Expand All @@ -31,7 +30,7 @@ public boolean isAvailable() {

@Override
public String generate(CtxCore context) {
return UUID.randomUUID().toString();
return context.getConfig().DEVICE_ID_PREFIX + UUID.randomUUID();
}
}

Expand Down

0 comments on commit f49ad50

Please sign in to comment.