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

fix: countly sdk integration replace halt and bump to latest (WPB-15007) #3748

Merged
merged 1 commit into from
Dec 16, 2024

Conversation

yamilmedina
Copy link
Contributor

@yamilmedina yamilmedina commented Dec 16, 2024

BugWPB-15007 [Android] Countly SDK integration hardening


PR Submission Checklist for internal contributors

  • The PR Title

    • conforms to the style of semantic commits messages¹ supported in Wire's Github Workflow²
    • contains a reference JIRA issue number like SQPIT-764
    • answers the question: If merged, this PR will: ... ³
  • The PR Description

    • is free of optional paragraphs and you have filled the relevant parts to the best of your ability

What's new in this PR?

Issues

After a couple of PRs addressing countly, the fixes from last week got overridden.

Causes (Optional)

Crash on call to halt.

Solutions

Bring back the fix, and bump countly to latest.

Testing

Test Coverage (Optional)

  • I have added automated test to this contribution

How to Test

Have 2 accounts with countly; one enabled, second disabled.
First go to enabled account, then go to disabled and send app to BG

Expected:
When bringing app from "recent apps" there should no be crash, since we are not calling halt anymore, but rather:
Countly.sharedInstance()?.consent()?.removeConsentAll()

Attachments

Screen.Recording.2024-12-16.at.17.01.59.mov

PR Post Submission Checklist for internal contributors (Optional)

  • Wire's Github Workflow has automatically linked the PR to a JIRA issue

PR Post Merge Checklist for internal contributors

  • If any soft of configuration variable was introduced by this PR, it has been added to the relevant documents and the CI jobs have been updated.

References
  1. https://sparkbox.com/foundry/semantic_commit_messages
  2. https://github.com/wireapp/.github#usage
  3. E.g. feat(conversation-list): Sort conversations by most emojis in the title #SQPIT-764.

@yamilmedina yamilmedina changed the title fix: harden countly sdk integration and bump to latest (WPB-15007) fix: countly sdk integration replace halt and bump to latest (WPB-15007) Dec 16, 2024
@@ -86,7 +86,7 @@ class AnonymousAnalyticsRecorderImpl : AnonymousAnalyticsRecorder {

override fun halt() = wrapCountlyRequest {
isConfigured = false
Countly.sharedInstance().halt()
Countly.sharedInstance()?.consent()?.removeConsentAll()
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This guy got overridden by other changes, eventually this gets rid of the crash, since halt is not meant for production code.

@yamilmedina yamilmedina added this pull request to the merge queue Dec 16, 2024
auto-merge was automatically disabled December 16, 2024 16:19

Pull Request is not mergeable

auto-merge was automatically disabled December 16, 2024 16:20

Pull Request is not mergeable

Copy link
Contributor

Built wire-android-staging-compat-pr-3748.apk is available for download

auto-merge was automatically disabled December 16, 2024 16:38

Pull Request is not mergeable

Merged via the queue into release/candidate with commit d8dd514 Dec 16, 2024
19 of 20 checks passed
@yamilmedina yamilmedina deleted the fix/countly-haltingvs-removeconsent branch December 16, 2024 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants