-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
856f599
commit 6991d18
Showing
1 changed file
with
5 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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(); | ||
} | ||
|
||
|
@@ -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"); | ||
|
@@ -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) { | ||
|