Skip to content

Commit

Permalink
revert: example things
Browse files Browse the repository at this point in the history
  • Loading branch information
arifBurakDemiray committed Jan 16, 2024
1 parent 856f599 commit 6991d18
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions app-java/src/main/java/ly/count/java/demo/Example.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ static void setUserProfile() {
Countly.instance().userProfile().setProperty(PredefinedUserPropertyKeys.EMAIL, "[email protected]");
Countly.instance().userProfile().setProperty(PredefinedUserPropertyKeys.ORGANIZATION, "Tester");
Countly.instance().userProfile().setProperty(PredefinedUserPropertyKeys.PHONE, "+123456789");
//Countly.instance().userProfile().setProperty(PredefinedUserPropertyKeys.PICTURE, new byte[] { 1, 2, 3, 4, 5 });
Countly.instance().userProfile().setProperty(PredefinedUserPropertyKeys.PICTURE, new byte[] { 1, 2, 3, 4, 5 });
//Countly.instance().userProfile().setProperty(UserPropertyKeys.PICTURE_PATH, "test.png"); to provide local path
Countly.instance().userProfile().setProperty(PredefinedUserPropertyKeys.PICTURE_PATH, "/Users/euxinos/Documents/Images/frog.png");
Countly.instance().userProfile().setProperty(PredefinedUserPropertyKeys.PICTURE_PATH, "https://someurl.com/test.png");
Countly.instance().userProfile().save();
}

Expand Down Expand Up @@ -186,8 +186,8 @@ public static void main(String[] args) throws Exception {

Scanner scanner = new Scanner(System.in);

String COUNTLY_SERVER_URL = "https://master.count.ly/";
String COUNTLY_APP_KEY = "a2a8861870b31fa2e73e5d1deeb57ac5866cca8d";
String COUNTLY_SERVER_URL = "https://xxx.server.ly/";
String COUNTLY_APP_KEY = "COUNTLY_APP_KEY";

Map<String, String> metricOverride = new ConcurrentHashMap<>();
metricOverride.put("aa", "11");
Expand All @@ -211,8 +211,7 @@ public static void main(String[] args) throws Exception {
.setDeviceIdStrategy(Config.DeviceIdStrategy.UUID)
.enableFeatures(Config.Feature.Events, Config.Feature.Sessions, Config.Feature.CrashReporting, Config.Feature.Views, Config.Feature.UserProfiles, Config.Feature.Location, Config.Feature.Feedback)
.setRequiresConsent(true)
.enableForcedHTTPPost()
.enableParameterTamperingProtection("checksum")
//.enableParameterTamperingProtection("test-salt-checksum")
.setLogListener(new LogCallback() {
@Override
public void LogHappened(String logMessage, Config.LoggingLevel logLevel) {
Expand Down

0 comments on commit 6991d18

Please sign in to comment.