Skip to content

Add optional gzip request compression - #524

Draft
turtledreams wants to merge 1 commit into
stagingfrom
request-compression
Draft

turtledreams wants to merge 1 commit into
stagingfrom
request-compression

Conversation

@turtledreams

Copy link
Copy Markdown
Contributor

Adds CountlyConfig.enableRequestCompression(), off by default. It turns on optional gzip compression of request bodies in the native SDKs: enableRequestCompression() on Android, enableRequestCompression on iOS. The SDKs compress only after the server's SDK behavior settings answer says it reads compressed bodies.

Draft: the bundled Android SDK (26.1.2) and iOS SDK sources (26.8.0) don't have the option yet; it comes with countly-sdk-android#642 and countly-sdk-ios#510.

Tests: the Jest suite (114 tests) passes, including the config and bridge checks for the new option; Countly.d.ts, the public API record and CHANGELOG are updated.

@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

CI report

Check Result Summary
Android build ❌ failed Failed: Old architecture (React Native 0.81.6), New architecture (React Native 0.88.1), No-push package (React Native 0.88.1)
JS checks ✅ passed Coverage: Line coverage 81.74%
Public API changelog ✅ passed
Public API changes ✅ passed Public API: 0 removed or changed, 1 added
JS checks: Coverage, Line coverage 81.74%

Unit test coverage

Metric Covered Count
lines 81.74% 1666/2038
statements 81.72% 1673/2047
branches 76.99% 840/1091
functions 92.96% 251/270
Public API changes: Public API, 0 removed or changed, 1 added

Added: 1. Check that each one is meant to be public.

CountlyConfig.prototype.enableRequestCompression function

For 2ffd950, updated 2026-11-18 04:14 UTC. Each check's run page has its full log.

@github-actions

Copy link
Copy Markdown

Public API changes

Added: 1. Check that each one is meant to be public.

CountlyConfig.prototype.enableRequestCompression function

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant