Skip to content

IntroEligibilityCalculator: changed logic to handle products with no subscription group#2247

Merged
NachoSoto merged 1 commit into
mainfrom
intro-eligibiligy-no-groups
Feb 2, 2023
Merged

IntroEligibilityCalculator: changed logic to handle products with no subscription group#2247
NachoSoto merged 1 commit into
mainfrom
intro-eligibiligy-no-groups

Conversation

@NachoSoto

Copy link
Copy Markdown
Contributor

Follow up to #2174.

continue
}
let activeSubscriptionInGroup = (
candidate.subscriptionGroupIdentifier != nil &&

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@aboedo this is simpler, and I think it would be a valid implementation too, as a way to handle products with no group?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep! I love it

@codecov

codecov Bot commented Jan 25, 2023

Copy link
Copy Markdown

Codecov Report

Merging #2247 (1131957) into main (fdd7874) will decrease coverage by 0.06%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #2247      +/-   ##
==========================================
- Coverage   85.85%   85.80%   -0.06%     
==========================================
  Files         183      183              
  Lines       12105    12099       -6     
==========================================
- Hits        10393    10381      -12     
- Misses       1712     1718       +6     
Impacted Files Coverage Δ
...ources/Purchasing/IntroEligibilityCalculator.swift 100.00% <100.00%> (ø)
...rces/Purchasing/StoreKit1/ProductsFetcherSK1.swift 92.65% <0.00%> (-1.70%) ⬇️
Sources/Logging/Strings/StoreKitStrings.swift 89.70% <0.00%> (-1.48%) ⬇️
Sources/Error Handling/ErrorUtils.swift 84.25% <0.00%> (-1.17%) ⬇️
Sources/Logging/Strings/PurchaseStrings.swift 88.48% <0.00%> (+0.52%) ⬆️
...urces/FoundationExtensions/Result+Extensions.swift 100.00% <0.00%> (+2.12%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@NachoSoto

Copy link
Copy Markdown
Contributor Author
  1. We haven't changed this file in a while
  2. That diff makes no sense?
    Screenshot 2023-01-25 at 10 44 29

continue
}
let activeSubscriptionInGroup = (
candidate.subscriptionGroupIdentifier != nil &&

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep! I love it

@NachoSoto NachoSoto merged commit 2e689b1 into main Feb 2, 2023
@NachoSoto NachoSoto deleted the intro-eligibiligy-no-groups branch February 2, 2023 20:57
NachoSoto pushed a commit that referenced this pull request Feb 8, 2023
**This is an automatic release.**

### Dependency Updates
* Bump fastlane-plugin-revenuecat_internal from `738f255` to `9255366`
(#2264) via dependabot[bot] (@dependabot[bot])
* Update `Gemfile.lock` (#2254) via Cesar de la Vega (@vegaro)
### Other Changes
* `HTTPClient`: added support for sending `X-Nonce` (#2214) via
NachoSoto (@NachoSoto)
* `Configuration`: added (`internal` for now) API to load public key
(#2215) via NachoSoto (@NachoSoto)
* Replaced `Any` uses for workaround with `Box` (#2250) via NachoSoto
(@NachoSoto)
* `HTTPClientTests`: fixed failing test with missing assertions (#2262)
via NachoSoto (@NachoSoto)
* `HTTPClientTests`: refactored tests to use `waitUntil` (#2257) via
NachoSoto (@NachoSoto)
* PurchaseTester: Add Receipt Inspector UI (#2249) via Andy Boedo
(@aboedo)
* Adds dependabot (#2259) via Cesar de la Vega (@vegaro)
* `StoreKit1WrapperTests`: avoid using `Bool.random` to fix flaky code
coverage (#2258) via NachoSoto (@NachoSoto)
* `IntroEligibilityCalculator`: changed logic to handle products with no
subscription group (#2247) via NachoSoto (@NachoSoto)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants