Repository navigation
Release 26.12.0 and java-ui 26.12.0 - #354
Conversation
maven workflow
The store file was truncated and then written in place on every save, and the SDK saves it at every init and every settings response. A process stopped mid-write left a file that made every later Countly.init throw a JSONException into the application. Saves now write a temporary file next to the store and move it over the store, atomically where the file system allows. A store that is not valid JSON is logged and replaced by empty storage on the next save instead of failing init, and a temporary file left by an interrupted save is deleted when the storage opens, so it is not taken for other stored SDK data.
Each response was merged into the stored settings, so a setting removed in SDK Manager kept its last server value for good, across restarts too: a removed kill switch, filter, journey trigger, limit or rqs stayed in force. Each valid response now replaces the stored settings, and a setting it leaves out goes back to the developer configuration or the SDK default, as the reference implementation does since its settings merge fix. Values the validation drops resolve the same way. A cr false from the server, from storage or from the provided settings no longer lifts the consent requirement the developer set: the resolved requirement is the developer's value or a cr true, so the settings can add the requirement but never remove it. While a device ID change without merge ends the previous device ID's timed events and view, a journey trigger or a full event queue reached on that thread no longer sends the queue under the new device ID; those events go out together under the previous one, and refresh no content zone. Tests whose later responses relied on the merge now carry the settings they need in each response.
Brings the dependency updates merged on master since 26.8.0 (org.json 20260814, junit 4.13.2, CI action bumps, the Slack action v4 inputs) to the branch releases are tagged from. - release_notice.yml stays deleted: its Slack and Discord steps live in the release workflow's announce job, which now uses the Slack v4 inputs and the Discord action 1.16.0 that master adopted, and links this repository's changelog instead of the server's. - The release contracts name org.json 20260814, so the release checks accept the new POM. - Dependabot targets staging, so updates no longer bypass it.
Requests, sessions and crashes took their IDs from the unique timestamp generator, which only remembers its last 10 values. More than about ten objects created inside a millisecond got an ID that was already in use. The ID names the stored file and keys the storage task that writes it, so the later write was skipped as a duplicate task or overwrote the earlier file. 50 requests pushed in a burst kept 11. They now take a storage ID that is the current time, raised to one more than the previous ID when the clock has not moved past it. Timestamps keep the old generator, so event times do not run ahead of the clock under load. The unused nonSessionRequest overload that gave a request a caller-chosen ID is removed. The verbose log of custom request headers now shows how many headers are added instead of their values, which often carry credentials.
…l rule GitHub creates an environment that a job names on first use, with no required reviewers and no deployment rules. For a production release the plan job now reads the environment the publish job will run in and stops the release unless it requires a reviewer and limits deployments to selected branches and tags. A maven-release that has its secrets but no approval rule cannot sign and upload unattended, and a missing one stops here instead of after the build. A protected-branches-only policy does not count: releases run on tags, which it would refuse only after the build.
sdk-java-ui now depends on a released core, so no build compiled or tested it against the sdk-java of the same checkout any more. It uses the core's internal classes, so a core change could break it unnoticed until the next UI release. The testUiWithLocalCore project property swaps the released core for the sdk-java project, and the cross-platform job sets it for the UI tests. Releasing a ui- tag still tests the UI against the released core it names. The property tests the UI source, not the released java-ui jar on a newer core. Also wraps the changelog line markdownlint (MD013) reported as too long.
Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 8.0.1 to 8.0.2. - [Release notes](https://github.com/actions/download-artifact/releases) - [Commits](actions/download-artifact@3e5f45b...9000827) --- updated-dependencies: - dependency-name: actions/download-artifact dependency-version: 8.0.2 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
Merge master into staging
Stop a production release when the publish environment has no approval rule
Bumps [github/codeql-action/init](https://github.com/github/codeql-action) from 4.38.2 to 4.39.0. - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](github/codeql-action@2892aa5...6f2ac81) --- updated-dependencies: - dependency-name: github/codeql-action/init dependency-version: 4.39.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
Bumps [github/codeql-action/analyze](https://github.com/github/codeql-action) from 4.38.2 to 4.39.0. - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](github/codeql-action@2892aa5...6f2ac81) --- updated-dependencies: - dependency-name: github/codeql-action/analyze dependency-version: 4.39.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
Master sync
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 7. - [Release notes](https://github.com/actions/checkout/releases) - [Commits](actions/checkout@v4...v7) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '7' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
Storage IDs that never repeat, and no header values in the verbose log
…g/actions/download-artifact-8.0.2 chore(ci): bump actions/download-artifact from 8.0.1 to 8.0.2
…g/actions/checkout-7 chore(ci): bump actions/checkout from 4 to 7
Test the UI source against the checkout's core in CI
Dependabot opened separate PRs for github/codeql-action/init and github/codeql-action/analyze (#313, #314). The analyze step fails when the two run different versions, so each PR failed CodeQL on its own. A group makes them one PR. Dependabot reads this file from master; staging carries the same file so the next release merge does not conflict.
SBS review fixes: replace stored settings, keep the consent requirement, device ID trigger, store file
…g/github/codeql-action/init-4.39.0 chore(ci): bump github/codeql-action/init from 4.38.2 to 4.39.0
Request records
CI report
Add optional gzip request compression
The behavior settings request asks for the content triggers (jt=1). When the app records something they list while the content zone is entered, the SDK sends the queued requests and asks for content, up to 3 times 1 second apart, with a 10 or 60 second gap per trigger kept in storage. The journey trigger events and views go through the same path while the server sends no content triggers, and the enter content zone setting now only decides the entry at init.
The flags read at init are atomic, the match comment is shorter, and the new tests declare the exceptions they throw.
Ask for content right after a content trigger
Bump the Java SDK and java-ui to 26.12.0
Accept Maven 3.10's repository record in release checks
Dependency security scanScanned 25 resolved dependencies, failing on HIGH and above. Result: passed |
CI report
Static analysis, 39 new findingsSpotBugs: 148 findings
First 50 findings
New compared with the base branch: 39
…cut here; the run's job summary has the rest. Code Coverage: Coverage, Line coverage 90.0% (sdk-java), 70.5% (sdk-java-ui)
Files changed by this pull request
Least covered classes (10 shown)
Dependency Security Scan: Dependency scan, No blocking vulnerabilityScanned 25 resolved dependencies, failing on HIGH and above. Java Gradle Build and Test: Unit tests, 806 passed, 0 failed, 0 skippedThe check run lists every test and each failure. Public API changes: Public API, 12 removed or changed, 66 addedRemoved or changed: 12. Each needs a CHANGELOG entry that marks it as a breaking change. Added: 66. Check that each one is meant to be public. For 90c6d59, updated 2026-11-30 13:31 UTC. Each check's run page has its full log. |
Public API changesRemoved or changed: 12. Each needs a CHANGELOG entry that marks it as a breaking change. Added: 66. Check that each one is meant to be public. |
Unit Test Results 🚀806 tests +195 806 ✅ +195 3m 27s ⏱️ + 1m 22s Results for commit 90c6d59. ± Comparison against base commit 1cf3a8f. This pull request removes 4 and adds 199 tests. Note that renamed tests count towards both. |
Code coverage
Files changed by this pull request
Least covered classes (10 shown)
|
No description provided.