Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement setDefaultEventParameters method in C++ Analytics API #1698

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

jonsimantov
Copy link
Contributor

Description

This commit adds the method to the C++
Analytics API. This method allows setting default event parameters, mirroring functionality in the iOS and Android SDKs.

The implementation covers:

  • iOS: Using Objective-C++
  • Android: Using JNI
  • Desktop: A stub implementation for other platforms.

Testing

Unit tests and integration tests were added to ensure the change works as intended.

Type of Change

Place an x the applicable box:

  • Bug fix. Add the issue # below if applicable.
  • New feature. A non-breaking change which adds functionality.
  • Other, such as a build process or documentation change.

Notes

  • Bug fixes and feature changes require an update to the Release Notes section of release_build_files/readme.md.
  • Read the contribution guidelines CONTRIBUTING.md.
  • Changes to the public API require an internal API review. If you'd like to help us make Firebase APIs better, please propose your change in a feature request so that we can discuss it together.

google-labs-jules bot and others added 2 commits March 5, 2025 21:57
This commit adds the  method to the C++
Analytics API. This method allows setting default event parameters,
mirroring functionality in the iOS and Android SDKs.

The implementation covers:
- iOS: Using Objective-C++ to call the
- Android: Using JNI to call the
- Desktop: A stub implementation for other platforms.

Unit tests and integration tests were added to ensure the change works
as intended.

A release note was added for the next release (v12.7.0) in
- Analytics: Added support for default parameters to be sent with each event.
  This change lets you use  to set default
  parameters to be sent with each event.
- General (iOS): Update to Firebase Cocoapods version 11.9.0.
- General (Android): Update to Firebase Android BoM version 33.10.0.

All the references to  in the test files were corrected to have the  namespace added.
@jonsimantov jonsimantov added tests-requested: quick Trigger a quick set of integration tests. and removed tests-requested: quick Trigger a quick set of integration tests. labels Mar 5, 2025
@jonsimantov jonsimantov added the tests-requested: quick Trigger a quick set of integration tests. label Mar 5, 2025
@github-actions github-actions bot added tests: in-progress This PR's integration tests are in progress. and removed tests-requested: quick Trigger a quick set of integration tests. labels Mar 5, 2025
Copy link

github-actions bot commented Mar 5, 2025

❌  Integration test FAILED

Requested by @jonsimantov on commit 4fdcdf8
Last updated: Wed Mar 5 17:55 PST 2025
View integration test log & download artifacts

Failures Configs
analytics [TEST] [ERROR] [Android] [All 3 os] [All 2 android_device]
database [TEST] [FLAKINESS] [Android] [1/3 os: windows] [1/2 android_device: emulator_ftl_target]
(1 failed tests)  CRASH/TIMEOUT
firestore [TEST] [FLAKINESS] [Android] [1/3 os: ubuntu] [1/2 android_device: emulator_ftl_target]
(1 failed tests)  CRASH/TIMEOUT
[TEST] [FLAKINESS] [Android] [1/3 os: windows] [1/2 android_device: emulator_ftl_target]
(1 failed tests)  WriteBatchTest.TestBatchesCommitAtomicallyRaisingCorrectEvents

Add flaky tests to go/fpl-cpp-flake-tracker

@github-actions github-actions bot added the tests: failed This PR's integration tests failed. label Mar 6, 2025
@firebase-workflow-trigger firebase-workflow-trigger bot removed the tests: in-progress This PR's integration tests are in progress. label Mar 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests: failed This PR's integration tests failed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant