From 302400cdbf5fc19bdf933a3b80daa924e9608bd6 Mon Sep 17 00:00:00 2001 From: Arif Burak Demiray Date: Thu, 25 Jan 2024 15:06:06 +0300 Subject: [PATCH 1/3] feat: warn for default --- examples/example_integration.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/examples/example_integration.cpp b/examples/example_integration.cpp index 1497337..e64e372 100644 --- a/examples/example_integration.cpp +++ b/examples/example_integration.cpp @@ -47,7 +47,15 @@ int main() { ct.SetMetrics("Windows 10", "10.22", "Mac", "800x600", "Carrier", "1.0"); // start the SDK (initialize the SDK) - ct.start("YOUR_APP_KEY", "https://try.count.ly", 443, true); + string _appKey = "YOUR_APP_KEY"; + string _serverUrl = "https://your.server.ly"; + + if(_appKey.compare("YOUR_APP_KEY") == 0 || _serverUrl.compare("https://your.server.ly") == 0){ + cerr << "Please do not use default set of app key and server url" << endl; + return 0; + } + + ct.start(_appKey, _serverUrl, 443, true); ct.setAutomaticSessionUpdateInterval(5);// The value is set so low just for internal validation. ct.setMaxRQProcessingBatchSize(2); // in most cases not needed to be set. The value is set so low just for internal validation From d1a7101d71b9d20a52c00925ae8567f93fb0f1a7 Mon Sep 17 00:00:00 2001 From: Arif Burak Demiray <57103426+arifBurakDemiray@users.noreply.github.com> Date: Fri, 26 Jan 2024 09:22:05 +0300 Subject: [PATCH 2/3] Update example_integration.cpp --- examples/example_integration.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/examples/example_integration.cpp b/examples/example_integration.cpp index e64e372..00c9dd1 100644 --- a/examples/example_integration.cpp +++ b/examples/example_integration.cpp @@ -52,7 +52,6 @@ int main() { if(_appKey.compare("YOUR_APP_KEY") == 0 || _serverUrl.compare("https://your.server.ly") == 0){ cerr << "Please do not use default set of app key and server url" << endl; - return 0; } ct.start(_appKey, _serverUrl, 443, true); From 1e1fdbacfe0517dba14599db7f3813d9b60f490f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Art=C5=ABrs=20Kadi=C4=B7is?= Date: Mon, 29 Jan 2024 15:35:35 +0200 Subject: [PATCH 3/3] Update example_integration.cpp --- examples/example_integration.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/example_integration.cpp b/examples/example_integration.cpp index 00c9dd1..e8306aa 100644 --- a/examples/example_integration.cpp +++ b/examples/example_integration.cpp @@ -50,7 +50,7 @@ int main() { string _appKey = "YOUR_APP_KEY"; string _serverUrl = "https://your.server.ly"; - if(_appKey.compare("YOUR_APP_KEY") == 0 || _serverUrl.compare("https://your.server.ly") == 0){ + if(_appKey.compare("YOUR_APP_KEY") == 0 || _serverUrl.compare("https://your.server.ly") == 0) { cerr << "Please do not use default set of app key and server url" << endl; }