Skip to content

[CustomerCenter] Fix help path deserializing when unknown type#1869

Merged
tonidero merged 4 commits into
mainfrom
fix-help-path-type-deserializing
Oct 4, 2024
Merged

[CustomerCenter] Fix help path deserializing when unknown type#1869
tonidero merged 4 commits into
mainfrom
fix-help-path-type-deserializing

Conversation

@tonidero

@tonidero tonidero commented Oct 4, 2024

Copy link
Copy Markdown
Contributor

Description

While testing one thing I noticed we were not handling unknown help path types. This basically caused the whole screen to not be deserialized, since we catch deserialization issues at that level, but we can do better than that and just not deserialize the unknown path type.

@JayShortway JayShortway left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Ah yes, this is a frequent annoyance with collections + kotlinx.serialization. Thanks for taking care of it, much better!

@codecov

codecov Bot commented Oct 4, 2024

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 87.50000% with 2 lines in your changes missing coverage. Please review.

Project coverage is 82.41%. Comparing base (26074e4) to head (dfce031).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
...at/purchases/customercenter/HelpPathsSerializer.kt 86.66% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1869      +/-   ##
==========================================
+ Coverage   82.37%   82.41%   +0.03%     
==========================================
  Files         225      226       +1     
  Lines        7900     7915      +15     
  Branches     1104     1105       +1     
==========================================
+ Hits         6508     6523      +15     
+ Misses        953      952       -1     
- Partials      439      440       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@tonidero tonidero enabled auto-merge (squash) October 4, 2024 14:54
@tonidero tonidero merged commit 37b0b83 into main Oct 4, 2024
@tonidero tonidero deleted the fix-help-path-type-deserializing branch October 4, 2024 15:17
JayShortway pushed a commit that referenced this pull request Oct 10, 2024
**This is an automatic release.**

## RevenueCat SDK
### 🐞 Bugfixes
* Save SDK configuration on paywall activity so it can reconfigure
automatically (#1872) via Toni Rico (@tonidero)
### 📦 Dependency Updates
* Bump fastlane from 2.223.1 to 2.224.0 (#1870) via dependabot[bot]
(@dependabot[bot])
* Bump fastlane-plugin-revenuecat_internal from `5b2e35c` to `3b1e7cf`
(#1865) via dependabot[bot] (@dependabot[bot])
* Bump fastlane from 2.222.0 to 2.223.1 (#1860) via dependabot[bot]
(@dependabot[bot])
* Bump fastlane-plugin-revenuecat_internal from `55a0455` to `5b2e35c`
(#1858) via dependabot[bot] (@dependabot[bot])

### 🔄 Other Changes
* [CustomerCenter] Fix help path deserializing when unknown type (#1869)
via Toni Rico (@tonidero)
* [CustomerCenter] Create `CustomerCenter` composable and view model
with some initial UI (#1867) via Toni Rico (@tonidero)
* [CustomerCenter] Add networking layer and models (#1859) via Toni Rico
(@tonidero)
* [CustomerCenter] Adds SubscriptionDetailsView (#1863) via JayShortway
(@JayShortway)

Co-authored-by: revenuecat-ops <ops@revenuecat.com>
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.

2 participants