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

Task/sdk 4406/support corev7.1.2 #287

Merged
merged 13 commits into from
Mar 3, 2025

Conversation

Anush-Shand
Copy link
Contributor

@Anush-Shand Anush-Shand commented Feb 13, 2025

https://wizrocket.atlassian.net/browse/SDK-4406

Summary by CodeRabbit

  • New Features

    • Introduced enhanced, user-focused event tracking to deliver more precise analytics.
    • Added improved notification controls on Android, including an option to hide large icons.
    • Upgraded support to the latest native SDKs on both Android and iOS for better performance.
  • Refactor

    • Streamlined event tracking by deprecating legacy methods in favor of a centralized logging approach.
  • Documentation

    • Updated installation instructions and version details from 3.0.0 to 3.1.0.

- Adds new MT related APIs
- Deprecates older methods
- Updates versions
- Updates CHANGELOG.md
- Removes deprecated function calls
- Adds new buttons to testing new MT APIs
Copy link

coderabbitai bot commented Feb 13, 2025

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Walkthrough

The update bumps the plugin version to 3.1.0, introducing new user-centric event logging APIs and updating dependencies for both Android and iOS. The changes deprecate older device-level event tracking methods in favor of new methods for retrieving user event logs, counts, histories, app launch counts, and last visit timestamps. Additional modifications include enhanced notification payload support and updates in sample application handlers, alongside dependency updates in build configurations and documentation.

Changes

File(s) Change Summary
CHANGELOG.md, README.md, pubspec.yaml, android/build.gradle Updated version to 3.1.0; dependency updates (e.g., CleverTap Android SDK from 7.0.3 to 7.1.2); documentation of new features and deprecations.
android/src/main/java/com/clevertap/clevertap_plugin/DartToNativePlatformCommunicator.kt,
lib/clevertap_plugin.dart
Added new user event log methods (e.g., getUserEventLog, getUserEventLogCount, getUserEventLogHistory, getUserAppLaunchCount, getUserLastVisitTs); deprecated old device-level event tracking methods.
android/src/main/java/com/clevertap/clevertap_plugin/Utils.java Introduced static methods for converting UserEventLog objects to maps; deprecated previous event detail conversion methods.
example/lib/main.dart Removed outdated feature flag and product config handlers; renamed methods to align with the updated user-centric event logging APIs.

Sequence Diagram(s)

sequenceDiagram
    participant App
    participant Plugin
    participant Communicator
    participant NativeSDK

    App->>Plugin: Request user event log / count
    Plugin->>Communicator: Forward event logging call
    Communicator->>NativeSDK: Retrieve event data
    NativeSDK-->>Communicator: Return event details
    Communicator-->>Plugin: Relay user event data
    Plugin-->>App: Provide user event log information
Loading

Poem

Hop, hop, a code upgrade so bright,
In version 3.1.0 we take flight.
Old paths retire, new logs come to play,
User-centric events lead the way.
With bytes and bops, our features gleam—
A rabbit’s dream in code, a joyful theme!
(_/)(•ω•)(> <)


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@Anush-Shand
Copy link
Contributor Author

@coderabbitai review

Copy link

coderabbitai bot commented Feb 13, 2025

✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

- Makes view collapsible
- Adds a reusable component
- Adds ability to raise custom event and custom attributes for profileSet
@Anush-Shand Anush-Shand requested review from CTLalit, kushCT and piyush-kukadiya and removed request for CTLalit February 18, 2025 09:08
nishant-clevertap and others added 9 commits February 18, 2025 16:36
- Supports CleverTap iOS SDK v7.1.0
* task(SDK-4406) - Revamps sample app
- Makes view collapsible
- Adds a reusable component

* task(SDK-4406) - Revamps sample app
- Adds ability to raise custom event and custom attributes for profileSet
* fix: flutter 3.29 drops android flutter embedding v1 (#289)

* task(SDK-4421) - Adds support for flutter 3.29

- Updates workmanager dep compatible with flutter 3.29
- Updates changelog
- Updates docs

* task(SDK-4421) - Adds support for flutter 3.29

- Fixes changelog

---------

Co-authored-by: Rodrigo Boratto <[email protected]>
…was called (#292)

* task(SDK-4393) - Theoretical fix for NPE when onDetachedFromActivity was called

* task(SDK-4393) - Fixes formatting
[SDK-4407] iOS Multi trigger support
@Anush-Shand Anush-Shand merged commit 807e978 into develop Mar 3, 2025
1 check passed
@Anush-Shand Anush-Shand deleted the task/SDK-4406/support_corev7.1.2 branch March 3, 2025 09:59
@coderabbitai coderabbitai bot mentioned this pull request Mar 3, 2025
Copy link
Contributor

@piyush-kukadiya piyush-kukadiya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@coderabbitai coderabbitai bot mentioned this pull request Mar 3, 2025
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.

5 participants