Commit Graph
8 Commits
Author SHA1 Message Date
Mark Villacampa 9e60fd27f9 [Paywalls] Add previews for different combinations of vertical/horizontal alignment and flex distributions (#4538)
* [Paywalls] Add previews for different combinations of vertical/horizontal alignment and flex distributions

* Make icon colors in the preview always the same
2024-12-05 05:21:10 -06:00
Andy Boedo 37f3fb1752 export RevenueCatUI xcframework (#4172)
We don't currently export RevenueCatUI as an xcframework, which can be a
source of confusion and a dealbreaker for customers who need a pre-built
framework.
This adds RevenueCatUI's xcframework into the `export_xcframeworks`
lane, and includes the output in the `github_release` lane.


Should help address: 
- https://github.com/RevenueCat/purchases-ios/issues/4168
- https://github.com/RevenueCat/purchases-ios/issues/4146
- https://github.com/RevenueCat/purchases-ios/issues/4056
2024-08-15 18:18:45 -03:00
NachoSotoandAndy Boedo af08736775 RevenueCatUI: added support to other deployment targets (#3392)
Follow up to #3378.

This allows us to link both `RevenueCat` and `RevenueCatUI` from
`PurchasesHybridCommon` supporting the same platforms.
The actual types might not be available in some platforms / versions,
but we can detect that at compile time.

See
https://app.circleci.com/pipelines/github/RevenueCat/purchases-hybrid-common/2564/workflows/ea6a4e24-e1eb-4c7a-a930-173945732999/jobs/10352

---------

Co-authored-by: Andy Boedo <andresboedo@gmail.com>
2023-11-08 07:35:19 -08:00
NachoSoto a3836ef077 Paywalls: template 5 (#3095) 2023-09-14 18:28:11 -07:00
NachoSoto 2103b04762 Paywalls: added MIT license to all headers (#3084)
`Xcode` doesn't allow customizing the header (looks like maybe it worked
at some point but not anymore:
https://stackoverflow.com/questions/67614785/changing-the-default-header-comment-license-in-swift-package).

At least this adds the license to all the initial files in the package.
2023-09-14 18:28:11 -07:00
NachoSoto 534a556e62 Paywalls: initial iOS 15 support (#2933)
`PaywallView` and `PaywallViewController` (along with the extensions)
still require iOS 16, but this paves the way to support iOS 15 down the
road if we need to.

### Main Changes:

- Changed all `@available` annotations
- Added CI tests
- Replaced `ViewThatFits` with the "biggest" version
- Because of that, `scrollableIfNeeded` is always scrollable
- Double `Regex` implementation (keeping the modern one), so once we
drop support for iOS 15 we can just keep the modern one.

### TODO: 
- [x] Add snapshots
- [x] Test paywalls
- [x] Updated APITester to verify this
2023-09-14 18:28:11 -07:00
NachoSoto 78abf188e0 Paywalls: updated icon set to match frontend (#2962) 2023-09-14 18:28:11 -07:00
NachoSoto c48603a9c7 Paywalls: initial support for icons (#2882)
```swift
IconView(name: .lock, tint: .green)
IconView(name: .lock, tint: .green.gradient.shadow(.inner(color: .black, radius: 2)))
```

![image](https://github.com/RevenueCat/purchases-ios/assets/685609/abc89782-cbcf-47f4-9b59-f3d15be82da9)
2023-09-14 18:28:11 -07:00