Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
117 commits
Select commit Hold shift + click to select a range
f0be144
feat: SBS
arifBurakDemiray Jul 14, 2026
33063f9
maven workflow
turtledreams Sep 29, 2026
5c5bbde
Merge pull request #293 from Countly/maven-r2-release
turtledreams Sep 29, 2026
42e85b8
Merge branch 'staging' into sdk-behavior-settings
arifBurakDemiray Sep 30, 2026
b0a16d2
ui separation
turtledreams Sep 30, 2026
49c7e03
feat: sbs all, log gathering, connection test
arifBurakDemiray Sep 30, 2026
b61ef4f
Keep the SDK starting over a store file cut short
arifBurakDemiray Oct 21, 2026
17cb726
Replace the stored SDK behavior settings with each answer
arifBurakDemiray Oct 21, 2026
72356a7
Merge master into staging
arifBurakDemiray Oct 21, 2026
027f974
Give every stored object a storage ID that never repeats
arifBurakDemiray Oct 21, 2026
f1fd590
Stop a production release when the publish environment has no approva…
arifBurakDemiray Oct 21, 2026
00ff432
Test the UI module's source against the checkout's core in CI
arifBurakDemiray Oct 21, 2026
9511e15
chore(ci): bump actions/download-artifact from 8.0.1 to 8.0.2
dependabot[bot] Oct 22, 2026
895b009
Merge pull request #303 from Countly/sync-master-into-staging
arifBurakDemiray Oct 22, 2026
bd78fea
Merge pull request #304 from Countly/release-environment-guard
arifBurakDemiray Oct 22, 2026
025d8ad
chore(ci): bump github/codeql-action/init from 4.38.2 to 4.39.0
dependabot[bot] Oct 22, 2026
83a845e
chore(ci): bump github/codeql-action/analyze from 4.38.2 to 4.39.0
dependabot[bot] Oct 22, 2026
3b418b5
Delete .github/workflows/publishing.yml
arifBurakDemiray Oct 22, 2026
e570666
Merge pull request #315 from Countly/master_mirror
arifBurakDemiray Oct 22, 2026
037c08a
chore(ci): bump actions/checkout from 4 to 7
dependabot[bot] Oct 22, 2026
d089b0f
Merge branch 'staging' into request-id-and-header-log-fixes
arifBurakDemiray Oct 22, 2026
de428d2
Merge pull request #305 from Countly/request-id-and-header-log-fixes
arifBurakDemiray Oct 22, 2026
dcc3b80
Merge pull request #309 from Countly/dependabot/github_actions/stagin…
arifBurakDemiray Oct 22, 2026
29c6d81
Merge pull request #312 from Countly/dependabot/github_actions/stagin…
arifBurakDemiray Oct 22, 2026
f26cb58
feat: more settings
arifBurakDemiray Oct 22, 2026
c60b714
Merge pull request #306 from Countly/java-ui-test-against-local-core
arifBurakDemiray Oct 22, 2026
fe54cf0
Merge the CodeQL analyze bump (#314) so init and analyze both use 4.39.0
arifBurakDemiray Oct 22, 2026
5f7e74d
Update CodeQL's init and analyze actions in one Dependabot PR
arifBurakDemiray Oct 22, 2026
a6fe4ba
Merge pull request #307 from Countly/sbs-review-fixes
arifBurakDemiray Oct 22, 2026
78585d7
Merge pull request #313 from Countly/dependabot/github_actions/stagin…
arifBurakDemiray Oct 22, 2026
fd1081a
Merge pull request #317 from Countly/dependabot-group-codeql-staging
arifBurakDemiray Oct 22, 2026
b0ece96
chore(ci): bump gradle/actions/setup-gradle from 6.3.0 to 6.4.0
dependabot[bot] Oct 22, 2026
4bf5d65
Merge branch 'staging' into sdk-behavior-settings
arifBurakDemiray Oct 22, 2026
5e9b244
Gather log lines under their feature's consent, one queued batch at a…
arifBurakDemiray Oct 22, 2026
a9529bb
Hand out feature interfaces that are never null, stop only the remove…
arifBurakDemiray Oct 22, 2026
15d7186
Keep breadcrumbs during a crash, the logger on a refused init, quiet …
arifBurakDemiray Oct 22, 2026
4d8acdc
Merge pull request #318 from Countly/dependabot/github_actions/stagin…
arifBurakDemiray Oct 22, 2026
7e50a43
Merge pull request #319 from Countly/p7-log-gathering-fixes
arifBurakDemiray Oct 22, 2026
45315a0
Merge pull request #320 from Countly/sbs-consent-and-facades
arifBurakDemiray Oct 22, 2026
0e5896e
Merge pull request #321 from Countly/sbs-small-core-fixes
arifBurakDemiray Oct 22, 2026
6093958
Wait for the lines logged after a request's removal before asserting …
arifBurakDemiray Oct 22, 2026
18d5076
Merge pull request #322 from Countly/sbs-ci-test-race
arifBurakDemiray Oct 22, 2026
66a11ce
Address the Codacy findings worth changing
arifBurakDemiray Oct 22, 2026
e3d1bd7
Merge branch 'staging' into java-ui-separate-release
arifBurakDemiray Oct 22, 2026
64466a0
Merge pull request #275 from Countly/sdk-behavior-settings
arifBurakDemiray Oct 22, 2026
eac9eef
Merge branch 'staging' into java-ui-separate-release
arifBurakDemiray Oct 22, 2026
c0b090d
Merge pull request #295 from Countly/java-ui-separate-release
arifBurakDemiray Oct 22, 2026
adab76d
Validate the Gradle wrapper with gradle/actions/wrapper-validation@v6
arifBurakDemiray Oct 22, 2026
0c9f587
Wait for a sent log batch to be handed over before asserting it
arifBurakDemiray Oct 23, 2026
0bb49ec
feat: add setMaxKeyLength init config option
arifBurakDemiray Oct 23, 2026
a261452
Merge pull request #323 from Countly/ci-wrapper-validation-v6
arifBurakDemiray Oct 23, 2026
72523fc
Release on merging a release PR from staging into master
arifBurakDemiray Oct 23, 2026
5ce4970
Start the view tests early in a second
arifBurakDemiray Oct 23, 2026
025fd6a
Merge pull request #327 from Countly/view-duration-flake
arifBurakDemiray Oct 23, 2026
878947f
Merge pull request #326 from Countly/release-on-merge
arifBurakDemiray Oct 23, 2026
1a26864
chore(deps): bump org.cyclonedx:cyclonedx-gradle-plugin
dependabot[bot] Oct 26, 2026
f73c4ec
chore(deps): bump gradle-wrapper from 8.14.5 to 9.8.2
dependabot[bot] Oct 26, 2026
41006c1
Merge pull request #328 from Countly/dependabot/gradle/staging/org.cy…
arifBurakDemiray Oct 26, 2026
36df862
Build on Gradle 9: run Gradle on Java 17, keep testing the SDK on Java 8
arifBurakDemiray Oct 26, 2026
53befb5
Merge pull request #329 from Countly/dependabot/gradle/staging/gradle…
arifBurakDemiray Oct 26, 2026
bc8a45f
Merge pull request #325 from Countly/board/parity-r15-countly-sdk-java
arifBurakDemiray Oct 27, 2026
7fcbc2d
mp override fix
turtledreams Nov 2, 2026
7639e9c
Merge pull request #332 from Countly/map-fix
arifBurakDemiray Nov 2, 2026
1d1c176
HC log methods
turtledreams Nov 8, 2026
7995406
Merge pull request #334 from Countly/hc-method
arifBurakDemiray Nov 9, 2026
d8c0599
feat: change the server URL and app key after init
arifBurakDemiray Nov 10, 2026
7d2abb3
docs: simpler changelog entries
arifBurakDemiray Nov 10, 2026
dac4475
test: wait for the failed send before retrying
arifBurakDemiray Nov 10, 2026
8e98ace
Merge pull request #335 from Countly/change-app-key-server-url
arifBurakDemiray Nov 10, 2026
d2c789d
ci: pin actions to commit SHAs
arifBurakDemiray Nov 12, 2026
4c14601
ci: check pull requests for breaking public API changes
arifBurakDemiray Nov 12, 2026
ebfefd1
Merge pull request #336 from Countly/pin-actions
arifBurakDemiray Nov 12, 2026
cb91dcc
ci: load metalava on the root build script classpath
arifBurakDemiray Nov 12, 2026
5f65cc8
ci: start the public API script docstring on its second line
arifBurakDemiray Nov 12, 2026
cb1d99a
ci: fix the public API filter for changed signatures and other modules
arifBurakDemiray Nov 12, 2026
a36e9d3
ci: require the changelog of the module that breaks
arifBurakDemiray Nov 12, 2026
c740b9f
ci: give workflows read-only repository access
arifBurakDemiray Nov 12, 2026
ba13403
ci: scan the workflows with CodeQL
arifBurakDemiray Nov 12, 2026
4e77acd
ci: report static analysis findings
arifBurakDemiray Nov 12, 2026
f291c83
ci: keep the analysis scripts' docstrings on one line
arifBurakDemiray Nov 12, 2026
28230a0
ci: keep the API script's docstrings on one line
arifBurakDemiray Nov 12, 2026
16e224e
ci: fail pull requests on new static analysis findings
arifBurakDemiray Nov 12, 2026
1add635
ci: list the public API a pull request adds
arifBurakDemiray Nov 13, 2026
e3c9161
ci: record the public API and check it against the record
arifBurakDemiray Nov 13, 2026
97e8f49
Merge pull request #339 from Countly/codeql
arifBurakDemiray Nov 13, 2026
8a34479
Merge pull request #340 from Countly/static-analysis
arifBurakDemiray Nov 13, 2026
98e3b7b
Merge pull request #338 from Countly/ci-hygiene
arifBurakDemiray Nov 13, 2026
11e913b
test: record the requests the SDK sends
arifBurakDemiray Nov 13, 2026
180de05
ci: fix the Codacy findings in the API scripts
arifBurakDemiray Nov 13, 2026
1288f5b
Merge branch 'public-api-check' into request-records
arifBurakDemiray Nov 13, 2026
fc09eea
test: isolate the request scenarios from leaked metric overrides
arifBurakDemiray Nov 13, 2026
677791a
test: fix the remaining Codacy findings in the request scenarios
arifBurakDemiray Nov 13, 2026
979a0ec
chore: add code owners
arifBurakDemiray Nov 13, 2026
d6d698d
Merge pull request #342 from Countly/codeowners
arifBurakDemiray Nov 13, 2026
b54b50d
ci: fail the static analysis job on new findings
arifBurakDemiray Nov 13, 2026
77d0864
Merge pull request #343 from Countly/static-analysis-gate
arifBurakDemiray Nov 13, 2026
5c4b87e
Merge remote-tracking branch 'origin/staging' into ci-report
arifBurakDemiray Nov 13, 2026
65b7960
ci: keep one CI report comment on each pull request
arifBurakDemiray Nov 13, 2026
253b583
ci: add the public API changes to the CI report
arifBurakDemiray Nov 13, 2026
10df49e
ci: add the unit test results to the CI report
arifBurakDemiray Nov 13, 2026
272a459
ci: add the dependency scan to the CI report
arifBurakDemiray Nov 13, 2026
6cc30e6
ci: add the coverage to the CI report
arifBurakDemiray Nov 13, 2026
33d6d9f
ci: add the static analysis findings to the CI report
arifBurakDemiray Nov 13, 2026
54ac05c
Merge pull request #341 from Countly/request-records
arifBurakDemiray Nov 13, 2026
98c8fc9
Merge remote-tracking branch 'origin/staging' into ci-report
arifBurakDemiray Nov 13, 2026
79d9356
Merge pull request #344 from Countly/ci-report
arifBurakDemiray Nov 13, 2026
c0aa47e
Add optional gzip request compression
turtledreams Nov 18, 2026
9539040
Fix the static analysis findings of request compression
turtledreams Nov 18, 2026
cf76a19
Merge pull request #347 from Countly/request-compression
turtledreams Nov 20, 2026
50e265c
Ask for content right after a content trigger
turtledreams Nov 24, 2026
89b06b4
Keep the content trigger flags visible to other threads
turtledreams Nov 24, 2026
5bdfa7a
Merge pull request #350 from Countly/content-triggers
turtledreams Nov 25, 2026
b616bbe
Bump the Java SDK and java-ui to 26.12.0
arifBurakDemiray Nov 30, 2026
4be247f
Fix the 26.12.0 changelogs of the Java SDK and java-ui
arifBurakDemiray Nov 30, 2026
2e86f65
Merge pull request #352 from Countly/release-26.12.0
arifBurakDemiray Nov 30, 2026
91f94c2
Accept Maven 3.10's repository record in the consumer check
arifBurakDemiray Nov 30, 2026
90c6d59
Merge pull request #353 from Countly/fix-maven-source-check
arifBurakDemiray Nov 30, 2026
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
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @turtledreams @arifBurakDemiray
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ updates:
target-branch: staging
schedule:
interval: monthly
# CodeQL's init and analyze steps must run the same version or the analyze
# step fails, so their updates come in one PR.
groups:
codeql:
patterns:
- "github/codeql-action*"
labels:
- dependencies
- ci
Expand Down
14 changes: 14 additions & 0 deletions .github/release-contract/java-ui.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"schema": 1,
"coordinates": "ly.count.sdk:java-ui",
"pomDependencies": [
"ly.count.sdk:java:26.8.0:compile",
"org.json:json:20260814:runtime",
"org.openjfx:javafx-controls:21.0.5:runtime",
"org.openjfx:javafx-web:21.0.5:runtime"
],
"moduleVariantAttributes": {
"org.gradle.jvm.version": 17
},
"maxClassFileMajor": 61
}
12 changes: 12 additions & 0 deletions .github/release-contract/java.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"schema": 1,
"coordinates": "ly.count.sdk:java",
"pomDependencies": [
"com.google.code.findbugs:jsr305:3.0.2:runtime",
"org.json:json:20260814:runtime"
],
"moduleVariantAttributes": {
"org.gradle.jvm.version": 8
},
"maxClassFileMajor": 52
}
2 changes: 2 additions & 0 deletions .github/release/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
__pycache__/
consumers/maven/target/
42 changes: 42 additions & 0 deletions .github/release/checks.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
"""Checks before a release: the tag commit's release branch, its required status checks and the publish environment."""

import subprocess


def is_ancestor(commit, ref, repo_root, runner=subprocess.run):
"""Whether the commit is the ref or one of its ancestors."""
return runner(["git", "-C", str(repo_root), "merge-base", "--is-ancestor", commit, ref], capture_output=True).returncode == 0


def branch_problems(commit, branch, repo_root, runner=subprocess.run):
"""Problems unless the commit is an ancestor of origin/<branch>."""
return [] if is_ancestor(commit, f"origin/{branch}", repo_root, runner) else [f"{commit} is not on origin/{branch}; the tag must point to that branch"]


def missing_checks(check_runs, required):
"""Required check names that did not succeed on the commit, from the GitHub check-runs API response: a name without
any run, or with any run that did not succeed or has not finished. A commit can carry several runs of one check,
for example one from the push to the release branch and one from a pull request whose head it is, which tests a
merge with another branch; each of them must have passed."""
problems = []
for name in required:
conclusions = [run.get("conclusion") for run in check_runs.get("check_runs", []) if run["name"] == name]
if not conclusions or any(conclusion != "success" for conclusion in conclusions):
problems.append(name)
return problems


def environment_problems(environment):
"""Problems unless the deployment environment, as the GitHub environments API returns it, makes a reviewer approve
the publish job and limits deployments to selected branches and tags. GitHub creates an environment a job names on
first use with neither rule, and once the signing and upload secrets are added to it the job would publish
unattended. Releases run on tags, which a protected-branches-only policy would refuse after the build, so only
selected rules count."""
name = environment.get("name")
rules = environment.get("protection_rules") or []
problems = []
if not any(rule.get("type") == "required_reviewers" and rule.get("reviewers") for rule in rules):
problems.append(f"environment {name} does not require a reviewer to approve the publish job")
if not (environment.get("deployment_branch_policy") or {}).get("custom_branch_policies"):
problems.append(f"environment {name} does not limit deployments to selected branches and tags")
return problems
32 changes: 32 additions & 0 deletions .github/release/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"repository": "Countly/countly-sdk-java",
"publicBaseUrl": { "production": "https://maven.countly.com/", "test": "https://maven-test.countly.com/" },
"centralBaseUrl": "https://repo1.maven.org/maven2/",
"publishedModules": ":sdk-java,:sdk-java-ui",
"platformSpecificGroups": ["org.openjfx"],
"requiredChecks": ["Build and Test", "Test on ubuntu-latest", "Test on windows-latest", "OSV scan (all modules)", "Analyze (java)"],
"tagRules": [
{ "tag": "{version}", "branch": "staging", "artifacts": ["java"] },
{ "tag": "ui-{version}", "branch": "staging", "artifacts": ["java-ui"] }
],
"artifacts": {
"java": {
"group": "ly.count.sdk", "artifact": "java", "module": ":sdk-java",
"contract": ".github/release-contract/java.json", "consumerJava": 8,
"versionSources": [
{ "file": "gradle.properties", "regex": "^VERSION_NAME=(.+)$" },
{ "file": "build.gradle", "regex": "ext\\.CLY_VERSION = \"([^\"]+)\"" },
{ "file": "sdk-java/src/main/java/ly/count/sdk/java/Config.java", "regex": "protected String sdkVersion = \"([^\"]+)\"" }
],
"changelog": "CHANGELOG.md"
},
"java-ui": {
"group": "ly.count.sdk", "artifact": "java-ui", "module": ":sdk-java-ui",
"contract": ".github/release-contract/java-ui.json", "consumerJava": 17,
"versionSources": [
{ "file": "sdk-java-ui/gradle.properties", "regex": "^VERSION_NAME=(.+)$" }
],
"changelog": "sdk-java-ui/CHANGELOG.md"
}
}
}
60 changes: 60 additions & 0 deletions .github/release/consumers.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
"""Commands for the clean projects in .github/release/consumers that build against a staged release."""

