Skip to content

[Paywalls V2] Moves any non-component file to a new common package.#1937

Merged
JayShortway merged 97 commits into
mainfrom
pw2-reorg
Nov 26, 2024
Merged

[Paywalls V2] Moves any non-component file to a new common package.#1937
JayShortway merged 97 commits into
mainfrom
pw2-reorg

Conversation

@JayShortway

Copy link
Copy Markdown
Member

This only moves stuff around. No code changes at all.

It moves:

  • Background.kt
  • ComponentOverrides.kt
  • ComponentsConfig.kt
  • Localization.kt
  • PaywallComponentsData.kt
  • and their corresponding tests

to a new paywalls.components.common package. This way paywall.components only contains actual components.

/**
* Marker interface for partial components.
*/
internal sealed interface PartialComponent

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.

This used to be in ComponentOverrides.kt, but it has to remain in the paywalls.components package, where its implementing classes live (in ImageComponent.kt and TextComponent.kt).

@codecov

codecov Bot commented Nov 22, 2024

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.89%. Comparing base (83bdc71) to head (4a9f756).

Additional details and impacted files
@@                 Coverage Diff                  @@
##           pw2-localizationkey    #1937   +/-   ##
====================================================
  Coverage                81.89%   81.89%           
====================================================
  Files                      260      260           
  Lines                     8449     8449           
  Branches                  1226     1226           
====================================================
  Hits                      6919     6919           
  Misses                    1032     1032           
  Partials                   498      498           

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


🚨 Try these New Features:

@emerge-tools

emerge-tools Bot commented Nov 22, 2024

Copy link
Copy Markdown

📸 Snapshot Test

74 unchanged

Name Added Removed Modified Unchanged Errored Approval
TestPurchasesUIAndroidCompatibility
com.revenuecat.testpurchasesuiandroidcompatibility
0 0 0 74 0 N/A

🛸 Powered by Emerge Tools

@joshdholtz joshdholtz 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.

:shipit:

Base automatically changed from pw2-localizationkey to main November 25, 2024 19:43
@JayShortway JayShortway enabled auto-merge (squash) November 26, 2024 09:30
@JayShortway JayShortway merged commit 7ca10e0 into main Nov 26, 2024
@JayShortway JayShortway deleted the pw2-reorg branch November 26, 2024 10:03
This was referenced Nov 28, 2024
JayShortway pushed a commit that referenced this pull request Dec 2, 2024
**This is an automatic release.**

## RevenueCat SDK
### 🐞 Bugfixes
* Uses `Sequence` instead of `Stream` to avoid errors due to unavailable
Java 8 APIs (#1943) via JayShortway (@JayShortway)

### 🔄 Other Changes
* Increase integration test timeout (#1946) via Toni Rico (@tonidero)
* Removes `@RequiresApi(N)` from `FileHelper` and related classes
(#1944) via JayShortway (@JayShortway)
* [Paywalls V2] Minimizes Java API (#1942) via JayShortway
(@JayShortway)
* [Paywalls V2] Makes `TextComponent` public (#1939) via JayShortway
(@JayShortway)
* Introduces an `@InternalRevenueCatAPI` annotation (#1938) via
JayShortway (@JayShortway)
* [Paywalls V2] Moves any non-component file to a new `common` package.
(#1937) via JayShortway (@JayShortway)
* [Paywalls V2] `LocalizationKey` is an inline value class now. (#1936)
via JayShortway (@JayShortway)
* [Paywalls V2] Adds `PaywallComponentsData` (#1935) via JayShortway
(@JayShortway)
* [Paywalls V2] Adds `StickyFooterComponent` (#1934) via JayShortway
(@JayShortway)
* [Paywalls V2] Adds `PurchaseButtonComponent` (#1933) via JayShortway
(@JayShortway)
* [Paywalls V2] Adds `PackageComponent` (#1932) via JayShortway
(@JayShortway)
* Ensure the correct error message is shown when failing to open a Uri
in paywalls (#1922) via JayShortway (@JayShortway)
* [Paywalls V2] Adds `ButtonComponent` (#1931) via JayShortway
(@JayShortway)
* [Paywalls V2] Adds `StackComponent` (#1930) via JayShortway
(@JayShortway)
* [Paywalls V2] Adds `ComponentOverrides` (#1929) via JayShortway
(@JayShortway)
* [Paywalls V2] Adds `ImageComponent` (#1928) via JayShortway
(@JayShortway)
* [Paywalls V2] Adds `TextComponent` (#1927) via JayShortway
(@JayShortway)
* [Paywalls V2] Adds all enum properties (#1926) via JayShortway
(@JayShortway)
* [Paywalls V2] Adds `SizeConstraints`, `Size`, `Padding` and `Shadow`
properties (#1925) via JayShortway (@JayShortway)
* [Paywalls V2] Adds `CornerRadiuses`, `Shape` and `MaskShape`
properties (#1924) via JayShortway (@JayShortway)
* [Paywalls V2] Adds `ImageUrls` and `ColorInfo` properties (#1923) 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