* Version bump for 5.19.0
* To revert: Deploy UI SDK on commit to continue release process
* Revert "To revert: Deploy UI SDK on commit to continue release process"
This reverts commit 3dca36e0ae.
---------
Co-authored-by: Toni Rico <antonio.rico.diez@revenuecat.com>
* tests: have `JSONEncoder` of snapshot tests be a copy of the encoder user in the SDK
* tests: update the dates in the `CustomerInfo` snapshots for decoding tests to have ISO 8601 format
* update variable comment
* fix lint
* feat: disable postAttributionData requests when in UI preview mode
* tests: add unit test to check `AttributionPoster`'s new `clearPostponedAttributionData` method
* tests: add unit tests to check that `AttributionData` is never posted in UI preview mode
* refactor: simplify implementation of avoiding `AttributionPoster` requests in UI preview mode
* feat: add `hasPaywall` getter to `Offering`
Returns `true` if the offering has either a v1 or a v2 paywall
* docs: update some methods references changing `PaywallData` with "paywall", as `PaywallData` only refers to v1 paywalls
* docs: improve reference of `Offering`'s `paywall` and `paywallComponents` to mention the new `hasPaywall` property
* lint
* tests: add unit tests that check the `hasPaywall` property of `Offering`
* api tests: add `paywallComponents` and `hasPaywall` to SwiftAPITester
* feat: add missing properties to `apple_purchase_attempt` diagnostics event
* tests: add + edit unit tests for new diagnostics parameters for SK1 purchase attempt
* fix implementation of sk2 product purchase to catch promotional offer signature error again
* tests: edit unit tests for new diagnostics parameters for SK2 purchase attempt
* fix failing test
* refactor: separate error handling in purchase SK2 product method into its own method
* address PR #4835 comments
* lint
* tests: remove `Equatable` conformance of `DiagnosticsEvent` and `AnyEncodable` from RevenueCat and added to test targets (where it's needed)
* Use Arrays instead of Sets in Diagnostics events to have predictable order in sent events
* tests: compare Sets vs Arrays in unit test
The conversion from Array --> Set --> Array may change the order of the elements
* remove `DiagnosticsEvent+Equatable` from some targets
* PR #4839 fixes
* remove `AnyEncodable+Equatable.swift` from some targets
* Post error test results to Slack
* To revert: Add linter error
* Test different context
* Revert "To revert: Add linter error"
This reverts commit 2177c48f0dd5d346b9e536d10f58fb82e05665ba.
* Post only on main
* Remove notify from danger job
* To revert: testing branch specific notifications
* Revert "To revert: testing branch specific notifications"
This reverts commit 560285798faf8c9dcf7d99ec5d7ac9faf31d9bf7.
* Only run slack-notify command on jobs running in main
* Change to have a separate job for failures instead of running as a step on each job
* Reapply "To revert: Add linter error"
This reverts commit 2a4004798be2a1d1371224a43cdfe373477f0fc7.
* Revert "Reapply "To revert: Add linter error""
This reverts commit 5c3eef438c.
* Revert "Change to have a separate job for failures instead of running as a step on each job"
This reverts commit 0fe54a42f3.
* Rename to slack-notify-on-fail
* Fix badge background not using the new background field instead of backgroundColor
* switch order of background properties: background is preferred over backgroundColor
* Prevent calling the GET request to the intro eligibility endpoint when in UI Preview mode
* fix lint warning
* tests: add unit tests for `TrialOrIntroPriceEligibilityChecker` in UI preview mode
* fake `unknown` intro eligibility status for products in UI preview mode
* tests: remove empty check on intro eligibility result dictionary when in UI preview mode
* add comment to early return for check eligibility in UI preview mode
* do not update cache when in UI preview mode
* tests: add unit tests to check that first initialization never calls get offerings when in UI preview mode
* tests: add unit test to cover call to `updateAllCachesIfNeeded(isAppBackgrounded: Bool)` in UI preview mode
* Prevent calling the GET request to the intro eligibility endpoint when in UI Preview mode
* fix lint warning
* tests: add unit tests for `TrialOrIntroPriceEligibilityChecker` in UI preview mode
* fake `unknown` intro eligibility status for products in UI preview mode
* tests: remove empty check on intro eligibility result dictionary when in UI preview mode
* add comment to early return for check eligibility in UI preview mode
* add refreshable action to paywalls list in PaywallsTester app
* fix: disable refreshable action in PaywallView
* chore: add comment explaining why `refreshable` action was added to `APIKeyDashboardList`
* feat: have testing apps take RevenueCat API key and Proxy URL from local.xcconfig file
* fix wording mistakes in `Local.xcconfig.SAMPLE`
* chore: include `ConfigItem.swift` file in `verify_no_included_apikeys` check
* fix more mistakes in comments