Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## XX.XX.XX
## 26.12.0
* !! Major breaking change !! New versions of `ly.count.sdk:java` and `ly.count.sdk:java-ui` are published at `https://maven.countly.com` instead of Maven Central. Add the repository once.
Gradle, next to `mavenCentral()` in `dependencyResolutionManagement` of `settings.gradle` (or in `allprojects` of the root `build.gradle` in older projects):
```groovy
Expand Down Expand Up @@ -47,18 +47,16 @@
* Added support for the SDK connection test. When the server asks for it, the SDK checks that it can reach every endpoint it depends on and reports the results.
* Added "setMaxKeyLength(int)" init config method to limit the length of event keys, view names, segmentation keys and custom user property keys. Longer keys are truncated. There is no limit by default, and the key length limit of the SDK behavior settings overrides it.
* Added "disableHealthCheck()" init config method to turn off the health check request.
* Added "changeServerUrl(String)" to "Countly.instance()" to change the server URL after init
* Added "changeAppKey(String)" to "Countly.instance()" to change the app key after init
* Added "flushQueues()", "replaceAllAppKeysInQueueWithCurrentAppKey()", "removeDifferentAppKeysFromQueue()" and "attemptToSendStoredRequests()" to "Countly.instance()" to manage the request queue
* Added "changeServerUrl(String)" to "Countly.instance()" to change the server URL after init.
* Added "changeAppKey(String)" to "Countly.instance()" to change the app key after init.
* Added "flushQueues()", "replaceAllAppKeysInQueueWithCurrentAppKey()", "removeDifferentAppKeysFromQueue()" and "attemptToSendStoredRequests()" to "Countly.instance()" to manage the request queue.
* The deprecated "event", "timedEvent", "view" and "addCrashReport" calls of the session interface, and "record" and "endAndRecord" of a legacy event, now log a warning that names the call to use instead.
* Failed requests are now logged at debug level, and wrong uses of the session, event, view and crash methods at warning level instead of error level.

* Mitigated an issue where saving the SDK storage while remote config values were changing could empty the storage file.
* Mitigated an issue where a storage file cut short by a stopped process made initialization fail.
* Mitigated an issue where a request recorded while the SDK was finishing a send could wait until the next request or session update before it was sent.

* Updated JSON library version from "20250517" to "20260814".

* Mitigated an issue where requests, sessions or crashes created close together could get the same storage ID, so some of them were lost.
* Mitigated an issue where removing the consent of one feature also stopped the other features and deleted their queued events, unsent crashes and remote config values, after which the device ID and user profile interfaces could throw.
* Mitigated an issue where, while consent was required, unhandled crashes were not recorded if the crash reporting consent was given after initialization.
Expand All @@ -73,6 +71,8 @@
* Mitigated an issue where "onConsent" and "onConsentRemoval" threw a NullPointerException when one of the given features was null.
* Mitigated an issue where the session update timer logged an error every minute for a session that was created but not begun.

* Updated JSON library version from "20250517" to "20260814".

## 26.8.0
* Added support for the Content feature, accessible through the "Countly.instance().content()" interface:
* "enterContentZone" / "exitContentZone" for starting and stopping periodic content fetching
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public final class AppContext {
// flows, so our raw feedback HTTP call (used to recover the wv field
// for URL construction) identifies the same client.
public static final String SDK_NAME = "java-native";
public static final String SDK_VERSION = "26.8.0";
public static final String SDK_VERSION = "26.12.0";
public static final String PLATFORM = "desktop";

// Populated from the Init tab once the user initializes the SDK; the
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ subprojects {
}

allprojects {
ext.CLY_VERSION = "26.8.0"
ext.CLY_VERSION = "26.12.0"
ext.POWERMOCK_VERSION = "1.7.4"
ext.JACOCO_VERSION = "0.8.13"

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# org.gradle.parallel=true

# RELEASE FIELD SECTION
VERSION_NAME=26.8.0
VERSION_NAME=26.12.0
GROUP=ly.count.sdk

POM_URL=https://github.com/Countly/countly-sdk-java
Expand Down
6 changes: 5 additions & 1 deletion sdk-java-ui/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
## XX.XX.XX
## 26.12.0
* !! Major breaking change !! New versions of `ly.count.sdk:java-ui` are published at `https://maven.countly.com` instead of Maven Central. Add the repository once, as shown in the Java SDK's [CHANGELOG](../CHANGELOG.md), and keep `mavenCentral()`: JavaFX, the JSON library and Java SDK versions up to 26.8.0 still come from there.
Versions released before this one stay available on Maven Central. The files are signed with the same key as before (`FC8DB0DE234A273BA45E562FB8C83A079A5BBD0C`).
* ! Minor breaking change ! `ly.count.sdk:java-ui` now has its own version numbers and is released only when it changes, so its version no longer follows the core SDK `ly.count.sdk:java`.
It names the core version it needs, currently 26.8.0; if your project also declares `ly.count.sdk:java`, use that version or a newer one.

* Updated JSON library version from "20250517" to "20260814".

## 26.8.0
* First release, together with the Java SDK 26.8.0. See the Java SDK's [CHANGELOG](../CHANGELOG.md) for what it displays.
2 changes: 1 addition & 1 deletion sdk-java-ui/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#RELEASE FIELDS
POM_ARTIFACT_ID=java-ui
# Released on its own with tags ui-X.Y.Z, so it overrides the root VERSION_NAME of the core SDK.
VERSION_NAME=26.8.0
VERSION_NAME=26.12.0