import re
from pathlib import Path

GRADLE_PROJECT = ".github/release/consumers/gradle"
MAVEN_POM = ".github/release/consumers/maven/pom.xml"
GRADLE_FLAGS = ["--no-daemon", "--no-configuration-cache", "--stacktrace"]
PROBE_CLASS = "ly.count.consumer.Probe"
REPOSITORY_ID = "countly"
# Maven 3.9 records the repository as "countly=", Maven 3.10 as "countly-<hex hash of its URL>=". A hex-only suffix
# keeps the "countly-public" repository out.
STAGED_SOURCE = re.compile(rf"{REPOSITORY_ID}(-[0-9a-f]+)?=")


def gradle_command(gradlew, repository, public_repository, plan, artifact):
"""Builds the Gradle consumer against one artifact of the plan and installs it with its runtime classpath. Only the
plan's artifacts come from the staging folder; any other Countly package they need, such as the core SDK of a UI
release, comes from the public repository or Maven Central, as it does for an integrator."""
staged = ",".join(item.coordinates for item in plan.artifacts)
return [
gradlew, "-p", GRADLE_PROJECT, *GRADLE_FLAGS, "clean", "installDist",
f"-PcountlyRepository={repository}", f"-PcountlyPublicRepository={public_repository}", f"-PcountlyStaged={staged}",
f"-PcountlyDependency={artifact.coordinates}:{plan.version}",
f"-PcountlyRelease={artifact.consumer_java}", f"-PcountlyProbe={artifact.artifact}",
]


def maven_command(mvn, repository, public_repository, artifact, version, local_repository):
"""Compiles the Maven consumer against one artifact version, with an empty local repository so nothing is reused.
Maven looks in the staging folder first, then in the public repository, then on Maven Central."""
return [
mvn, "-B", "-f", MAVEN_POM, "clean", "compile",
f"-Dcountly.repository={repository}", f"-Dcountly.publicRepository={public_repository}",
f"-Dcountly.artifact={artifact.artifact}", f"-Dcountly.version={version}",
f"-Dcountly.release={artifact.consumer_java}", f"-Dmaven.repo.local={local_repository}",
]


def smoke_command(java_home, repo_root):
"""Runs the probe the Gradle consumer installed, on the given Java runtime, with the installed runtime classpath."""
java = Path(java_home) / "bin" / "java"
classpath = Path(repo_root) / GRADLE_PROJECT / "build/install/countly-consumer/lib/*"
return [str(java), "-cp", str(classpath), PROBE_CLASS]


def maven_source_problems(local_repository, plan, consumed):
"""Problems when Maven did not take the consumed artifact, and every other artifact of the plan it downloaded, from
the staged release; Maven records the source repository of every downloaded file in _remote.repositories."""
problems = []
for artifact in plan.artifacts:
record = Path(local_repository) / artifact.folder(plan.version) / "_remote.repositories"
if not record.is_file():
if artifact == consumed:
problems.append(f"Maven did not download {artifact.coordinates}:{plan.version}")
continue
sources = [line.split(">", 1)[1] for line in record.read_text(encoding="utf-8").splitlines() if ">" in line and not line.startswith("#")]
if not sources or any(not STAGED_SOURCE.fullmatch(source) for source in sources):
problems.append(f"Maven resolved {artifact.coordinates}:{plan.version} from another repository than the staged release")
return problems
20 changes: 20 additions & 0 deletions .github/release/consumers/gradle/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
plugins {
id 'java'
id 'application'
}

def probe = findProperty('countlyProbe')

sourceSets.main.java.srcDirs = ["../probes/${probe}"]

tasks.withType(JavaCompile).configureEach {
options.release = Integer.parseInt(findProperty('countlyRelease'))
}

dependencies {
implementation findProperty('countlyDependency')
}

application {
mainClass = 'ly.count.consumer.Probe'
}
27 changes: 27 additions & 0 deletions .github/release/consumers/gradle/settings.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
def countlyRepository = gradle.startParameter.projectProperties['countlyRepository']
def countlyPublicRepository = gradle.startParameter.projectProperties['countlyPublicRepository']
def countlyStaged = gradle.startParameter.projectProperties['countlyStaged'].split(',')

dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
exclusiveContent {
forRepository {
maven { url = countlyRepository }
}
filter {
countlyStaged.each { coordinates ->
def (group, name) = coordinates.split(':')
includeModule(group, name)
}
}
}
mavenCentral()
maven {
url = countlyPublicRepository
content { includeGroupByRegex 'ly\\.count\\..*' }
}
}
}

rootProject.name = 'countly-consumer'
43 changes: 43 additions & 0 deletions .github/release/consumers/maven/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>ly.count.consumer</groupId>
<artifactId>countly-consumer</artifactId>
<version>1</version>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.release>${countly.release}</maven.compiler.release>
</properties>

<repositories>
<repository>
<id>countly</id>
<url>${countly.repository}</url>
</repository>
<repository>
<id>countly-public</id>
<url>${countly.publicRepository}</url>
</repository>
</repositories>

<dependencies>
<dependency>
<groupId>ly.count.sdk</groupId>
<artifactId>${countly.artifact}</artifactId>
<version>${countly.version}</version>
</dependency>
</dependencies>

<build>
<sourceDirectory>${project.basedir}/../probes/${countly.artifact}</sourceDirectory>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.14.0</version>
</plugin>
</plugins>
</build>
</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package ly.count.consumer;

import ly.count.sdk.java.ui.CountlyWebView;
import ly.count.sdk.java.ui.JavaFxContentDisplay;

/**
* Compiles against the UI artifact the way an integrator would.
*/
public class Probe {
/**
* Reads a setting of the UI artifact and names its content display class.
*
* @param args unused
*/
public static void main(String[] args) {
System.out.println("widgets within app " + CountlyWebView.isShowingWidgetsWithinApp() + ", display " + JavaFxContentDisplay.class.getName());
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package ly.count.consumer;

import ly.count.sdk.java.Config;
import ly.count.sdk.java.Countly;

/**
* Loads the core SDK the way an integrator would, without contacting a server.
*/
public class Probe {
/**
* Creates a configuration and reads the shared instance; a class the runtime cannot load stops here.
*
* @param args unused
*/
public static void main(String[] args) {
Config config = new Config("https://consumer.invalid", "consumer-probe");
System.out.println("Countly " + config.getSdkVersion() + " loaded on Java " + System.getProperty("java.version")
+ ", instance " + Countly.instance().getClass().getName() + ", initialized " + Countly.isInitialized());
}
}
Loading
Loading