Commit Graph
7 Commits
Author SHA1 Message Date
James BorthwickandCesar de la Vega 1499538d33 Xcode project with RevenueCatUI + Tests (#3960)
### RevenueCatUI and its tests are now accessible in the files
navigator:

<img width="555" alt="image"
src="https://github.com/RevenueCat/purchases-ios/assets/109382862/a4067d0a-62e5-43b2-bf77-a8a7ee1dd16e">

### It add two new schemes:

<img width="384" alt="image"
src="https://github.com/RevenueCat/purchases-ios/assets/109382862/94b80848-5cc3-4abc-b132-345d79a6f143">

Use RevenueCatUIDev to build RevenueCatUI, and RevenueCatUITests to run
its tests.

### Linting works:

<img width="716" alt="image"
src="https://github.com/RevenueCat/purchases-ios/assets/109382862/aacfa0bf-84af-494e-a4b1-9434de69b4f8">

### Individual tests can be run from the UI:

<img width="999" alt="image"
src="https://github.com/RevenueCat/purchases-ios/assets/109382862/902c5167-d352-4e6d-a848-c5d6c0e988de">

## N.B.

- Tests must be run via the RevenueCatUITest scheme.
- Xcode sometimes has difficulties switching schemes. If you see the
errors below, **clean the build folder** and try again and it will work
<img width="822" alt="image"
src="https://github.com/RevenueCat/purchases-ios/assets/109382862/0ac8dd77-676c-46e4-bc76-f8edf86f5a79">
- Building with the RevenueCatUIDev scheme creates some warnings related
to switches. Adding in an `@unknown default:` resolves the warning but
causes an error in other configurations ("Default will never be
executed").
<img width="801" alt="image"
src="https://github.com/RevenueCat/purchases-ios/assets/109382862/dcba6e0c-5755-4e5a-b940-ca270242b6bb">
- Because the root Package file was not altered, this PR won't have any
affect on how our package works when integrated via SPM.

---------

Co-authored-by: Cesar de la Vega <cesarvegaro@gmail.com>
2024-06-18 13:14:46 -07:00
NachoSoto c0120a653e Paywalls: simplified PaywallViewMode logic (#3470)
This brings the implementations closer to Android, removing the
unnecessary `PaywallViewMode` properties.
2023-11-22 17:18:39 -08:00
NachoSoto f54372b270 Paywalls: avoid displaying offer details twice on .condensedFooters (#3230)
See video:

https://github.com/RevenueCat/purchases-ios/assets/685609/51c2aef1-1f15-4da4-ae9c-0b3f65381109

I fixed this for templates 2 and 5, and made the paddings consistent in
template 5.
2023-09-20 13:13:08 -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 e830d3296d Paywalls: improved unselected package background color (#3079)
From the design feedback.
2023-09-14 18:28:11 -07:00
Josh HoltzandNachoSoto f11600db74 Paywalls: rename card to footer (#3049)
Rename "card" to "footer" to because that is how we expect developers to
use the current implementation of the non-fullscreen modes as a footer
to their custom paywalls.

- Renamed `card` to `footer`
- Renamed `condensedCard` to `condensedFooter`

---------

Co-authored-by: NachoSoto <ignaciosoto90@gmail.com>
2023-09-14 18:28:11 -07:00
NachoSoto 5c9b2a62c7 Paywalls: .card and .condensedCard modes (#2995) 2023-09-14 18:28:11 -07:00