Skip to content

Commit d3ddbc8

Browse files
authored
Merge pull request #444 from Countly/staging
Staging 7.8
2 parents 924fbbd + f1d25a5 commit d3ddbc8

File tree

6 files changed

+14
-11
lines changed

6 files changed

+14
-11
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 24.7.8
2+
* Added a config option to content (setZoneTimerInterval) to set content zone timer. (Experimental!)
3+
14
## 24.7.7
25
* Mitigated an issue where an automatically closed autostopped view's duration could have increased when opening new views
36
* Mitigated an issue where, on Android 35 and above, the navigation bar was overlapping with the content display.

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ org.gradle.configureondemand=true
2222
android.useAndroidX=true
2323
android.enableJetifier=true
2424
# RELEASE FIELD SECTION
25-
VERSION_NAME=24.7.7
25+
VERSION_NAME=24.7.8
2626
GROUP=ly.count.android
2727
POM_URL=https://github.com/Countly/countly-sdk-android
2828
POM_SCM_URL=https://github.com/Countly/countly-sdk-android

sdk/src/androidTest/java/ly/count/android/sdk/TestUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public class TestUtils {
4444
public final static String commonAppKey = "appkey";
4545
public final static String commonDeviceId = "1234";
4646
public final static String SDK_NAME = "java-native-android";
47-
public final static String SDK_VERSION = "24.7.7";
47+
public final static String SDK_VERSION = "24.7.8";
4848
public static final int MAX_THREAD_COUNT_PER_STACK_TRACE = 50;
4949

5050
public static class Activity2 extends Activity {

sdk/src/main/java/ly/count/android/sdk/ConfigContent.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@
22

33
public class ConfigContent {
44

5-
int contentUpdateInterval = 30;
5+
int zoneTimerInterval = 30;
66
ContentCallback globalContentCallback = null;
77

88
/**
99
* Set the interval for the automatic content update calls
1010
*
11-
* @param contentUpdateInterval in seconds
11+
* @param zoneTimerIntervalSeconds in seconds
1212
* @return config content to chain calls
1313
* @apiNote This is an EXPERIMENTAL feature, and it can have breaking changes
1414
*/
15-
private synchronized ConfigContent setContentUpdateInterval(int contentUpdateInterval) {
16-
if (contentUpdateInterval > 0) {
17-
this.contentUpdateInterval = contentUpdateInterval;
15+
public synchronized ConfigContent setZoneTimerInterval(int zoneTimerIntervalSeconds) {
16+
if (zoneTimerIntervalSeconds > 15) {
17+
this.zoneTimerInterval = zoneTimerIntervalSeconds;
1818
}
1919
return this;
2020
}

sdk/src/main/java/ly/count/android/sdk/Countly.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ of this software and associated documentation files (the "Software"), to deal
4747
*/
4848
public class Countly {
4949

50-
private final String DEFAULT_COUNTLY_SDK_VERSION_STRING = "24.7.7";
50+
private final String DEFAULT_COUNTLY_SDK_VERSION_STRING = "24.7.8";
5151

5252
/**
5353
* Used as request meta data on every request

sdk/src/main/java/ly/count/android/sdk/ModuleContent.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public class ModuleContent extends ModuleBase {
1919
Content contentInterface;
2020
CountlyTimer countlyTimer;
2121
private boolean shouldFetchContents = false;
22-
private final int contentUpdateInterval;
22+
private final int zoneTimerInterval;
2323
private final ContentCallback globalContentCallback;
2424
static int waitForDelay = 0;
2525

@@ -30,7 +30,7 @@ public class ModuleContent extends ModuleBase {
3030

3131
contentInterface = new Content();
3232
countlyTimer = new CountlyTimer();
33-
contentUpdateInterval = config.content.contentUpdateInterval;
33+
zoneTimerInterval = config.content.zoneTimerInterval;
3434
globalContentCallback = config.content.globalContentCallback;
3535
}
3636

@@ -90,7 +90,7 @@ void registerForContentUpdates(@Nullable String[] categories) {
9090
validCategories = categories;
9191
}
9292

93-
countlyTimer.startTimer(contentUpdateInterval, () -> {
93+
countlyTimer.startTimer(zoneTimerInterval, () -> {
9494
L.d("[ModuleContent] registerForContentUpdates, waitForDelay: [" + waitForDelay + "], shouldFetchContents: [" + shouldFetchContents + "], categories: [" + Arrays.toString(validCategories) + "]");
9595

9696
if (waitForDelay > 0) {

0 commit comments

Comments
 (0)