Skip to content

Future-proof in-app message APIs in case new types are added#1293

Merged
tonidero merged 1 commit into
mainfrom
improve-in-app-message-apis
Sep 27, 2023
Merged

Future-proof in-app message APIs in case new types are added#1293
tonidero merged 1 commit into
mainfrom
improve-in-app-message-apis

Conversation

@tonidero

Copy link
Copy Markdown
Contributor

Description

Followup to #1290.

This improves the API to future-proof them in case Google adds new in-app message types in the future. This is not a breaking change since the previous APIs haven't been released yet.

@tonidero tonidero force-pushed the improve-in-app-message-apis branch from 21a7584 to 8e41ff8 Compare September 27, 2023 08:04
if (appConfig.showDeclinedPaymentMessagesAutomatically) {
showDeclinedPaymentMessageIfNeeded(activity)
if (appConfig.showInAppMessagesAutomatically) {
showInAppMessagesIfNeeded(activity, InAppMessageType.values().toList())

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

When showing messages automatically, we show all types

@tonidero tonidero marked this pull request as ready for review September 27, 2023 08:06
@tonidero tonidero requested review from a team and MarkVillacampa September 27, 2023 08:06
@codecov

codecov Bot commented Sep 27, 2023

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 95.23810% with 1 line in your changes missing coverage. Please review.

Project coverage is 85.83%. Comparing base (e7bbdcd) to head (8e41ff8).
Report is 505 commits behind head on main.

Files with missing lines Patch % Lines
...otlin/com/revenuecat/purchases/common/AppConfig.kt 75.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1293      +/-   ##
==========================================
+ Coverage   85.82%   85.83%   +0.01%     
==========================================
  Files         185      186       +1     
  Lines        6314     6319       +5     
  Branches      916      918       +2     
==========================================
+ Hits         5419     5424       +5     
  Misses        546      546              
  Partials      349      349              

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

@tonidero tonidero merged commit 395ca5f into main Sep 27, 2023
@tonidero tonidero deleted the improve-in-app-message-apis branch September 27, 2023 12:48
@MarkVillacampa MarkVillacampa mentioned this pull request Sep 27, 2023
MarkVillacampa added a commit that referenced this pull request Sep 28, 2023
### Breaking Changes
* Support for Billing Client 6 (#1209) via Mark Villacampa
(@MarkVillacampa)
* Bump minimum sdk version to Android 4.4 (API level 19) (#1265) via
Mark Villacampa (@MarkVillacampa)
* in app messages support (#1290) via Andy Boedo (@aboedo)
### Bugfixes
* Add `awaitRestore` to customEntitlementComputation library (#1275) via
Toni Rico (@tonidero)
### Other Changes
* Future-proof in-app message APIs in case new types are added (#1293)
via Toni Rico (@tonidero)
* `Code style`: enabled `ALLOW_TRAILING_COMMA` (#1280) via NachoSoto
(@NachoSoto)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants