Skip to content

Handle IllegalArgumentException when opening a Uri in the paywalls#1904

Merged
tonidero merged 1 commit into
mainfrom
handle-open-uri-illegal-argument-exception
Nov 7, 2024
Merged

Handle IllegalArgumentException when opening a Uri in the paywalls#1904
tonidero merged 1 commit into
mainfrom
handle-open-uri-illegal-argument-exception

Conversation

@tonidero

@tonidero tonidero commented Nov 5, 2024

Copy link
Copy Markdown
Contributor

Description

Looking at the docs, the openUri method, may throw an IllegalArgumentException if the link is invalid.

I haven't been able to reproduce this error, getting an ActivityNotFoundException instead when the link is invalid... Seems this may be something device related. In any case, we should also handle these exceptions according to the docs and fail gracefully.

@tonidero tonidero requested a review from a team November 5, 2024 15:49
@codecov

codecov Bot commented Nov 5, 2024

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.30%. Comparing base (36d80c8) to head (9b95b61).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1904   +/-   ##
=======================================
  Coverage   82.30%   82.30%           
=======================================
  Files         231      231           
  Lines        8058     8058           
  Branches     1132     1132           
=======================================
  Hits         6632     6632           
  Misses        979      979           
  Partials      447      447           

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

@tonidero tonidero merged commit 83d5ae8 into main Nov 7, 2024
@tonidero tonidero deleted the handle-open-uri-illegal-argument-exception branch November 7, 2024 10:58
tonidero pushed a commit that referenced this pull request Nov 8, 2024
**This is an automatic release.**

## RevenueCatUI SDK
### 🐞 Bugfixes
* Handle `IllegalArgumentException` when opening a Uri in the paywalls
(#1904) via Toni Rico (@tonidero)

### 🔄 Other Changes
* Create sample web purchase redemption app (#1908) via Toni Rico
(@tonidero)
* Add extra error cases for web purchases redemptions (#1899) via Toni
Rico (@tonidero)
* Use new web redemption endpoint (#1903) via Toni Rico (@tonidero)

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