@@ -246,11 +246,6 @@ public boolean restore(byte[] data) {
246246 */
247247 protected int deviceIdStrategy = 0 ;
248248
249- /**
250- * Allow fallback from specified device id strategy to any other available strategy
251- */
252- protected boolean deviceIdFallbackAllowed = true ;
253-
254249 /**
255250 * Developer specified device id
256251 */
@@ -373,18 +368,6 @@ public boolean restore(byte[] data) {
373368 */
374369 protected int eventsBufferSize = 10 ;
375370
376- /**
377- * Minimal amount of time between sessions in seconds.
378- * For now used only when recovering from a crash as a session extension period.
379- */
380- protected int sessionCooldownPeriod = 30 ;
381-
382- /**
383- * How much time of user inactivity Countly should wait until automatically ending session.
384- * Works only with {@link #autoSessionsTracking} set to {@code true}.
385- */
386- protected int sessionAutoCloseAfter = "Android" .equals (System .getProperty ("os.name" )) ? 10 : 0 ;
387-
388371 /**
389372 * {@link CrashProcessor}-implementing class which is instantiated when application
390373 * crashes or crash is reported programmatically using {@link Session#addCrashReport(Throwable, boolean, String, Map, String...)}.
@@ -397,27 +380,12 @@ public boolean restore(byte[] data) {
397380 */
398381 protected Map <Integer , Class <? extends Module >> moduleOverrides = null ;
399382
400- /**
401- * String-String map with custom parameters sent in each request, persistent.
402- */
403- protected Map <String , String > persistentParams = null ;
404-
405383 /**
406384 * Requires GDPR-compliance calls.
407385 * If {@code true}, SDK waits for corresponding consent calls before recording any data.
408386 */
409387 protected boolean requiresConsent = false ;
410388
411- /**
412- * Automatically start session on app launch and stop it before it terminates
413- */
414- protected boolean autoSessionsTracking = true ;
415-
416- /**
417- * Automatically start a view on each activity start and stop it once activity is stopped
418- */
419- protected boolean autoViewsTracking = true ;
420-
421389 /**
422390 * If star rating dialog should be cancellable
423391 */
@@ -897,22 +865,6 @@ public Config disableUpdateRequests() {
897865 return this ;
898866 }
899867
900- /**
901- * Set minimal amount of time between sessions in seconds.
902- * For now used only when recovering from a crash as a session extension period.
903- *
904- * @param sessionCooldownPeriod min time interval between two sessions
905- * @return {@code this} instance for method chaining
906- */
907- public Config setSessionCooldownPeriod (int sessionCooldownPeriod ) {
908- if (sessionCooldownPeriod < 0 ) {
909- System .out .print ("[ConfigCore] sessionCooldownPeriod cannot be negative" );
910- } else {
911- this .sessionCooldownPeriod = sessionCooldownPeriod ;
912- }
913- return this ;
914- }
915-
916868 /**
917869 * Change name of SDK used in HTTP requests
918870 *
@@ -1094,7 +1046,7 @@ public Config addCertificatePin(String pemEncodedCertificate) {
10941046 /**
10951047 * Change period when a check for ANR is made. ANR reporting is enabled by default once you enable {@code Feature.CrashReporting}.
10961048 * Default period is 5 seconds. This is *NOT* a timeout for any possible time frame within app running time, it's a checking period.
1097- * Meaning *some* ANRs are to be recorded if main thread is blocked for slightly more than {@link #crashReportingANRCheckingPeriod} .
1049+ * Meaning *some* ANRs are to be recorded if main thread is blocked for slightly more than #crashReportingANRCheckingPeriod.
10981050 * Statistically it should be good enough as you don't really need all ANRs on the server.
10991051 * *More* ANRs will be recorded in case main thread is blocked for {@code 1.5 * crashReportingANRCheckingPeriod}. Almost all ANRs
11001052 * are going to be recorded once main thread is blocked for {@code 2 * crashReportingANRCheckingPeriod} or more seconds.
@@ -1145,15 +1097,6 @@ public Config setCrashProcessorClass(Class<? extends CrashProcessor> crashProces
11451097 */
11461098 protected Config overrideModule (Integer feature , Class <? extends Module > cls ) {
11471099 return this ;
1148- //if (feature == null || cls == null) {
1149- // System.out.print("[ConfigCore] Feature & class cannot be null");
1150- //} else {
1151- // if (moduleOverrides == null) {
1152- // moduleOverrides = new HashMap<>();
1153- // }
1154- // moduleOverrides.put(feature, cls);
1155- //}
1156- //return this;
11571100 }
11581101
11591102 /**
@@ -1188,9 +1131,10 @@ public boolean isFeatureEnabled(Config.Feature feature) {
11881131 * Getter for {@link #moduleOverrides}
11891132 *
11901133 * @return {@link #moduleOverrides} value for {@code Feature} specified
1134+ * @deprecated this will do nothing
11911135 */
11921136 public Class <? extends Module > getModuleOverride (Config .Feature feature ) {
1193- return moduleOverrides == null ? null : moduleOverrides . get ( feature . index ) ;
1137+ return null ;
11941138 }
11951139
11961140 /**
@@ -1205,69 +1149,6 @@ public Config setRequiresConsent(boolean requiresConsent) {
12051149 return this ;
12061150 }
12071151
1208- /**
1209- * Enable auto views tracking
1210- *
1211- * @param autoViewsTracking whether to enable it or disable
1212- * @return {@code this} instance for method chaining
1213- * @see #autoViewsTracking
1214- */
1215- public Config setAutoViewsTracking (boolean autoViewsTracking ) {
1216- this .autoViewsTracking = autoViewsTracking ;
1217- return this ;
1218- }
1219-
1220- /**
1221- * Enable auto sessions tracking
1222- *
1223- * @param autoSessionsTracking whether to enable it or disable
1224- * @return {@code this} instance for method chaining
1225- * @see #autoSessionsTracking
1226- */
1227- public Config setAutoSessionsTracking (boolean autoSessionsTracking ) {
1228- this .autoSessionsTracking = autoSessionsTracking ;
1229- return this ;
1230- }
1231-
1232- /**
1233- * Wait this much time before ending session in auto session tracking mode
1234- *
1235- * @param sessionAutoCloseAfter time in seconds
1236- * @return {@code this} instance for method chaining
1237- * @see #autoSessionsTracking
1238- */
1239- public Config setSessionAutoCloseAfter (int sessionAutoCloseAfter ) {
1240- this .sessionAutoCloseAfter = sessionAutoCloseAfter ;
1241- return this ;
1242- }
1243-
1244- /**
1245- * Getter for {@link #autoSessionsTracking}
1246- *
1247- * @return {@link #autoSessionsTracking} value
1248- */
1249- public boolean isAutoViewsTrackingEnabled () {
1250- return autoViewsTracking ;
1251- }
1252-
1253- /**
1254- * Getter for {@link #autoSessionsTracking}
1255- *
1256- * @return {@link #autoSessionsTracking} value
1257- */
1258- public boolean isAutoSessionsTrackingEnabled () {
1259- return autoSessionsTracking ;
1260- }
1261-
1262- /**
1263- * Getter for {@link #sessionAutoCloseAfter}
1264- *
1265- * @return {@link #sessionAutoCloseAfter} value
1266- */
1267- public int getSessionAutoCloseAfter () {
1268- return sessionAutoCloseAfter ;
1269- }
1270-
12711152 /**
12721153 * Getter for {@link #serverURL}
12731154 *
@@ -1302,7 +1183,7 @@ public int getDeviceIdStrategy() {
13021183 * @deprecated this will always return "true"
13031184 */
13041185 public boolean isDeviceIdFallbackAllowed () {
1305- return deviceIdFallbackAllowed ;
1186+ return true ;
13061187 }
13071188
13081189 /**
@@ -1415,9 +1296,9 @@ public LogCallback getLogListener() {
14151296 }
14161297
14171298 /**
1418- * Getter for {@link #testMode}
1299+ * Getter for #testMode
14191300 *
1420- * @return {@link #testMode} value
1301+ * @return #testMode value
14211302 * @deprecated Calling this function will always return 'false'
14221303 */
14231304 public boolean isTestModeEnabled () {
@@ -1433,15 +1314,6 @@ public int getSendUpdateEachSeconds() {
14331314 return sendUpdateEachSeconds ;
14341315 }
14351316
1436- /**
1437- * Getter for {@link #sessionCooldownPeriod}
1438- *
1439- * @return {@link #sessionCooldownPeriod} value
1440- */
1441- public int getSessionCooldownPeriod () {
1442- return sessionCooldownPeriod ;
1443- }
1444-
14451317 /**
14461318 * Getter for {@link #eventsBufferSize}
14471319 *
@@ -1506,10 +1378,10 @@ public Set<String> getCertificatePins() {
15061378 }
15071379
15081380 /**
1509- * Getter for {@link #crashReportingANRCheckingPeriod}
1381+ * Getter for #crashReportingANRCheckingPeriod
15101382 *
1511- * @return {@link #crashReportingANRCheckingPeriod} value
1512- * @Deprecated will always return "5"
1383+ * @return #crashReportingANRCheckingPeriod value
1384+ * @deprecated will always return "5"
15131385 */
15141386 public int getCrashReportingANRCheckingPeriod () {
15151387 return 5 ;
@@ -1532,7 +1404,6 @@ public String getCrashProcessorClass() {
15321404 */
15331405 public Class <? extends Module > getModuleOverride (int feature ) {
15341406 return null ;
1535- //return moduleOverrides == null ? null : moduleOverrides.get(feature);
15361407 }
15371408
15381409 /**
0 commit comments