Commit Graph
14 Commits
Author SHA1 Message Date
2e01518612 [AUTOMATIC] Release/5.15.0 (#4692)
Co-authored-by: Cesar de la Vega <cesarvegaro@gmail.com>
Co-authored-by: Josh Holtz <me@joshholtz.com>
2025-01-22 15:54:29 +01:00
Facundo Menzella 38e7ce32b7 fix: Set https urls for packages (#4669) 2025-01-15 11:25:37 +01:00
Facundo Menzella aef54d2bbd fix: Fix versions for swift-doc, snapshot-testing & nimble (#4661) 2025-01-14 15:06:33 +01:00
Cesar de la Vega 19e4d27ee6 Fix iOS 15, 14 tests using wrong version of swift-snapshot-testing and API tests (#4394) 2024-10-22 17:56:35 +02:00
James Borthwick 45e3620b98 Pin swift-docc-plugin to 1.3.0 (#4216)
Pins swift-docc-plugin for the time being as 1.4.0 and 1.4.1 are failing
to compile
(https://revenuecat.slack.com/archives/C03HPN9UE80/p1724438146087079).
2024-08-23 12:34:29 -07:00
Josh Holtz 363bb0ce09 Added new paywall template to support multiple tiered subscriptions (#4022)
### Motivation

Template 5 but with multiple tiers 😊

### Description

Enabling Template 7 by changing `7_disabled` to `7`

- Changed a `header.jpg` to `header.heic` to try and fix issue with
weirdly failing snapshot UI test
- Changed visibility on `TestData` from `public` to `internal`
- Hides tier selector if only one tier
- Changed `color_overrides_by_tier` to `colors_by_tier` and
`image_overrides_by_tier` to `images_by_tier`
- The original implementation was going to default to existing color and
images configurations and then override by tier
- However, this turned out to be harder to implement on the
configuration side
- `Colors` got four new optional values
  - `tier_control_background`
  - `tier_control_foreground`
  - `tier_control_selected_background`
  - `tier_control_selected_foreground`

### Demo

#### Full Screen


https://github.com/RevenueCat/purchases-ios/assets/401294/e5317a53-428c-415e-a1a1-b4231d32a776

### Footer


https://github.com/RevenueCat/purchases-ios/assets/401294/8905b55e-0fa2-49f0-aa1c-d4c1e694fb5b

### Footer Condensed


https://github.com/RevenueCat/purchases-ios/assets/401294/311d78fb-bdeb-43cd-b601-9c60a8a54b6f
2024-07-17 07:04:42 -05:00
NachoSoto 2bcd0ce328 5.0.0 changes: support SK2 by default 2024-07-01 14:37:21 -05:00
Josh Holtz a98d86e32e Revert "Xcode 15.3: fix warnings on Integration Tests" (#3744)
Reverts RevenueCat/purchases-ios#3603

I _think_ this is causing a bunch of failures in SK2 tests
2024-03-05 05:30:49 -06:00
NachoSotoandMark Villacampa 0bb44cc41e Xcode 15.3: fix warnings on Integration Tests (#3603)
Follow up to #3599 and #3600.

These `@MainActor` annotations don't work anymore because of this:
> Main actor-isolated class '...' has different actor isolation from
nonisolated superclass 'TestCase'; this is an error in Swift 6

They were necessary with an older version of Xcode (likely 13.x), but
not anymore.

---------

Co-authored-by: Mark Villacampa <m@markvillacampa.com>
2024-03-04 10:47:06 +01:00
NachoSoto ea02d16a59 Paywalls: replaced submodule with gitignored reference (#3125)
The `submodule` approach had 2 issues:
- Inconsistent results if users don't have a valid SSH key (#3124)
- `SPM` actually clones the submodule, which users don't need

This new approach only fetches the snapshots through a new `fastlane
fetch_snapshots` lane.
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
NachoSoto 46f1224a19 Paywalls: basic localization support (#2851)
Most of the changes are to support the creation of the new
`PaywallViewLocalizationTests` by being able to override the environment
`Locale`.

![Simulator Screenshot - iPhone 14 Pro - 2023-07-20 at 18 10
20](https://github.com/RevenueCat/purchases-ios/assets/685609/27972228-0956-499e-a90c-e8f1ae84bebe)
2023-09-14 18:28:11 -07:00
NachoSoto 69a18fa410 Paywalls: initial RevenueCatUI target setup (#2776)
- Added `RevenueCatUI` to `Package.json`
- Set up tests for `RevenueCatUI` using `snapshot-testing` (not in CI
during initial development)
- Added Schemes to allow easily building packages while working on the
`Package.swift`
- Updated `SimpleApp` to use new package
2023-09-14 18:28:11 -07:00
NachoSoto 161b04d3bf Xcode 15: fix non-visionOS build by replacing .custom platform (#3005)
Fixes #2998. See #2989 for why this is needed in the first place.
This is now fixed in SPM:
https://github.com/apple/swift-package-manager/pull/6794, but we need a
workaround for now.

Since `.custom` doesn't work properly (it gets evaluated in Xcode even
outside of that platform), this splits `Package.swift` based on Xcode
version.

Thanks @neonichu for helping with this.
2023-08-11 11:55:06 -07:00