Skip to content

[CustomerCenter] Adds SubscriptionDetailsView#1863

Merged
JayShortway merged 6 commits into
mainfrom
current-subscription
Oct 2, 2024
Merged

[CustomerCenter] Adds SubscriptionDetailsView#1863
JayShortway merged 6 commits into
mainfrom
current-subscription

Conversation

@JayShortway

Copy link
Copy Markdown
Member

In this PR

image

  • A new SubscriptionDetailsView ☝️, modelled after the iOS namesake. (The black border is Android Studio's preview UI.)
  • Slightly tweaked the TopLevelPropertyNaming Detekt rule to allow CamelCase constants, following the Compose guidelines. I modified Detekt's recommendation to also allow SCREAMING_SNAKE_CASE, as we use that in other parts.

Not in this PR

  • Any logic to display the new SubscriptionDetailsView.

I was thinking we can update the design as we go, when we have a better idea of what this is going to look like, but let me know what you think!

import androidx.compose.ui.unit.dp

/**
* Exported from [Compose Icons](https://composeicons.com/icons/material-symbols/outlined/calendar_month).

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I decided against including the androidx.compose.material:material-icons-extended library, as that one is really large and we're not minifying it properly. Let me know what you think.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Hmm I think we would be minifying it? As in, we are only not minifying our SDKs, but not our dependencies I believe... But yeah, if we only need these images, it might be ok to just have them here.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Ah you're right! No strong opinion on this. I guess a tiny advantage of not including the library is that we don't increase the size of developers' debug builds.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Yeah let's do this for now and we can always revisit later if needed.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yea, agreed!

@codecov

codecov Bot commented Oct 1, 2024

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.83%. Comparing base (b1164c6) to head (9bf1000).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1863   +/-   ##
=======================================
  Coverage   82.83%   82.83%           
=======================================
  Files         222      222           
  Lines        7703     7703           
  Branches     1084     1084           
=======================================
  Hits         6381     6381           
  Misses        899      899           
  Partials      423      423           
Flag Coverage Δ
?

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@tonidero tonidero left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Makes sense to me! As you said, we can iterate on that later if needed.

import androidx.compose.ui.unit.dp

/**
* Exported from [Compose Icons](https://composeicons.com/icons/material-symbols/outlined/calendar_month).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Hmm I think we would be minifying it? As in, we are only not minifying our SDKs, but not our dependencies I believe... But yeah, if we only need these images, it might be ok to just have them here.

@emerge-tools

emerge-tools Bot commented Oct 2, 2024

Copy link
Copy Markdown

📸 Snapshot Test

2 added, 69 unchanged

Name Version Added Removed Modified Unchanged Errored Approval
TestPurchasesUIAndroidCompatibility
com.revenuecat.testpurchasesuiandroidcompatibility
1.0 (1) 2 0 0 69 0 ✅ Approved

🛸 Powered by Emerge Tools

@JayShortway JayShortway merged commit 8bf9373 into main Oct 2, 2024
@JayShortway JayShortway deleted the current-subscription branch October 2, 2024 10:49
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