Skip to content

Commit

Permalink
Merge pull request #444 from Countly/staging
Browse files Browse the repository at this point in the history
Staging 7.8
  • Loading branch information
turtledreams authored Dec 23, 2024
2 parents 924fbbd + f1d25a5 commit d3ddbc8
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 11 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 24.7.8
* Added a config option to content (setZoneTimerInterval) to set content zone timer. (Experimental!)

## 24.7.7
* Mitigated an issue where an automatically closed autostopped view's duration could have increased when opening new views
* Mitigated an issue where, on Android 35 and above, the navigation bar was overlapping with the content display.
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ org.gradle.configureondemand=true
android.useAndroidX=true
android.enableJetifier=true
# RELEASE FIELD SECTION
VERSION_NAME=24.7.7
VERSION_NAME=24.7.8
GROUP=ly.count.android
POM_URL=https://github.com/Countly/countly-sdk-android
POM_SCM_URL=https://github.com/Countly/countly-sdk-android
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public class TestUtils {
public final static String commonAppKey = "appkey";
public final static String commonDeviceId = "1234";
public final static String SDK_NAME = "java-native-android";
public final static String SDK_VERSION = "24.7.7";
public final static String SDK_VERSION = "24.7.8";
public static final int MAX_THREAD_COUNT_PER_STACK_TRACE = 50;

public static class Activity2 extends Activity {
Expand Down
10 changes: 5 additions & 5 deletions sdk/src/main/java/ly/count/android/sdk/ConfigContent.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@

public class ConfigContent {

int contentUpdateInterval = 30;
int zoneTimerInterval = 30;
ContentCallback globalContentCallback = null;

/**
* Set the interval for the automatic content update calls
*
* @param contentUpdateInterval in seconds
* @param zoneTimerIntervalSeconds in seconds
* @return config content to chain calls
* @apiNote This is an EXPERIMENTAL feature, and it can have breaking changes
*/
private synchronized ConfigContent setContentUpdateInterval(int contentUpdateInterval) {
if (contentUpdateInterval > 0) {
this.contentUpdateInterval = contentUpdateInterval;
public synchronized ConfigContent setZoneTimerInterval(int zoneTimerIntervalSeconds) {
if (zoneTimerIntervalSeconds > 15) {
this.zoneTimerInterval = zoneTimerIntervalSeconds;
}
return this;
}
Expand Down
2 changes: 1 addition & 1 deletion sdk/src/main/java/ly/count/android/sdk/Countly.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ of this software and associated documentation files (the "Software"), to deal
*/
public class Countly {

private final String DEFAULT_COUNTLY_SDK_VERSION_STRING = "24.7.7";
private final String DEFAULT_COUNTLY_SDK_VERSION_STRING = "24.7.8";

/**
* Used as request meta data on every request
Expand Down
6 changes: 3 additions & 3 deletions sdk/src/main/java/ly/count/android/sdk/ModuleContent.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class ModuleContent extends ModuleBase {
Content contentInterface;
CountlyTimer countlyTimer;
private boolean shouldFetchContents = false;
private final int contentUpdateInterval;
private final int zoneTimerInterval;
private final ContentCallback globalContentCallback;
static int waitForDelay = 0;

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

contentInterface = new Content();
countlyTimer = new CountlyTimer();
contentUpdateInterval = config.content.contentUpdateInterval;
zoneTimerInterval = config.content.zoneTimerInterval;
globalContentCallback = config.content.globalContentCallback;
}

Expand Down Expand Up @@ -90,7 +90,7 @@ void registerForContentUpdates(@Nullable String[] categories) {
validCategories = categories;
}

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

if (waitForDelay > 0) {
Expand Down

0 comments on commit d3ddbc8

Please sign in to comment.