POM_NAME=Countly Java SDK UI
POM_DESCRIPTION=JavaFX user interface for the Countly Java SDK, displaying feedback widgets and content
Expand Down
2 changes: 1 addition & 1 deletion sdk-java/src/main/java/ly/count/sdk/java/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
/**
* Countly SDK version to be sent in HTTP requests
*/
protected String sdkVersion = "26.8.0";
protected String sdkVersion = "26.12.0";

/**
* Countly SDK version to be sent in HTTP requests
Expand Down Expand Up @@ -104,12 +104,12 @@
protected int networkReadTimeout = 30;

/**
* How long to wait between requests in milliseconds. Used to decrease CPU & I/O load on the device.

Check warning on line 107 in sdk-java/src/main/java/ly/count/sdk/java/Config.java

View workflow job for this annotation

GitHub Actions / Release checks (26.12.0)

invalid input: '&'
*/
protected int networkRequestCooldown = 1000;

/**
* How long to wait between Device ID change & push token requests, in milliseconds.

Check warning on line 112 in sdk-java/src/main/java/ly/count/sdk/java/Config.java

View workflow job for this annotation

GitHub Actions / Release checks (26.12.0)

invalid input: '&'

Check warning on line 112 in sdk-java/src/main/java/ly/count/sdk/java/Config.java

View workflow job for this annotation

GitHub Actions / Release checks (26.12.0)

invalid input: '&'
* Required by Countly server, don't change unless you know what you're doing!
*/
protected int networkImportantRequestCooldown = 5000;
Expand All @@ -126,7 +126,7 @@
* This ensures pinning continues to work after certificate prolongation.
* Certificates ({@link #certificatePins}) on the other hand have specific expiry date.
* In case you chose this way of pinning, you MUST ensure that ALL installs of your app
* have both certificates (old & new) until expiry date.

Check warning on line 129 in sdk-java/src/main/java/ly/count/sdk/java/Config.java

View workflow job for this annotation

GitHub Actions / Release checks (26.12.0)

invalid input: '&'
*/
protected Set<String> publicKeyPins = null;

Expand All @@ -142,7 +142,7 @@
* This ensures pinning continues to work after certificate prolongation.
* Certificates on the other hand have specific expiry date.
* In case you chose this way of pinning, you MUST ensure that ALL installs of your app
* have both certificates (old & new) until expiry date.

Check warning on line 145 in sdk-java/src/main/java/ly/count/sdk/java/Config.java

View workflow job for this annotation

GitHub Actions / Release checks (26.12.0)

invalid input: '&'
*/
protected Set<String> certificatePins = null;

Expand All @@ -168,7 +168,7 @@
/**
* {@link CrashProcessor}-implementing class which is instantiated when application
* crashes or crash is reported programmatically using {@link Session#addCrashReport(Throwable, boolean, String, Map, String...)}.
* Crash processor helps you to add custom data in event of a crash: custom crash segments & crash logs.

Check warning on line 171 in sdk-java/src/main/java/ly/count/sdk/java/Config.java

View workflow job for this annotation

GitHub Actions / Release checks (26.12.0)

invalid input: '&'
*/
protected String crashProcessorClass = null;

Expand Down Expand Up @@ -724,7 +724,7 @@
}

/**
* Disable update requests completely. Only begin & end requests will be sent + some special

Check warning on line 727 in sdk-java/src/main/java/ly/count/sdk/java/Config.java

View workflow job for this annotation

GitHub Actions / Release checks (26.12.0)

invalid input: '&'
* cases if applicable like User Profile change or Push token updated.
*
* @return {@code this} instance for method chaining
Expand Down Expand Up @@ -822,7 +822,7 @@

/**
* How long to wait between requests in seconds.
* Used to decrease CPU & I/O load on the device in case of batch requests.

Check warning on line 825 in sdk-java/src/main/java/ly/count/sdk/java/Config.java

View workflow job for this annotation

GitHub Actions / Release checks (26.12.0)

invalid input: '&'
*
* @param milliseconds cooldown period in seconds
* @return {@code this} instance for method chaining
Expand All @@ -840,7 +840,7 @@

/**
* Set read timeout in seconds for HTTP requests SDK sends to Countly server. Defaults to 30.
* Used to decrease CPU & I/O load on the device in case of batch requests.

Check warning on line 843 in sdk-java/src/main/java/ly/count/sdk/java/Config.java

View workflow job for this annotation

GitHub Actions / Release checks (26.12.0)

invalid input: '&'
*
* @param milliseconds read timeout in milliseconds
* @return {@code this} instance for method chaining
Expand Down Expand Up @@ -868,7 +868,7 @@
* This ensures pinning continues to work after certificate prolongation.
* Certificates ({@link #certificatePins}) on the other hand have specific expiry date.
* In case you chose this way of pinning, you MUST ensure that ALL installs of your app
* have both certificates (old & new) until expiry date.

Check warning on line 871 in sdk-java/src/main/java/ly/count/sdk/java/Config.java

View workflow job for this annotation

GitHub Actions / Release checks (26.12.0)

invalid input: '&'
*
* NOTE: when {@link #serverURL} doesn't have {@code "https://"} public key pinning doesn't work
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public class TestUtils {
static String SERVER_APP_KEY = "COUNTLY_APP_KEY";
static String DEVICE_ID = "some_random_test_device_id";
static String SDK_NAME = "java-native";
static String SDK_VERSION = "26.8.0";
static String SDK_VERSION = "26.12.0";
static String APPLICATION_VERSION = "1.0";

public static final String[] eKeys = new String[] { "eventKey1", "eventKey2", "eventKey3", "eventKey4", "eventKey5", "eventKey6", "eventKey7" };
Expand Down
Loading