Commit Graph
15 Commits
Author SHA1 Message Date
Facundo Menzella 834032cdee git rm -r testCustomEntitlementsComputation.xcodeproj (#5514) 2025-09-01 18:15:46 +02:00
Facundo Menzella c735850af5 Extend appTarget settings to pass custom settings (#5470) 2025-09-01 17:41:58 +02:00
Antonio Pallares f74872d551 Tuist: unify project settings (#5393)
* tuist: use already-defined `xcconfigFileConfigurations` `Configuration` array

* tuist: rename `project` to `app` (tuist's `Settings` object). Use `.app` or `.framework` throughout the projects in the repo

* rename settings constants
2025-07-17 20:36:59 +02:00
Facundo Menzella b5995ac1c8 Add custom change plans support for customer center (#5379) 2025-07-16 16:46:05 +02:00
Facundo Menzella 721d2b1740 Add build configurations for tuist workspace (#5364)
* chore: Remove project warnings from examples

* remove extra file

* remove run from RevneueCat and add xctestplans to workspace

* Add build configurations for project

* revert maestro

* remove storyboard

* don't add local xcconfig if not there

* remove additional files - only in workspace

* hide paywall tester scheme

* Add APITester tag

* add BackendIntegrationTestsHostApp

* fixed api testers
2025-07-11 15:31:15 +02:00
Facundo Menzella 03fbe30807 Add basics for a working tuist workspace (#5248) 2025-07-04 11:37:37 +02:00
Will Taylor 3f6924ff6f Add Intro Eligibility Functions to CEC Mode (#5322) 2025-06-25 13:48:12 -05:00
Toni Rico fd77ea2def New APIs to CustomEntitlementsComputationMode SDK (#4972) 2025-04-11 12:51:05 +02:00
NachoSoto d65ebbba2a Custom Entitlement Computation: added missing scheme to project (#2579) 2023-06-05 08:01:31 -07:00
Andy Boedo 9abf17227c updated example code for the sample app for Custom Entitlements (#2454)
Updated example code based on latest usage
2023-04-27 14:10:08 -03:00
NachoSotoandToni Rico 4a74d33f84 Custom Entitlement Computation: disabled unnecessary APIs (#2442)
## Disabled API:

- `getCustomerInfo`
- `logIn`
- `logOut`
- `Purchases.attribution`
- `syncPurchases`
- `restorePurchases`
- Trial eligibility
- Promotional purchases
- `async` counterparts

---------

Co-authored-by: Toni Rico <antonio.rico.diez@revenuecat.com>
2023-04-26 14:51:40 -03:00
NachoSoto d65caf72b3 Custom Entitlement Computation: avoid getCustomerInfo requests for cancelled purchases (#2449)
Fixes SDK-3088
Supersedes #2447

Thanks to @tonidero for doing most of this.

Note that it's currently impossible to test this for SK2, so we only
have SK1 tests (we have a Radar for that).

The next step will be to deprecate the current API to remove the
`userCancelled` property and make this the new behavior.
See also #1910 for an explanation of the different return values of the
purchase APIs.
2023-04-26 09:53:22 -07:00
Andy Boedo f7ef9f3a80 customEntitlementsComputation: update the copy in the sample app to explain the new usage (#2443)
Updated the copy in the sample app to explain the new usage
2023-04-25 23:23:18 -07:00
NachoSoto 64c8638425 Create separate SPM library to enable custom entitlement computation (#2440)
Fixes SDK-3084

![screenshot_2023-04-25_at_10 02
44_480](https://user-images.githubusercontent.com/685609/234360670-bd2628a1-0684-490d-a9eb-33846a60f72a.png)

## Changes:

- Added new `ENABLE_CUSTOM_ENTITLEMENT_COMPUTATION` compile time flag
- Hidden `configureInCustomEntitlementsModeWithApiKey` behind
`ENABLE_CUSTOM_ENTITLEMENT_COMPUTATION`
- Added new `RevenueCat_CustomEntitlementComputation` SPM target and
library
- Added CircleCI job for `swift build --target
RevenueCat_CustomEntitlementComputation`
- Added new `SPMCustomEntitlementComputationInstallation` using the new
`configureInCustomEntitlementsComputationMode`
- Added CircleCI job for `SPMCustomEntitlementComputationInstallation`
- Added `FrameworkDisambiguation.swift` to avoid using `RevenueCat.`
disambiguation for files that
- Changed API testers to only use the new methods if
`ENABLE_CUSTOM_ENTITLEMENT_COMPUTATION` is defined
- Updated `DangerousSettings` to not expose
`customEntitlementComputation` publicly. The only way to use that now
with `public` API is through
`Purchases.configureInCustomEntitlementsModeWithApiKey`
- Updated sample app to use new library
2023-04-25 15:11:58 -07:00
Andy BoedoandNachoSoto 618ff121d2 Custom Entitlements Computation mode (#2439)
### Changes:

- Added `Purchases.configureInCustomEntitlementsComputationMode`
- Added `Purchases.switchUser(to:)`
- Disabled parts of the SDK in this new mode
- New example app for testing `customEntitlementsComputation` mode

---------

Co-authored-by: NachoSoto <ignaciosoto90@gmail.com>
2023-04-25 13:21:46 -07:00