Skip to content

Hide action bar from paywall activity#1532

Merged
tonidero merged 1 commit into
mainfrom
hide-action-bar-paywall-activity
Dec 22, 2023
Merged

Hide action bar from paywall activity#1532
tonidero merged 1 commit into
mainfrom
hide-action-bar-paywall-activity

Conversation

@tonidero

Copy link
Copy Markdown
Contributor

Description

After #1511, in flutter/rn, we might display the action bar in the paywall when being presented as an activity depending on the theme.

image

This change makes sure we hide the action bar independently of the theme.

@tonidero tonidero requested a review from a team December 21, 2023 10:22
@codecov

codecov Bot commented Dec 21, 2023

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (f5dc2c2) 84.14% compared to head (fc61299) 84.14%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1532   +/-   ##
=======================================
  Coverage   84.14%   84.14%           
=======================================
  Files         218      218           
  Lines        7196     7196           
  Branches     1007     1007           
=======================================
  Hits         6055     6055           
  Misses        750      750           
  Partials      391      391           

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

@tonidero tonidero merged commit 5565139 into main Dec 22, 2023
@tonidero tonidero deleted the hide-action-bar-paywall-activity branch December 22, 2023 08:03
vegaro pushed a commit that referenced this pull request Dec 22, 2023
**This is an automatic release.**

### RevenueCatUI
* Add `launchIfNeeded` with `offeringIdentifier` (#1533) via Cesar de la
Vega (@vegaro)
* Hide action bar from paywall activity (#1532) via Toni Rico
(@tonidero)
* Paywalls: improve Chinese localization (#1529) via Andy Boedo
(@aboedo)
### Other Changes
* Wait for tests to pass when deploying (#1521) via Cesar de la Vega
(@vegaro)

Co-authored-by: revenuecat-ops <ops@revenuecat.com>
tonidero added a commit to RevenueCat/purchases-hybrid-common that referenced this pull request Dec 22, 2023
This updates the paywalls branch to the latest android version which
includes this fix:
RevenueCat/purchases-android#1532
tonidero added a commit to RevenueCat/purchases-flutter that referenced this pull request Dec 22, 2023
After RevenueCat/purchases-hybrid-common#602, we
can now use the `PaywallHelpers.presentPaywallFromFragment` method to
present the paywall and receive a result back using an internal view
model.

This makes it so the `PurchasesFlutterActivity` isn't needed anymore and
we can make use of that functionality, shared with other hybrids.

Note that this does mean developers need to make sure their android
activity inherits from `FlutterFragmentActivity` (or other
`FragmentActivity`) and not `FlutterActivity`, as we need to present the
fragment.

### TODO
- [x] Hide action bar:
RevenueCat/purchases-android#1532
- [x] Update PHC with those 2 changes.
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