Skip to content

Analytics rewrite: generic provider SPI with GDPR consent and multiple backends#5266

Open
shai-almog wants to merge 5 commits into
masterfrom
analytics-spi-rewrite
Open

Analytics rewrite: generic provider SPI with GDPR consent and multiple backends#5266
shai-almog wants to merge 5 commits into
masterfrom
analytics-spi-rewrite

Conversation

@shai-almog

Copy link
Copy Markdown
Collaborator

Summary

Replaces the deprecated Google Analytics v1 AnalyticsService with a generic provider SPI. Apps register one or more AnalyticsProvider implementations with the Analytics facade, which fans screen / event / setUserProperty / crash calls out to all providers — but only after a configurable, opt-in-by-default consent gate.

Client (com.codename1.analytics)

  • Analytics facade + AnalyticsProvider SPI (AbstractAnalyticsProvider base), AnalyticsEvent, AnalyticsConsent, ConsentMode, AnalyticsContext, AnalyticsCrashReport, AnalyticsCapability.
  • GDPR/CCPA: granular consent persisted across restarts; pseudonymous, user-resettable client id (resetClientId()); no hardware identifiers.
  • Providers: CodenameOneAnalyticsProvider (first-party, batched to the cloud), GoogleAnalyticsProvider (GA4 Measurement Protocol), MatomoAnalyticsProvider (privacy-first, non-Google), FirebaseAnalyticsProvider, LoggingAnalyticsProvider.
  • The old AnalyticsService is retained, deprecated, and delegates to the new API (its init switches the facade to opt-out to preserve historical behaviour). UIBuilder analytics hook unchanged.

Firebase native + builders

  • Android peer (NativeFirebaseAnalyticsImpl) via reflection (mirrors the port's FCM pattern); iOS peer as an Objective-C class (com_codename1_analytics_NativeFirebaseAnalyticsImpl) using dynamic dispatch on FIRAnalytics.
  • AndroidGradleBuilder / IPhoneBuilder inject the Firebase Gradle dep / Firebase/Analytics pod, gated on the android.firebaseAnalytics / ios.firebaseAnalytics build hints (mirrors the existing FCM/AdMob handling).

Docs + tests

  • New docs/developer-guide/Analytics.asciidoc chapter (old section replaced with a pointer); passes asciidoctor + Vale + paragraph-cap locally.
  • 25 unit tests in maven/core-unittests (consent gating, all providers, client id, capabilities, deprecated facade) — all green against a from-source core build.

Verification

  • Client tests: mvn -o -pl core-unittests -DunitTests=true -Plocal-dev-javase test -Dtest='*Analytics*' → 25/25 pass.
  • iOS native peer: full local xcodebuild -sdk iphoneos -arch arm64 of a sample app → BUILD SUCCEEDED, peer object compiled and linked.
  • Builders + plugin compile cleanly.

The BuildCloud backend (ingest, tier-gated reports, console UI) and the BuildDaemon builder twin are in separate PRs on those repos.

🤖 Generated with Claude Code

…e backends

Replace the deprecated Google Analytics v1 AnalyticsService with a generic
provider SPI. Apps register one or more AnalyticsProvider implementations with
the Analytics facade, which fans screen / event / user-property / crash calls
out to all providers after a configurable (opt-in by default) consent gate.

Providers: CodenameOneAnalyticsProvider (first-party, batched to the cloud),
GoogleAnalyticsProvider (GA4), MatomoAnalyticsProvider (privacy-first, non
Google), FirebaseAnalyticsProvider (Android + iOS native peers), and
LoggingAnalyticsProvider (simulator / tests).

The old AnalyticsService is retained, deprecated, and now delegates to the new
API. Adds GDPR features (granular consent persisted across restarts,
pseudonymous user-resettable client id), Firebase build-hint dependency
injection in the Android (android.firebaseAnalytics) and iOS
(ios.firebaseAnalytics) builders, a new developer-guide Analytics chapter, and
25 unit tests. The iOS native peer was verified with a full local arm64
xcodebuild (BUILD SUCCEEDED).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions

github-actions Bot commented Jun 20, 2026

Copy link
Copy Markdown
Contributor

Developer Guide build artifacts are available for download from this workflow run:

Developer Guide quality checks:

  • AsciiDoc linter: No issues found (report)
  • Vale: No alerts found (report)
  • Paragraph capitalization: No paragraph capitalization issues (report)
  • LanguageTool: No grammar matches (report)
  • Image references: No unused images detected (report)

@shai-almog

shai-almog commented Jun 20, 2026

Copy link
Copy Markdown
Collaborator Author

Compared 129 screenshots: 129 matched.

Native Android coverage

  • 📊 Line coverage: 14.25% (8687/60957 lines covered) [HTML preview] (artifact android-coverage-report, jacocoAndroidReport/html/index.html)
    • Other counters: instruction 11.54% (42778/370723), branch 5.10% (1780/34877), complexity 6.11% (2041/33422), method 10.56% (1649/15620), class 17.15% (378/2204)
    • Lowest covered classes
      • kotlin.collections.kotlin.collections.ArraysKt___ArraysKt – 0.00% (0/6327 lines covered)
      • kotlin.collections.unsigned.kotlin.collections.unsigned.UArraysKt___UArraysKt – 0.00% (0/2384 lines covered)
      • org.jacoco.agent.rt.internal_b6258fc.asm.org.jacoco.agent.rt.internal_b6258fc.asm.ClassReader – 0.00% (0/1519 lines covered)
      • kotlin.collections.kotlin.collections.CollectionsKt___CollectionsKt – 0.00% (0/1148 lines covered)
      • org.jacoco.agent.rt.internal_b6258fc.asm.org.jacoco.agent.rt.internal_b6258fc.asm.MethodWriter – 0.00% (0/923 lines covered)
      • kotlin.sequences.kotlin.sequences.SequencesKt___SequencesKt – 0.00% (0/730 lines covered)
      • kotlin.text.kotlin.text.StringsKt___StringsKt – 0.00% (0/623 lines covered)
      • org.jacoco.agent.rt.internal_b6258fc.asm.org.jacoco.agent.rt.internal_b6258fc.asm.Frame – 0.00% (0/564 lines covered)
      • kotlin.collections.kotlin.collections.ArraysKt___ArraysJvmKt – 0.00% (0/495 lines covered)
      • kotlinx.coroutines.kotlinx.coroutines.JobSupport – 0.00% (0/423 lines covered)

✅ Native Android screenshot tests passed.

Native Android coverage

  • 📊 Line coverage: 14.25% (8687/60957 lines covered) [HTML preview] (artifact android-coverage-report, jacocoAndroidReport/html/index.html)
    • Other counters: instruction 11.54% (42778/370723), branch 5.10% (1780/34877), complexity 6.11% (2041/33422), method 10.56% (1649/15620), class 17.15% (378/2204)
    • Lowest covered classes
      • kotlin.collections.kotlin.collections.ArraysKt___ArraysKt – 0.00% (0/6327 lines covered)
      • kotlin.collections.unsigned.kotlin.collections.unsigned.UArraysKt___UArraysKt – 0.00% (0/2384 lines covered)
      • org.jacoco.agent.rt.internal_b6258fc.asm.org.jacoco.agent.rt.internal_b6258fc.asm.ClassReader – 0.00% (0/1519 lines covered)
      • kotlin.collections.kotlin.collections.CollectionsKt___CollectionsKt – 0.00% (0/1148 lines covered)
      • org.jacoco.agent.rt.internal_b6258fc.asm.org.jacoco.agent.rt.internal_b6258fc.asm.MethodWriter – 0.00% (0/923 lines covered)
      • kotlin.sequences.kotlin.sequences.SequencesKt___SequencesKt – 0.00% (0/730 lines covered)
      • kotlin.text.kotlin.text.StringsKt___StringsKt – 0.00% (0/623 lines covered)
      • org.jacoco.agent.rt.internal_b6258fc.asm.org.jacoco.agent.rt.internal_b6258fc.asm.Frame – 0.00% (0/564 lines covered)
      • kotlin.collections.kotlin.collections.ArraysKt___ArraysJvmKt – 0.00% (0/495 lines covered)
      • kotlinx.coroutines.kotlinx.coroutines.JobSupport – 0.00% (0/423 lines covered)

Benchmark Results

Detailed Performance Metrics

Metric Duration
SIMD kernel backend scalar fallback (no native SIMD)
SIMD int-add (64K x300) java 196ms / native 70ms = 2.8x speedup
SIMD float-mul (64K x300) java 112ms / native 89ms = 1.2x speedup
SIMD kernel correctness PASS (native result == scalar reference)
Base64 payload size 8192 bytes
Base64 benchmark iterations 6000
Base64 SIMD byte path gated to scalar (CPU autovectorizes scalar; explicit SIMD not beneficial here)
Base64 CN1 encode 413.000 ms
Base64 CN1 decode 239.000 ms
Base64 native encode 882.000 ms
Base64 encode ratio (CN1/native) 0.468x (53.2% faster)
Base64 native decode 781.000 ms
Base64 decode ratio (CN1/native) 0.306x (69.4% faster)
Image encode benchmark status skipped (SIMD unsupported)

@shai-almog

shai-almog commented Jun 20, 2026

Copy link
Copy Markdown
Collaborator Author

Compared 122 screenshots: 122 matched.
✅ JavaScript-port screenshot tests passed.

@shai-almog

shai-almog commented Jun 20, 2026

Copy link
Copy Markdown
Collaborator Author

Compared 129 screenshots: 129 matched.
✅ Native Mac screenshot tests passed.

Benchmark Results

  • VM Translation Time: 0 seconds
  • Compilation Time: 128 seconds

Detailed Performance Metrics

Metric Duration
SIMD kernel backend SSE2 (x64) / NEON (arm64) native kernels
SIMD int-add (64K x300) java 85ms / native 12ms = 7.0x speedup
SIMD float-mul (64K x300) java 50ms / native 2ms = 25.0x speedup
SIMD kernel correctness PASS (native result == scalar reference)
Base64 payload size 8192 bytes
Base64 benchmark iterations 6000
Base64 SIMD byte path active (NEON-accelerated)
Base64 CN1 encode 283.000 ms
Base64 CN1 decode 197.000 ms
Base64 native encode 607.000 ms
Base64 encode ratio (CN1/native) 0.466x (53.4% faster)
Base64 native decode 297.000 ms
Base64 decode ratio (CN1/native) 0.663x (33.7% faster)
Base64 SIMD encode 53.000 ms
Base64 encode ratio (SIMD/CN1) 0.187x (81.3% faster)
Base64 SIMD decode 45.000 ms
Base64 decode ratio (SIMD/CN1) 0.228x (77.2% faster)
Base64 encode ratio (SIMD/native) 0.087x (91.3% faster)
Base64 decode ratio (SIMD/native) 0.152x (84.8% faster)
Image encode benchmark iterations 100
Image createMask (SIMD off) 16.000 ms
Image createMask (SIMD on) 1.000 ms
Image createMask ratio (SIMD on/off) 0.063x (93.8% faster)
Image applyMask (SIMD off) 57.000 ms
Image applyMask (SIMD on) 55.000 ms
Image applyMask ratio (SIMD on/off) 0.965x (3.5% faster)
Image modifyAlpha (SIMD off) 71.000 ms
Image modifyAlpha (SIMD on) 42.000 ms
Image modifyAlpha ratio (SIMD on/off) 0.592x (40.8% faster)
Image modifyAlpha removeColor (SIMD off) 69.000 ms
Image modifyAlpha removeColor (SIMD on) 37.000 ms
Image modifyAlpha removeColor ratio (SIMD on/off) 0.536x (46.4% faster)

@github-actions

Copy link
Copy Markdown
Contributor

Cloudflare Preview

@shai-almog

shai-almog commented Jun 20, 2026

Copy link
Copy Markdown
Collaborator Author

Compared 210 screenshots: 210 matched.
✅ Native Apple Watch (watchOS, Core Graphics) screenshot tests passed.

@shai-almog

shai-almog commented Jun 20, 2026

Copy link
Copy Markdown
Collaborator Author

iOS Metal screenshot updates

Compared 129 screenshots: 55 matched, 74 missing actuals.

  • BrowserComponent — missing actual screenshot. Actual screenshot missing (test did not produce output).

    No preview available for this screenshot.

  • ButtonTheme_dark — missing actual screenshot. Actual screenshot missing (test did not produce output).

    No preview available for this screenshot.

  • ButtonTheme_light — missing actual screenshot. Actual screenshot missing (test did not produce output).

    No preview available for this screenshot.

  • ChatInput_dark — missing actual screenshot. Actual screenshot missing (test did not produce output).

    No preview available for this screenshot.

  • ChatInput_light — missing actual screenshot. Actual screenshot missing (test did not produce output).

    No preview available for this screenshot.

  • ChatView_dark — missing actual screenshot. Actual screenshot missing (test did not produce output).

    No preview available for this screenshot.

  • ChatView_light — missing actual screenshot. Actual screenshot missing (test did not produce output).

    No preview available for this screenshot.

  • CheckBoxRadioTheme_dark — missing actual screenshot. Actual screenshot missing (test did not produce output).

    No preview available for this screenshot.

  • CheckBoxRadioTheme_light — missing actual screenshot. Actual screenshot missing (test did not produce output).

    No preview available for this screenshot.

  • DesktopMode — missing actual screenshot. Actual screenshot missing (test did not produce output).

    No preview available for this screenshot.

  • DialogTheme_dark — missing actual screenshot. Actual screenshot missing (test did not produce output).

    No preview available for this screenshot.

  • DialogTheme_light — missing actual screenshot. Actual screenshot missing (test did not produce output).

    No preview available for this screenshot.

  • FloatingActionButtonTheme_dark — missing actual screenshot. Actual screenshot missing (test did not produce output).

    No preview available for this screenshot.

  • FloatingActionButtonTheme_light — missing actual screenshot. Actual screenshot missing (test did not produce output).

    No preview available for this screenshot.

  • Gpu3DAnimation — missing actual screenshot. Actual screenshot missing (test did not produce output).

    No preview available for this screenshot.

  • Gpu3DCube — missing actual screenshot. Actual screenshot missing (test did not produce output).

    No preview available for this screenshot.

  • Gpu3DModel — missing actual screenshot. Actual screenshot missing (test did not produce output).

    No preview available for this screenshot.

  • Gpu3DTexturedCube — missing actual screenshot. Actual screenshot missing (test did not produce output).

    No preview available for this screenshot.

  • ImageViewerNavigationModes — missing actual screenshot. Actual screenshot missing (test did not produce output).

    No preview available for this screenshot.

  • LightweightPickerButtons — missing actual screenshot. Actual screenshot missing (test did not produce output).

    No preview available for this screenshot.

  • LightweightPickerButtons_above_center — missing actual screenshot. Actual screenshot missing (test did not produce output).

    No preview available for this screenshot.

  • LightweightPickerButtons_below_right — missing actual screenshot. Actual screenshot missing (test did not produce output).

    No preview available for this screenshot.

  • LightweightPickerButtons_between_mixed — missing actual screenshot. Actual screenshot missing (test did not produce output).

    No preview available for this screenshot.

  • ListTheme_dark — missing actual screenshot. Actual screenshot missing (test did not produce output).

    No preview available for this screenshot.

  • ListTheme_light — missing actual screenshot. Actual screenshot missing (test did not produce output).

    No preview available for this screenshot.

  • LottieAnimatedScreenshotTest — missing actual screenshot. Actual screenshot missing (test did not produce output).

    No preview available for this screenshot.

  • MediaPlayback — missing actual screenshot. Actual screenshot missing (test did not produce output).

    No preview available for this screenshot.

  • MultiButtonTheme_dark — missing actual screenshot. Actual screenshot missing (test did not produce output).

    No preview available for this screenshot.

  • MultiButtonTheme_light — missing actual screenshot. Actual screenshot missing (test did not produce output).

    No preview available for this screenshot.

  • PaletteOverrideTheme_dark — missing actual screenshot. Actual screenshot missing (test did not produce output).

    No preview available for this screenshot.

  • PaletteOverrideTheme_light — missing actual screenshot. Actual screenshot missing (test did not produce output).

    No preview available for this screenshot.

  • PickerTheme_dark — missing actual screenshot. Actual screenshot missing (test did not produce output).

    No preview available for this screenshot.

  • PickerTheme_light — missing actual screenshot. Actual screenshot missing (test did not produce output).

    No preview available for this screenshot.

  • SVGAnimatedScreenshotTest — missing actual screenshot. Actual screenshot missing (test did not produce output).

    No preview available for this screenshot.

  • SVGStatic — missing actual screenshot. Actual screenshot missing (test did not produce output).

    No preview available for this screenshot.

  • Sheet — missing actual screenshot. Actual screenshot missing (test did not produce output).

    No preview available for this screenshot.

  • SheetSlideUpAnimationScreenshotTest — missing actual screenshot. Actual screenshot missing (test did not produce output).

    No preview available for this screenshot.

  • ShowcaseTheme_dark — missing actual screenshot. Actual screenshot missing (test did not produce output).

    No preview available for this screenshot.

  • ShowcaseTheme_light — missing actual screenshot. Actual screenshot missing (test did not produce output).

    No preview available for this screenshot.

  • SpanLabelTheme_dark — missing actual screenshot. Actual screenshot missing (test did not produce output).

    No preview available for this screenshot.

  • SpanLabelTheme_light — missing actual screenshot. Actual screenshot missing (test did not produce output).

    No preview available for this screenshot.

  • SwitchTheme_dark — missing actual screenshot. Actual screenshot missing (test did not produce output).

    No preview available for this screenshot.

  • SwitchTheme_light — missing actual screenshot. Actual screenshot missing (test did not produce output).

    No preview available for this screenshot.

  • TabsBehavior — missing actual screenshot. Actual screenshot missing (test did not produce output).

    No preview available for this screenshot.

  • TabsTheme_dark — missing actual screenshot. Actual screenshot missing (test did not produce output).

    No preview available for this screenshot.

  • TabsTheme_light — missing actual screenshot. Actual screenshot missing (test did not produce output).

    No preview available for this screenshot.

  • TextAreaAlignmentStates — missing actual screenshot. Actual screenshot missing (test did not produce output).

    No preview available for this screenshot.

  • TextFieldTheme_dark — missing actual screenshot. Actual screenshot missing (test did not produce output).

    No preview available for this screenshot.

  • TextFieldTheme_light — missing actual screenshot. Actual screenshot missing (test did not produce output).

    No preview available for this screenshot.

  • ToastBarTopPosition — missing actual screenshot. Actual screenshot missing (test did not produce output).

    No preview available for this screenshot.

  • ToolbarTheme_dark — missing actual screenshot. Actual screenshot missing (test did not produce output).

    No preview available for this screenshot.

  • ToolbarTheme_light — missing actual screenshot. Actual screenshot missing (test did not produce output).

    No preview available for this screenshot.

  • ValidatorLightweightPicker — missing actual screenshot. Actual screenshot missing (test did not produce output).

    No preview available for this screenshot.

  • chart-bar — missing actual screenshot. Actual screenshot missing (test did not produce output).

    No preview available for this screenshot.

  • chart-bar-stacked — missing actual screenshot. Actual screenshot missing (test did not produce output).

    No preview available for this screenshot.

  • chart-bubble — missing actual screenshot. Actual screenshot missing (test did not produce output).

    No preview available for this screenshot.

  • chart-combined-xy — missing actual screenshot. Actual screenshot missing (test did not produce output).

    No preview available for this screenshot.

  • chart-cubic-line — missing actual screenshot. Actual screenshot missing (test did not produce output).

    No preview available for this screenshot.

  • chart-doughnut — missing actual screenshot. Actual screenshot missing (test did not produce output).

    No preview available for this screenshot.

  • chart-line — missing actual screenshot. Actual screenshot missing (test did not produce output).

    No preview available for this screenshot.

  • chart-pie — missing actual screenshot. Actual screenshot missing (test did not produce output).

    No preview available for this screenshot.

  • chart-radar — missing actual screenshot. Actual screenshot missing (test did not produce output).

    No preview available for this screenshot.

  • chart-range-bar — missing actual screenshot. Actual screenshot missing (test did not produce output).

    No preview available for this screenshot.

  • chart-rotated-pie — missing actual screenshot. Actual screenshot missing (test did not produce output).

    No preview available for this screenshot.

  • chart-scatter — missing actual screenshot. Actual screenshot missing (test did not produce output).

    No preview available for this screenshot.

  • chart-time — missing actual screenshot. Actual screenshot missing (test did not produce output).

    No preview available for this screenshot.

  • chart-transform — missing actual screenshot. Actual screenshot missing (test did not produce output).

    No preview available for this screenshot.

  • css-gradients — missing actual screenshot. Actual screenshot missing (test did not produce output).

    No preview available for this screenshot.

  • graphics-large-stroke-dirty-clip — missing actual screenshot. Actual screenshot missing (test did not produce output).

    No preview available for this screenshot.

  • graphics-transform-camera — missing actual screenshot. Actual screenshot missing (test did not produce output).

    No preview available for this screenshot.

  • graphics-transform-perspective — missing actual screenshot. Actual screenshot missing (test did not produce output).

    No preview available for this screenshot.

  • graphics-transform-rotation — missing actual screenshot. Actual screenshot missing (test did not produce output).

    No preview available for this screenshot.

  • graphics-transform-translation — missing actual screenshot. Actual screenshot missing (test did not produce output).

    No preview available for this screenshot.

  • landscape — missing actual screenshot. Actual screenshot missing (test did not produce output).

    No preview available for this screenshot.

Benchmark Results

  • VM Translation Time: 0 seconds
  • Compilation Time: 227 seconds

Build and Run Timing

Metric Duration
Simulator Boot 62000 ms
Simulator Boot (Run) 0 ms
App Install 10000 ms
App Launch 9000 ms
Test Execution 1512000 ms

@shai-almog

shai-almog commented Jun 20, 2026

Copy link
Copy Markdown
Collaborator Author

Compared 125 screenshots: 125 matched.
✅ Native iOS screenshot tests passed.

Benchmark Results

  • VM Translation Time: 0 seconds
  • Compilation Time: 178 seconds

Build and Run Timing

Metric Duration
Simulator Boot 76000 ms
Simulator Boot (Run) 1000 ms
App Install 12000 ms
App Launch 9000 ms
Test Execution 295000 ms

Detailed Performance Metrics

Metric Duration
SIMD kernel backend SSE2 (x64) / NEON (arm64) native kernels
SIMD int-add (64K x300) java 60ms / native 3ms = 20.0x speedup
SIMD float-mul (64K x300) java 68ms / native 3ms = 22.6x speedup
SIMD kernel correctness PASS (native result == scalar reference)
Base64 payload size 8192 bytes
Base64 benchmark iterations 6000
Base64 SIMD byte path active (NEON-accelerated)
Base64 CN1 encode 420.000 ms
Base64 CN1 decode 431.000 ms
Base64 native encode 679.000 ms
Base64 encode ratio (CN1/native) 0.619x (38.1% faster)
Base64 native decode 436.000 ms
Base64 decode ratio (CN1/native) 0.989x (1.1% faster)
Base64 SIMD encode 128.000 ms
Base64 encode ratio (SIMD/CN1) 0.305x (69.5% faster)
Base64 SIMD decode 61.000 ms
Base64 decode ratio (SIMD/CN1) 0.142x (85.8% faster)
Base64 encode ratio (SIMD/native) 0.189x (81.1% faster)
Base64 decode ratio (SIMD/native) 0.140x (86.0% faster)
Image encode benchmark iterations 100
Image createMask (SIMD off) 18.000 ms
Image createMask (SIMD on) 8.000 ms
Image createMask ratio (SIMD on/off) 0.444x (55.6% faster)
Image applyMask (SIMD off) 96.000 ms
Image applyMask (SIMD on) 40.000 ms
Image applyMask ratio (SIMD on/off) 0.417x (58.3% faster)
Image modifyAlpha (SIMD off) 57.000 ms
Image modifyAlpha (SIMD on) 36.000 ms
Image modifyAlpha ratio (SIMD on/off) 0.632x (36.8% faster)
Image modifyAlpha removeColor (SIMD off) 66.000 ms
Image modifyAlpha removeColor (SIMD on) 50.000 ms
Image modifyAlpha removeColor ratio (SIMD on/off) 0.758x (24.2% faster)

shai-almog and others added 3 commits June 20, 2026 17:43
The CN1 core (CodenameOne/src) compiles against the CLDC11 bootclasspath,
whose StringBuilder has no substring(int,int). Convert to String first in
GoogleAnalyticsProvider.sanitizeName so the core/CLDC11 build compiles.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The deprecated AnalyticsService now delegates to Analytics, leaving domain /
timeout / readTimeout written but never read -- SpotBugs failed the JDK 8 gate
on URF_UNREAD_FIELD. Remove the fields; the setters become documented no-ops
and the init domain parameter is retained for source compatibility only.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Make Analytics final (ClassWithOnlyPrivateConstructorsShouldBeFinal) and drop
the redundant public modifiers on NativeFirebaseAnalytics interface methods
(UnnecessaryModifier). Verified against the full forbidden PMD rule set via
mvn verify -- zero forbidden violations across the analytics sources.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions

github-actions Bot commented Jun 20, 2026

Copy link
Copy Markdown
Contributor

✅ Continuous Quality Report

Test & Coverage

Static Analysis

  • SpotBugs [Report archive]
    • ByteCodeTranslator: 0 findings (no issues)
    • android: 0 findings (no issues)
    • codenameone-maven-plugin: 0 findings (no issues)
    • core-unittests: 0 findings (no issues)
    • ios: 0 findings (no issues)
  • PMD: 0 findings (no issues) [Report archive]
  • Checkstyle: 0 findings (no issues) [Report archive]

Generated automatically by the PR CI workflow.

CI LanguageTool (rendered-HTML gate, not runnable locally) flagged British
spellings 'behavioural'/'anonymisation' and the proper noun 'Piwik'. Switch to
US spelling (behavioral/anonymization, plus honor) and accept-list Piwik.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@shai-almog shai-almog force-pushed the analytics-spi-rewrite branch from f4a7d53 to 2422a15 Compare June 20, 2026 19:14
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